{"version":3,"sources":["app/app.module.js","app/administration/administration.module.js","app/administration/annualSeasonPlan/annualSeasonPlan.module.js","app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.module.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.module.js","app/administration/assetManagement/assetManagement.module.js","app/administration/awayBudgetPlan/awayBudgetPlan.module.js","app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.module.js","app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.module.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.module.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.module.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.module.js","app/administration/dailyAttendance/dailyAttendance.module.js","app/administration/exercises/exercises.module.js","app/administration/exercises/exercisesCreate/exercisesCreate.module.js","app/administration/exercises/exercisesList/exercisesList.module.js","app/administration/monthlyAttendance/monthlyAttendance.module.js","app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.module.js","app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.module.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlan.module.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.module.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.module.js","app/administration/quickCompetitionResults/quickCompetitionResults.module.js","app/administration/resultReportAthletes/resultReportAthletes.module.js","app/administration/resultReportTeam/resultReportTeam.module.js","app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.module.js","app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.module.js","app/administration/sportSpecificTest/sportSpecificTest.module.js","app/administration/trainingDiary/trainingDiary.module.js","app/administration/trainingPlan/trainingPlan.module.js","app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.module.js","app/administration/trainingPlan/trainingPlanList/trainingPlanList.module.js","app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.module.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlan.module.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.module.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.module.js","app/athleteDashboard/athleteDashboard.module.js","app/athletes/ageGroups/addAgeGroup/addAgeGroup.module.js","app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.module.js","app/athletes/ageGroups/ageGroups.module.js","app/athletes/ageGroups/ageGroupsList/ageGroupsList.module.js","app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.module.js","app/athletes/athletes.module.js","app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.module.js","app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.module.js","app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.module.js","app/athletes/athletesManagement/athleteModify/athleteModify.module.js","app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.module.js","app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.module.js","app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.module.js","app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.module.js","app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.module.js","app/athletes/athletesManagement/athleteModify/files/files.module.js","app/athletes/athletesManagement/athleteModify/health/health.module.js","app/athletes/athletesManagement/athleteModify/health/healthList/healthList.module.js","app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.module.js","app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.module.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.module.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.module.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.module.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.module.js","app/athletes/athletesManagement/athleteModify/psychology/psychology.module.js","app/athletes/athletesManagement/athleteModify/psychology/summary/summary.module.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.module.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.module.js","app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.module.js","app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.module.js","app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.module.js","app/athletes/athletesManagement/athleteNew/athleteNew.module.js","app/athletes/athletesManagement/athletesList/athletesList.module.js","app/athletes/athletesManagement/athletesManagement.module.js","app/athletes/sections/sections.module.js","app/athletes/teams/addTeam/addTeam.module.js","app/athletes/teams/addTeamMember/addTeamMember.module.js","app/athletes/teams/modifyTeam/modifyTeam.module.js","app/athletes/teams/teamList/teamList.module.js","app/athletes/teams/teamMembersList/teamMembersList.module.js","app/athletes/teams/teams.module.js","app/blocks/exception/exception.module.js","app/blocks/logger/logger.module.js","app/blocks/router/router.module.js","app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.module.js","app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.module.js","app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.module.js","app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.module.js","app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.module.js","app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.module.js","app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.module.js","app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.module.js","app/business/business.module.js","app/business/checkPayment/checkPayment.module.js","app/business/checkPrintingExport/checkPrintingExport.module.js","app/business/csvPayment/csvPayment.module.js","app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.module.js","app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.module.js","app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.module.js","app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.module.js","app/business/educationalFeeRegister/educationalFeeRegister.module.js","app/business/modifyFees/modifyFees.module.js","app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.module.js","app/business/sportServiceFeeArrears/sportServiceFeeArrears.module.js","app/business/sportServiceFeeRegister/sportServiceFeeRegister.module.js","app/core/core.module.js","app/dashboard/dashboard.module.js","app/layout/layout.module.js","app/login/login.module.js","app/messageCenter/messageCenter.module.js","app/other/files/files.module.js","app/other/other.module.js","app/paint/paint.module.js","app/parentDashboard/parentDashboard.module.js","app/parentMonthlyAttendance/parentMonthlyAttendance.module.js","app/reports/absenceReport/absenceReport.module.js","app/reports/annualPresenceReports/annualPresenceReports.module.js","app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.module.js","app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.module.js","app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.module.js","app/reports/anthropometryTestPrinting/anthropometryTestPrinting.module.js","app/reports/assetInventoryReportByType/AssetInventoryReportByType.module.js","app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.module.js","app/reports/assetInventoryReports/assetInventoryReports.module.js","app/reports/athleteTransfer/athleteTransfer.module.js","app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.module.js","app/reports/duplicatedAthletes/duplicatedAthletes.module.js","app/reports/expiringDocuments/expiringDocuments.module.js","app/reports/healthReport/healthReport.module.js","app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.module.js","app/reports/managementReports/managementReports.module.js","app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.module.js","app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.module.js","app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.module.js","app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.module.js","app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.module.js","app/reports/playUpAndDown/playUpAndDown.module.js","app/reports/raceResultsReport/raceResultsReport.module.js","app/reports/reports.module.js","app/reports/sportSpecificReport/sportSpecificReport.module.js","app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.module.js","app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.module.js","app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.module.js","app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.module.js","app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.module.js","app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.module.js","app/reports/statisticalReports/athletesByYear/athletesByYear.module.js","app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.module.js","app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.module.js","app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.module.js","app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.module.js","app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.module.js","app/reports/statisticalReports/listAthletes/listAthletes.module.js","app/reports/statisticalReports/statisticalReports.module.js","app/reports/trainingAttendanceReport/trainingAttendanceReport.module.js","app/reports/weeklyTrainingReport/weeklyTrainingReport.module.js","app/reports/weeklyTravelReport/weeklyTravelReport.module.js","app/schedule/schedule.module.js","app/search/athletes/athletes.module.js","app/search/athletes/memberList/memberList.module.js","app/search/athletes/simple/simple.module.js","app/search/search.module.js","app/search/user/searchuser/searchuser.module.js","app/search/user/user.module.js","app/settings/ageGroupChange/ageGroupChange.module.js","app/settings/athleteTransfer/athleteTransfer.module.js","app/settings/createSportSpecificTest/createSportSpecificTest.module.js","app/settings/editHealthType/editHealthType.module.js","app/settings/editSection/editSection.module.js","app/settings/schoolManagement/addSchool/addSchool.module.js","app/settings/schoolManagement/editSchool/editSchool.module.js","app/settings/schoolManagement/schoolList/schoolList.module.js","app/settings/schoolManagement/schoolManagement.module.js","app/settings/settings.module.js","app/settings/systemSettings/systemSettings.module.js","app/settings/userGroups/userGroupsManagement.module.js","app/settings/userManagement/modifyUser/modifyUser.module.js","app/settings/userManagement/newUser/newUser.module.js","app/settings/userManagement/userList/userList.module.js","app/settings/userManagement/userManagement.module.js","app/settings/userManagement/userSettings/userSettings.module.js","app/settings/userRights/userRights.module.js","app/settings/usersBelongingToAthletes/usersBelongingToAthletes.module.js","app/sikerMobile/sikerMobile.module.js","app/administration/administration.route.js","app/business/educationalFeeRegister/educationalFeeRegister.controller.js","app/administration/annualSeasonPlan/annualSeasonPlan.route.js","app/business/sportServiceFeeRegister/sportServiceFeeRegister.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.controller.js","js/app.js","app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.route.js","app/layout/shell.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.route.js","app/settings/userRights/userRights.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.route.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.route.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.route.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.route.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.controller.js","app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.route.js","app/administration/assetManagement/assetManagement.controller.js","app/administration/assetManagement/assetManagement.route.js","app/administration/awayBudgetPlan/awayBudgetPlan.route.js","app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.controller.js","app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.route.js","app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.controller.js","app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.route.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.route.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.controller.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.route.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.controller.js","app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.route.js","app/administration/dailyAttendance/dailyAttendance.controller.js","app/administration/dailyAttendance/dailyAttendance.route.js","app/administration/exercises/exercises.route.js","app/administration/exercises/exercisesCreate/exercisesCreate.controller.js","app/administration/exercises/exercisesCreate/exercisesCreate.route.js","app/administration/exercises/exercisesList/exercisesList.controller.js","app/administration/exercises/exercisesList/exercisesList.route.js","app/administration/monthlyAttendance/monthlyAttendance.route.js","app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.controller.js","app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.route.js","app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.controller.js","app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.route.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlan.route.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.controller.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.route.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.controller.js","app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.route.js","app/administration/quickCompetitionResults/quickCompetitionResults.controller.js","app/administration/quickCompetitionResults/quickCompetitionResults.route.js","app/administration/resultReportAthletes/resultReportAthletes.controller.js","app/administration/resultReportAthletes/resultReportAthletes.route.js","app/administration/resultReportTeam/resultReportTeam.controller.js","app/administration/resultReportTeam/resultReportTeam.route.js","app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.controller.js","app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.route.js","app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.controller.js","app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.route.js","app/administration/sportSpecificTest/sportSpecificTest.route.js","app/administration/trainingDiary/trainingDiary.controller.js","app/administration/trainingDiary/trainingDiary.route.js","app/administration/trainingPlan/trainingPlan.route.js","app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.controller.js","app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.route.js","app/administration/trainingPlan/trainingPlanList/trainingPlanList.controller.js","app/administration/trainingPlan/trainingPlanList/trainingPlanList.route.js","app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.controller.js","app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.route.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlan.route.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.controller.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.route.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.controller.js","app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.route.js","app/athleteDashboard/athleteDashboard.controller.js","app/athleteDashboard/athleteDashboard.route.js","app/athletes/ageGroups/addAgeGroup/addAgeGroup.controller.js","app/athletes/ageGroups/addAgeGroup/addAgeGroup.route.js","app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.controller.js","app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.route.js","app/athletes/ageGroups/ageGroups.route.js","app/athletes/ageGroups/ageGroupsList/ageGroupsList.controller.js","app/athletes/ageGroups/ageGroupsList/ageGroupsList.route.js","app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.controller.js","app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.route.js","app/athletes/athletes.route.js","app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.controller.js","app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.route.js","app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.controller.js","app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.route.js","app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.controller.js","app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.route.js","app/athletes/athletesManagement/athleteModify/athleteModify.controller.js","app/athletes/athletesManagement/athleteModify/athleteModify.route.js","app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.controller.js","app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.route.js","app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.controller.js","app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.route.js","app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.controller.js","app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.route.js","app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.controller.js","app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.route.js","app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.controller.js","app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.route.js","app/athletes/athletesManagement/athleteModify/files/files.controller.js","app/athletes/athletesManagement/athleteModify/files/files.route.js","app/athletes/athletesManagement/athleteModify/health/health.route.js","app/athletes/athletesManagement/athleteModify/health/healthList/healthList.controller.js","app/athletes/athletesManagement/athleteModify/health/healthList/healthList.route.js","app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.controller.js","app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.route.js","app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.controller.js","app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.route.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.controller.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.route.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.controller.js","app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.route.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.controller.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.route.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.controller.js","app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.route.js","app/athletes/athletesManagement/athleteModify/psychology/psychology.route.js","app/athletes/athletesManagement/athleteModify/psychology/summary/summary.controller.js","app/athletes/athletesManagement/athleteModify/psychology/summary/summary.route.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.controller.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.route.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.controller.js","app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.route.js","app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.controller.js","app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.route.js","app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.controller.js","app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.route.js","app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.controller.js","app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.route.js","app/athletes/athletesManagement/athleteNew/athleteNew.controller.js","app/athletes/athletesManagement/athleteNew/athleteNew.route.js","app/athletes/athletesManagement/athletesList/athletesList.controller.js","app/athletes/athletesManagement/athletesList/athletesList.route.js","app/athletes/athletesManagement/athletesManagement.route.js","app/athletes/sections/sections.controller.js","app/athletes/sections/sections.route.js","app/athletes/teams/addTeam/addTeam.controller.js","app/athletes/teams/addTeam/addTeam.route.js","app/athletes/teams/addTeamMember/addTeamMember.controller.js","app/athletes/teams/addTeamMember/addTeamMember.route.js","app/athletes/teams/modifyTeam/modifyTeam.controller.js","app/athletes/teams/modifyTeam/modifyTeam.route.js","app/athletes/teams/teamList/teamList.controller.js","app/athletes/teams/teamList/teamList.route.js","app/athletes/teams/teamMembersList/teamMembersList.controller.js","app/athletes/teams/teamMembersList/teamMembersList.route.js","app/athletes/teams/teams.route.js","app/blocks/exception/exception-handler.provider.js","app/blocks/logger/logger.js","app/blocks/router/router-helper.provider.js","app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.controller.js","app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.route.js","app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.controller.js","app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.route.js","app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.controller.js","app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.route.js","app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.controller.js","app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.route.js","app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.controller.js","app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.route.js","app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.controller.js","app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.route.js","app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.controller.js","app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.route.js","app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.controller.js","app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.route.js","app/business/business.route.js","app/business/checkPayment/checkPayment.controller.js","app/business/checkPayment/checkPayment.route.js","app/business/checkPrintingExport/checkPrintingExport.controller.js","app/business/checkPrintingExport/checkPrintingExport.route.js","app/business/csvPayment/csvPayment.controller.js","app/business/csvPayment/csvPayment.route.js","app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.controller.js","app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.route.js","app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.controller.js","app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.route.js","app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.controller.js","app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.route.js","app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.controller.js","app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.route.js","app/business/educationalFeeRegister/educationalFeeRegister.route.js","app/business/modifyFees/modifyFees.controller.js","app/business/modifyFees/modifyFees.route.js","app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.controller.js","app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.route.js","app/business/sportServiceFeeArrears/sportServiceFeeArrears.controller.js","app/business/sportServiceFeeArrears/sportServiceFeeArrears.route.js","app/business/sportServiceFeeRegister/sportServiceFeeRegister.route.js","app/core/authenticationService.js","app/core/config.js","app/core/constants.js","app/core/core.route.js","app/core/dataservice.js","app/core/directives.js","app/core/filereader.factory.js","app/core/filters.js","app/core/httpInterceptor.js","app/core/idleservice.js","app/core/loader.js","app/core/param-helper.factory.js","app/core/validatorHelper.js","app/dashboard/dashboard.controller.js","app/dashboard/dashboard.route.js","app/layout/ht-sidebar.directive.js","app/layout/sidebar.controller.js","app/login/login.controller.js","app/login/login.directive.js","app/login/login.route.js","app/messageCenter/messageCenter.controller.js","app/messageCenter/messageCenter.route.js","app/other/files/files.controller.js","app/other/files/files.route.js","app/other/other.route.js","app/paint/paint.controller.js","app/paint/paint.route.js","app/parentDashboard/parentDashboard.controller.js","app/parentDashboard/parentDashboard.route.js","app/parentMonthlyAttendance/parentMonthlyAttendance.controller.js","app/parentMonthlyAttendance/parentMonthlyAttendance.route.js","app/reports/absenceReport/absenceReport.controller.js","app/reports/absenceReport/absenceReport.route.js","app/reports/annualPresenceReports/annualPresenceReports.route.js","app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.controller.js","app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.route.js","app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.controller.js","app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.route.js","app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.controller.js","app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.route.js","app/reports/anthropometryTestPrinting/anthropometryTestPrinting.controller.js","app/reports/anthropometryTestPrinting/anthropometryTestPrinting.route.js","app/reports/assetInventoryReportByType/AssetInventoryReportByType.controller.js","app/reports/assetInventoryReportByType/AssetInventoryReportByType.route.js","app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.controller.js","app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.route.js","app/reports/assetInventoryReports/assetInventoryReports.route.js","app/reports/athleteTransfer/athleteTransfer.controller.js","app/reports/athleteTransfer/athleteTransfer.route.js","app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.controller.js","app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.route.js","app/reports/duplicatedAthletes/duplicatedAthletes.controller.js","app/reports/duplicatedAthletes/duplicatedAthletes.route.js","app/reports/expiringDocuments/expiringDocuments.controller.js","app/reports/expiringDocuments/expiringDocuments.route.js","app/reports/healthReport/healthReport.controller.js","app/reports/healthReport/healthReport.route.js","app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.controller.js","app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.route.js","app/reports/managementReports/managementReports.route.js","app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.controller.js","app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.route.js","app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.controller.js","app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.route.js","app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.controller.js","app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.route.js","app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.controller.js","app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.route.js","app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.controller.js","app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.route.js","app/reports/playUpAndDown/playUpAndDown.controller.js","app/reports/playUpAndDown/playUpAndDown.route.js","app/reports/raceResultsReport/raceResultsReport.controller.js","app/reports/raceResultsReport/raceResultsReport.route.js","app/reports/reports.route.js","app/reports/sportSpecificReport/sportSpecificReport.controller.js","app/reports/sportSpecificReport/sportSpecificReport.route.js","app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.controller.js","app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.route.js","app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.controller.js","app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.route.js","app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.controller.js","app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.route.js","app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.controller.js","app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.route.js","app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.controller.js","app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.route.js","app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.controller.js","app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.route.js","app/reports/statisticalReports/athletesByYear/athletesByYear.controller.js","app/reports/statisticalReports/athletesByYear/athletesByYear.route.js","app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.controller.js","app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.route.js","app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.controller.js","app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.route.js","app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.controller.js","app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.route.js","app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.controller.js","app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.route.js","app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.controller.js","app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.route.js","app/reports/statisticalReports/listAthletes/listAthletes.controller.js","app/reports/statisticalReports/listAthletes/listAthletes.route.js","app/reports/statisticalReports/statisticalReports.route.js","app/reports/trainingAttendanceReport/trainingAttendanceReport.controller.js","app/reports/trainingAttendanceReport/trainingAttendanceReport.route.js","app/reports/weeklyTrainingReport/weeklyTrainingReport.controller.js","app/reports/weeklyTrainingReport/weeklyTrainingReport.route.js","app/reports/weeklyTravelReport/weeklyTravelReport.controller.js","app/reports/weeklyTravelReport/weeklyTravelReport.route.js","app/schedule/schedule.controller.js","app/schedule/schedule.route.js","app/search/athletes/athletes.route.js","app/search/athletes/memberList/memberList.controller.js","app/search/athletes/memberList/memberList.route.js","app/search/athletes/simple/simple.controller.js","app/search/athletes/simple/simple.route.js","app/search/search.route.js","app/search/user/searchuser/searchuser.controller.js","app/search/user/searchuser/searchuser.route.js","app/search/user/user.route.js","app/settings/ageGroupChange/ageGroupChange.controller.js","app/settings/ageGroupChange/ageGroupChange.route.js","app/settings/athleteTransfer/athleteTransfer.controller.js","app/settings/athleteTransfer/athleteTransfer.route.js","app/settings/createSportSpecificTest/createSportSpecificTest.controller.js","app/settings/createSportSpecificTest/createSportSpecificTest.route.js","app/settings/editHealthType/editHealthType.controller.js","app/settings/editHealthType/editHealthType.route.js","app/settings/editSection/editSection.controller.js","app/settings/editSection/editSection.route.js","app/settings/schoolManagement/addSchool/addSchool.controller.js","app/settings/schoolManagement/addSchool/addSchool.route.js","app/settings/schoolManagement/editSchool/editSchool.controller.js","app/settings/schoolManagement/editSchool/editSchool.route.js","app/settings/schoolManagement/schoolList/schoolList.controller.js","app/settings/schoolManagement/schoolList/schoolList.route.js","app/settings/schoolManagement/schoolManagement.route.js","app/settings/settings.route.js","app/settings/systemSettings/systemSettings.controller.js","app/settings/systemSettings/systemSettings.route.js","app/settings/userGroups/userGroupsManagement.controller.js","app/settings/userGroups/userGroupsManagement.route.js","app/settings/userManagement/modifyUser/modifyUser.controller.js","app/settings/userManagement/modifyUser/modifyUser.route.js","app/settings/userManagement/newUser/newUser.controller.js","app/settings/userManagement/newUser/newUser.route.js","app/settings/userManagement/userList/userList.controller.js","app/settings/userManagement/userList/userList.route.js","app/settings/userManagement/userManagement.route.js","app/settings/userManagement/userSettings/userSettings.controller.js","app/settings/userManagement/userSettings/userSettings.route.js","app/settings/userRights/userRights.route.js","app/settings/usersBelongingToAthletes/usersBelongingToAthletes.controller.js","app/settings/usersBelongingToAthletes/usersBelongingToAthletes.route.js","app/sikerMobile/sikerMobile.controller.js","app/sikerMobile/sikerMobile.route.js","../../.tmp/templates.js"],"names":["angular","module","appRun","routerHelper","configureStates","state","config","title","url","templateUrl","settings","navId","level","order","parentId","content","faIcon","activatorPermission","activate","$inject","run","rowDataBound","AnnualSeasonPlanListController","$rootScope","gettextCatalog","dataservice","log","$q","authenticationService","paramHelper","$scope","$state","vm","this","getString","columns","yearList","ev","Date","getFullYear","push","selectedYear","yearDataBound","length","element","ejDropDownList","value","yearSelect","args","setParams","AnnualSeasonPlanList.Year","annualSeasonPlanList","split","then","grid","dataSource","itemsList","goToNewAgeGroup","MEGTKOROSZT","permissionError","ageGroups.ageGroup","go","goToNewCoach","MEGTFELH","newUser.userId","goToAnnualSeasonPlan","MEGTEVVERST","AnnualSeasonPlanReport.Id","field","visible","isPrimaryKey","isIdentity","width","headerText","textAlign","allowEditing","template","editType","ej","Grid","EditingType","Boolean","ej2","grids","toolbar","toolbarItems","allowPaging","allowTextWrap","allowSorting","allowExcelExport","locale","gridLines","pageSettings","beforePrint","beforePrintGrid","printComplete","printCompleteGrid","compile","row","actionComplete","requestType","$","rowSelected","selectedRowId","data","Id","delEnabled","MODHETIEDZTERV","$apply","rowDeselected","appendTo","toolbarClick","all","getParams","getRight","results","EDZO","ADMIN","SZAKOSZTVEZ","TECHIGAZGATO","removeParam","controller","controllerAs","orderTitle_hu","orderTitle_en","StartEndError","AnnualSeasonPlanReportPage1Controller","$timeout","egyeni","maKorabbiEditable","annualSeasonPlanReportId","loadedById","years","coachList","selectedCoach","coachContact","coachEmail","sectionList","selectedSection","ageGroupList","selectedAgeGroup","coachDataBound","coachSelect","sectionDataBound","sectionSelect","ageGroupDataBound","ageGroupSelect","getAgeGroups","JumpPageList","noAnnualSeasonPlan","hasAnnualSeasonPlan","hasSignedAnnualSeasonPlan","hasAcceptedAnnualSeasonPlan","autoSelect","annualSeasonPlanReportSelect","goToNewAthlete","MEGTSPORTLIST","swal","text","type","showCancelButton","confirmButtonText","isConfirmed","athleteModify.sportoloId","refreshData","annualSeasonPlanDeleteMembers","coachAthletesByAgeGroupForAnnualSeasonPlan","successMsg","saveAnnualSeasonPlanMembers","goToNextPage","annualSeasonPlanReportCreate","fej","DSIVezetoJovahagyta","EdzoEmail","EdzoLezarta","EdzoMobil","EdzoNeve","getSelectedItem","innerText","EgyebCelkituzesek","Egyeni","ErvenyessegIg","moment","y","trim","M","d","format","ErvenyessegTol","IdEdzo","IdKorosztaly","IdSzakosztaly","KeszitesDatum","KorosztalyNeve","SzakosztalyNeve","saveAnnualSeasonPlanHead","retValue","showMessages","goToOlderAnnualSeasonPlanReports","jumpPageDataBound","defaultJumpPage","selectedJumpPage","jumpPageSelect","sorszam","toolbarItemsWithSearch","editSettings","mode","showConfirmDialog","allowDeleting","getCoaches","sectionDropDownList","getTrainerEmailContact","contact","email","sectionIndividualOrTeam","ageGroupSelectYear","vmi","selectedIndexValue","$broadcast","form","$valid","AnnualSeasonPlanReport.coachId","AnnualSeasonPlanReport.sectionId","AnnualSeasonPlanReport.ageGroupId","AnnualSeasonPlanReport.year","jumpedPage","errorMsg","SzakosztalyvezetoJovahagyta","viewAnnualSeasonPlanReport","annualSeasonPlanReportMembersDataByIdSelect","EVVERSTALAIR1","EVVERSTALAIR2","UJEVVERST","console","annualSeasonPlanReportSelectById","ejListBoxEnable","AnnualSeasonPlanReportPage2Controller","editable","disable","head","saveAnnualSeasonPlanMembersPast","goToPreviousPage","editModule","endEdit","annualSeasonPlanReportMembersPastDelete","annualSeasonPlanReportMembersPastRefresh","annualSeasonPlanReportMembersPastSelect","back","AnnualSeasonPlanReportPage3Controller","columnsPopup","selectedRowIndexPopup","selectedRowRecords","dataPopup","SaveResults","newAthletesNewRow","i","Sorszam","IdVersenyeztetesiTervFej","ElertHelyezes","EsemenyHelye","EsemenyIdopontja","EsemenyNeve","KiemelkSportolo","VersenyzoNeve","oldAthletesNewRow","search","same","open","annualSeasonPlanReportBestResultsSelect","gridSearch","search2","closeOutstandingResultsWindow","close","selectOutstandingResults","Helyezes","Helyszin","DatumTol","Datumig","DatumIg","CsapatSportolo","initGrid","toolbarItemsWithDelete","showDeleteConfirmDialog","getSelectedRecords","document","getElementById","removeAttribute","setAttribute","actionBegin","selectedRowIndex","saveAnnualSeasonPlanBestResults","annualSeasonPlanReportBestResultsList","AnnualSeasonPlanReportPage4Controller","$window","DOMAIN","file","saveAnnualSeasonPlanCapitalObjectives","res","numberChange","tx1","tx2","HetiEdzesOsszesen","Number","model","openTechnicalTrainingObjectives","TechKepzesFeladatokFile","openLink","replace","removeTechnicalTrainingObjectives","host","baseURL","webService","deleteFileAnnualSeasonPlan","undefined","openTacticalTrainingObjectives","TaktikaiKepzesFeladatokFile","removeTacticalTrainingObjectives","openAbilitydevelopmentObjectives","KepessegFejlFeladatokFile","removeAbilitydevelopmentObjectives","openEducationalObjectives","NevelesiFeladatokFile","removeEducationalObjectives","openEfficiencyObjectives","EredmenyessegiFeladatokFile","removeEfficiencyObjectives","openSportSpecificTrainingObjectives","SportagSpecFeladatokFile","removeSportSpecificTrainingObjectives","closeEarlierAnnualSeasonPlanWindow","selectEarlierAnnualSeasonPlan","getAnnualSeasonPlanListByTrainer","allowScrolling","annualSeasonPlanReportObjectivesSelect","HetiEdzesSportag","HetiEdzesKiegeszito","SportagSpecFeladatok","KepessegFejlFeladatok","NevelesiFeladatok","TechKepzesFeladatok","TaktikaiKepzesFeladatok","EredmenyessegiFeladatok","ejUploadbox","saveUrl","autoUpload","uploadName","allowDragAndDrop","buttonText","browse","upload","cancel","dialogAction","modal","closeOnComplete","resize","drag","dialogText","name","size","status","dropAreaText","extensionsAllow","enabled","complete","responseText","indexOf","slice","htmlError","error","err","begin","tipus","tablaId","AnnualSeasonPlanReportPage5Controller","$compile","saveAnnualSeasonPlanCompetitionPlansAndObjectives","newRow","EredmenyTerv","EsemenyHelyszin","EsemenyIdopont","EsemenyIdopont2","removeRow","deleteAnnualSeasonPlanCompetitionPlansAndObjective","deleteRow","gridPopup","deleteAnnualSeasonPlanCompetitionPlansAndObjectives","annualSeasonPlanCompetitionPlansAndObjectivesSelect","forEach","navigate","maskObject","elem","dateTimeEditorTemplate","create","createElement","addEventListener","select","read","getMaskedValue","destroy","write","inputs","MaskedTextBox","minWidth","mask","rowData","column","readOnly","focus","selectionEnd","selectionStart","editedRowId","edit","index","splice","refresh","AnnualSeasonPlanReportPage6Controller","gridMaskEdit","printOpened","stackedHeaderRows","closed","rejectAttendanceText","reportParameters","months","saveAnnualSeasonPlanTable","gotoMainPage","savePlan","print","SzakosztalyvezetoJovahagytaId","resolve","getUserData","Szakosztaly","Korcsoport","Edzo","Mobil","Email","FejId","Jovahagyta","Keszitette","techKepzes","ejDialog","height","enablemodal","position-x","position-y","target","enableresize","refreshCompetition","dt","di","setDate","getDate","j","getRows","esDate","getRowByIndex","closePlan","EdzoLezartaDatum","toDateString","hasErrorAtSave","rejectPlan","acceptPlan","uzi","messageSave","SzakosztalyvezetoJovahagyva","getAuthData","id","rejectAttendance","dialogObj","EdzoAlairtaDatum","SzakosztalyVezetoJovahagyva","SzakosztalyVezetoJovahagytaId","SzakosztalyVezetoJovahagyta","closerejectingWindow","cellEdit","cellsave","tableEditorTemplate","ejMaskEdit","s","toString","maskFormat","customCharacter","rowdata","tableEditorTemplateNumX","customCharacters","C","tableEditorTemplateNum","smallColumnWidth","customAttributes","class","padding","params","decimals","showSpinButton","min","max","annualSeasponPlanTableListSelect","datum","getDay","datumstr","getMonth","obj","Datum","EdzTabHely","EdzTabIdopont","EdzTabLetszam","FelkHetSzam","FelkIdJellTiszta","FelkIdJellVegyes","FelkIdJellVerseny","FelmeresekAlt","FelmeresekSpSpec","HetiEdzesSzamAlt","HetiEdzesSzamOsszesen","HetiEdzesSzamSpSpec","HetiEdzMunkaEgyeb","HetiEdzMunkaKepFejl","HetiEdzMunkaKieg","HetiEdzMunkaTechnikai","HetiTerhelesAlacsony","HetiTerhelesKozepes","HetiTerhelesMagas","HetSzam","Verseny","allowPdfExport","cellSave","columnName","alt","sp","checkNumberInterval","parseInt","number","ssz","AssetManagementController","$filter","userid","groupList","groupId","dropdownDataBound","groupSelect","arg","chooseEnabled","issueToAthlete","section","AthletesInSection","athletes","AthleteGrid2","issueToCoach","usergroup","UsersInGroup","coaches","CoachGrid2","athleteSelect","Issue","input","allowOutsideClick","allowEscapeKey","confirmButtonColor","inputValue","dismiss","edzo","sportolo","choosen","AssetIssue","getSelectedAssetIds","getAssetsByType","editype","TipusId","typeSelected","filter","types","assets","selectedAssets","athletecoachList","assetFilterList","assetTypeColumns","assetColumns","displayAsCheckBox","athleteColumns","coachColumns","AddAssetType","cancelButtonText","AssetManager","TipusNev","response","editDeleteMainTypeEnabled","GridRefresh","EditAssetType","DeleteAssetType","closeOnConfirm","closeOnCancel","isConfirm","TipusTorles","addNewSubType","AddAsset","HTMLtext","createHtmlSwalContent","html","preConfirm","newAsset","EszkozId","Megnevezes","Leiras","Azonosito","Meret","Ar","darab","Promise","showValidationError","isNaN","EditAsset","editAsset","dd","EditAssetEnabled","DeleteAssetEnabled","DeleteAsset","DeleteUndeleteAssets","action","assetList","UndeleteAsset","filterSelect","clearSelection","AddAssetEnabled","UndeleteAssetEnabled","SelectAll","indexes","AssetGrid2","selectRows","IssuePopup","TakeBack","AssetTakeBack","issueToSelect","dropdownlabel","userGroupList","ESZKNYILVMEGT","ESZKNYILVMOD","ESZKMOZG","AddAssetTypeEnabled","EditAssetTypeEnabled","DeleteAssetTypeEnabled","IssueEnabled","TakeBackEnabled","TypeGrid2","tipusId","assetTypeList","item","assetTypeSelect","infoMsg","assetSelectOrDeselect","ret","getSelectedAssets","Aktiv","Szabad","allIssuable","allIssued","asset","AssetsByType","arr","hasOwnProperty","assetIds","SportoloId","EdzoId","allowAdding","selectionSettings","rowSelecting","checkBoxChange","checkBoxChangeOnlyOne","AwayBudgetPlanCreateController","tervId","tenyId","subtitle","currentUserId","saveIsBusy","forceDisableEdit","disableEverything","GAZDASAGI","allusers","athleteList","otherPersonName","otherPersonYear","szint","busOwners","busLists","promises","allowEdit","allowSelection","LoadPlan","GetAwayBudgetPlan","resp","awayBudgetPlan.planId","Szint","Teny","terv","teny","TenyId","Veglegesitve","enableEdit","Lezarva","Terv","TervId","subtitle1","Jovahagyo1","subtitle2","Jovahagyo2","subtitle3","Jovahagyo3","allowOpen","allowClose","Vegleges","EdzoIdValue","allowFinalize","Veglegesithet","UserName","EdzoElerhetosege","people","JOVIDEGENSZAK","Accept1Enabled","JOVIDEGENGAZD","Accept2Enabled","JOVIDEGENVEZ","Accept3Enabled","UndoAccept1Enabled","UndoAccept2Enabled","UndoAccept3Enabled","Jovahagyta1Id","Jovahagyta1Datum","allowUndoAccept1","allowAccept1","allowIWillAccept1","Jovahagyta2Id","Jovahagyta2Datum","allowUndoAccept2","allowAccept2","allowIWillAccept2","Jovahagyta3Id","Jovahagyta3Datum","allowUndoAccept3","allowAccept3","allowIWillAccept3","setButtons","getAthleteList","ageGroupId","AgeGroups","getIdegenbeliKoltsegvetesiTervSportoloList","SzakosztalyId","initAthleteDropDownMS","ToFixedTwo","n","reCalculate","property","t","parseFloat","DataManager","executeQuery","Query","where","result","save","warningMsg","batchSave","f","BuszKiallasIdopontjaString","getValue","ActionCode","SaveAwayBudgetPlan","Header","Korosztaly","Tervadat","UtaslistaNev","Lezaras","Jovahagyas1","Jovahagyas2","Jovahagyas3","KoltesegvetesiTervExcelExport","window","URL","webkitURL","mozURL","msURL","a","body","appendChild","href","click","revokeObjectURL","VEGLIDEGENKOLTSTERV","KoltesegvetesiTervVeglegesites","veglegesResponse","KoltesegvetesiTervLezaras","lezarasResponse","KoltesegvetesiTervJovahagyas","initAgeGroupDropDown","fields","showCheckbox","multiSelectMode","MultiSelectMode","Delimiter","change","isChecked","selectedItems","moreAgeGroups","dataset","KorosztalyId","initUserDropDownMS","sectionId","ageGroupDropDownList","unshift","getIdegenbeliKoltsegvetesiTervEdzoList","selectedAthlete","itemId","edzoSelect","getCoachContant","addAthlete","existing","FelhasznaloId","Nev","SzuletesiEv","szuletesiEv","UtazasiKoltseg","Etkezes","Szallas","NevezesiDij","KikuldetesiKoltseg","Egyeb","addAllAthlete","addUser","addOtherPersonName","travelCostDivide","UtazasiKoltsegOsszeg","mealDivide","EtkezesOsszeg","accommodationDivide","SzallasOsszeg","registrationFeeDivide","NevezesiOsszeg","secondmentCostDivide","KikuldetesiKoltsegOsszeg","otherDivide","EgyebOsszeg","UtazasiKoltsegOsszegChange","OsszesenOszeg","EtkezesOsszegChange","SzallasOsszegChange","NevezesiOsszegChange","KikuldetesiKoltsegOsszegChange","EgyebOsszegChange","excel","TORLIDEGENKOLTSTERV","finalize","deleteSelected","selectedRecords","delIdx","openPlan","openFact","deletePlan","deleteAwayBudgetPlan","IWillAccept1","IWillAccept2","IWillAccept3","accept1","accept2","accept3","UndoAccept1","UndoAccept2","UndoAccept3","MEGTIDEGENKOLTSTERV","MODIDEGENKOLTSTERV","UJIDEGENKOLTSTERV","JOVAHAGYIDEGENKOLTSTERV","IdegenKoltsegTervBuszTulaj","IdegenKoltsegTervBusz","AwayBudgetPlanListController","coachId","typeId","typeList","dateFrom","setMonth","dateTo","onlyStartDate","awayBudgetPlanList.edzoId","awayBudgetPlanList.szakosztalyId","awayBudgetPlanList.korosztalyId","awayBudgetPlanList.tipus","awayBudgetPlanList.csakKezdoDatum","ejCheckBox","awayBudgetPlanList.datumTol","awayBudgetPlanList.datumIg","awayBudgetPlanList.versenyHelye","competitionPlace","getAwayBudgetPlanList","planList","planId","awayBudgetPlan.planSection","awayBudgetPlan.planAgeGroup","coachDropDownList","typeDataBound","selectedType","typeSelect","delete","selected","getSelectedItems","selectedOnlyStartedDate","selectedFromDate","selectedToDate","getCompetitionPlaces","competitionPlaceList","checked","CompetitiveMonthlyPlanListController","allowAddNew","team","individual","openText","coachChanged","competitiveMonthlyPlan.edzoId","sectionDropDownListWithGroupStatus","yearChanged","competitiveMonthlyPlan.year","sectionChanged","find","competitiveMonthlyPlan.szakosztalyId","goToNewUser","edzoId","goToCompetitiveMonthlyPlan","competitivePlanId","MEGTHAVIVERST","competitiveMonthlyPlan.edzoNev","competitiveMonthlyPlan.szakosztalyNev","competitiveMonthlyPlan.competitivePlanId","competitiveMonthlyPlan.egyeni","goToNewCompetitiveMonthlyPlan","UJHAVIVERST","ujHaviVersenyeztetesiTerv","competitiveMonthlyPlan.datum","versernytervTorlese","VersenyTervHaviDeleteById","year","getCompetitiveMonthlyPlanList","HAVIVERSTALAIR1","HAVIVERSTALAIR2","TeamsCtrl","lang","language","VersenyTervTablazat","selectedMonth","dataYear","columnsYear","coachsAgeGroups","initEvesGrid","MODHAVIVERST","readOnlyMonthlyPlan","alreadyCreated","evIg","month","individualText","teamText","saveButton","closeButton","acceptButton","rejectButton","noMonthlyPlan","hasMonthlyPlan","hasSignedMonthlyPlan","hasAcceptedMonthlyPlan","editedMonthlyPlan","rejectMonthlyPlanText","defaultCoach","TORLHAVIVERS","closeMonthlyPlan","Leadva","saveMonthlyPlan","acceptMonthlyPlan","monthlyCompetitionPlanAcceptByLeader","Tipus","monthlyPlanSelectById","viewMonthlyPlan","rejectMonthlyPlan","rejectMonthlyPlanOk","SzakosztalyNev","MonthlyPlanText","Elfogadas1","Elfogadas2","SzakosztalyVezetoId","GazdasagiId","gridNew","printMonthlyPlan","getSystemSettingsValue","honap","masodiklap","tetelek","Merkozes7","Merkozes8","Eredmeny7","Eredmeny8","Helyezes7","Helyezes8","Merkozes5","Merkozes6","Eredmeny5","Eredmeny6","Helyezes5","Helyezes6","Merkozes3","Merkozes4","Eredmeny3","Eredmeny4","Helyezes3","Helyezes4","Honap","Varos","Jovahagyta1","leadvaStr","elfogadvaStr","Jovahagyta2","Merkozes1","Merkozes2","Masodiklap","printOpenedE","printOpenedCS","openAthlete","openTeam","teamid","teams.team","teams.ageGroupId","teams.sectionId","AthleteUnderEditing","editedColumnValue","monthSelect","reopen","isUndefined","monthlyPlanSelectByDate","newplan","Megjegyzes","getCompetitiveMonthlyPlanItems","data2","refreshGrid","createNewMonthlyPlan","selectByDate","goToOlderMonthlyCompetitiveReports","getOldCompetitivePlanByUserId","closeEarlierCompetitvePlanWindow","selectEarlierCompetitvePlanWindow","getSelectedRowIndexes","AthleteUnderEditingText","editedColumnName","CopyCellToColumn","db","rowCntr","EdzoKorcsoportjai","getEdzoKorcsoportjai","korcsoport","annualSeasponPlanTableListSelect2","MEGTHAVIJEL","date","defaultSection","gridRowSelected","KorosztalySportolo","KorosztalyCsapat","keyConfigs","escape","saveMonthlyCompetitionPlan","cssClass","stackedHeaderColumns","yearDatabound","monthDatabound","DailyAttendanceController","logger","presenceText","absenceText","provenabsenceText","competitionText","holidayText","sicknessText","injuryText","noImgUrl","userImage","allAgeGroupfill","thereIsIncativeAthlete","clicked","setTimeout","loadAttendance","dailyAttendance.SzakosztalyId","saveAttendance","editedAttendance","JelenletOsszesen","HianyzasOsszesen","VersenyOsszesen","pressedButton","selectedIcon","activeToday","button","PRESENCE","today","Day","SportoloNev","ABSENCE","COMPETITION","HOLIDAY","SICKNESS","INJURY","PROVENABSENCE","chechButtonStates","saveDailyAttendance","check","navigator","userAgent","vendor","opera","test","substr","monthlyAttendance.id","iconClicked","setTo","tetel","UNDEFINED","DDClick","now","diff","CloseEveryOtherDropDowns","animate","marginBottom","SportoloItem","executeLocal","addClass","removeClass","IdSportolo","DdPosEnd","TopOfPage","coordinates","offset","top","scrollTop","screen","stop","dayz","Year","Month","NOTPRESSED","loadMonthlyAttendance","setIcons","active","aktiv","img","profileImgBaseUrl","setIconsForToday","sor","nap","toUpperCase","coach","agegroup","monthlyAttendanceSelect","EdzoAlairta","getLastMonthlyAttendanceTrainingLocationAndTime","CsoportLetszam","Erkezett","IdKorcsoport","KorosztalyosToltes","Tavozott","KorcsoportNev","CsutortokHely","CsutortokIdo","HetfoHely","HetfoIdo","IdHaviJelenletiFej","KeddHely","KeddIdo","PentekHely","PentekIdo","SzerdaHely","SzerdaIdo","SzombatHely","SzombatIdo","VasarnapHely","VasarnapIdo","edzesek","getAthletesForMonthlyAttendance","activePeriods","except","athlete","b","HaviJelenletiKorosztalyonkent","permission","ExercisesCreateController","getExercise","exerciseId","ejAutocomplete","formdata","gyakorlat","youtubeSeeing","copy","youtube","substring","empty","append","player","Plyr","thumbnail","savedImageList","image","fileName","thumbnailIndex","exerciseBaseUrl","fileUrl","publikus","magnificPopup","gallery","imageList","files","fileData","imageDatas","bodyParts","individualTeam","asserts","saveExercise","htmlSuccess","imageThumb","imgBaseUrl","dustbin","addNewText","GetPaints","paintList","publicChanged","paintDataBound","paintId","paintSelect","deleteExistingImg","deleteImg","makeToThumb","fileIndex","volt","each","openPaint","saved","Paint.id","exercises.exerciseId","goToCreatePaint","UJGYAKORLAT","MODGYAKORLAT","MEGTGYAKORLAT","getTrainingPracticeAutoComplete","bodyPartsList","Testresz","individualTeamList","Jellege","assertsList","Felszerelesek","youtubeChanged","deleteVideo","remove","$sceProvider","ExercisesListController","imageRoot","youtubeIcon","bodyPartValue","TypeValue","individualTeamValue","AssetValue","difficultyValue","timeValue","necessaryAreaValue","withVideo","withPattern","withPaint","public","getCoachList","getDatas","getExercises","exercisesList.SzakosztalyId","exercisesList.KorosztalyId","exercisesList.EdzoId","goToExercise","deleteExercise","DeleteExercise","autoComplete","MonthlyAttendanceListController","daysInMonth","anyDateInMonth","saveParameters","monthlyAttendance.month","monthlyAttendance.year","monthlyAttendance.coachId","monthlyAttendance.selectedMode","selectedMode","goToMonthlyAttendance","attendanceId","modeList","setInitVals","createNewAttendance","tol","day","ig","lezart","getMonthlyAttendanceList","MEGTKOROKEZ","HJFELVIHET","MonthlyAttendanceController","$interval","autoSave","readOnlyAttendance","allowAthleteRefresh","openTrainingDiary","openTrainingDiaryAfterSave","HaviJelenletiFejId","saveFunction","catch","ExceptionType","includes","ShowError","propertyChanged","prev","previousValue","retObj","attendanceRowCount","hiba","RowNumber","jelenlet","hianyzas","JelenletSzazalek","jelenletSzazalek","HianyzasSzazalek","hianyzasSzazalek","verseny","utolsoKitoltottNap","selectedAthleteName","totalPercentageCount","plannedTrainings","SetForAll","names","canSet","HaviOsszEdzesszam","defaultTeamInformations","errors","selectionMode","SzuletesiDatum","monthDataBound","findLine","oldValue","btn","textContent","style","color","marginLeft","display","txt","float","queryCellInfo","cell","css","presencePercentSum","presenceTotalSum","presencePlannedTotalSum","yearValue","monthValue","days","refreshAthletesButton","saveButtonEnabled","attendanceOverChangeAthleteNames","attendanceLastFilledDay","attendanceSelect","runOnce","kivDatum","createGrid","viewMonthlyAttendance","monthlyAttendance.sectionId","monthlyAttendance.ageGroupId","closeMonthlyAttendance","rejectMonthlyAttendance","acceptMonthlyAttendance","monthlyAttendanceAcceptByLeader","SzakosztalyvezetoAlairta","IdSzakosztalyvezetoAlairta","SzakosztalyvezetoAlairtaDatum","defaultAgeGroup","goToOlderMonthlyAttendanceReports","CopyTimeAndPlaceFromWeeklyPlan","EvHonap","EdzoNev","Datum29","Datum30","Datum31","Nap1","Nap2","Nap3","Nap4","Nap5","Nap6","Nap7","Nap8","Nap9","Nap10","Nap11","Nap12","Nap13","Nap14","Nap15","Nap16","Nap17","Nap18","Nap19","Nap20","Nap21","Nap22","Nap23","Nap24","Nap25","Nap26","Nap27","Nap28","Nap29","Nap30","Nap31","OsszJelenletiSzazalek","Keszult","EdzoNeve2","JovahagytaDatum","defaultMonth","valtozo","JelenletTipus","IgazoltHianyzas","Serules","Betegseg","refreshColumns","columnNumber","findIndex","rowNumber","oldkeyAction","keyboardModule","keyAction","key","editCell","excelExport","csvExport","pageOrientation","noAttendance","hasAttendance","hasSignedAttendance","hasAcceptedAttendance","athletesCountMonthlyAttendance","HJALAIR1","valami","rec","jo","hoe","toFixed","record","utolsoToltott","attendanceChecked","swalText","forced","reject","SaveButtonWasEnabled","isEdit","saveMonthlyAttendance","haveImputError","inputErrors","fieldName","monthlyAttendanceSelectById","netError","getAthletesCountForMonthlyAttendance","Szam","SzamErkezett","SzamKilepett","allowEnterKey","HJALAIR2","JSON","parse","getMonthlyAttendanceAutoSave","autoSaveCheckboxChanged","setMonthlyAttendanceAutoSave","monthlyAttendanceSaveInterval","MonthlyTrainingPlanListController","textSearch","ageGroupChanged","monthlyTrainingPlan.edzoId","monthlyTrainingPlan.szakosztalyId","monthlyTrainingPlan.korosztalyId","monthlyTrainingPlan.ev","monthlyTrainingPlan.szoveg","getMonthlyTrainingPlanList","goToWeeklyTrainingPlan","trainingPlanId","MEGTHAVIEDZTERV","monthlyTrainingPlan.trainingPlanId","monthlyTrainingPlan.edzoNev","getNameByID","monthlyTrainingPlan.szakosztalyNev","monthlyTrainingPlan.korosztalyNev","createNewWeeklyTrainingPlan","UJHAVIEDZTERV","rowSelect","MODHAVIEDZTERV","deleteWeeklyTrainingPlan","deleteMonthlyTrainingPlan","TORLHAVIEDZTERV","isDefined","MonthlyTrainingPlanReportController","editedMTP","Hetfo","copyEnabled","saveMonthlyTrainingPlan","monthlyTrainingPlanSelectById","JOVAHAGYOTT","Jovahagyott","HAVIEDZTERVJOVAHAGY","KorosztalyNev","files.tipus","files.tablaId","Ev","HonapSzama","Makrociklus","Tartalom","copyFromOldPlan","getOldMonthlyPlanByUserId","closeEarlierMonthlyPlanWindow","selectEarlierMonthlyPlanWindow","SectionLeaderApprove","HaviEdzesTervJovahagyas","getSystemSettings","HAVIEDZTERVJOVAHAGYKOT","HAVIEDZESTERVJOVAHAGY","QuickCompetitionResultsController","maskObjectTime","tableTimeEditorTemplate","ratingEditorTemplate","editParams","decimalPlaces","rowIndexUnderEditing","EredmenyTavolsag","EredmenyTavolsagM","Math","round","qcr.sectionId","map","e","athletesSelect2","qcr.ageGroupId","quickCompetitionResult","ResultReportAthletesController","deleted","editedReportResult","athleteListPartner1","athleteListPartner2","athleteListPartner3","noImage","pageSize","competitionList","EredmenyIdo","Foto","CanCreateNew","CanModify","cropper","sourceImage","croppedImage","bounds","left","right","bottom","cropDialogTitle","openCropDialog","doneCropDialog","closeCropDialog","closeEarlierResultReportAthletesWindow","selectEarlierResultReportAthletesWindow","currentViewData","getReportAthleteById","cmChange","cm","mChange","m","deleteFiles","resultReportAthletesSelectById","KorcsoportId","defaultAthlete","defaultAthletePartner","TarsEredmenySportolo","defaultAthletePartner2","TarsEredmenySportolo2","defaultAthletePartner3","TarsEredmenySportolo3","resultReportImgBaseUrl","getSections","getFiles","clearTars2","clearTars3","createResultReport","Eredmeny","EredmenySzoveg","Ertekeles","Hivatalos","KorcsoportNeve","SzuletesiIdo","VersenyLeiras","getFilesList","szakosztalyId","getCharacterOfACompetitionList","athleteDropDownListSelect","athleteDataBound","athleteDataBoundPartner","athleteDataBoundPartner2","athleteDataBoundPartner3","athleteSelectPartner","athleteSelectPartner2","athleteSelectPartner3","resultReportAthletesOlderReports","val","deleteFile","modifyResultReport","saveResultReport","saveResultReportAthletes","UJEERJEL","MODEERJEL","clearTars1","removeUrl","MEGTEERJEL","ResultReportTeamController","editedReportId","teamList","AtjatszoAgeGroup","AtjatszoAgeGroupList","splicedAthletes","addAtjatszok","selectedAtjatszok","gridAtjatszo","atjatszo","addAthletesToResultReport","SportoloID","edzoneve","edzoid","closeEarlierResultReportTeamWindow","selectEarlierResultReportTeamWindow","resultReportTeamSelectById","Sportolok","columnsAthletes","Numeric","gridAthletes","SportolokID","atjatszoColumns","getAtjatszoSportolok","exceptTeam","AtjatszoSportoloLista","atjatszoSportoloID","edzoNeve","getTeamResultAthleteData","Atjatszo","atjatszoCsapatId","CsapatId","Kiemelt","EredmenyPont","oldTeamId","teamDropDownListSelect","teamDataBound","teamSelect","teamAthletesListSelect","athletesList","EredmenyJelentoAtjatszoSportoloi","getCoachUsers","atjatszoEdzoList","saveResultReportTeams","UJCSERJEL","MODCSERJEL","removeAthletesFromResultReport","gridSelectedRowIndex","ath","atjatszoAgeGroupSelect","MEGTCSERJEL","resultReportTeamImgBaseUrl","NewSportSpecificTestController","testdata","felmeroFejId","felmeroElemFejId","felmeroElemFejIdValue","newTest","createButtonEnabled","editTestTypeButtonEnabled","edzoertekeles","querycellinfo","$element","Highlight","colors","cellIndex","rowIndex","getRowIndex","Colors","felmeroDataBound","felmeroElemFejList","DeleteTest","deleteFelmero","SaveTest","Grid2","testSaveTest","felmeroTipusIdx","FEF_ID","arr2D","arr1D","get1DArrayBelongsToUserInRow","FelmeroMentes","dateValue","lastSaveTestdFFID","dataFelmeroElem","LoadTest","CreateTest","setColumns","CreateTestType","sectionIdValue","FelmeroElemFej","EditTestType","felmeroTipus","hints","cellHint","colorCheckBoxChange","UJSPFELM","showColors","retArray1D","SportoloNeve","strArr","resetColumns","getFelmeroElemList","TipusStr","FelmeroLetrehozasa","line","c","ElvartEredmeny","isEnabled","HHMMSS_EditorTemplate","MMSS_EditorTemplate","Adatok1D","ffid","getFelmeroById","FEFID","EdzoErtekeles","cellSelected","ageGroupIdValue","coachIdValue","felmeroElemFejDropDownList","NewSportSpecificTestListController","felmeroFejLista","testId","getActualCoachesList","dateFromChange","dateToChange","sportSpecificTest.sectionId","newSportSpecificTest.sectionId","sportSpecificTest.ageGroupId","sportSpecificTest.coachId","sportSpecificTest.felmeroElemFejId","sportSpecificTest.felmeroFejId","sportSpecificTest.highlight","goToTest","FelmeroElemFejId","FelmeroFejId","goToUser","MODFELH","TrainingDiaryController","Save","saveTrainingDiary","keszult","loadTrainingDiary","addRow","idx","getIndex","selectedId","newLine","newId","AktivNap","Nap","EdzesIdopontja","TevekenysegHelye","EdzesmunkaLeirasa","addEnabled","removeEnabled","entriesForThisDay","selectedRow","entries","beginEdit","editMode","loadTrainingDiaryByMonthlyAttendanceId","szakosztaly","szakosztalyid","korcsoportid","lezartJelenleti","edzesmunka","counter","TrainingPlanCreateController","sorIndex","loadPlan","saveParams","trainingSectionId","trainingSectionList","trainingName","trainingDescription","trainingAgeGroupId","trainingAgeGroupList","gridDataSourceTraining","addNewPermission","timeLength","modify","allowSave","summaryRows","customAggregate","Ido","IsmSzam","footerTemplate","columnsMain","MainGrid","toolbarItemsWithSearchAndDelete","aggregates","deleteRows","trainingColumns","TrainingGrid","enableToggle","rowDeselecting","GyakorlatId","trainingId","GetTrainingPlanById","Gyakorlatok","Publikus","getTrainingSections","getAutoComplete","UJEDZESSABLON","MODEDZESSABLON","saveParam","TrainingId","TrainingName","SectionId","AgeGroupId","Description","Public","Data","saveTrainingPlan","trainingSectionSelect","trainingSectionDataBound","trainingAgeGroupSelect","trainingAgeGroupDataBound","openTemplate","showExercises","gyakorlatKategoria","ismSzam","trainingPlanCategory","rows","SorIndex","GyakorlatKategoria","GyakorlatTipus","Video","Mintakep","showPopupButton","showEmptyResultText","emptyResultText","ejNumericTextbox","MEGTEDZESSABLON","refreshHeader","createNewTrainingPlan","trainingPlanCreate.trainingId","TrainingPlanListController","gridDataSource","openPermission","deletePermission","trainPlanList.SzakosztalyId","trainPlanList.KorosztalyId","trainPlanList.EdzoId","trainingPlanCreate.sectionId","trainingPlanCreate.ageGroupId","openTrainingPlan","deleteTrainingPlan","DeleteTrainingPlan","EdzesFejId","childGridColums","childGrid","queryString","getTrainingPlanList","modifyPermission","TrainingPlanTemplateController","WeeklyTrainingPlanListController","weeklyTrainingPlan.edzoId","weeklyTrainingPlan.szakosztalyId","weeklyTrainingPlan.korosztalyId","weeklyTrainingPlan.ev","weeklyTrainingPlan.szoveg","MEGTHETIEDZTERV","weeklyTrainingPlan.trainingPlanId","weeklyTrainingPlan.edzoNev","weeklyTrainingPlan.szakosztalyNev","weeklyTrainingPlan.korosztalyNev","UJHETIEDZTERV","TORLHETIEDZTERV","clipMode","getWeeklyTrainingPlanList","WeeklyTrainingPlanReportController","$sce","EditText","printOpened2","editedWTP","hetfodatum","extend","korosztaly","makrociklus","hetfo","vasarnap","Vasarnap","felkhet","HetSzama","print2","showPrint2","MondayChange","sDate","sMonday","getAthletesForWeeklyTrainingPlan","athleteListHeight","ejDatePicker","minDate","selectAll","sSunday","sHetSzama","week","loadEventsEnabled","NapSzam","getOldWeeklyPlanByUserId","editTraining","closeEarlierWeeklyPlanWindow","selectEarlierWeeklyPlanWindow","oldPlan","weeklyTrainingPlanSelectByIdNew","gridData","editDateTemplate","q","ejTimePicker","timeFormat","context","loadEvents","EsemenyekAttolteseHetiEdzestervre","HetiEdzesTervJovahagyas","HETIEDZTERVJOVAHAGY","daySelect","editDay","del","editBtnEnabled","deleteBtnEnabled","editEnabled","ok","addNew","Helyek","Hely","Tol","Ig","Sablon","addBtnEnabled","checkedItems","checkedIndices","athletesChange","deleteSelection","ejListBox","chooseTraining","EdzesTetelLeiras","TrainingTemplates","dataEdzesTetelek","EdzesFejLista","trainingTemplate","ac","TrainingTemplateSelected","multiColumnSettings","enable","showHeader","gridEdzesTetelek","chooseTrainingCancel","chooseTrainingAccept","SelectedEdzesFejId","EdzesSablonNev","EdzesSablonHosszuNev","createTrainingTemplate","claimAsset","EszkozIgenyLista","neededAssets","neededAssetParams","reportParametersEszkozIgenyek","caBtnEnabled","tetelColumns","columnsEdzesTetelek","changed","trustAsResourceUrl","ejButton","NumberOfDayToWeekDay","EdzesSablon","found","Tetelek","napSzam","createEvents","navigateBack","temp","mindenki","saveWeeklyTrainingPlanNew","items","reportParameters2","elemek","HetiEdzestervLegregebbiHet","HETIEDZTERVJOVAHAGYKOT","HETIEDZESTERVJOVAHAGY","chk","AthleteDashboardController","AddAgeGroupController","range","yearListTo","formData","Color","ActiveAgeGroup","SelectedYearFrom","SelectedYearTo","Comment","AgeGroupName","clearDropdown","saveAgeGroup","UJKOROKEZ","ageGroups.section","yearFromDropDownChanged","yearToDropDownChanged","colorChanged","activeCheckboxChanged","AgeGroupMembersList","ageGroupMembersList","goToAgeGroupChange","athleteNew.selectedSectionId","athleteNew.selectedAgeGroupId","MODKOROKEZ","getAgeGroupMembersList","sectionListCopyTo","sectionDestinationDropDownChanged","selectedDestinationSection","copyAllAgeGroup","goToAddAgeGroup","goToModifyAgeGroup","goToModifyAgeGroupButton","checkRowSelection","goToAgeGroupMembersList","ModifyAgeGroupController","colorValue","activeValue","activeAgeGroup","selectedYearFrom","selectedYearTo","comment","ageGroupName","modifyAgeGroup","getAgeGroup","AnthropometryController","felmeresId","noImg","REGIFELMERES","oldAnthropometryTestTitle","athletesName","athletesAddress","birthDate","endOfPuberty","chosenSports","TM","TS","HUS","DS","VAS","MKS","MMG","CRS","MKK","FFK","FK","AKK","CUK","KZK","COK","ASK","BOK","BR","HR","R","COR","LR","MSR","CSR","Felmeres","Csoport","MeresDatuma","VizsgalatotKeroNeveCime","photoUrl","saveForm","MODANTFELM","saveAnthropometry","getAthleteForAnthropometry","sportoloId","sikeresSzinkron","hibauzenet","newAnthropometryTest","TTM","TTS","TDS","TR","Endomorfia","Mezomorfia","Ektomorfia","MetrikusConradIndex","PlasztikusConradIndex","DFDC","DFTZSSzazalek","DFTTS","DFDelta","DFBZS","DFBCS","DFBI","DFBZSR","DFBF","DFDCBF","DFVTM","DFBTTS","DFDELTASzazalek","DFBZSSzazalek","DFBCSSzazalek","DFBISzazalek","DFBZSRSzazalek","Testalkat","Sulyfelesleg","Erosithetoseg","VarhatoTestmagassag","SzakertoiVelemeny","AjanlottSportagak","oldAnthropometryTest","getOldAnthropometryTest","closeWindow","selectTest","Tomeges","AntropometriaId","SportiskolaLogo","focusOut","voltLostFocus","minValue","maxValue","audio2","Audio","play","getElementsByName","children","audio","ant","PubertaskorVege","LogoEleresiUt","anthropometryPhotosUrl","on","submit","parents","keyCode","tab","attr","tizedesvesszo","ANTRKIERT","sportoloNev","AthleteFeesController","_ref","_ref2","priceType","_defineProperty","getAthletes","getFees","goToAthlete","openCoach","getAthleteFees","AthleteLogController","logAll","dateList","dateFromChanged","getLog","dateToChanged","headerTextAlign","sportoloid","from","to","List","DatesStr","AthleteModifyController","athleteMenuOpened","printMenuOpened","athleteMenuItems","printMenuItems","printOpenedSchoolRequesting","reportParametersSchoolRequesting","printOpenedTaj","checkExitDate","currentDate","selectedExitDate","exitAthleteDateOk","reportParametersEgeszsegProfil","UJEDZVALT","SPORTKILEP","ModFizetesMod","MODSPORTOLO","SPORTOLO","SZULO","EGESZSMEGT","KMVERSEREDM","MODTAGDBEALL","MEGTANTFELM","MEGTKPFELM","MEGTSPFELM","PSYCHO","KIKERONYOMT","TESTMERET","MEGTSPORTBEF","LOG","DOKLIST","SPORTKILEPVEGLEGES","getAthleteDataMin","Taj","JelenlegiEdzo","SPORTBELEPTET","sort","item1","item2","localeCompare","athleteModify.sportoloNev","athleteModify.sportoloTaj","athleteModify.sportoloSzuletesiIdo","athleteModify.aktivSportolo","openAthleteMenu","openPrintMenu","openAthletePage","TitleString","enteringExitingText","reasonEnteringExitingText","HTMLarr","join","noteExitText","firstSection","datas","athletesId","saveExitAthletes","answer","message","confirmButtonClass","dateFormat","goToGoneAthleteAllowed","sectionListSwal","sectionSwalDatabound","athleteDataSwalSzakosztaly","getTime","athleteData","athleteDataSwalKorcsoport","athleteDataSwalEdzo","JelenlegiEdzoNev","MasodlagosSzakosztaly","secondAthleteDataSwalSzakosztaly","MasodlagosKorcsoport","secondAthleteDataSwalKorcsoport","MasodlagosSzakosztalyEdzoId","secondAthleteDataSwalEdzo","KilepesDatuma","KilepesIndoka","sendAthleteDatas","selectedReEnteringDate","korcsoportId","masodlagosSzakosztalyId","masodlagosKorcsoportId","masodlagosEdzoId","saveReEnteringAthletes","coachListSwal","secondSectionListSwal","ageGroupListSwal","databound","secondCoachListSwal","secondAgeGroupListSwal","secondAgeGroupList","reEnteringAthlete","getAthleteData","Egyenleg","Egyenleg2","GDPRExitAthlete","printPage","Szak","Kor","SzulHely","Lakcim","IskolaCim","fenykeput","UgyesebbLab","UgyesebbKez","Neme","preConfOk","dateInterval","justification","confirmed","Logo","Fejlec","SportoloSzuletesiHelye","SportoloSzuletesiIdeje","SportoloAnyjaNeve","EgyesuletNeve","VarosDatum","Idopont","Indok","Szoveg","Alairo","schoolRequesting.dateInterval","schoolRequesting.justification","schoolRequestingOk","inputOptions","1","2","inputValidator","healtType","Name","TajSzam","Type","Fenykeput","AthletesAssetsController","gridPopUp","IssueComment","IssuedAssets","IssueAsset","IssueNewAsset","EszkozIdk","takebackEnabled","TakeBackComment","targetGrid","AthletesBodyStatController","BodyStatText","kg","bmi","getAthletesBodyStat","AthletesSportSpecificTestListController","CompetitionResultsChartController","loadChart1","chart1","loadChart2","chart2","loadChart3","chart3","loadChart4","chart4","discipline","selectdateFrom","selectdateTo","data1","data3","data4","resultChartAgeGroupDropDown","resultChartVersenyszamDropDown","disciplineList","disciplineDataBound","disciplineSelect","resultChart1","series","points","marker","redraw","resultChart2","resultChart3","resultDateChart","selectdateFromChange","selectdateToChange","resultChartSectionDropDown","ejChart","primaryXAxis","primaryYAxis","commonSeriesOptions","tooltip","fill","enableAnimation","shape","border","isResponsive","load","legend","labelFormat","valueType","rangePadding","isTransposed","AthleteModifyDataSheetController","VIEW_DATA","sexNum","sexList","betterHandList","betterFootList","feeOfEducationList","parentList","FatherMotherList","feeOfEducationValue","countyList","dropDownList","counties","courseList","course","classList","fatherNames","motherNames","feeOfEducationDataStart","feeOfEducationDateOk","isSecondCoach","isSecondCoachChange","secondSectionList","secondCoachList","selectedAgeGroupText","AdoSzam","AktTestmagassag","AktTestsuly","Allampolgarsag","AnyjaLeanykoriNeve","AnyjaNeve","AnyjaTestmagassaga","ApjaTestmagassaga","BefOktdij","BefTagdij","DSITagsagKezdete","EddigiEdzoi","EddigiSpEgyesuletei","EdzesreJarasKezdete","Elerhetoseg","EmailCim","EvzarasOsszege","FajiEredet","Fenykep","FenykepUt","FurdokopenyDb","FurdokopenyErtek","FurdokopenyMerete","GyermekkoriSport","IskolaEvfolyam","IskolaHazszam","IskolaIgazgatoNeve","IskolaIrSzam","IskolaNeve","IskolaOsztaly","IskolaUtca","IskolaVaros","KabatDb","KabatErtek","KabatMerete","LakcimHazszam","LakcimIrSzam","LakcimMegye","LakcimUtca","LakcimVaros","LeanykoriNev","MelegitoDb","MelegitoErtek","MelegitoMerete","OsztalyFonokNeve","PancelNadragDb","PancelNadragErtek","PancelNadragMerete","UszoNadragMerete","PapucsDb","PapucsErte","PapucsMerete","CipoDb","CipoErtek","CipoMerete","PoloDb","PoloErtek","PoloMerete","PubertasVege","RegisztraciosSzam","SortDb","SortErtek","SortMerete","SportoloiMultAnya","SportoloiMultApa","SzemIgSzam","SzuletesiHelyOrszag","SzuletesiHelyVaros","Szulo1Elerhetosege","Szulo2Elerhetosege","SzulokFoglalkozasa","SzuloNeve","SzunideiElfoglaltsag","Tagdijas","TAJSzam","Testmagassag","TestneveloElerhetosege","TestneveloNeve","Testsuly","UgyesebbLabT","UtlevelSzam","UtolsoFrissites","ValasztottSportagak","VersSportKezd","VisszalepesDatuma","feeOfEducationDate","currentCoachNameInText","schoolGridSelectedRowData","columnsUsersOfAthlete","columnsSchool","columnsAthleteMoveStory","secondSectionSelect","RefreshClothes","secondAgeGroupSelect","secondAgeGroupDataBound","changeSecondAgeGroup","ageGroupChange.athleteData","ageGroupChange.which","secondCoachDropDownListDataBound","selectSecondCoachBtn","ModifyCoach","athleteTransfer.athleteData","previousState","exitingSecondSectionBtn","Exiting","reload","coachDropDownListDataBound","selectedAgeGroupId","anthropometry","anthropometry.sportoloId","generateRegNum","GenerateRegNum","nem","ceil","random","UgyesebbKezT","ejAccordion","parameters","naptol","kivSportolo","csakUjak","fizModValtas","modifyAthlete","retval","meteOutFee","athleteList.selectedSectionId","athleteList.selectedAgeGroupId","changeAgeGroup","ageGroupChange.backPath","sexSelect","FerfiB","changeHeight","changeWeight","betterHandSelect","selectedText","betterFootSelect","socialSecurityNumberRequiredValue","athleteRegistrationNumberRequiredValue","changeFeeOfEducationBtn","NINCSOKTDIJ","current","selectedDate","toLocaleDateString","selectCoachBtn","selectSchools","visibleSchooSelectlGrid","schoolGridSelectedRow","clearSecondSection","MasodlagosSzakosztalyEdzoNev","clearSecondAgeGroup","clearSecondCoach","createLoginForAthlete","athleteUserName","athletePassword","athletePasswordAgain","selectedSportoloCsoport","SportoloCsoportok","selectAthleteGroupDropDownSwal","createLoginForParents","parentUserName","parentPassword","parentPasswordAgain","fathermotherDataSwal","selectedSzuloCsoport","createLoginForParent","SzuloCsoportok","selectParentGroupDropDownSwal","selectFatherMotherDropDownSwal","fatherMotherSwalDatabound","createLoginForExistingParent","assignAthleteToParentUser","parentDataSwal","selectParentDropDownSwal","parentSwalDatabound","unlinkUserFromAthlete","szerep","displayButtons","coachListGridData","tajkeres","SPORTKILEPTET","RUHA","CIPO","PAPUCS","MELEGITO","FURDOKOPENY","KABAT","PANCELNADRAG","POLO","SORT","USZONADRAG","gymTeacherDatasource","classMasterDatasource","schoolNameChanged","getGymTeachers","getClassMasters","gridUsersOfAthlete","grid123","UJFELH","athleteRequiredMinimumDatas","currentUserCanModifyAthlete","SzuloCsoportokDropDownList","SportoloCsoportokDropDownList","athleteAndParentDropDownList","getUsersBelongingToAthlete","getParentNames","father","mother","getAthleteMoveStory","SzakosztalyRuhai","ruhaResponse","TestneveloEmail","OfTel","OfEmail","getParentData","parent","szuloNeve","getParentDataPOST","None","ApaEmail","ApjaFoglalkozasa","ApaMunkahely","tel","job","workplace","sportpast","AnyaEmail","AnyjaFoglalkozasa","AnyaMunkahely","$on","sexDatabound","selectOf","getClassMasterContact","selectTesiTanar","getGymTeacherContact","selectMother","closeidx","selectFather","Files2Controller","coachName","sectionName","HealthListController","selectedGridRow","beginedit","dataTmp","athleteName","athleteId","athleteSocialSecurity","athleteBirthDate","gridHealthDatas","editText","EGESZSMOD","getHealthDatas","goToNewHealthEvent","newHealthAthleteId","newHealthAthleteName","newHealthAthleteSocialSecurity","newHealthAthleteBirthDate","goToModifyHealthEvent","mofifyHealthAthleteId","mofifyHealthAthleteName","mofifyHealthAthleteSocialSecurity","mofifyHealthAthleteBirthDate","mofifyHealthId","mofifyHealthKezeles","Kezeles","mofifyHealthLeiras","mofifyHealthLetrehozas","Letrehozas","mofifyHealthMettol","Mettol","mofifyHealthMeddig","Meddig","mofifyHealthTipus","mofifyHealthAlTipus","AlTipus","fromState","backToDatasheet","GetHealth","ModifyHealthEventController","MainTypeSelected","mainId","SubType","healthMainType","healthSubTypesList","FotipusId","AltipusNev","documents","healthSubType","saveDatas","modifyHealthData","fileUpload","healthMainTypesList","NewHealthEventController","saveHealthData","PerformanceMotivationTestController","questions","answers","saveSurvey","savePerformanceMotivationSurvey","PerformanceMotivationTestEvaluationController","saveEval","password","psychology.surveyPassword","encryptedHtml","Aes","Ctr","encrypt","ejRTE","savePerformanceMotivationSurveyEval","surveyId","animation","getPerformanceMotivationSurvey","kitoltottKerdoiv","nev","sportoloNeve","szuletesiDatum","sportoloSzuletesiDatuma","anyjaNeve","sportoloAnyjaNeve","kitoltesDatuma","kiertekelesDatuma","kiertekelesSzam","kiertekelesSzoveg","decrypt","PieronTestController","time","timeLeftMinutes","timeLeftSeconds","lastClicked","index1","index2","Now","started","finished","goodAnswers","answersByMinutes","stopInterval","finishTime","stopPromise","wrongAnswersNumber","seen","tNumber","startInterval","startTime","getMinutes","getSeconds","minuteTimer","timeChanged","savePieronTest","PieronTestEvaluation","getPieronTest","age","ertek","value2","SummaryController","PSYCHOLOGY","warteggUrl","psychologyDocUrl","noEvaluationForThisTest","goToPerformanceMotivation","psychology.sportoloId","goToPieron","goToTenessee","goToShowFilledTest","testType","documentOfAssessmentBool","Wartegg","psychology.psychologyId","PerformanceMotivation","psychology.surveyId","psychology.mode","Pieron","Tenessee","addWartegTest","saveWartegg","getPsychologyTests","TenesseeSelfImageScaleController","saveTenesseeSelfImageScale","TenesseeSelfImageScaleEvaluationController","saveTenesseeSelfImageScaleEval","getTenesseeSelfImageScaleById","kiertekelesSzamMagyarazat","WarteggController","psychologyId","kiertekelt","szoveg","r","FileReader","onloadend","psychologySurvey","uploadWartegg","readAsDataURL","getWarteggTestById","kepfajl","RaceResultsReport2Controller","printAthleteResult","szak","kor","dTol","dIg","eredmeny","eIdo","ePont","eSzoveg","helyezes","ertekeles","printTeamResult","grid2","CsapatNev","columnsAthlete","teamsLists","columnsTeam","openResultReportAthletes","resultReportAthletes.Id","openResultReportTeam","resultReportTeam.Id","getResultsReportsAthlete","athletesLists","itemsList2","TrainingVisitReportController","reportSelect","getTrainingVisitReport","modifyAthletes","VersenyzoId","AthleteNewController","thereIsSelectedAthlete","noSelectedAthlete","MasodlagosSzakosztalyId","PapucsErtek","dddd","JatekEngedelySzama","secondSectionDataBound","secondCoachSelect","seconAgeGroupDataBound","goToAthleteResults","coachItem","raceResultsReport.athleteData","generateAvatar","displayPhoto","SimilarAthleteExist","saveAnyway","betterHandDataBound","feeOfEducationBound","schoolList","activeChange","TORLCSOPORT","MODCSOPORT","ava","saveNewAthlete","athleteList.inactiveTeams","KorcsoportName","athletesListController","_this","MEGTCSOPORT","UJSPORTOLO","athleteResultsBtnEnabled","selectedSectionId","selectedAgeGroupName","sportoliId","checkboxEnabled","selectedAthleteExitDate","athleteCompetitionResult","exitAthletesEnabled","athletesSelect","inactiveAthletes","inactiveChange","athleteList.inactiveAthletes","selectedSectionName","selectedTextValue","athleteNew.sportolokId","athleteNew.sectionList","athleteNew.selectedSectionName","athleteNew.ageGroupList","athleteNew.selectedAgeGroupName","athleteList.selectedAgeGroupName","modifyAthletesButton","selectedAthletes","SportolokId","goneAthletesBtn","exitAthletesNames","SendSystemMessage","competitionResult","isAuthenticated","login","SectionsController","editEnabledPerm","EditSection","editSection","editSection.SectionId","SzakosztalyID","AddSection","userId","getSectionData","Szin","SzovegSzin","AddTeamController","validatorHelper","saveTeam","simpleSave","FileData","FileName","validate","TeamName","CoachId","ActiveTeam","saveTeamAndAddMembers","AddTeamMember","getPossibleTeamMembersList","csapat","addTeamMemberToTeam","selectedRows","out","athleteModify.selectedSectionId","athleteModify.selectedAgeGroupId","ModifyTeamController","modifyTeam","TeamId","modifyTeamAndAddMembers","simpleModifyTeam","modifyTeamAndAddMembersButtonEnabled","getTeam","csapatNev","megjegyzes","korosztalyId","kep","teamPhotosUrl","inactiveTeams","getTeams","deleteTeamById","deleteTeam","deleteTeamsPlayers","dataBound","selectRow","teams.inactiveTeams","versenyzo","csapatId","goToAddTeam","UJCSOPORT","goToModifyTeam","goToTeamMembersList","inaktiv","teams.teamName","teams.sectionName","teams.ageGroupName","sectionChange","ageGroupChange","openTeamResults","teamID","TeamMembersList","getTeamMembersList","dateChange","teams.date","deleteTeamMember","goToAddTeamMember","teamName","$provide","decorator","extendExceptionHandler","$delegate","exceptionHandler","$injector","exception","_typeof","object","stateList","actualState","localStorage","ClientSideException","rootScope","get","LS","LSItems","keys","Message","stack","__proto__","htmlTitle","cloneVM","Object","vmKey","stringify","jsonObject","environment","dataService","sendLocalException","provider","configure","$get","loggers","$log","toastr","info","success","warning","warn","factory","setEnvironment","env","fromBack","htmlMessage","helpMsg","helpMsgSmall","hideSwal","htmlWarning","routerHelperProvider","$locationProvider","$stateProvider","$urlRouterProvider","RouterHelper","docTitle","resolveAlways","$location","handlingStateChangeError","hasOtherwise","stateCounts","changes","service","states","otherwisePath","otherwise","getStates","event","toState","toParams","fromParams","destination","loadedTemplateUrl","msg","statusText","path","html5Mode","cfg","AnnualEducationalFeeByAthletesController","getAnnualEducationalFeeByAthletes","AnnualEducationalFeeByCoachController","getAnnualEducationalFeeByCoach","AnnualEducationalFeeByOneSectionController","groupFooterTemplate","allowGrouping","groupSettings","showDropArea","getAnnualEducationalFeeByOneSection","AnnualEducationalFeeBySectionController","getAnnualEducationalFeeBySection","AnnualSportServiceFeeByAthletesController","getAnnualSportServiceFeeByAthletes","AnnualSportServiceFeeByCoachController","getAnnualSportServiceFeeByCoach","AnnualSportServiceFeeByOneSectionController","getAnnualSportServiceFeeByOneSection","AnnualSportServiceFeeBySectionController","getAnnualSportServiceFeeBySection","CheckPaymentController","dataId","payment","checkNumber","hasCheck","getCheck","actualPayment","Osszeg","pay","checkPaymentsSave","removePayment","CheckPrintingExportController","dateFromValue","dateToValue","ttextAlign","defaultsectionId","defaultCoachId","checkPrintingExport.sectionId","checkPrintingExport.coachId","checkPrintingExport.dateFrom","checkPrintingExport.dateTo","getCheckExportPrintList","CsvPaymentController","WGridHeaderSelector","WGridColumnSelector","validSelections","processModes","modeName","wcolumns","alldata","FilterFailedTransactions","noHeader","noDepositor","headerSelected","columnSelected","StartAgain","Continue","SaveSettings","modeSelect","printEnabled","saveEnabled","firstLineIsHeader","red","yellow","green","CsvPresetLoaded","step","csvAll","csv","show","filename","AmountColumn","CommentColumn","DateColumn","DepositorColumn","headerRow","encRow","savedSettings","last","hide","numberOfColumns","columnWidth","node","hasChildNodes","removeChild","lastChild","SetCsvGrid","beforeSend","RowSelect","amountParse","IdxOfDeselected","CSVSettings","upperrChkBox","innerHTML","columnChoosen","selectedRowCellIndex","enc","CSVPreprocessSelectHeader","setHeadersAndWidth","headerTexts","columnIndex","header","colCntr","accept","param","NemElfogadottLista","ElfogadottLista","AcceptCSVPayment","fileNameTemp","SettingsJSON","saveSystemSettingsValue","sportoloParse","DailyEducationalFeePaymentsController","numberList","atletesList","showAddNumber","dateEnabled","templateID","getServiceFeePaymentsNumbers","numberDataBound","selectedNumber","defaultNumber","numberSelect","addNumbers","updateOktatasiDijfizetesek","cimszoveg","fejlec","edzokapja","sportszolg","getEducationalFeePaymentsNumbers","dailyEducationalFeePayments.sectionId","dailyEducationalFeePayments.number","dailyEducationalFeePayments.coachId","getAthletesForDailyPayments2","modFeesCtrl","datumIg","datumTol","getFeeDatas","defpc.coach","defpc.from","defpc.to","dailyEducationalFeesPerCoach","selectCoach","DailySportServiceFeePaymentsController","updateTagdijfizetesek","dailySportServiceFeePayments.sectionId","dailySportServiceFeePayments.number","dailySportServiceFeePayments.coachId","getAthletesForDailyPayments","nonClosedYears","dssfpc.coach","dssfpc.from","dssfpc.to","dailySportServiceFeesPerCoach","EducationalFeeRegisterController","kedvezmenyNevek","rowUnderEditing","modifiedRows","dropDownListEditorTemplate","monthUnderEditing","sectionFees","KedvezmenyesOD","KedvezmenyesOD2","KedvezmenyesOD3","KedvezmenyesOD4","KedvezmenyesOD5","mentessegAdhato","dropdowns","DropDownList","popupWidth","monthList","osszesFizetendo","sum","osszesFizetett","fizetveWidth","Honap_1_kedvezmenyes_Text","Honap_2_kedvezmenyes_Text","Honap_3_kedvezmenyes_Text","Honap_4_kedvezmenyes_Text","Honap_5_kedvezmenyes_Text","Honap_6_kedvezmenyes_Text","Honap_7_kedvezmenyes_Text","Honap_8_kedvezmenyes_Text","Honap_9_kedvezmenyes_Text","Honap_10_kedvezmenyes_Text","Honap_11_kedvezmenyes_Text","Honap_12_kedvezmenyes_Text","Honap_1_ReadOnly","Tagdijas_1","Honap_2_ReadOnly","Tagdijas_2","Honap_3_ReadOnly","Tagdijas_3","Honap_4_ReadOnly","Tagdijas_4","Honap_5_ReadOnly","Tagdijas_5","Honap_6_ReadOnly","Tagdijas_6","Honap_7_ReadOnly","Tagdijas_7","Honap_8_ReadOnly","Tagdijas_8","Honap_9_ReadOnly","Tagdijas_9","Honap_10_ReadOnly","Tagdijas_10","Honap_11_ReadOnly","Tagdijas_11","Honap_12_ReadOnly","Tagdijas_12","Honap_1","Honap_2","Honap_3","Honap_4","Honap_5","Honap_6","Honap_7","Honap_8","Honap_9","Honap_10","Honap_11","Honap_12","Versenyzo_Nev","fut","getReducedPriceTypes","getReducedEducationalFeeTypes","getLanguage","concat","sectionDropDownListWithFees","showHideColumns","getSelectedValue","frozenColumns","educationalFeeRegister.sectionId","educationalFeeRegister.year","educationalFeeRegister.coachId","educationalFeeRegister.ageGroupId","getAthletesForEducationalFeeRegister","result1","result2","result3","result4","result5","result6","result7","result8","result9","result10","result11","result12","saveWithoutNumbers","withNumbers","UJOKTDNYILV","checkChange","selectedValue","EducationalFee","OktatasiDij","ReducedEducationalFee","KedvezmenyesOktatasiDij","saveWithNumbers","goToDailyPayments","dailyEducationalFeePayments.year","DropDownListObj","selectItemByValue","checkBoxObj","checkBoxEditorTemplate","buttons","CheckBox","toleranceDays","ddlYearValue","fromDate","onlyNew","saveData","saveDataReal","closeYear","functionData","getLastClosedYear","meteOut","getAthletesForMeteOut","athleteNames","closeYearEnabled","yearclosed","editTemplate","tableNumericEditorTemplate","maxYear","TurelmiIdo","saveFeeDatas","getReducedSportServiceFeeTypes","MonthlyAttendanceArrearsController","getAnnualSeasonPlanArrears","SportServiceFeeArrearsController","groupCaptionTemplate","pageCount","pageSizes","arguments","sportServiceFeeArrears.sectionId","sportServiceFeeArrears.year","sportServiceFeeArrears.coachId","getAthletesForFeeArrears","ReducedSportServiceFee","Tagdij","SportServiceFee","KedvezmenyesTagdij","defaultYear","SportServiceFeeRegisterController","KedvezmenyesTD","KedvezmenyesTD2","KedvezmenyesTD3","KedvezmenyesTD4","KedvezmenyesTD5","sportServiceFeeRegister.sectionId","sportServiceFeeRegister.year","sportServiceFeeRegister.coachId","sportServiceFeeRegister.ageGroupId","getAthletesFromFeeRegister","UJTAGDNYILV","dailySportServiceFeePayments.year","localStorageService","AUTH_EVENTS","getPermission","noEducationalFee","set","logout","loginName","subscribeToTopic","school","szerepkor","setItem","access_token","gridRecordPerPage","user","userFullName","picture","pwdExpiration","utc","expiration","accessRights","pSetAuthData","isSessionTimeOut","getSessionData","setSessionTimeOut","userInfo","userLanguage","getRights","RightName","Allowed","getAccessToken","sikertopic","getItem","firebasetoken","FirebaseUnsubscribeFromTopic","topic","token","toastrConfig","core","options","timeOut","positionClass","appTitle","partnerLogo","exceptionHandlerProvider","$httpProvider","logProvider","interceptors","constant","clientConfig","messageImagesUrl","justPsycho","sessionTimeout","notAuthorized","refreshProfilePic","changeLanguage","weight","downThreshold","upThreshold","centimetre","sex","hand","foot","feeOfEducation","passwordChange","$http","start","Array","getURL","changePassword","oldPwd","newPwd","ds","req","oldPassword","newPassword","grant_type","username","getHaveToPay","parentsAthletes","sportolok","noText","getAvailableLanguages","osszesSzakosztaly","teamsDropDownList","inactive","getUserGroupList","tabla","sorszamadassal","ageGroupDropDownListForSearch","modifyEvent","appointment","usersListSelect","withCredentials","azonosito","datumtol","datumig","KoltsegtervOsszesitoExcelExport","addUserGroup","csoport","getUpAndDownPlayers","HealthReport","fotipus","altipus","vtId","getDuplicatedAthletes","inactivesToo","deleteHealthMainType","mainTypeId","subTypeId","deleteHealthSubType","HealthMainTypeManager","foTipusId","foTipus","HealthSubTypeManager","alTipusId","alTipus","sectionDropDownListAll","getSectionLeaderListBox","getAgeGroupTreeView","removeEvent","editUserGroup","getAthletesEV","csakAktiv","idEdzo","getWeeklyTrainingPlans","getAnnualCompetitiveReports","classmaster","getMonthlyAttendanceReports","getTrainingAttendances","getMonthlyCompetitivePlans","parentsAthleteAttendanceList","testnevelo","szakId","addSchool","getSectionResources","getAgeGroupResources","editSchool","newSchool","searchAthlete","searchUser","deleteSchool","felmeres","saveEvent","modifyUser","modifyUserMin","teamId","getUserGroupDropDownList","getFullUserGroupList","group","sportoloIds","SportoloIdk","attendance","getExerciseList","versenyHely","KoltsegtervOsszesitoKimutatas","modifyPaint","forrasSzakosztalyId","celSzakosztalyId","onlyInactives","dataFilter","parentsAthleteAttendance","savePaint","getPaint","getUserDataMin","kivEdzo","kivSzakosztaly","kivKorcsoport","kivEv","kivHonap","getAccessRights","getNewAthletesInSelectedYearMonth","hj","uzenet","cimzettekId","getUserGroupTypes","idMA","transferAthletes","korcsoportValtasKell","getEvents","nezet","training","kivKorosztaly","getUserUnreadedMessages","messageDelete","uzenetId","messageDeleteSent","getUnAcceptedMonthlyAttendance","getUnAcceptedMonthlyCompetitionPlan","getUnAcceptedWeeklyCompetitionPlan","getUnAcceptedYearlyCompetitionPlan","getMonthlyCompetitiveReports","getWeeklyTravelList","showOrder","busOwner","getWeeklyTrainingList","showWeeks","helyszin","getAnthropometryListForPrinting","saveSystemSettings","getUserGroupRights","csoportId","setUserGroupRight","rightId","jogId","table","tableId","getResultsReports","cplan","idSzakosztaly","idVt","timeout","getLinks","saveLink","deleteLink","athletesBySection","queryDate","getUnPaidFees","getUnPaidFeesTrainer","getMessages","subjectId","pageNumber","itemsPerPage","GetMessageGroups","onlyUnread","sendMessage","SikerMobileFreeSendNewMessage","SikerMobileFreeSendMessage","fejId","versenyeztetesiTervFejId","versFejId","getAthleteTransferList","getFelmerokDatumaiDropDownList","leavingAthletesBySection","queryDateFrom","queryDateTo","datum2","joinedAthletesBySection","listAthletes","gender","athletesByCoach","leavingAthletesByCoach","joinedAthletesByCoach","activeAthletesByAge","activeAthletesBornAtSpecificYear","activeAthletesByMonth","activeAthletesInSectionByMonth","athletesNotPresentOnMonthlyAttendance","ActiveAthletesInASpecificMonth","neme","LeavingAthletesInASpecificMonth","JoinedAthletesInASpecificMonth","leavingAthletesFromASpecificCoach","joinedAthletesToASpecificCoach","getAnnualPresenceReportByTrainersReport","korosztalyNev","getAnnualPresenceReportBySectionsReport","getAnnualPresenceReportBySportSchoolReport","activeAthletesByCoach","sportolo1","sportolo2","sportoloId1","sportoloId2","eredmenyId","deleteResultsReport","resultReportID","csapatEredmeny","searchMemberList","szakosztalyIdk","saveNewLink","activeAthletesByBirthYear","dateyear","datemonth","deleteUserGroup","userGroupId","getSentMessages","getExpiringDocuments","spc","pp","pid","getAbsenceReport","saveFelmeroElemFej","saveFelmeroElem","getFelmeroElemFejList","fefid","felmeroId","datefrom","dateto","ageGroup","FFID","getSportagSpecReport","fromdate","todate","deleteFelmeroElemFej","FelmeroTipusMasolas","targetsection","getSectionHasSectionLeaderRight","felhCsopId","getSectionHasCoachRight","getAthleteidBelongsToAthleteUser","role","parentuserid","getParentAndAthleteUsers","UsersUserGroup","getUserIdsOfGroup","usersof","ids","getUserId","getAthletesOfUser","versenyszam","mettol","meddig","getNamesByIds","Cimjegyzek","CimjegyzekMobil","KedvezmenyNevek","OktatasiKedvezmenyNevek","KedvezmenyNevekMentes","k1","k2","k3","k4","k5","ok1","ok2","ok3","ok4","ok5","jelenletiid","JelenletiFejId","getTrainingDiaryReports","monthlyAttendanceRefreshAthleteData","fejid","pk","getImageOfUser","GetPaintList","getParentNotifications","toDate","currentListSize","moreNewer","moreOlder","getParentNotifications2","ErtesitestLatta","ertesitesid","tervid","WeeklyTrainingPlaces","assetType","assetInventoryByType","eszkTipusId","szabad","osszes","assetInventoryByPerson","sectionsId","ageGropu","felhasznalo","getSectionLeaders","ExpiringDocuments","bodyPart","exercisesType","nature","outfit","difficulty","necessaryArea","video","pattern","designer","nyilvanos","testresz","jellege","felszereles","nehezseg","szuksegesTerulet","mintaKep","kifesto","ageGroupSelectBetweenDates","section2","SetPushNotificationSettings","SetPushNotificationFromWeb","GetUnreadMessageCount","FirebaseSubscribeToTopic","GetRecipientsBySubjectId","SikerMobileFreeDeleteMessages","targyId","SikerMobileFreeLeaveConversation","recipientID","messageBody","recipient","deletePaint","AthletesDataMobileList","DeleteMessageImage","imgPath","htWidgetHeader","link","helpText","openHelp","textId","scope","restrict","ctsDropdownList","create2","change2","clear","clear2","open2","databound2","select2","ctsPlaceholder","datasource","label","postfix","validationRules","selectedindex","fieldValue","fieldText","pre","querySelector","$root","$watch","newValue","watermarkText","selectedIndex","post","$parent","classes","required","$dirty","$setValidity","autocompleteWatch","maxlength","ctsAutoComplete","delaySuggestionTimeout","multiSelect","VisualMode","addnewtext","owndisabled","report","reportName","createReport","authData","authToken","telerik_ReportViewer","reportSource","serviceUrl","persistSession","authenticationToken","ready","refreshReport","reportParametersWatcher","newVal","oldVal","ngFileSelect","fileReader","el","getFile","progress","$$childHead","bind","srcElement","fileDropzone","processDragOverOrEnter","preventDefault","originalEvent","dataTransfer","effectAllowed","largeError","typeError","directive","interval","ejDateTimePicker","inputonly","ngModel","minlength","XRegExp","checkChange2","focusout","focusout2","decimalplaces","tabIndex","MAX_VALUE","which","execCommand","onLoad","onError","onProgress","deferred","defer","getReader","promise","reader","total","loaded","onload","onerror","onprogress","addDays","mDate","add","startOfWeek","startOf","endOfWeek","endOf","stringToMoment","dateStringFilterPromise","propertyTime","dateStringFilter","dateYearMonthStringFilter","dateTimeStringFilter","datetimeFilter","dateYearMonthLongStrFilter","monthStr","list","findThis","isValid","input2","output","input3","httpInterceptor","idleService","loader","Check","processResponse","end","request","delayedStart","method","headers","Authorization","requestError","resetTimer","validationErrors","when","responseError","rejection","ExceptionMessage","MessageDetail","ServerSideException","LogServerSideException","keepalive","idleTimer","stopTimer","timerExpiring","startTimer","queue","timerPromise","timerPromiseHide","showLoader","pop","hideLoader","optionalParams","noParam","removeAll","clearAll","setUserNameParams","userName","getUserNameParams","DashboardController","messageCount","datagridExpiringDocuments","dataMonthlyAttendance","columnsMonthlyAttendance","dataMonthlyCompetitionPlan","dataWeeklyCompetitionPlan","columnsMonthlyCompetitionPlan","dataYearlyCompetitionPlan","columnsYearlyCompetitionPlan","dataGridLinks","columnsGridLinks","dataUnpaidFees","columnsUnpaidFees","dataUnpaidFeesTrainer","columnsUnpaidFeesTrainer","allowGetUnAcceptedMonthlyAttendance","allowGetUnAcceptedMonthlyCompetitionPlan","allowGetUnAcceptedWeeklyCompetitionPlan","allowGetUnAcceptedYearlyCompetitionPlan","allowGetUnPaidFees","allowGetUnPaidFeesTrainer","allowFOLAPLINKEK","goToNewAthletes","maId","goToMonthlyCompetitonPlan","mcpId","gridMonthlyMonthlyCompetitionPlan","v","asId","openSportServiceFeeRegister","currentYear","openSportServiceFeeArrears","openWeeklyPlan","addNewLink","FOLAPLINKEK","editLink","gridLinks","editedLink","editLinkSave","closeeditLinksWindow","p","closenewLinksWindow","newLinkSave","newLink","Hivatkozas","Link","LinkData","printOptions","messages","mthAttendance","mthCmptPlan","yrCmptPlan","unpayedFee","stat","columnsgridExpiringDocuments","gridExpiringDocuments","gridMonthlyAttendance","columnsWeeklyCompetitionPlan","gridWeeklyCompetitionPlan","gridYearlyCompetitionPlan","gridUnpaidFees","gridUnpaidFeesTrainer","FOLAPOLVASATLANOK","FOLAPNYOMTATAS","FOLAPELFOGADASRAVAROJELENLETIK","FOLAPELFOGADASRAVAROHAVITERVEK","FOLAPELFOGADASRAVAROEVESTERVEK","FOLAPKIFIZETETLENTAGDIJAK","FOLAPLEJARO","FOLAPELFOGADASRAVAROHETITERV","isAdmin","isSectionLeader","dataList","dropClass","openMobile","$sidebarInner","$dropdownElement","closeSideBar","slideUp","whenDoneAnimating","hasClass","slideDown","ShellController","LAYOUT_EVENTS","LANG_EVENTS","TryRefreshToken","intId","clearInterval","busyMessage","isBusy","confirmPassword","expiried","expiresLabel","pictureBasePath","userPermission","openPasswordDialog","goToProfile","goToDashboard","athleteidOfAthleteUser","sideMenuOpened","gridPage","gridPageSizes","origColumns","properties","selectedRowIndexes","next","selectionModule","contentRenderer","indexId","currentPage","onlyOne","gridColumns","gridObj","ej2_instances","hideColumns","showColumns","showColumn","sideMenuOpen","sideMenuClose","setInterval","partnerLogoSmall","haveToPay","haveToPayResult","onOpen","showLoading","hideLoading","enableButtons","passwordDialogConf","setHours","onkeydown","onfocus","setFullYear","removeAttr","location","actual","home","events","setLanguage","is","innerWidth","$trace","$transitions","availableLanguages","onBefore","defaultLang","toLowerCase","loadRemote","setCurrentLanguage","base","L10n","hu-HU","EmptyRecord","BatchSaveConfirm","SaveButton","OkButton","CancelButton","ConfirmDelete","BatchSaveLostChanges","Item","Items","GroupDropArea","Print","Add","Edit","Update","Cancel","Delete","ExcelExport","Search","DatePickerWaterMark","pager","currentPageInfo","totalItemsInfo","pagerDropDown","pagerInfo","firstPageTooltip","lastPageTooltip","nextPageTooltip","previousPageTooltip","nextPagerTooltip","previousPagerTooltip","Pager","Locale","DatePicker","Autocomplete","CurrencyTextbox","DateTimePicker","timeNow","done","timeTitle","Dialog","collapse","restore","maximize","minimize","expand","closeIconTooltip","NumericTextbox","PercentageTextbox","Schedule","Priority","CreateAppointmentTitle","RecurrenceEditTitle","RecurrenceEditMessage","RecurrenceEditOnly","RecurrenceEditSeries","PreviousAppointment","NextAppointment","AppointmentSubject","StartTime","EndTime","AllDay","Today","Recurrence","Done","Ok","RepeatBy","RepeatEvery","Repeat","RepeatOn","StartsOn","Ends","Summary","Daily","Weekly","Monthly","Yearly","Every","EveryWeekDay","Never","After","Occurrence","On","RecurrenceDay","RecurrenceWeek","RecurrenceMonth","RecurrenceYear","The","OfEvery","First","Second","Third","Fourth","Last","WeekDay","Subject","Categorize","OpenItem","Week","WorkWeek","AddEvent","Agenda","Detailed","EventBeginsin","Editevent","Editseries","Times","Until","Hours","Minutes","Overdue","Days","Event","Select","Previous","Next","Close","Gotodate","RecurrenceDeleteTitle","Location","CreateError","MouseOverDeleteTitle","DeleteConfirmation","Time","NoTitle","OverFlowAppCount","EmptyResultText","Uploadbox","filedetail","denyError","allowError","cancelToolTip","removeToolTip","retryToolTip","completedToolTip","failedToolTip","closeToolTip","navSubTitles","Athletes","validationTranslate","headTitles","AddAgeGroup","AddTeams","Administration","AgeGroupsList","AthletesList","AthletesManagement","Business","CentralReport","CentralReportAllIn","CentralReportByRating","Dashboard","DuplicatedAthletes","EditHealthType","LogIn","ModifyAgeGroup","ModifyTeams","MonthlyAttendance","MonthlyAttendanceList","NewAthlete","NewUser","Reports","SchoolManagement","Settings","SportSpecificReportLists","SportSpecificTestList","StatisticalReports","TeamList","TestResultsFootball","TestResultsHockey","UserGroupsManagement","UserManagement","AgeGroupManagement","AnnualPresenceReports","EventsCalendar","ManagementReports","SearchType","MessageCenter","navRoutes","r1","r2","childRoutes","$$phase","SidebarController","isCurrent","route","menuName","checkUserLevel","some","getUnreadMessageCount","src","goToMobilePage","authenticated","rights","checkPermissionGroup","activators","hideAnyWay","buildNumber","INAKTIVMENUREJTES","menuItemClicked","nav","level1Open","level2Open","LoginController","unknownUser","loginWarning","languageTemplate","Login.Language","frmLogin","$setPristine","changeLoginName","loginFocusOut","browserLang","defLanguage","loadSessionData","attrs","$eval","ngEnter","MessageCenterController","WaitForPushNotifications","pushnotification","removeItem","payload","page","refreshList","contentid","openedMessageTargyId","listPageNumber","listItemsPerPage","dataMessages","TargyId","getRecipients","SelectedMessageDateSource","imageSet","jQuery","messagePageNumber","loadMoreMessage","prop","messageImages","itemsPerMessage","unbind","objDivBefore","rowSizeBeforeLoadMore","scrollHeight","clientHeight","reverse","objDivAfter","rowSizeAfterLoadMore","array","delegate","recipients","topicStarter","admin","recipientsId","kicked","tempRec","newMessage","delay","addUserCancel","searchInput","maxSize","unreadCount","SelectedMessage","UZENETTORLES","loadMessageId","recipientsList","deleteAttachedImg","removeUser","SubjectId","messageListResponse","selectUser","addUserDone","deleteImage","feladoId","searchUsers","regex","RegExp","match","recipientsListSm","userFilter","getSeenName","userLevel","UZENETMEGT","objDiv","messageClicked","selectedMessageIndex","Kikkel","messageTargyId","Olvasott","messageSend","Obj","Ids","base64_images","stopPropagation","FilesController","canvas","ctx","enabledResizeRotate","WIDTH","HEIGHT","scaleWidth","scaleHeight","activeMode","sectionDropDownEnabled","checkBoxEnabled","deleteEnabled","clickedElement","clickedElementIndex","maxUndoStates","lineSize","background","arrowPointRadius","lineId","textColor","fontSize","font","objectCounter","imageWidth","imageHeight","imageObj","stateLast","stateId","selectedAnimationId","animationStates","paintName","agegroupId","agegroupValue","lines","objects","saveState","stateTemp","shift","redoEnable","scopeApply","agegroupSelect","undo","redo","backgrounds","circle","x","beginPath","arc","PI","stroke","rect","w","h","closePath","triangle","setLineDash","moveTo","lineTo","x1","y1","x2","y2","dashedLine","fromx","fromy","tox","toy","angle","atan2","cos","sin","dashedLine2","arrow","sine","oFromx","oFromy","lineJoin","newX","newY","cosalfa","sinalfa","sqrt","pow","oldX","oldY","headlen","clearRect","penWidthChanged","textColorChanged","canvasClicked","pageX","offsetLeft","pageY","offsetTop","clearClicked","onmousemove","moveObject","onmouseup","moveEnd","moveArrowStart","moveArrorEnd","p1","p2","p0","sectionDistance","pointPointDistance","abs","sectionP1","pitagorasz","sectionP2","isPointOnSection","old","moveArrow","originX","originY","rotate","x3","x4","maxX","maxY","minX","minY","canResizeRotate","oldResizeX","resizeObject","oldRotateX","rotateObject","drawPen","stopDrawPen","cx","cy","radians","draw","drawImage","oldFont","lineWidth","fillStyle","strokeStyle","fillText","Xcenter","Ycenter","pentagon","translate","strokeRect","resizeScale","atfogo","befogo","backgroundChanged","Image","pen","deleteObject","addRect","addTriangle","addPentagon","addCircle","addLine","addDashedLine","addDashedLine2","addArrow","addSine","addFootball","ball","addBasketball","addHandball","addCone","addHockeyPuck","addGoal1","deleteAll","ejColorPicker","getColor","enableOpacity","modelType","changedLabel","addAnimation","saveAnimation","deleteAnimation","selectAnimation","fps","drawTime","intervalTimes","timePerState","animationList","drawAnimation","obs","deltaX","deltaY","deltaX1","deltaY1","deltaX2","deltaY2","drawThis","speed","statesLength","nextElement","tmp","el2","publicCheckboxChanged","getContext","onmousedown","scale","ParentDashboardController","athletesofuser","modifyAthleteData","ParentMonthlyAttendanceController","saveDate","AbsenceReportController","searchSPC","searchPP","absenceReport.sectionId","SelectedSectionID","absenceReport.coachId","SelectedCoachID","absenceReport.selectdateFrom","absenceReport.selectdateTo","showDelButton","fromDateSelect","toDateSelect","AnnualPresenceReportsBySectionsController","aprbs.selectedSection","annualPresenceReports.year","annualPresenceReports.month","columns2","KMEVESJELEDZO","AnnualPresenceReportsBySportSchoolController","AnnualPresenceReportsByTrainersController","athleteModify.Id","aprbt.selectedSection","aprbt.selectedAgeGroup","aprbt.selectedCoach","AnthropometryTestPrintingController","printSelection","showoninit","AssetInventoryReportByType","assetTypeId","expend","mainGrid","AssetTypeDataBound","airbt.type","airbt.active","airbt.expend","airbt.all","EszkozAdatok","EszkozMozgasa","childGridColumns","AssetInventoryReportByUsers","searchTypeAthlete","enableAgeGropu","searchTypeSelect","searchTypeUser","searchTypeDateBound","airbu.typeuser","airbu.section","airbu.agegroup","Kiknel","childdataSource","AthleteTransferController","at.section","at.coach","KMEDZOVALTAS","AwayBudgetPlanSummary","colIndex","rowindex","toRange","newRange","fromRange","g","getMonday","onlyStartDateChanged","awayBudgetPlanSummary.sectionId","awayBudgetPlanSummary.ageGroupId","awayBudgetPlanSummary.coachId","awayBudgetPlanSummary.onlyStartDate","enableHover","rowTemplate","plusDay","DuplicatedAthletesController","templat","InactivesChange","InactivesToo","ExpiringDocumentsController","searchPID","ed.section","ed.agegroup","SelectedAgeGroupID","ed.coach","ed.to","savedSection","getTeamsList","savedAgegroup","savedCoach","teamsList","HealthReportController","mainType","subType","filteredSubTypes","hr.section","hr.agegroup","hr.coach","hr.from","hr.to","hr.main","hr.sub","MainTypeSelect","mainKey","MainType","Fotipus","mainTypeDataBound","subTypeDataBound","taj","EgeszsegEsetId","kezeles","leiras","FoTipus","changeDateFrom","changeDateTo","AnnualCompetitivePlansController","filterSection","annualCompetitivePlans.sectionId","annualCompetitivePlans.coachId","managementReports.annualCompetitivePlans.dateFrom","managementReports.annualCompetitivePlans.dateTo","MonthlyAttendanceReportsController","clickOnSection","monthlyAttendanceReports.sectionId","monthlyAttendanceReports.coachId","managementReports.monthlyAttendanceReports.dateFrom","managementReports.monthlyAttendanceReports.dateTo","MonthlyCompetitivePlansController2","goToMonthlyCompetitivePlan","monthlyCompetitivePlan.coachId","monthlyCompetitivePlans.szakosztalyId","monthlyCompetitivePlans.coachId","managementReports.monthlyCompetitivePlans.dateFrom","managementReports.monthlyCompetitivePlans.dateTo","TrainingDiaryReportsController","trainingDiaryReports.dateFromValue","trainingDiaryReports.dateToValue","trainingDiaryReports.sectionId","trainingDiaryReports.coachId","trainingDiaryReports.ageGroupId","WeeklyTrainingPlansController","weeklyTrainingPlans.szakosztalyId","weeklyTrainingPlans.coachId","managementReports.weeklyTrainingPlans.szakosztalyId","managementReports.weeklyTrainingPlans.coachId","managementReports.weeklyTrainingPlans.dateFrom","managementReports.weeklyTrainingPlans.dateTo","dateFromDB","dateChange2","MonthlyCompetitivePlansController","savedSectionId","savedCoachId","mcp.section","mcp.coach","mcp.from","mcp.to","grep","szakosztalyNev","PlayUpAndDownController","puad.section","puad.agegroup","puad.coach","RaceResultsReportController","searched","requestedData","Csapat","Sportolo","SportoloKereses","selectedTeamId","selectedCoachList","coachRating","reportDatasGrid","reportData1","reportData2","reportData3","pageData","previousPage","clearYear","selectedBirthDate","clearTeam","SelectedTeamID","clearSection","clearAgeGroup","clearCoach","clearSelectdateFrom","clearSelectdateTo","radioButtonChecked","radioButtonClear","searchTeam","getResultTeam","teamsDataBound","teamsSelect","currentValue","selectBirthDate","selectdCoach","deleteResult","selectedRowsInGrid1","selectedRowsInGrid2","selectedRowData","nameChange","SportSpecificReportController","tipusList","tipusDataBound","getData","tipusSelect","elemResponse","unknownError","ActiveAthletesByAgeController","columnWith","openSection","sectionID","sectionBelongsToUser","accessibleSections","yearint","openBirthYear","showEachSections","accessibleSectionsStr","checkboxChanged","filterAthletes","griddata","initColumns","felhasznaloSzakosztalyai","felhasznaloSzakosztalyaiStr","yearListFull","ActiveAthletesByCoachController","getNumbers","openAthleteListByCoach","gender2","athleteListFull","checkboxchangedonce","ActiveAthletesByMonthController","DateFrom","DateTo","openAthletes","openJoined","openLeaving","ActiveAthletesBySectionController","SectionName","accessGranted","filterSections","ActiveAthletesInSectionByMonthController","showOnlyOneMonth","selectedSectionID","sectionValue","ParseDate","openBoys","openGirls","strDate","idxOfSpace","strYear","strMonth","date1","date2","SectionItem","AthletesByBirthYearController","AthletesByYearController","goToCoach","AthletesNotPresentOnMonthlyAttendanceController","honapokszama","t01","t02","t03","t04","t05","t06","t07","t08","t09","t10","t11","t12","numberOfMonths","JoinedAthletesByCoachController","openCoachesJoinedAthletes","JoinedAthletesBySection","DateFromChanged","DateToChanged","LeavingAthletesByCoachController","openCoachesLeavingAthletes","LeavingAthletesBySection","queryDate2","ListAthletesController","openSportServiceFee","sportServiceFeeRegister.athleteID","addColumns","checkRight","nullFilter","getList","sectionname","coachname","titleText","setTitle","TrainingAttendanceReportController","tar.from","tar.to","tar.coach","weeklyTrainingReportController","place","places","wtr.sectionId","wtr.ageGroupId","wtr.coachId","wtr.selectdateFrom","wtr.selectdateTo","wtr.showWeeks","wtr.place","showWeeksChange","savedParams","WeeklyTravelReportController","busOwnersDataBound","busOwnerId","busOwnerSelect","weeklyTrainingPlans.sectionId","weeklyTrainingPlans.ageGroupId","weeklyTrainingPlans.onlyStartDate","weeklyTrainingPlans.typeId","weeklyTrainingPlans.busOwnerId","fromDateChange","toDateChange","ScheduleController","initAlertSettings","alertSettings","users","usergroups","sections","teamsathletes","teamsparents","agegroupsathletes","agegroupsparents","clearRecipients","RecipientsIds","RecipientsNames","RecipientsNamesArr","emptyGroupList","recipientsSettings","itemstemp","addRecipientNames","addRecipientsFromGroup","idlist","noDuplicates","processedTabs","newName","showDirectory","saveThis","saveOrModify","searchByName","view","appointments","ejSchedule","appointmentSettings","appointmentWindowOpen","getOwnPropertyNames","usersListAll","athletesListAll","parentsListAll","usersGroupListAll","sectionsListAll","teamsAthletesListAll","teamParentsListAll","ageGroupsListAll","ageGroupsParentsListAll","setAlertUsers","alertUsers","resData","resources","resourceSettings","argument","flag","resData2","isReadonly","_appointmentAddWindow","_id","onCreate","exportToIcs","ID","exportSchedule","targetInfo","navigation","currentView","saveAppointment","UJESEMNAPT","unnamedEvent","categoryResources","Schedule1_ownerfield_0","Schedule1_ownerfield_1","flag2","priority","changeAppointment","MODESEMNAPT","removeAppointment","removeDate","currentAction","eventColor","trainingColor","sectionResources","ageGroupResources","fontColor","trainingText","eventText","sectionDropDownVisible","eventsCalendar.sectionId","exportAllToIcs","trainingCheckboxChanged","recipientsText","clearText","showRecipientsText","usersList","searchUserParam","searchAthleteParam","searchParent","parentsList","searchParentParam","searchUserGroup","usersGroupList","searchUserGroupParam","searchSection","sectionsList","searchSectionParam","searchTeamsAthletes","teamsAthletesList","searchTeamsAthletesParam","searchTeamsParents","teamParentsList","searchTeamsParentParam","searchAgeGroupAthletes","ageGroupsList","searchAgeGroupsAthletesParam","searchAgeGroupParents","ageGroupsParentsList","searchAgeGroupsParentParam","parentsCheckboxChanged","athleteCheckboxChanged","userCheckboxChanged","usersGroupCheckboxChanged","sectionsCheckboxChanged","teamsCheckboxChanged","teamParentsCheckboxChanged","ageGroupsCheckboxChanged","ageGroupsParentsCheckboxChanged","eventsCalendar.ageGroupId","toolbarPopupClick","currentTarget","tabs","cnt","getNumberOfCheckedTabs","WaitForRecipientsIds","alertSettingsJSON","toolbarPopupItems","empid","tooltiptext","spriteCss","appointmentTemplateId","views","timeZone","allowDragDrop","timeMode","TimeMode","Hour24","enableAppointmentResize","showAppointmentNavigator","showQuickWindow","showLocationField","showTimeZoneFields","firstDayOfWeek","timeZoneCollection","categorizeSettings","allowMultiple","highlightBusinessHours","tooltipSettings","contextMenuSettings","menuItems","cells","prioritySettings","applyTimeOffset","subject","startTimeZone","endTime","endTimeZone","description","allDay","recurrence","recurrenceId","recurrenceRule","resourceFields","categorize","menuItemClick","beforeAppointmentCreate","beforeAppointmentChange","beforeAppointmentRemove","lista","MemberListController","leftrightboth","genderList","yesno","muv_EGYEZIK_NEMEGYZIK","muv_KIJELOLVE_NINCSKIJELOLVE","muv_E_NEME_TART_NEMT","muv_TAG_NEMTAG","muv_KIJ_NINCSKIJ","muv_DATE","muv_REL_KOZ","query","muvnev","NameNotMatchingChecked","NameExactMatchChecked","NameExactMatch","NameNotMatching","MemberOfSection","NotMemberOfSectionChecked","muvszakosztaly","NotMemberOfSection","MemberOfSectionChecked","MemberOfAgeGroup","NotMemberOfAgeGroupChecked","muvkorosztaly","NotMemberOfAgeGroup","MemberOfAgeGroupChecked","BelongsToCoach","NotBelongsToCoachChecked","muvedzo","NotBelongsToCoach","BelongsToCoachChecked","ContactNotMatching","SchoolNotMatching","ParentNotMatching","muvanyjaMagTol","muvapaMagTol","BodyShapeNotMatching","IdNumbersNotMatching","resetQueryDetails","allamp","vspTol","vspIg","lakcimMegye","lakcimIrSzam","lakcimVaros","lakcimUtca","lakcimHazszam","elerh","iskNev","iskIrSzam","iskVaros","iskUtca","iskHazszam","igNeve","testnev","testnevElerh","evfolyam","osztaly","anyjaElerh","anyjaMagTol","anyjaMagIg","anyjaSpMult","apaNeve","apaElerh","apaMagTol","apaMagIg","apaSpMult","testMagTol","testMagIg","testsulyTol","testSulyIg","bmiig","ugyKez","ugyLab","szemIgSzam","tajSzam","adoSzam","utlevelSzam","egyeb","havidijas","oktdijas","dsiKezdTol","dsiKezdIg","kiDatTol","kiDatIg","kilepIndoka","eddigiEdzoi","eddigiSpEgyes","edzesKezdTol","edzesKezdIg","regSzam","osztFoNeve","anyjaLeanyNeve","pubVegeTol","pubVegeIg","szuloFogl","gyereksport","fajiEredet","szunidElfogl","valSportagak","leanykoriNev","papucsMerete","melegitoMerete","furdokopenyMerete","kabatMerete","pancelNadragMerete","poloMerete","sortMerete","cipoMerete","uszonadragMerete","acttestMagTol","acttestMagIg","acttestSulyTol","testactSulyIg","actbmi","actbmiig","muvtol","muvig","muvneme","muvallamp","muvvspTol","muvvspIg","muvlakcimMegye","muvlakcimIrSzam","muvlakcimVaros","muvlakcimUtca","muvlakcimHazszam","muvelerh","muviskNev","muviskIrSzam","muviskVaros","muviskUtca","muviskHazszam","muvigNeve","muvtestnev","muvtestnevElerh","muvevfolyam","muvosztaly","muvanyjaNeve","muvanyjaElerh","muvanyjaMagIg","muvanyjaSpMult","muvapaNeve","muvapaElerh","muvapaMagIg","muvapaSpMult","muvtestMagTol","muvtestMagIg","muvtestsulyTol","muvtestSulyIg","muvugyKez","muvugyLab","muvszemIgSzam","muvtajSzam","muvadoSzam","muvutlevelSzam","muvegyeb","muvaktiv","muvhavidijas","muvoktdijas","muvdsiKezdTol","muvdsiKezdIg","muvkiDatTol","muvkiDatIg","muvkilepIndoka","muveddigiEdzoi","muveddigiSpEgyes","muvedzesKezdTol","muvedzesKezdIg","muvemail","muvregSzam","muvosztFoNeve","muvanyjaLeanyNeve","muvpubVegeTol","muvpubVegeIg","muvszuloFogl","muvgyereksport","muvfajiEredet","muvszunidElfogl","muvvalSportagak","muvleanykoriNev","muvbmi","muvacttestMagTol","muvacttestSulyTol","muvactbmi","muvpapucsMerete","muvmelegitoMerete","muvfurdokopenyMerete","muvkabatMerete","muvpancelNadragMerete","muvpoloMerete","muvsortMerete","muvcipoMerete","muvuszonadragMerete","anyjaFoglalkozasa","muvanyjaFoglalkozasa","apaFoglalkozasa","muvapaFoglalkozasa","kellnev","kelltestiAdottsagok","kellAzonositok","kelliskCim","kelllakcim","kellpapucs","kellmelegito","kellfurdokopeny","kellkabat","kellpancelNadrag","kellpolo","kellsort","kellcipo","kelluszonadrag","kellmegjegyzes","kellszulhelyorszag","kellszulhelyvaros","kellaktiv","kellszakosztalyId","kellkorosztalyId","kelledzoId","kelltol","kellig","kellneme","kellSzulHely","kellallamp","kellvspTol","kellvspIg","kelllakcimMegye","kelllakcimIrSzam","kelllakcimVaros","kelllakcimUtca","kelllakcimHazszam","kellelerh","kelliskNev","kelliskIrSzam","kelliskVaros","kelliskUtca","kelliskHazszam","kelligNeve","kelltestnev","kelltestnevElerh","kellevfolyam","kellosztaly","kellanyjaNeve","kellanyjaElerh","kellanyjaMagTol","kellanyjaMagIg","kellanyjaSpMult","kellapaNeve","kellapaElerh","kellapaMagTol","kellapaMagIg","kellapaSpMult","kelltestMagTol","kelltestMagIg","kelltestsulyTol","kelltestSulyIg","kellugyKez","kellugyLab","kellszemIgSzam","kelltajSzam","kelladoSzam","kellutlevelSzam","kellegyeb","kellhavidijas","kelloktdijas","kellNyilvSzam","kellDSIKezd","kellEddigiEdzo","kellEddigiSp","kellTagdijas","kellEmail","kellEdzJaras","kellGyermSp","kellFajiEredet","kellSzunidei","kellLeanykNev","kellKilepesDatum","kellKilepesIndok","kellpapucsMerete","kellmelegitoMerete","kellfurdokopenyMerete","kellkabatMerete","kellpancelNadragMerete","kellpoloMerete","kellsortMerete","kellAnyjaLeanykoriNeve","kellAnyjaAdatai","kellApjaAdatai","kellbmi","kellof","kezdo","kellcipoMerete","kelluszonadragMerete","ContactNotMatchingChecked","SchoolNotMatchingChecked","testnevEmail","muvtestnevEmail","regszam","muvregszam","muvOfTel","muvOfEmail","ParentNotMatchingChecked","muvAnyaMunkahely","muvApaMunkahely","muvAnyaEmail","muvApaEmail","BodyShapeNotMatchingChecked","IdNumbersNotMatchingChecked","initData","SimpleController","search.simple.formdata","reset","clearCounty","county","clearCourse","clearClass","cleaSex","sportServiceFee","educationalFee","SearchUsersController","userList","loginNev","idCsoport","szulHelyOrszag","szulHelyVaros","szulTol","szulIg","lakcim","elerhetoseg","edzKep","foallMh","magTol","magIg","testTol","testIg","szemSzam","utlevel","egyeniSport","csapatSport","search.user.formdata","userGroupDatabound","AgeGroupChangeController","actualSectionList","actualCoachList","actualSectionId","actualCoachId","actualAthleteId","NOACTUALATHLETE","backPath","actualSectionDataBound","actualSectionSelect","actualCoachDataBound","actualCoachSelect","confirm","getActualSections","getActualCoaches","CreateSportSpecificTestController","columnsFelmeroElemFej","columnsFelmeroElem","FEEditEnable","NewFelmeroTipus","SaveFelmeroTipusok","CopyFelmeroTipus","copyName","selectedFelmeroElemFej","selectSectionDropDownSwal","DeleteFelmeroTipus","LoadFelmeroTipusok","SelectFelmeroTipus","ActivateFelmeroTipus","dataFelmeroElemFej","selectedFEFRowIndex","GridFelmeroTipus2","felmeroTipusKijelolve","copyButtonEnabled","deleteButtonEnabled","InactivateFelmeroTipus","SaveFelmeroElemek","GridFelmeroElem2","closeEdit","saveBeforeColorWarning","colordivenabled","Sorrend","enableFelmeroTipusGrid","LoadFelmeroElemek","DiscardFelmeroElem","SelectFelmeroElem","setDefaultColors","selectedFelmeroElemIndex","color1","defcolor1","color12","defcolor12","color23","defcolor23","color34","defcolor34","color45","defcolor45","color5","defcolor5","clearColors","felmNev","selectedFelmeroElem","newFefItemIndex","newFeItemIndex","newTestName","editableHint","saveOrDiscardeHint","modified","applyColor","num1","num2","num3","num4","num5","selectedFelmeroIsActive","typeHint","felmElemNev","num0","num6","defnum1","defnum2","defnum3","defnum4","defnum5","defnum1mmss","defnum2mmss","defnum3mmss","defnum4mmss","defnum5mmss","defnum1hhmmss","defnum2hhmmss","defnum3hhmmss","defnum4hhmmss","defnum5hhmmss","int","double","mmss","hhmmss","PreloadFelmeroElemFej","resetColumnsFelmeroElem","FelmeroNeve","Id_FEF","Used","Id_FE","felmeroElemId","getFelmeroElemIndex","activateButton","inactivateButton","getFelmeroElemFejIndex","maxSorrend","getMaxSorrend","EditHealthTypeController","mainTypeColumns","validationMessage","mainTypeGrid","innerHeight","selectedMainTypeRow","editDeleteSubTypeEnabled","SearchSubTypeBySelectedRow","subTypeGrid","subTypeColumns","selectedSubTypeRow","getMainType","subTypes","AddSubType","AddMainType","DeleteMainType","warningText","DeleteSubType","EditMainType","EditSubType","EditSectionController","sectionLeaders","sectionLeaders2","editSectionId","leader1DataBound","SzakosztalyVezetoId1","leader2DataBound","SzakosztalyVezetoId2","Error","Editable","SzakosztalyVezeto1","SzakosztalyVezeto2","RuhaPapucs","RuhaCipo","RuhaMelegito","RuhaFurdokopeny","RuhaKabat","RuhaPancelnadrag","RuhaPolo","RuhaSort","RuhaUszonadrag","editSectionLeader","AddSchoolController","saveSchool","editSchoolController","ModifySchool","SchoolListController","selectedSchoolObject","editedRow","editSchoolButtonEnabled","EndAdd","EndEdit","BeginEdit","EndDelete","goToAddSchool","goToEditSchool","schoolManagement.editSchool","DeleteSchool","SystemSettingsController","languageSelect","languageSelected","kedvezmeny1","kedvezmeny2","kedvezmeny3","kedvezmeny4","kedvezmeny5","kedvezmenyokt1","kedvezmenyokt2","kedvezmenyokt3","kedvezmenyokt4","kedvezmenyokt5","expDocNotificationSelect","selectedExpDocGroup","ExpCheckedArray","LEJARODOCERTESITESTKAPNAK","attendanceArray","JELENLETNEKSZAMIT","TAGDIJERTESGYAKORISAG","nf1","nf2","saveSystemSetting","paymentNumberSeparatelyValue","SPORTMINKOTELEZO","SPKORVALTTART","ESZKSPORTOLOKILEP","ESZKUSERKILEP","saveSystemSettingValue","HETIEDZTURELMI","valasztottNyelv","nf1Select","nf1databound","nf2databound","NYELVEK","expNotiList","attendanceList","nf1list","nfWeeklyList","nfDayList","nf2list","expNotiChecked","ds2","tagdijErtesites","UserGroupsManagementController","newgrouptitle","editgrouptitle","deleteGroupEnabled","setGroupRightsEnabled","selectedGroupId","editgroup","MODFELHCSOP","MEGTFELHJOG","DeleteGroup","ManageRights","usergroupid","EditGroup","AddGroup","newgroup","newgroupCancel","newgroupSave","editgroupCancel","editgroupSave","MEGTFELHCSOP","UJFELHCSOP","modifyUserController","sectionLeaderChangeEnable","sectionLeaderList","weightList","heightList","passwordAgain","passwordExpiryDate","address","socialSecurityNumber","monthlyAttendanceRegister","activeUser","mainWorkPlace","qualifications","country","city","citizenship","mothersName","identityCardNumber","passportNumber","otherInformation","changeUserGroup","ejTreeView","monthlyAttendanceRegisterChanged","sectionLeaderChecked","VezetoNev","VezetoNev2","showConfirmButton","replaceLeader","changeSex","sectionLeader","saveUser","SZULOADATLAP","SPORTOLOADATLAP","hasChild","sectionsLeaderList","currentId","issuedAssets","usersAssetGrid","AssetGrid","selectGrid","ferfib","goToFiles","GAZDASAGIADATLAP","LIMITEDUSER","SZAKOSZTVEZADATLAP","EDZOADATLAP","results1","results2","GROUP","sectionIndex","sectionsLeader","ageGroups","newUserController","userManagementController","thereIsSelectedTeam","goToGroup","goToUser2","details","userSettingsController","AthleteOrParent","recordPerPageList","NotificationChanged","PushNotificationEnabled","PushNotificationSetting","ErtesitesEdzesJelenletrol","ErtesitesEdzesrol","ErtesitesEdzoKorosztalyValtasrol","ErtesitesEsemenyrol","ErtesitesFelmeroEredmenyrol","ErtesitesHianyzasrol","ErtesitesLejaroDokrol","ErtesitesTagdijrol","ErtesitesUzenetrol","ErtesitesVersenyeredmenyrol","Nyelv","recordPerPageSelect","disabled","ArrayFromObject","values","UserRightsController","getAndSetUserGroupRights","selectedUserGroup","changeEventActive","IdJog","setSpecialPermission","defaultUserGroup","userGroupDataBound","userGroupSelect","selectedGroup","groupRightsChange","shortName","UsersBelongingToAthletesController","usersBelongingToAthletes.SzakosztalyId","usersBelongingToAthletes.KorosztalyId","openUser","SikerMobileController","changeTab","mainTab","tabName","mainTablinks","getElementsByClassName","className","tablinks","$templateCache","put"],"mappings":";;;;;;;yWAGAA,QAAAC,OAAA,OACA,sBACA,qBACA,qCACA,sCACA,kEACA,kEACA,kEACA,kEACA,kEACA,kEACA,2DACA,oCACA,yDACA,uDACA,+BACA,6CACA,+CACA,kCACA,uDACA,qDACA,mDACA,4CACA,0CACA,sCACA,uCACA,6DACA,+DACA,yCACA,iEACA,mEACA,6CACA,qCACA,mCACA,uCACA,8EACA,gEACA,4DACA,uEACA,yEACA,wCACA,+DACA,iEACA,uBACA,eACA,yBACA,qCACA,6CACA,uCACA,wCACA,kCACA,6CACA,gDACA,0DACA,4DACA,kEACA,8DACA,2DACA,+CACA,wEACA,+DACA,qBACA,6BACA,mCACA,gCACA,8BACA,qCACA,wBACA,eACA,8CACA,2CACA,gDACA,6CACA,wCACA,+CACA,4CACA,iDACA,8CACA,4BACA,0BACA,mCACA,2CACA,4CACA,sCACA,0BACA,sCACA,uCACA,4CACA,6CACA,uDACA,kEACA,sEACA,yEACA,oCACA,oEACA,oEACA,uEACA,oCACA,iEACA,oCACA,oCACA,0CACA,yCACA,iCACA,mCACA,WACA,gBACA,aACA,kBACA,YACA,oBACA,YACA,sBACA,8BACA,sDACA,2DACA,qFACA,+FACA,sEACA,gFACA,mEACA,kFACA,4FACA,mEACA,cACA,wCACA,8BACA,iCACA,gCACA,uDACA,yDACA,wDACA,oDACA,qDACA,sCACA,4BACA,gCACA,iCACA,uCACA,kCACA,gCACA,4BACA,uDACA,yDACA,yDACA,0DACA,8CACA,wDACA,uDACA,qDACA,uDACA,qDACA,gDACA,gEACA,uEACA,oEACA,2BACA,eACA,aACA,sBACA,6BACA,iCACA,kBACA,6BACA,eACA,8BACA,+BACA,uCACA,2BACA,8BACA,gCACA,0CACA,2CACA,2CACA,8BACA,oCACA,8BACA,s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EACAqiE,wBAAAriE,EACAsiE,uBAAAtiE,EACAuiE,eAAAviE,EACAwiE,eAAAxiE,EACAyiE,sBAAAziE,EACA0iE,iBAAA1iE,EACA2iE,yBAAA3iE,EACA4iE,yBAAA5iE,EACA+5D,cAAA/5D,EACA6iE,iBAAA7iE,EACA8iE,cAAA9iE,EACA+iE,oBAAA/iE,EACAgjE,gBAAAhjE,EACAijE,aAAAjjE,EACAkjE,eAAAljE,EACA63B,SAAA,KACAsrC,mBAAAnjE,EACAojE,sBAAApjE,EACAqjE,uBAAArjE,EACAsjE,sBAAAtjE,EACA1H,mBAAA0H,EACAujE,oBAAAvjE,EACAwjE,mBAAAxjE,EACAyjE,wBAAAzjE,EACA0jE,kBAAA1jE,EACA2jE,gBAAA3jE,EACA4jE,mBAAA5jE,EACA6jE,gBAAA7jE,EACA8jE,iBAAA9jE,EACAm2D,mBAAAn2D,EACA+jE,aAAA/jE,EACAgkE,gBAAAhkE,EACAikE,iBAAAjkE,EACA64D,mBAAA74D,EACA84D,mBAAA94D,EACAsH,gBAAAtH,EACAkkE,mBAAAlkE,EACAmkE,kBAAAnkE,EACAokE,iBAAApkE,EACAqkE,gBAAArkE,EACAskE,iBAAAtkE,EACAukE,kBAAAvkE,EACA08E,6BAAA18E,EACAy4D,0BAAAz4D,EACA24D,iCAAA34D,EACA6sB,gBAAA7sB,EACAwkE,gBAAAxkE,EACAykE,mBAAAzkE,EACA0kE,oBAAA1kE,EACA26D,UAAA36D,EACAqf,SAAArf,EACA2kE,sBAAA3kE,EACA4kE,oBAAA5kE,EACA6kE,uBAAA7kE,EACA8kE,wBAAA9kE,EACA+kE,sBAAA/kE,EACAglE,cAAAhlE,EACA28E,iBAAA38E,EACAklE,kBAAAllE,EACAslE,YAAAtlE,EACAulE,eAAAvlE,EACAwlE,gBAAAxlE,EACAylE,kBAAAzlE,EACA0lE,uBAAA1lE,EACA2lE,YAAA3lE,EACA4lE,eAAA5lE,EACA6lE,gBAAA7lE,EACA8lE,uBAAA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AAA,uCACAD,EAAAC,IAAA,2EAAA,uCACAD,EAAAC,IAAA,yFAAA,23DACAD,EAAAC,IAAA,6FAAA,0jBACAD,EAAAC,IAAA,kFAAA,uqCACAD,EAAAC,IAAA,gGAAA,69DACAD,EAAAC,IAAA,0FAAA,03DACAD,EAAAC,IAAA,oHAAA,isCACAD,EAAAC,IAAA,wIAAA,sqDACAD,EAAAC,IAAA,0GAAA,i1DACAD,EAAAC,IAAA,sFAAA,4nEACAD,EAAAC,IAAA,gFAAA,qvCACAD,EAAAC,IAAA,8GAAA,8rCACAD,EAAAC,IAAA,kIAAA,qvDACAD,EAAAC,IAAA,gFAAA","file":"app-7044d7dcc0.js","sourcesContent":["(function () {\r\n 'use strict';\r\n\r\n angular.module('app', [\r\n 'angular-img-cropper',\r\n 'app.administration',\r\n 'app.administration.assetManagement',\r\n 'app.administration.annualSeasonPlan',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage1',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage2',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage3',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage4',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage5',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage6',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanList',\r\n 'app.administration.awayBudgetPlan',\r\n 'app.administration.awayBudgetPlan.awayBudgetPlanCreate',\r\n 'app.administration.awayBudgetPlan.awayBudgetPlanList',\r\n 'app.administration.exercises',\r\n 'app.administration.exercises.exercisesList',\r\n 'app.administration.exercises.exercisesCreate',\r\n 'app.administration.trainingPlan',\r\n 'app.administration.trainingPlan.trainingPlanTemplate',\r\n 'app.administration.trainingPlan.trainingPlanCreate',\r\n 'app.administration.trainingPlan.trainingPlanList',\r\n 'app.administration.competitiveMonthlyPlan',\r\n 'app.administration.resultReportAthletes',\r\n 'app.administration.resultReportTeam',\r\n 'app.administration.monthlyAttendance',\r\n 'app.administration.monthlyAttendance.monthlyAttendanceList',\r\n 'app.administration.monthlyAttendance.monthlyAttendanceReport',\r\n 'app.administration.monthlyTrainingPlan',\r\n 'app.administration.monthlyTrainingPlan.monthlyTrainingPlanList',\r\n 'app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport',\r\n 'app.administration.quickCompetitionResults',\r\n 'app.administration.dailyAttendance',\r\n 'app.administration.trainingDiary',\r\n 'app.administration.sportSpecificTest',\r\n 'app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList',\r\n 'app.administration.sportSpecificTest.newSportSpecificTestList',\r\n 'app.administration.sportSpecificTest.newSportSpecificTest',\r\n 'app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList',\r\n 'app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport',\r\n 'app.administration.weeklyTrainingPlan',\r\n 'app.administration.weeklyTrainingPlan.weeklyTrainingPlanList',\r\n 'app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport',\r\n 'app.athleteDashboard',\r\n 'app.athletes',\r\n 'app.athletes.ageGroups',\r\n 'app.athletes.ageGroups.addAgeGroup',\r\n 'app.athletes.ageGroups.ageGroupMembersList',\r\n 'app.athletes.ageGroups.ageGroupsList',\r\n 'app.athletes.ageGroups.modifyAgeGroup',\r\n 'app.athletes.athletesManagement',\r\n 'app.athletes.athletesManagement.athleteNew',\r\n 'app.athletes.athletesManagement.athleteModify',\r\n 'app.athletes.athletesManagement.athleteModify.dataSheet',\r\n 'app.athletes.athletesManagement.athleteModify.athleteFees',\r\n 'app.athletes.athletesManagement.athleteModify.raceResultsReport',\r\n 'app.athletes.athletesManagement.athleteModify.anthropometry',\r\n 'app.athletes.athletesManagement.athleteModify.athleteLog',\r\n 'app.athletes.athletesManagement.athletesList',\r\n 'app.athletes.athletesManagement.athleteModify.competitionResultsChart',\r\n 'app.athletes.athletesManagement.athleteModify.athletesAssets',\r\n 'app.athletes.teams',\r\n 'app.athletes.teams.addTeam',\r\n 'app.athletes.teams.addTeamMember',\r\n 'app.athletes.teams.modifyTeam',\r\n 'app.athletes.teams.teamList',\r\n 'app.athletes.teams.teamMembersList',\r\n 'app.athletes.sections',\r\n 'app.business',\r\n 'app.business.annualEducationalFeeByAthletes',\r\n 'app.business.annualEducationalFeeByCoach',\r\n 'app.business.annualEducationalFeeByOneSection',\r\n 'app.business.annualEducationalFeeBySection',\r\n 'app.business.monthlyAttendanceArrears',\r\n 'app.business.annualSportServiceFeeByAthletes',\r\n 'app.business.annualSportServiceFeeByCoach',\r\n 'app.business.annualSportServiceFeeByOneSection',\r\n 'app.business.annualSportServiceFeeBySection',\r\n 'app.business.checkPayment',\r\n 'app.business.csvPayment',\r\n 'app.business.checkPrintingExport',\r\n 'app.business.dailyEducationalFeePayments',\r\n 'app.business.dailySportServiceFeePayments',\r\n 'app.business.educationalFeeRegister',\r\n 'app.business.modifyFees',\r\n 'app.business.sportServiceFeeArrears',\r\n 'app.business.sportServiceFeeRegister',\r\n 'app.business.dailyEducationalFeesPerCoach',\r\n 'app.business.dailySportServiceFeesPerCoach',\r\n 'app.athletes.athletesManagement.athleteModify.health',\r\n 'app.athletes.athletesManagement.athleteModify.health.healthList',\r\n 'app.athletes.athletesManagement.athleteModify.health.newHealthEvent',\r\n 'app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent',\r\n 'app.reports.annualPresenceReports',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsByTrainers',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsBySections',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsBySportSchool',\r\n 'app.reports.annualPresenceReports',\r\n 'app.athletes.athletesManagement.athleteModify.athletesBodyStat',\r\n 'app.reports.awayBudgetPlanSummary',\r\n 'app.reports.assetInventoryReports',\r\n 'app.reports.assetInventoryReportByUsers',\r\n 'app.reports.assetInventoryReportByType',\r\n 'app.reports.weeklyTravelReport',\r\n 'app.reports.weeklyTrainingReport',\r\n 'app.core',\r\n 'app.dashboard',\r\n 'app.layout',\r\n 'app.sikerMobile',\r\n 'app.login',\r\n 'app.messageCenter',\r\n 'app.paint',\r\n 'app.parentDashboard',\r\n 'app.parentMonthlyAttendance',\r\n 'app.athletes.athletesManagement.athleteModify.files',\r\n 'app.athletes.athletesManagement.athleteModify.psychology',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.pieronTest',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.summary',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.wartegg',\r\n 'app.reports',\r\n 'app.reports.anthropometryTestPrinting',\r\n 'app.reports.athleteTransfer',\r\n 'app.reports.duplicatedAthletes',\r\n 'app.reports.managementReports',\r\n 'app.reports.managementReports.annualCompetitivePlans',\r\n 'app.reports.managementReports.monthlyAttendanceReports',\r\n 'app.reports.managementReports.monthlyCompetitivePlans',\r\n 'app.reports.managementReports.weeklyTrainingPlans',\r\n 'app.reports.managementReports.trainingDiaryReports',\r\n 'app.reports.monthlyCompetitivePlans',\r\n 'app.reports.playUpAndDown',\r\n 'app.reports.raceResultsReport',\r\n 'app.reports.statisticalReports',\r\n 'app.reports.trainingAttendanceReport',\r\n 'app.reports.sportSpecificReport',\r\n 'app.reports.expiringDocuments',\r\n 'app.reports.absenceReport',\r\n 'app.reports.statisticalReports.activeAthletesByCoach',\r\n 'app.reports.statisticalReports.activeAthletesBySection',\r\n 'app.reports.statisticalReports.joinedAthletesBySection',\r\n 'app.reports.statisticalReports.leavingAthletesBySection',\r\n 'app.reports.statisticalReports.listAthletes',\r\n 'app.reports.statisticalReports.leavingAthletesByCoach',\r\n 'app.reports.statisticalReports.joinedAthletesByCoach',\r\n 'app.reports.statisticalReports.activeAthletesByAge',\r\n 'app.reports.statisticalReports.activeAthletesByMonth',\r\n 'app.reports.statisticalReports.athletesByBirthYear',\r\n 'app.reports.statisticalReports.athletesByYear',\r\n 'app.reports.statisticalReports.activeAthletesInSectionByMonth',\r\n 'app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance',\r\n 'app.athletes.athletesManagement.athleteModify.trainingVisitReport',\r\n 'app.reports.healthReport',\r\n 'app.schedule',\r\n 'app.search',\r\n 'app.search.athletes',\r\n 'app.search.athletes.simple',\r\n 'app.search.athletes.memberList',\r\n 'app.search.user',\r\n 'app.search.user.searchuser',\r\n 'app.settings',\r\n 'app.settings.ageGroupChange',\r\n 'app.settings.athleteTransfer',\r\n 'app.settings.createSportSpecificTest',\r\n 'app.settings.editSection',\r\n 'app.settings.editHealthType',\r\n 'app.settings.schoolManagement',\r\n 'app.settings.schoolManagement.addSchool',\r\n 'app.settings.schoolManagement.editSchool',\r\n 'app.settings.schoolManagement.schoolList',\r\n 'app.settings.systemSettings',\r\n 'app.settings.userGroupsManagement',\r\n 'app.settings.userManagement',\r\n 'app.settings.userManagement.newUser',\r\n 'app.settings.userManagement.modifyUser',\r\n 'app.settings.userManagement.userSettings',\r\n 'app.settings.userManagement.userList',\r\n 'app.settings.userRights',\r\n 'app.settings.usersBelongingToAthletes',\r\n 'ejangular',\r\n 'gettext',\r\n 'LocalStorageModule',\r\n 'app.other',\r\n 'app.other.files',\r\n 'ngAnimate'\r\n ]);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.assetManagement', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan.awayBudgetPlanCreate', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan.awayBudgetPlanList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.dailyAttendance', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises.exercisesCreate', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises.exercisesList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance.monthlyAttendanceList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance.monthlyAttendanceReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.quickCompetitionResults', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.resultReportAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.resultReportTeam', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest.newSportSpecificTest', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest.newSportSpecificTestList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingDiary', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanCreate', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanTemplate', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList', [\r\n ]);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athleteDashboard', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.addAgeGroup', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.ageGroupMembersList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.ageGroupsList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.modifyAgeGroup', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.anthropometry', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athleteFees', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athleteLog', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesAssets', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesBodyStat', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.competitionResultsChart', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.dataSheet', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.files', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.healthList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.summary', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.wartegg', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.raceResultsReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.trainingVisitReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteNew', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athletesList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.sections', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.addTeam', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.addTeamMember', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.modifyTeam', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.teamList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.teamMembersList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.exception', ['blocks.logger']);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.logger', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.router', [\r\n 'ui.router',\r\n 'blocks.logger'\r\n ]);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByOneSection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeBySection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByOneSection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeBySection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.checkPayment', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.checkPrintingExport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.csvPayment', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailyEducationalFeePayments', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailyEducationalFeesPerCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailySportServiceFeePayments', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailySportServiceFeesPerCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.educationalFeeRegister', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.modifyFees', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.monthlyAttendanceArrears', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.sportServiceFeeArrears', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.sportServiceFeeRegister', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core', [\r\n 'blocks.exception', 'blocks.logger', 'blocks.router',\r\n 'ui.router', 'ngCookies', 'ui.router.state.events'\r\n ]);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.dashboard', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.layout', ['app.core']);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.login', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.messageCenter', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.other.files', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.other', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.paint', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.parentDashboard', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.parentMonthlyAttendance', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.absenceReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsBySections', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.anthropometryTestPrinting', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReportByType', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReportByUsers', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.athleteTransfer', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.awayBudgetPlanSummary', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.duplicatedAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.expiringDocuments', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.healthReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.annualCompetitivePlans', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.monthlyAttendanceReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.monthlyCompetitivePlans', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.trainingDiaryReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.weeklyTrainingPlans', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.monthlyCompetitivePlans', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.playUpAndDown', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.raceResultsReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.sportSpecificReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByAge', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByMonth', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesBySection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesInSectionByMonth', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesByBirthYear', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesByYear', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.joinedAthletesByCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.joinedAthletesBySection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.leavingAthletesByCoach', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.leavingAthletesBySection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.listAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.trainingAttendanceReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.weeklyTrainingReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.weeklyTravelReport', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.schedule', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes.memberList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes.simple', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.user.searchuser', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.user', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.ageGroupChange', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.athleteTransfer', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.createSportSpecificTest', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.editHealthType', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.editSection', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.addSchool', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.editSchool', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.schoolList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.systemSettings', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userGroupsManagement', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.modifyUser', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.newUser', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.userList', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.userSettings', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userRights', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.usersBelongingToAthletes', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app.sikerMobile', []);\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration',\r\n config: {\r\n title: 'Administration',\r\n url: '/administration',\r\n templateUrl: 'app/administration/administration.html',\r\n settings: {\r\n navId: 2,\r\n level: 1,\r\n order: 2,\r\n parentId: 0,\r\n content: 'Administration',\r\n faIcon: 'fa-tasks',\r\n activatorPermission: [\r\n '\"MEGTEVVERST\"',\r\n '\"ESZKNYILVMEGT\"',\r\n '\"MEGTIDEGENKOLTSTERV\"',\r\n '\"MEGTHAVIVERST\"',\r\n '\"MEGTHAVIJEL\"',\r\n '\"MEGTHAVIEDZTERV\"',\r\n '\"UJEERJEL\"',\r\n '\"MEGTEERJEL\"',\r\n '\"MEGTCSERJEL\"',\r\n '\"MEGTSPFELM\"',\r\n '\"MEGTKPFELM\"',\r\n '\"MEGTEDZESSABLON\"',\r\n '\"MEGTHETIEDZTERV\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.educationalFeeRegister')\r\n .controller('EducationalFeeRegisterController', EducationalFeeRegisterController);\r\n\r\n function EducationalFeeRegisterController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $compile, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('EducationalFeeRegister');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.kedvezmenyNevek = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.rowUnderEditing = [];\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'B', value: 'B'}, {text: 'EP', value: 'EP'}];\r\n vm.year = new Date().getFullYear();\r\n vm.modifiedRows = [];\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.dropDownListEditorTemplate =\r\n {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var text = '';\r\n switch (vm.maskObject.value) {\r\n case 'NK':\r\n text = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = false;\r\n break;\r\n case 'K1':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K1';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K1';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K1';\r\n break;\r\n case 'K2':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K2';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K2';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD2;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD2;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K2';\r\n break;\r\n case 'K3':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K3';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K3';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD3;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD3;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K3';\r\n break;\r\n case 'K4':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K4';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K4';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD4;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD4;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K4';\r\n break;\r\n case 'K5':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K5';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K5';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD5;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD5;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K5';\r\n break;\r\n case 'B':\r\n text = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'EP':\r\n text = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'ODM':\r\n text = 'ODM';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'ODM';\r\n break;\r\n }\r\n // grid.refresh();\r\n return text;\r\n },\r\n destroy: function () {\r\n vm.maskObject.destroy();\r\n },\r\n write: function (args) {\r\n vm.monthUnderEditing = args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '');\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n\r\n var arr = vm.priceType.slice(0);\r\n if (args.rowData.mentessegAdhato === true) {\r\n arr.push({text: 'ODM', value: 'ODM'});\r\n }\r\n vm.maskObject = new ej2.dropdowns.DropDownList({\r\n value: args.rowData[args.column.field.slice(0, -5)],\r\n dataSource: arr,\r\n popupWidth: 150,\r\n fields: {\r\n value: 'value',\r\n text: 'text'\r\n }\r\n });\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.monthList =\r\n [{text: gettextCatalog.getString('All'), value: -1},\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}];\r\n\r\n // Grid's variables\r\n vm.osszesFizetendo = function (args) {\r\n return ej.sum(args, 'osszesFizetendo');\r\n };\r\n vm.osszesFizetett = function (args) {\r\n return ej.sum(args, 'osszesFizetett');\r\n };\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetendo,\r\n columnName: 'osszesFizetendo',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetett,\r\n columnName: 'osszesFizetett',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.fizetveWidth = 80;\r\n vm.columns = [\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#educationalfeeregistercolumnTemplate1',\r\n field: 'Versenyzo_Nev',\r\n width: 150\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 100\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {\r\n field: 'SzakosztalyNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115\r\n },\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#educationalfeeregistercolumnTemplate2',\r\n field: 'EdzoNeve',\r\n width: 150\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'),\r\n columns: [\r\n {\r\n field: 'Honap_1_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay1'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n /*\r\n editType: 'dropdownedit',\r\n edit: { params: { fields: {value: 'value', text: 'text'},\r\n dataSource: vm.priceType,\r\n query : new ej.data.Query()\r\n }\r\n */\r\n },\r\n {\r\n field: 'Honap_1',\r\n headerText: gettextCatalog.getString('Payed1'),\r\n textAlign: 'center',\r\n // editType: 'numericedit',\r\n // edit: { params: { showSpinButton: false } },\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_1_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber1'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_1_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate1'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'),\r\n columns: [\r\n {\r\n field: 'Honap_2_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay2'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_2',\r\n headerText: gettextCatalog.getString('Payed2'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_2_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber2'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_2_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate2'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'),\r\n columns: [\r\n {\r\n field: 'Honap_3_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay3'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_3',\r\n headerText: gettextCatalog.getString('Payed3'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_3_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber3'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_3_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate3'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'),\r\n columns: [\r\n {\r\n field: 'Honap_4_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay4'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_4',\r\n headerText: gettextCatalog.getString('Payed4'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_4_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber4'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_4_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate4'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'),\r\n columns: [\r\n {\r\n field: 'Honap_5_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay5'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_5',\r\n headerText: gettextCatalog.getString('Payed5'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_5_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber5'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_5_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate5'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'),\r\n columns: [\r\n {\r\n field: 'Honap_6_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay6'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_6',\r\n headerText: gettextCatalog.getString('Payed6'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_6_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber6'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_6_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate6'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'),\r\n columns: [\r\n {\r\n field: 'Honap_7_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay7'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_7',\r\n headerText: gettextCatalog.getString('Payed7'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_7_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber7'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_7_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate7'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'),\r\n columns: [\r\n {\r\n field: 'Honap_8_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay8'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_8',\r\n headerText: gettextCatalog.getString('Payed8'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_8_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber8'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_8_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate8'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'),\r\n columns: [\r\n {\r\n field: 'Honap_9_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay9'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_9',\r\n headerText: gettextCatalog.getString('Payed9'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_9_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber9'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_9_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate9'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'),\r\n columns: [\r\n {\r\n field: 'Honap_10_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay10'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_10',\r\n headerText: gettextCatalog.getString('Payed10'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_10_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber10'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_10_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate10'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'),\r\n columns: [\r\n {\r\n field: 'Honap_11_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay11'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_11',\r\n headerText: gettextCatalog.getString('Payed11'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_11_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber11'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_11_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate11'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'),\r\n columns: [\r\n {\r\n field: 'Honap_12_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay12'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_12',\r\n headerText: gettextCatalog.getString('Payed12'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_12_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber12'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_12_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate12'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summaries'),\r\n columns: [\r\n {\r\n field: 'osszesFizetendo',\r\n headerText: gettextCatalog.getString('SumNeedPay'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('SumPayed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n function dataBound() {\r\n setTimeout(function () {\r\n var grid = document.getElementById('Grid').ej2_instances[0];\r\n var el = grid.element.querySelector('.e-frozencontent');\r\n if (el !== null) {\r\n el.style.height = grid.element.querySelector('.e-movablecontent').getBoundingClientRect().height + 'px';\r\n }\r\n }, 100);\r\n }\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n // allowTextWrap: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n // frozenColumns: 3,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n // dataBound: dataBound,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n queryCellInfo: querycellinfo,\r\n cellEdit: cellEdit,\r\n cellSave: cellSave\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var fut = false;\r\n $('#monthDropDownList').ejDropDownList({\r\n dataSource: vm.monthList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n checkChange: function (args) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n if (fut) {\r\n return;\r\n }\r\n fut = true;\r\n if (args.selectedValue < 0) {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', '1,2,3,4,5,6,7,8,9,10,11,12,13');\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n } else {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', 0);\r\n $('#monthDropDownList').ejDropDownList((args.isChecked ? 'selectItemByValue' : 'unselectItemByValue'), args.selectedValue);\r\n }\r\n fut = false;\r\n },\r\n create: function () {\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n },\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n });\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletesClick;\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.saveWithNumbers = saveWithNumbers;\r\n vm.saveWithoutNumbers = saveWithoutNumbers;\r\n vm.goToDailyPayments = goToDailyPayments;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.getReducedPriceTypes = getReducedPriceTypes;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDNYILV'), authenticationService.getRight('MEGTOKTDNYILV'), paramHelper.getParams([], ['educationalFeeRegister.sectionId', 'educationalFeeRegister.year', 'educationalFeeRegister.coachId', 'educationalFeeRegister.ageGroupId']), authenticationService.getRight('UJOKTDNYILV'), authenticationService.getRight('UJOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true || results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getcoaches(), getSections(), getReducedPriceTypes()]).then(function () {\r\n if (results[2]['educationalFeeRegister.sectionId'] && results[2]['educationalFeeRegister.coachId'] && results[2]['educationalFeeRegister.year']) {\r\n $timeout(function () {\r\n if (results[2]['educationalFeeRegister.ageGroupId']) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n DropDownListObj.selectItemByValue(JSON.parse(results[2]['educationalFeeRegister.ageGroupId']));\r\n }\r\n showHideColumns();\r\n getAthletes(results[2]['educationalFeeRegister.sectionId'], results[2]['educationalFeeRegister.coachId'], results[2]['educationalFeeRegister.year']);\r\n }, 0);\r\n }\r\n });\r\n\r\n vm.UJOKTDNYILV = results[3];\r\n vm.UJOKTDNYILV = results[4];\r\n }\r\n });\r\n }\r\n\r\n function getReducedPriceTypes() {\r\n return dataservice.getReducedEducationalFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n vm.priceType = vm.priceType.concat(data.itemsList);\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n vm.kedvezmenyNevek.push(data.itemsList[i].text);\r\n }\r\n });\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas(vm.sectionId).then(function (data) {\r\n vm.sectionFees = data.itemsList;\r\n });\r\n }\r\n\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownListWithFees(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.EducationalFee = vm.sectionList[args.itemId].OktatasiDij !== null ? vm.sectionList[args.itemId].OktatasiDij : 0;\r\n vm.ReducedEducationalFee = vm.sectionList[args.itemId].KedvezmenyesOktatasiDij !== null ? vm.sectionList[args.itemId].KedvezmenyesOktatasiDij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function monthDataBound() {\r\n if (vm.monthList.length === 1) {\r\n angular.element('#monthDropDownList').ejDropDownList('selectItemByValue', vm.monthList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletesClick() {\r\n showHideColumns();\r\n getAthletes();\r\n }\r\n\r\n function showHideColumns() {\r\n $timeout(function () {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var vmi = DropDownListObj.getSelectedValue();\r\n if (vmi.includes(-1)) {\r\n grid.frozenColumns = 3;\r\n } else {\r\n grid.frozenColumns = null;\r\n }\r\n for (var m = 2; m < 14; m++) {\r\n if (vmi.includes(m - 2) || vmi.includes(-1)) {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = true;\r\n }\r\n } else {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = false;\r\n }\r\n }\r\n }\r\n grid.refreshColumns();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (sectionId !== undefined) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n getFeeDatas();\r\n paramHelper.setParams([{'educationalFeeRegister.sectionId': vm.sectionId}, {'educationalFeeRegister.year': vm.year}, {'educationalFeeRegister.coachId': vm.coachId}, {'educationalFeeRegister.ageGroupId': JSON.stringify($('#monthDropDownList').data('ejDropDownList').getSelectedValue())}]);\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var months = DropDownListObj.getSelectedValue();\r\n dataservice.getAthletesForEducationalFeeRegister(vm.sectionId, vm.coachId, vm.year, months).then(function (data) {\r\n $filter('dateStringFilterPromise')(data.itemsList, 'SzuletesiIdo').then(function (result) {\r\n $filter('dateStringFilterPromise')(result, 'Honap_1_FizDatum').then(function (result1) {\r\n $filter('dateStringFilterPromise')(result1, 'Honap_2_FizDatum').then(function (result2) {\r\n $filter('dateStringFilterPromise')(result2, 'Honap_3_FizDatum').then(function (result3) {\r\n $filter('dateStringFilterPromise')(result3, 'Honap_4_FizDatum').then(function (result4) {\r\n $filter('dateStringFilterPromise')(result4, 'Honap_5_FizDatum').then(function (result5) {\r\n $filter('dateStringFilterPromise')(result5, 'Honap_6_FizDatum').then(function (result6) {\r\n $filter('dateStringFilterPromise')(result6, 'Honap_7_FizDatum').then(function (result7) {\r\n $filter('dateStringFilterPromise')(result7, 'Honap_8_FizDatum').then(function (result8) {\r\n $filter('dateStringFilterPromise')(result8, 'Honap_9_FizDatum').then(function (result9) {\r\n $filter('dateStringFilterPromise')(result9, 'Honap_10_FizDatum').then(function (result10) {\r\n $filter('dateStringFilterPromise')(result10, 'Honap_11_FizDatum').then(function (result11) {\r\n $filter('dateStringFilterPromise')(result11, 'Honap_12_FizDatum').then(function (result12) {\r\n vm.data = result12;\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n $scope.$apply();\r\n grid.dataSource = vm.data;\r\n }, 500);\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n // cellák színezése és utolsó két oszlopban az összesítés\r\n function querycellinfo(args) {\r\n var element = angular.element(args.cell);\r\n if (args.column.field.indexOf('Honap_') !== -1) {\r\n switch (args.data['Honap_' + args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '') + '_ReadOnly']) {\r\n case 'MT':\r\n element.css('background-color', '#efdcdc');\r\n break;\r\n case 'O':\r\n element.css('background-color', '#c0c0c0');\r\n break;\r\n case 'P':\r\n element.css('background-color', '#CCC4FF');\r\n break;\r\n }\r\n }\r\n if (args.column.field === 'osszesFizetendo') {\r\n args.data['osszesFizetendo'] = args.data['Honap_1_fizetendo'] + args.data['Honap_2_fizetendo'] + args.data['Honap_3_fizetendo'] + args.data['Honap_4_fizetendo'] + args.data['Honap_5_fizetendo'] + args.data['Honap_6_fizetendo'] + args.data['Honap_7_fizetendo'] + args.data['Honap_8_fizetendo'] + args.data['Honap_9_fizetendo'] + args.data['Honap_10_fizetendo'] + args.data['Honap_11_fizetendo'] + args.data['Honap_12_fizetendo']; //set the datasource value\r\n element.html(args.data['osszesFizetendo']); //set the element values\r\n }\r\n if (args.column.field === 'osszesFizetett') {\r\n args.data['osszesFizetett'] = (args.data['Honap_1'] !== 'null' ? args.data['Honap_1'] * 1 : 0) + (args.data['Honap_2'] !== 'null' ? args.data['Honap_2'] * 1 : 0) + (args.data['Honap_3'] !== 'null' ? args.data['Honap_3'] * 1 : 0) + (args.data['Honap_4'] !== 'null' ? args.data['Honap_4'] * 1 : 0) + (args.data['Honap_5'] !== 'null' ? args.data['Honap_5'] * 1 : 0) + (args.data['Honap_6'] !== 'null' ? args.data['Honap_6'] * 1 : 0) + (args.data['Honap_7'] !== 'null' ? args.data['Honap_7'] * 1 : 0) + (args.data['Honap_8'] !== 'null' ? args.data['Honap_8'] * 1 : 0) + (args.data['Honap_9'] !== 'null' ? args.data['Honap_9'] * 1 : 0) + (args.data['Honap_10'] !== 'null' ? args.data['Honap_10'] * 1 : 0) + (args.data['Honap_11'] !== 'null' ? args.data['Honap_11'] * 1 : 0) + (args.data['Honap_12'] !== 'null' ? args.data['Honap_12'] * 1 : 0);\r\n //set the datasource value\r\n element.html(args.data['osszesFizetett']); //set the element values\r\n }\r\n }\r\n\r\n // szerkesztés letiltása cellánként\r\n function cellEdit(args) {\r\n if (\r\n (args.rowData.Honap_1_kedvezmenyes_Text === 'B' || args.rowData.Honap_1_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_1' || args.columnName === 'Honap_1_kozlemeny' || args.columnName === 'Honap_1_FizDatum') ||\r\n (args.rowData.Honap_2_kedvezmenyes_Text === 'B' || args.rowData.Honap_2_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_2' || args.columnName === 'Honap_2_kozlemeny' || args.columnName === 'Honap_2_FizDatum') ||\r\n (args.rowData.Honap_3_kedvezmenyes_Text === 'B' || args.rowData.Honap_3_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_3' || args.columnName === 'Honap_3_kozlemeny' || args.columnName === 'Honap_3_FizDatum') ||\r\n (args.rowData.Honap_4_kedvezmenyes_Text === 'B' || args.rowData.Honap_4_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_4' || args.columnName === 'Honap_4_kozlemeny' || args.columnName === 'Honap_4_FizDatum') ||\r\n (args.rowData.Honap_5_kedvezmenyes_Text === 'B' || args.rowData.Honap_5_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_5' || args.columnName === 'Honap_5_kozlemeny' || args.columnName === 'Honap_5_FizDatum') ||\r\n (args.rowData.Honap_6_kedvezmenyes_Text === 'B' || args.rowData.Honap_6_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_6' || args.columnName === 'Honap_6_kozlemeny' || args.columnName === 'Honap_6_FizDatum') ||\r\n (args.rowData.Honap_7_kedvezmenyes_Text === 'B' || args.rowData.Honap_7_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_7' || args.columnName === 'Honap_7_kozlemeny' || args.columnName === 'Honap_7_FizDatum') ||\r\n (args.rowData.Honap_8_kedvezmenyes_Text === 'B' || args.rowData.Honap_8_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_8' || args.columnName === 'Honap_8_kozlemeny' || args.columnName === 'Honap_8_FizDatum') ||\r\n (args.rowData.Honap_9_kedvezmenyes_Text === 'B' || args.rowData.Honap_9_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_9' || args.columnName === 'Honap_9_kozlemeny' || args.columnName === 'Honap_9_FizDatum') ||\r\n (args.rowData.Honap_10_kedvezmenyes_Text === 'B' || args.rowData.Honap_10_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_10' || args.columnName === 'Honap_10_kozlemeny' || args.columnName === 'Honap_10_FizDatum') ||\r\n (args.rowData.Honap_11_kedvezmenyes_Text === 'B' || args.rowData.Honap_11_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_11' || args.columnName === 'Honap_11_kozlemeny' || args.columnName === 'Honap_11_FizDatum') ||\r\n (args.rowData.Honap_12_kedvezmenyes_Text === 'B' || args.rowData.Honap_12_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_12' || args.columnName === 'Honap_12_kozlemeny' || args.columnName === 'Honap_12_FizDatum') ||\r\n\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n // Kérésre nem szerkeszthető, ha nem nulla vagy null van benne\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1 !== 0 && args.rowData.Honap_1 !== null) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2 !== 0 && args.rowData.Honap_2 !== null) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3 !== 0 && args.rowData.Honap_3 !== null) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4 !== 0 && args.rowData.Honap_4 !== null) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5 !== 0 && args.rowData.Honap_5 !== null) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6 !== 0 && args.rowData.Honap_6 !== null) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7 !== 0 && args.rowData.Honap_7 !== null) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8 !== 0 && args.rowData.Honap_8 !== null) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9 !== 0 && args.rowData.Honap_9 !== null) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10 !== 0 && args.rowData.Honap_10 !== null) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11 !== 0 && args.rowData.Honap_11 !== null) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12 !== 0 && args.rowData.Honap_12 !== null) ||\r\n\r\n args.columnName === 'Honap_1' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n args.columnName === 'Honap_1_kozlemeny' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_kozlemeny' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_kozlemeny' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_kozlemeny' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_kozlemeny' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_kozlemeny' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_kozlemeny' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_kozlemeny' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_kozlemeny' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_kozlemeny' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_kozlemeny' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_kozlemeny' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n args.columnName === 'Honap_1_FizDatum' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_FizDatum' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_FizDatum' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_FizDatum' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_FizDatum' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_FizDatum' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_FizDatum' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_FizDatum' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_FizDatum' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_FizDatum' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_FizDatum' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_FizDatum' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true)\r\n ) {\r\n args.cancel = true;\r\n } else {\r\n $timeout(function () {\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n vm.AthleteUnderEditing = args.rowData.Versenyzo_Nev;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function saveWithoutNumbers() {\r\n return save(false);\r\n }\r\n\r\n function saveWithNumbers() {\r\n return save(true);\r\n }\r\n\r\n function save(withNumbers) {\r\n if (vm.UJOKTDNYILV || vm.UJOKTDNYILV) {\r\n // batchSave();\r\n return dataservice.updateOktatasiDijfizetesek(vm.modifiedRows, withNumbers).then(function () {\r\n log.successMsg('Saved');\r\n vm.modifiedRows = [];\r\n return true;\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function batchSave() {\r\n grid.editModule.batchSave();\r\n }\r\n\r\n function goToDailyPayments() {\r\n paramHelper.setParams([{'dailyEducationalFeePayments.sectionId': vm.sectionId}, {'dailyEducationalFeePayments.coachId': vm.coachId}, {'dailyEducationalFeePayments.year': vm.year}]);\r\n saveWithoutNumbers().then(function () {\r\n $state.go('business.dailyEducationalFeePayments');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.value != null && args.value !== vm.rowUnderEditing[args.columnName]) {\r\n $timeout(function () {\r\n vm.modifiedRows.push(vm.rowUnderEditing);\r\n $scope.$apply();\r\n }, 500);\r\n }\r\n vm.AthleteUnderEditing = '';\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan',\r\n config: {\r\n url: '/annualSeasonPlan',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.sportServiceFeeRegister')\r\n .controller('SportServiceFeeRegisterController', SportServiceFeeRegisterController);\r\n\r\n function SportServiceFeeRegisterController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $compile, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SportServiceFeeRegister');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.kedvezmenyNevek = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.rowUnderEditing = [];\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'B', value: 'B'}, {text: 'EP', value: 'EP'}];\r\n vm.year = new Date().getFullYear();\r\n vm.modifiedRows = [];\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.dropDownListEditorTemplate =\r\n {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var text = '';\r\n switch (vm.maskObject.value) {\r\n case 'NK':\r\n text = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = false;\r\n break;\r\n case 'K1':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K1';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K1';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K1';\r\n break;\r\n case 'K2':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K2';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K2';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD2;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD2;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K2';\r\n break;\r\n case 'K3':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K3';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K3';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD3;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD3;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K3';\r\n break;\r\n case 'K4':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K4';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K4';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD4;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD4;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K4';\r\n break;\r\n case 'K5':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K5';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K5';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD5;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD5;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K5';\r\n break;\r\n case 'B':\r\n text = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'EP':\r\n text = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'SDM':\r\n text = 'SDM';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'SDM';\r\n break;\r\n }\r\n\r\n return text;\r\n },\r\n\r\n destroy: function () {\r\n vm.maskObject.destroy();\r\n },\r\n write: function (args) {\r\n vm.monthUnderEditing = args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '');\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n\r\n var arr = vm.priceType.slice(0);\r\n if (args.rowData.mentessegAdhato === true) {\r\n arr.push({text: 'SDM', value: 'SDM'});\r\n }\r\n vm.maskObject = new ej2.dropdowns.DropDownList({\r\n value: args.rowData[args.column.field.slice(0, -5)],\r\n popupWidth: 150,\r\n dataSource: arr,\r\n fields: {\r\n value: 'value',\r\n text: 'text'\r\n }\r\n });\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.monthList =\r\n [{text: gettextCatalog.getString('All'), value: -1},\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}];\r\n\r\n // Grid's variables\r\n vm.osszesFizetendo = function (args) {\r\n return ej.sum(args, 'osszesFizetendo');\r\n };\r\n vm.osszesFizetett = function (args) {\r\n return ej.sum(args, 'osszesFizetett');\r\n };\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetendo,\r\n columnName: 'osszesFizetendo',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetett,\r\n columnName: 'osszesFizetett',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.fizetveWidth = 80;\r\n vm.columns = [\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#sportservicefeeregistercolumnTemplate1',\r\n field: 'Versenyzo_Nev',\r\n width: 175\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 100\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {\r\n field: 'SzakosztalyNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 125,\r\n visible: true\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n template: '#sportservicefeeregistercolumnTemplate2',\r\n width: 150,\r\n visible: true\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'),\r\n columns: [\r\n {\r\n field: 'Honap_1_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay1'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n /*\r\n editType: 'dropdownedit',\r\n edit: { params: { fields: {value: 'value', text: 'text'},\r\n dataSource: vm.priceType,\r\n query : new ej.data.Query()\r\n }\r\n */\r\n },\r\n {\r\n field: 'Honap_1',\r\n headerText: gettextCatalog.getString('Payed1'),\r\n textAlign: 'center',\r\n // editType: 'numericedit',\r\n // edit: { params: { showSpinButton: false } },\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_1_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber1'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_1_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate1'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'),\r\n columns: [\r\n {\r\n field: 'Honap_2_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay2'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_2',\r\n headerText: gettextCatalog.getString('Payed2'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_2_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber2'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_2_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate2'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'),\r\n columns: [\r\n {\r\n field: 'Honap_3_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay3'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_3',\r\n headerText: gettextCatalog.getString('Payed3'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_3_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber3'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_3_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate3'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'),\r\n columns: [\r\n {\r\n field: 'Honap_4_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay4'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_4',\r\n headerText: gettextCatalog.getString('Payed4'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_4_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber4'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_4_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate4'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'),\r\n columns: [\r\n {\r\n field: 'Honap_5_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay5'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_5',\r\n headerText: gettextCatalog.getString('Payed5'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_5_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber5'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_5_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate5'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'),\r\n columns: [\r\n {\r\n field: 'Honap_6_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay6'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_6',\r\n headerText: gettextCatalog.getString('Payed6'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_6_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber6'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_6_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate6'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'),\r\n columns: [\r\n {\r\n field: 'Honap_7_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay7'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_7',\r\n headerText: gettextCatalog.getString('Payed7'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_7_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber7'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_7_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate7'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'),\r\n columns: [\r\n {\r\n field: 'Honap_8_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay8'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_8',\r\n headerText: gettextCatalog.getString('Payed8'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_8_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber8'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_8_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate8'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'),\r\n columns: [\r\n {\r\n field: 'Honap_9_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay9'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_9',\r\n headerText: gettextCatalog.getString('Payed9'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_9_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber9'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_9_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate9'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'),\r\n columns: [\r\n {\r\n field: 'Honap_10_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay10'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_10',\r\n headerText: gettextCatalog.getString('Payed10'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_10_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber10'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_10_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate10'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'),\r\n columns: [\r\n {\r\n field: 'Honap_11_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay11'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_11',\r\n headerText: gettextCatalog.getString('Payed11'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_11_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber11'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_11_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate11'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'),\r\n columns: [\r\n {\r\n field: 'Honap_12_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay12'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_12',\r\n headerText: gettextCatalog.getString('Payed12'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_12_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber12'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_12_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate12'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summaries'),\r\n columns: [\r\n {\r\n field: 'osszesFizetendo',\r\n headerText: gettextCatalog.getString('SumNeedPay'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('SumPayed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n function dataBound() {\r\n setTimeout(function () {\r\n var grid = document.getElementById('Grid').ej2_instances[0];\r\n var el = grid.element.querySelector('.e-frozencontent');\r\n if (el !== null) {\r\n el.style.height = grid.element.querySelector('.e-movablecontent').getBoundingClientRect().height + 'px';\r\n }\r\n }, 100);\r\n }\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n // allowTextWrap: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n // dataBound: dataBound,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n queryCellInfo: querycellinfo,\r\n cellEdit: cellEdit,\r\n cellSave: cellSave\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var fut = false;\r\n $('#monthDropDownList').ejDropDownList({\r\n dataSource: vm.monthList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n checkChange: function (args) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n if (fut) {\r\n return;\r\n }\r\n fut = true;\r\n if (args.selectedValue < 0) {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', '1,2,3,4,5,6,7,8,9,10,11,12,13');\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n } else {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', 0);\r\n $('#monthDropDownList').ejDropDownList((args.isChecked ? 'selectItemByValue' : 'unselectItemByValue'), args.selectedValue);\r\n }\r\n fut = false;\r\n },\r\n create: function () {\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n },\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n });\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletesClick;\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.saveWithNumbers = saveWithNumbers;\r\n vm.saveWithoutNumbers = saveWithoutNumbers;\r\n vm.goToDailyPayments = goToDailyPayments;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.getReducedPriceTypes = getReducedPriceTypes;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('UJTAGDNYILV'),\r\n paramHelper.getParams([], ['sportServiceFeeRegister.sectionId', 'sportServiceFeeRegister.year', 'sportServiceFeeRegister.coachId', 'sportServiceFeeRegister.ageGroupId']),\r\n authenticationService.getRight('MEGTTAGDNYILV'),\r\n authenticationService.getRight('MEGTOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[3] !== true || results[4] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getcoaches(), getSections(), getReducedPriceTypes()]).then(function () {\r\n if (results[2]['sportServiceFeeRegister.sectionId'] && results[2]['sportServiceFeeRegister.coachId'] && results[2]['sportServiceFeeRegister.year']) {\r\n $timeout(function () {\r\n if (results[2]['sportServiceFeeRegister.ageGroupId']) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n DropDownListObj.selectItemByValue(JSON.parse(results[2]['sportServiceFeeRegister.ageGroupId']));\r\n }\r\n showHideColumns();\r\n getAthletes(results[2]['sportServiceFeeRegister.sectionId'], results[2]['sportServiceFeeRegister.coachId'], results[2]['sportServiceFeeRegister.year']);\r\n }, 0);\r\n }\r\n });\r\n vm.MODTAGDBEALL = results[0];\r\n vm.UJTAGDNYILV = results[1];\r\n }\r\n });\r\n }\r\n\r\n function getReducedPriceTypes() {\r\n return dataservice.getReducedSportServiceFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n vm.priceType = vm.priceType.concat(data.itemsList);\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n vm.kedvezmenyNevek.push(data.itemsList[i].text);\r\n }\r\n });\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas(vm.sectionId).then(function (data) {\r\n vm.sectionFees = data.itemsList;\r\n });\r\n }\r\n\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownListWithFees(vm.coachId).then(function (data) {\r\n //data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.SportServiceFee = vm.sectionList[args.itemId].Tagdij !== null ? vm.sectionList[args.itemId].Tagdij : 0;\r\n vm.ReducedSportServiceFee = vm.sectionList[args.itemId].KedvezmenyesTagdij !== null ? vm.sectionList[args.itemId].KedvezmenyesTagdij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function monthDataBound() {\r\n if (vm.monthList.length === 1) {\r\n angular.element('#monthDropDownList').ejDropDownList('selectItemByValue', vm.monthList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletesClick() {\r\n showHideColumns();\r\n getAthletes();\r\n }\r\n\r\n function showHideColumns() {\r\n $timeout(function () {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var vmi = DropDownListObj.getSelectedValue();\r\n if (vmi.includes(-1)) {\r\n grid.frozenColumns = 3;\r\n } else {\r\n grid.frozenColumns = null;\r\n }\r\n for (var m = 2; m < 14; m++) {\r\n if (vmi.includes(m - 2) || vmi.includes(-1)) {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = true;\r\n }\r\n } else {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = false;\r\n }\r\n }\r\n }\r\n grid.refreshColumns();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (sectionId) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n getFeeDatas();\r\n paramHelper.setParams([{'sportServiceFeeRegister.sectionId': vm.sectionId}, {'sportServiceFeeRegister.year': vm.year}, {'sportServiceFeeRegister.coachId': vm.coachId}, {'sportServiceFeeRegister.ageGroupId': JSON.stringify($('#monthDropDownList').data('ejDropDownList').getSelectedValue())}]);\r\n\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var months = DropDownListObj.getSelectedValue();\r\n dataservice.getAthletesFromFeeRegister(vm.sectionId, vm.coachId, vm.year, months).then(function (data) {\r\n $filter('dateStringFilterPromise')(data.itemsList, 'SzuletesiIdo').then(function (result) {\r\n $filter('dateStringFilterPromise')(result, 'Honap_1_FizDatum').then(function (result1) {\r\n $filter('dateStringFilterPromise')(result1, 'Honap_2_FizDatum').then(function (result2) {\r\n $filter('dateStringFilterPromise')(result2, 'Honap_3_FizDatum').then(function (result3) {\r\n $filter('dateStringFilterPromise')(result3, 'Honap_4_FizDatum').then(function (result4) {\r\n $filter('dateStringFilterPromise')(result4, 'Honap_5_FizDatum').then(function (result5) {\r\n $filter('dateStringFilterPromise')(result5, 'Honap_6_FizDatum').then(function (result6) {\r\n $filter('dateStringFilterPromise')(result6, 'Honap_7_FizDatum').then(function (result7) {\r\n $filter('dateStringFilterPromise')(result7, 'Honap_8_FizDatum').then(function (result8) {\r\n $filter('dateStringFilterPromise')(result8, 'Honap_9_FizDatum').then(function (result9) {\r\n $filter('dateStringFilterPromise')(result9, 'Honap_10_FizDatum').then(function (result10) {\r\n $filter('dateStringFilterPromise')(result10, 'Honap_11_FizDatum').then(function (result11) {\r\n $filter('dateStringFilterPromise')(result11, 'Honap_12_FizDatum').then(function (result12) {\r\n vm.data = result12;\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n $scope.$apply();\r\n grid.dataSource = vm.data;\r\n }, 500);\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n // cellák színezése és utolsó két oszlopban az összesítés\r\n function querycellinfo(args) {\r\n var element = angular.element(args.cell);\r\n if (args.column.field.indexOf('Honap_') !== -1) {\r\n switch (args.data['Honap_' + args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '') + '_ReadOnly']) {\r\n case 'MT':\r\n element.css('background-color', '#efdcdc');\r\n break;\r\n case 'O':\r\n element.css('background-color', '#c0c0c0');\r\n break;\r\n case 'P':\r\n element.css('background-color', '#CCC4FF');\r\n break;\r\n }\r\n }\r\n if (args.column.field === 'osszesFizetendo') {\r\n args.data['osszesFizetendo'] = args.data['Honap_1_fizetendo'] + args.data['Honap_2_fizetendo'] + args.data['Honap_3_fizetendo'] + args.data['Honap_4_fizetendo'] + args.data['Honap_5_fizetendo'] + args.data['Honap_6_fizetendo'] + args.data['Honap_7_fizetendo'] + args.data['Honap_8_fizetendo'] + args.data['Honap_9_fizetendo'] + args.data['Honap_10_fizetendo'] + args.data['Honap_11_fizetendo'] + args.data['Honap_12_fizetendo']; //set the datasource value\r\n element.html(args.data['osszesFizetendo']); //set the element values\r\n }\r\n if (args.column.field === 'osszesFizetett') {\r\n args.data['osszesFizetett'] = (args.data['Honap_1'] !== 'null' ? args.data['Honap_1'] * 1 : 0) + (args.data['Honap_2'] !== 'null' ? args.data['Honap_2'] * 1 : 0) + (args.data['Honap_3'] !== 'null' ? args.data['Honap_3'] * 1 : 0) + (args.data['Honap_4'] !== 'null' ? args.data['Honap_4'] * 1 : 0) + (args.data['Honap_5'] !== 'null' ? args.data['Honap_5'] * 1 : 0) + (args.data['Honap_6'] !== 'null' ? args.data['Honap_6'] * 1 : 0) + (args.data['Honap_7'] !== 'null' ? args.data['Honap_7'] * 1 : 0) + (args.data['Honap_8'] !== 'null' ? args.data['Honap_8'] * 1 : 0) + (args.data['Honap_9'] !== 'null' ? args.data['Honap_9'] * 1 : 0) + (args.data['Honap_10'] !== 'null' ? args.data['Honap_10'] * 1 : 0) + (args.data['Honap_11'] !== 'null' ? args.data['Honap_11'] * 1 : 0) + (args.data['Honap_12'] !== 'null' ? args.data['Honap_12'] * 1 : 0);\r\n //set the datasource value\r\n element.html(args.data['osszesFizetett']); //set the element values\r\n }\r\n }\r\n\r\n // szerkesztés letiltása cellánként\r\n function cellEdit(args) {\r\n if (\r\n (args.rowData.Honap_1_kedvezmenyes_Text === 'B' || args.rowData.Honap_1_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_1' || args.columnName === 'Honap_1_kozlemeny' || args.columnName === 'Honap_1_FizDatum') ||\r\n (args.rowData.Honap_2_kedvezmenyes_Text === 'B' || args.rowData.Honap_2_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_2' || args.columnName === 'Honap_2_kozlemeny' || args.columnName === 'Honap_2_FizDatum') ||\r\n (args.rowData.Honap_3_kedvezmenyes_Text === 'B' || args.rowData.Honap_3_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_3' || args.columnName === 'Honap_3_kozlemeny' || args.columnName === 'Honap_3_FizDatum') ||\r\n (args.rowData.Honap_4_kedvezmenyes_Text === 'B' || args.rowData.Honap_4_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_4' || args.columnName === 'Honap_4_kozlemeny' || args.columnName === 'Honap_4_FizDatum') ||\r\n (args.rowData.Honap_5_kedvezmenyes_Text === 'B' || args.rowData.Honap_5_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_5' || args.columnName === 'Honap_5_kozlemeny' || args.columnName === 'Honap_5_FizDatum') ||\r\n (args.rowData.Honap_6_kedvezmenyes_Text === 'B' || args.rowData.Honap_6_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_6' || args.columnName === 'Honap_6_kozlemeny' || args.columnName === 'Honap_6_FizDatum') ||\r\n (args.rowData.Honap_7_kedvezmenyes_Text === 'B' || args.rowData.Honap_7_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_7' || args.columnName === 'Honap_7_kozlemeny' || args.columnName === 'Honap_7_FizDatum') ||\r\n (args.rowData.Honap_8_kedvezmenyes_Text === 'B' || args.rowData.Honap_8_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_8' || args.columnName === 'Honap_8_kozlemeny' || args.columnName === 'Honap_8_FizDatum') ||\r\n (args.rowData.Honap_9_kedvezmenyes_Text === 'B' || args.rowData.Honap_9_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_9' || args.columnName === 'Honap_9_kozlemeny' || args.columnName === 'Honap_9_FizDatum') ||\r\n (args.rowData.Honap_10_kedvezmenyes_Text === 'B' || args.rowData.Honap_10_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_10' || args.columnName === 'Honap_10_kozlemeny' || args.columnName === 'Honap_10_FizDatum') ||\r\n (args.rowData.Honap_11_kedvezmenyes_Text === 'B' || args.rowData.Honap_11_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_11' || args.columnName === 'Honap_11_kozlemeny' || args.columnName === 'Honap_11_FizDatum') ||\r\n (args.rowData.Honap_12_kedvezmenyes_Text === 'B' || args.rowData.Honap_12_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_12' || args.columnName === 'Honap_12_kozlemeny' || args.columnName === 'Honap_12_FizDatum') ||\r\n\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n // Kérésre nem szerkeszthető, ha nem nulla vagy null van benne\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1 !== 0 && args.rowData.Honap_1 !== null) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2 !== 0 && args.rowData.Honap_2 !== null) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3 !== 0 && args.rowData.Honap_3 !== null) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4 !== 0 && args.rowData.Honap_4 !== null) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5 !== 0 && args.rowData.Honap_5 !== null) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6 !== 0 && args.rowData.Honap_6 !== null) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7 !== 0 && args.rowData.Honap_7 !== null) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8 !== 0 && args.rowData.Honap_8 !== null) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9 !== 0 && args.rowData.Honap_9 !== null) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10 !== 0 && args.rowData.Honap_10 !== null) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11 !== 0 && args.rowData.Honap_11 !== null) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12 !== 0 && args.rowData.Honap_12 !== null) ||\r\n\r\n args.columnName === 'Honap_1' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n args.columnName === 'Honap_1_kozlemeny' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_kozlemeny' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_kozlemeny' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_kozlemeny' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_kozlemeny' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_kozlemeny' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_kozlemeny' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_kozlemeny' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_kozlemeny' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_kozlemeny' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_kozlemeny' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_kozlemeny' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n args.columnName === 'Honap_1_FizDatum' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_FizDatum' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_FizDatum' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_FizDatum' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_FizDatum' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_FizDatum' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_FizDatum' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_FizDatum' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_FizDatum' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_FizDatum' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_FizDatum' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_FizDatum' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false)\r\n ) {\r\n args.cancel = true;\r\n } else {\r\n $timeout(function () {\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n vm.AthleteUnderEditing = args.rowData.Versenyzo_Nev;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function saveWithoutNumbers() {\r\n return save(false);\r\n }\r\n\r\n function saveWithNumbers() {\r\n return save(true);\r\n }\r\n\r\n function save(withNumbers) {\r\n if (vm.MODTAGDBEALL || vm.UJTAGDNYILV) {\r\n // batchSave();\r\n return dataservice.updateTagdijfizetesek(vm.modifiedRows, withNumbers).then(function () {\r\n log.successMsg('Saved');\r\n vm.modifiedRows = [];\r\n return true;\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function batchSave() {\r\n grid.editModule.batchSave();\r\n }\r\n\r\n function goToDailyPayments() {\r\n paramHelper.setParams([{'dailySportServiceFeePayments.sectionId': vm.sectionId}, {'dailySportServiceFeePayments.coachId': vm.coachId}, {'dailySportServiceFeePayments.year': vm.year}]);\r\n saveWithoutNumbers().then(function () {\r\n $state.go('business.dailySportServiceFeePayments');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.value != null && args.value !== vm.rowUnderEditing[args.columnName]) {\r\n $timeout(function () {\r\n $scope.$apply();\r\n vm.modifiedRows.push(vm.rowUnderEditing);\r\n }, 500);\r\n }\r\n vm.AthleteUnderEditing = '';\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanList')\r\n .controller('AnnualSeasonPlanListController', AnnualSeasonPlanListController);\r\n\r\n function AnnualSeasonPlanListController($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanList');\r\n vm.columns = [];\r\n //Évek (2010-től az aktuális évig)\r\n vm.yearList = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.yearList.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n\r\n vm.yearDataBound = yearDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToNewCoach = goToNewCoach;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n\r\n {\r\n field: 'Link',\r\n width: 70,\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn6',\r\n },\r\n {\r\n field: 'EgyeniTerv',\r\n headerText: gettextCatalog.getString('Egyeni'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn1',\r\n width: 85\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 115\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn2',\r\n width: 115\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn3',\r\n width: 125\r\n },\r\n {\r\n field: 'EdzoLezarta',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn4',\r\n width: 80\r\n },\r\n {\r\n field: 'SzakosztalyvezetoJovahagyta',\r\n headerText: gettextCatalog.getString('LeaderAccepted'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn5',\r\n width: 195\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: false,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id', 'AnnualSeasonPlanList.Year']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('MEGTKOROSZT'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.MEGTKOROSZT = results[5];\r\n vm.MEGTFELH = results[6];\r\n vm.MEGTEVVERST = results[7];\r\n vm.selectedYear = results[0]['AnnualSeasonPlanList.Year'];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (!vm.selectedYear) {\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n }\r\n\r\n dataservice.annualSeasonPlanList(vm.selectedYear.split('/')[0])\r\n .then(function (args) {\r\n grid.dataSource = args.itemsList;\r\n });\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.selectedYear = vm.yearList[0].value;\r\n } else {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n paramHelper.setParams([{'AnnualSeasonPlanList.Year': vm.selectedYear}]);\r\n\r\n dataservice.annualSeasonPlanList(vm.selectedYear.split('/')[0])\r\n .then(function (args) {\r\n grid.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function goToNewAgeGroup(args) {\r\n if (!vm.MEGTKOROSZT) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'ageGroups.ageGroup': args\r\n }]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToNewCoach(args) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'newUser.userId': args\r\n }]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToAnnualSeasonPlan(args) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': args,\r\n 'AnnualSeasonPlanList.Year': vm.selectedYear\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular.module('app', [\r\n 'angular-img-cropper',\r\n 'app.administration',\r\n 'app.administration.assetManagement',\r\n 'app.administration.annualSeasonPlan',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage1',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage2',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage3',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage4',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage5',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanReportPage6',\r\n 'app.administration.annualSeasonPlan.annualSeasonPlanList',\r\n 'app.administration.awayBudgetPlan',\r\n 'app.administration.awayBudgetPlan.awayBudgetPlanCreate',\r\n 'app.administration.awayBudgetPlan.awayBudgetPlanList',\r\n 'app.administration.exercises',\r\n 'app.administration.exercises.exercisesList',\r\n 'app.administration.exercises.exercisesCreate',\r\n 'app.administration.trainingPlan',\r\n 'app.administration.trainingPlan.trainingPlanTemplate',\r\n 'app.administration.trainingPlan.trainingPlanCreate',\r\n 'app.administration.trainingPlan.trainingPlanList',\r\n 'app.administration.competitiveMonthlyPlan',\r\n 'app.administration.resultReportAthletes',\r\n 'app.administration.resultReportTeam',\r\n 'app.administration.monthlyAttendance',\r\n 'app.administration.monthlyAttendance.monthlyAttendanceList',\r\n 'app.administration.monthlyAttendance.monthlyAttendanceReport',\r\n 'app.administration.monthlyTrainingPlan',\r\n 'app.administration.monthlyTrainingPlan.monthlyTrainingPlanList',\r\n 'app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport',\r\n 'app.administration.quickCompetitionResults',\r\n 'app.administration.dailyAttendance',\r\n 'app.administration.trainingDiary',\r\n 'app.administration.sportSpecificTest',\r\n 'app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList',\r\n 'app.administration.sportSpecificTest.newSportSpecificTestList',\r\n 'app.administration.sportSpecificTest.newSportSpecificTest',\r\n 'app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList',\r\n 'app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport',\r\n 'app.administration.weeklyTrainingPlan',\r\n 'app.administration.weeklyTrainingPlan.weeklyTrainingPlanList',\r\n 'app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport',\r\n 'app.athleteDashboard',\r\n 'app.athletes',\r\n 'app.athletes.ageGroups',\r\n 'app.athletes.ageGroups.addAgeGroup',\r\n 'app.athletes.ageGroups.ageGroupMembersList',\r\n 'app.athletes.ageGroups.ageGroupsList',\r\n 'app.athletes.ageGroups.modifyAgeGroup',\r\n 'app.athletes.athletesManagement',\r\n 'app.athletes.athletesManagement.athleteNew',\r\n 'app.athletes.athletesManagement.athleteModify',\r\n 'app.athletes.athletesManagement.athleteModify.dataSheet',\r\n 'app.athletes.athletesManagement.athleteModify.athleteFees',\r\n 'app.athletes.athletesManagement.athleteModify.raceResultsReport',\r\n 'app.athletes.athletesManagement.athleteModify.anthropometry',\r\n 'app.athletes.athletesManagement.athleteModify.athleteLog',\r\n 'app.athletes.athletesManagement.athletesList',\r\n 'app.athletes.athletesManagement.athleteModify.competitionResultsChart',\r\n 'app.athletes.athletesManagement.athleteModify.athletesAssets',\r\n 'app.athletes.teams',\r\n 'app.athletes.teams.addTeam',\r\n 'app.athletes.teams.addTeamMember',\r\n 'app.athletes.teams.modifyTeam',\r\n 'app.athletes.teams.teamList',\r\n 'app.athletes.teams.teamMembersList',\r\n 'app.athletes.sections',\r\n 'app.business',\r\n 'app.business.annualEducationalFeeByAthletes',\r\n 'app.business.annualEducationalFeeByCoach',\r\n 'app.business.annualEducationalFeeByOneSection',\r\n 'app.business.annualEducationalFeeBySection',\r\n 'app.business.monthlyAttendanceArrears',\r\n 'app.business.annualSportServiceFeeByAthletes',\r\n 'app.business.annualSportServiceFeeByCoach',\r\n 'app.business.annualSportServiceFeeByOneSection',\r\n 'app.business.annualSportServiceFeeBySection',\r\n 'app.business.checkPayment',\r\n 'app.business.csvPayment',\r\n 'app.business.checkPrintingExport',\r\n 'app.business.dailyEducationalFeePayments',\r\n 'app.business.dailySportServiceFeePayments',\r\n 'app.business.educationalFeeRegister',\r\n 'app.business.modifyFees',\r\n 'app.business.sportServiceFeeArrears',\r\n 'app.business.sportServiceFeeRegister',\r\n 'app.business.dailyEducationalFeesPerCoach',\r\n 'app.business.dailySportServiceFeesPerCoach',\r\n 'app.athletes.athletesManagement.athleteModify.health',\r\n 'app.athletes.athletesManagement.athleteModify.health.healthList',\r\n 'app.athletes.athletesManagement.athleteModify.health.newHealthEvent',\r\n 'app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent',\r\n 'app.reports.annualPresenceReports',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsByTrainers',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsBySections',\r\n 'app.reports.annualPresenceReports.annualPresenceReportsBySportSchool',\r\n 'app.reports.annualPresenceReports',\r\n 'app.athletes.athletesManagement.athleteModify.athletesBodyStat',\r\n 'app.reports.awayBudgetPlanSummary',\r\n 'app.reports.assetInventoryReports',\r\n 'app.reports.assetInventoryReportByUsers',\r\n 'app.reports.assetInventoryReportByType',\r\n 'app.reports.weeklyTravelReport',\r\n 'app.reports.weeklyTrainingReport',\r\n 'app.core',\r\n 'app.dashboard',\r\n 'app.layout',\r\n 'app.sikerMobile',\r\n 'app.login',\r\n 'app.messageCenter',\r\n 'app.paint',\r\n 'app.parentDashboard',\r\n 'app.parentMonthlyAttendance',\r\n 'app.athletes.athletesManagement.athleteModify.files',\r\n 'app.athletes.athletesManagement.athleteModify.psychology',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.pieronTest',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.summary',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation',\r\n 'app.athletes.athletesManagement.athleteModify.psychology.wartegg',\r\n 'app.reports',\r\n 'app.reports.anthropometryTestPrinting',\r\n 'app.reports.athleteTransfer',\r\n 'app.reports.duplicatedAthletes',\r\n 'app.reports.managementReports',\r\n 'app.reports.managementReports.annualCompetitivePlans',\r\n 'app.reports.managementReports.monthlyAttendanceReports',\r\n 'app.reports.managementReports.monthlyCompetitivePlans',\r\n 'app.reports.managementReports.weeklyTrainingPlans',\r\n 'app.reports.managementReports.trainingDiaryReports',\r\n 'app.reports.monthlyCompetitivePlans',\r\n 'app.reports.playUpAndDown',\r\n 'app.reports.raceResultsReport',\r\n 'app.reports.statisticalReports',\r\n 'app.reports.trainingAttendanceReport',\r\n 'app.reports.sportSpecificReport',\r\n 'app.reports.expiringDocuments',\r\n 'app.reports.absenceReport',\r\n 'app.reports.statisticalReports.activeAthletesByCoach',\r\n 'app.reports.statisticalReports.activeAthletesBySection',\r\n 'app.reports.statisticalReports.joinedAthletesBySection',\r\n 'app.reports.statisticalReports.leavingAthletesBySection',\r\n 'app.reports.statisticalReports.listAthletes',\r\n 'app.reports.statisticalReports.leavingAthletesByCoach',\r\n 'app.reports.statisticalReports.joinedAthletesByCoach',\r\n 'app.reports.statisticalReports.activeAthletesByAge',\r\n 'app.reports.statisticalReports.activeAthletesByMonth',\r\n 'app.reports.statisticalReports.athletesByBirthYear',\r\n 'app.reports.statisticalReports.athletesByYear',\r\n 'app.reports.statisticalReports.activeAthletesInSectionByMonth',\r\n 'app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance',\r\n 'app.athletes.athletesManagement.athleteModify.trainingVisitReport',\r\n 'app.reports.healthReport',\r\n 'app.schedule',\r\n 'app.search',\r\n 'app.search.athletes',\r\n 'app.search.athletes.simple',\r\n 'app.search.athletes.memberList',\r\n 'app.search.user',\r\n 'app.search.user.searchuser',\r\n 'app.settings',\r\n 'app.settings.ageGroupChange',\r\n 'app.settings.athleteTransfer',\r\n 'app.settings.createSportSpecificTest',\r\n 'app.settings.editSection',\r\n 'app.settings.editHealthType',\r\n 'app.settings.schoolManagement',\r\n 'app.settings.schoolManagement.addSchool',\r\n 'app.settings.schoolManagement.editSchool',\r\n 'app.settings.schoolManagement.schoolList',\r\n 'app.settings.systemSettings',\r\n 'app.settings.userGroupsManagement',\r\n 'app.settings.userManagement',\r\n 'app.settings.userManagement.newUser',\r\n 'app.settings.userManagement.modifyUser',\r\n 'app.settings.userManagement.userSettings',\r\n 'app.settings.userManagement.userList',\r\n 'app.settings.userRights',\r\n 'app.settings.usersBelongingToAthletes',\r\n 'ejangular',\r\n 'gettext',\r\n 'LocalStorageModule',\r\n 'app.other',\r\n 'app.other.files',\r\n 'ngAnimate'\r\n ]);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.assetManagement', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan.awayBudgetPlanCreate', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.awayBudgetPlan.awayBudgetPlanList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.dailyAttendance', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises.exercisesCreate', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.exercises.exercisesList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance.monthlyAttendanceList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyAttendance.monthlyAttendanceReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.quickCompetitionResults', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.resultReportAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.resultReportTeam', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest.newSportSpecificTest', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest.newSportSpecificTestList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.sportSpecificTest', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingDiary', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanCreate', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.trainingPlan.trainingPlanTemplate', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList', [\r\n ]);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athleteDashboard', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.addAgeGroup', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.ageGroupMembersList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.ageGroupsList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.ageGroups.modifyAgeGroup', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.anthropometry', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athleteFees', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athleteLog', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesAssets', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesBodyStat', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.competitionResultsChart', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.dataSheet', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.files', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.healthList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.summary', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.psychology.wartegg', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.raceResultsReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteModify.trainingVisitReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athleteNew', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement.athletesList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.athletesManagement', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.sections', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.addTeam', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.addTeamMember', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.modifyTeam', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.teamList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams.teamMembersList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.athletes.teams', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.exception', ['blocks.logger']);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.logger', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('blocks.router', [\r\n 'ui.router',\r\n 'blocks.logger'\r\n ]);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeByOneSection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualEducationalFeeBySection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeByOneSection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.annualSportServiceFeeBySection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.checkPayment', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.checkPrintingExport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.csvPayment', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailyEducationalFeePayments', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailyEducationalFeesPerCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailySportServiceFeePayments', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.dailySportServiceFeesPerCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.educationalFeeRegister', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.modifyFees', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.monthlyAttendanceArrears', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.sportServiceFeeArrears', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.business.sportServiceFeeRegister', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core', [\r\n 'blocks.exception', 'blocks.logger', 'blocks.router',\r\n 'ui.router', 'ngCookies', 'ui.router.state.events'\r\n ]);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.dashboard', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.layout', ['app.core']);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.login', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.messageCenter', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.other.files', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.other', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.paint', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.parentDashboard', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.parentMonthlyAttendance', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.absenceReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsBySections', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.anthropometryTestPrinting', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReportByType', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReportByUsers', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.assetInventoryReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.athleteTransfer', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.awayBudgetPlanSummary', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.duplicatedAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.expiringDocuments', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.healthReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.annualCompetitivePlans', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.monthlyAttendanceReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.monthlyCompetitivePlans', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.trainingDiaryReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.managementReports.weeklyTrainingPlans', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.monthlyCompetitivePlans', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.playUpAndDown', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.raceResultsReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.sportSpecificReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByAge', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesByMonth', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesBySection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.activeAthletesInSectionByMonth', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesByBirthYear', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesByYear', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.joinedAthletesByCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.joinedAthletesBySection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.leavingAthletesByCoach', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.leavingAthletesBySection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports.listAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.statisticalReports', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.trainingAttendanceReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.weeklyTrainingReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.reports.weeklyTravelReport', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.schedule', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes.memberList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.athletes.simple', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.user.searchuser', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.search.user', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.ageGroupChange', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.athleteTransfer', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.createSportSpecificTest', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.editHealthType', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.editSection', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.addSchool', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.editSchool', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement.schoolList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.schoolManagement', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.systemSettings', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userGroupsManagement', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.modifyUser', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.newUser', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.userList', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userManagement.userSettings', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.userRights', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.settings.usersBelongingToAthletes', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular.module('app.sikerMobile', []);\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration',\r\n config: {\r\n title: 'Administration',\r\n url: '/administration',\r\n templateUrl: 'app/administration/administration.html',\r\n settings: {\r\n navId: 2,\r\n level: 1,\r\n order: 2,\r\n parentId: 0,\r\n content: 'Administration',\r\n faIcon: 'fa-tasks',\r\n activatorPermission: [\r\n '\"MEGTEVVERST\"',\r\n '\"ESZKNYILVMEGT\"',\r\n '\"MEGTIDEGENKOLTSTERV\"',\r\n '\"MEGTHAVIVERST\"',\r\n '\"MEGTHAVIJEL\"',\r\n '\"MEGTHAVIEDZTERV\"',\r\n '\"UJEERJEL\"',\r\n '\"MEGTEERJEL\"',\r\n '\"MEGTCSERJEL\"',\r\n '\"MEGTSPFELM\"',\r\n '\"MEGTKPFELM\"',\r\n '\"MEGTEDZESSABLON\"',\r\n '\"MEGTHETIEDZTERV\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan',\r\n config: {\r\n url: '/annualSeasonPlan',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanListController.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanList')\r\n .controller('AnnualSeasonPlanListController', AnnualSeasonPlanListController);\r\n\r\n function AnnualSeasonPlanListController($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanList');\r\n vm.columns = [];\r\n //Évek (2010-től az aktuális évig)\r\n vm.yearList = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.yearList.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n\r\n vm.yearDataBound = yearDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToNewCoach = goToNewCoach;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n\r\n {\r\n field: 'Link',\r\n width: 70,\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn6',\r\n },\r\n {\r\n field: 'EgyeniTerv',\r\n headerText: gettextCatalog.getString('Egyeni'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn1',\r\n width: 85\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 115\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn2',\r\n width: 115\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#ansepllitemplateDataColumn3',\r\n width: 125\r\n },\r\n {\r\n field: 'EdzoLezarta',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn4',\r\n width: 80\r\n },\r\n {\r\n field: 'SzakosztalyvezetoJovahagyta',\r\n headerText: gettextCatalog.getString('LeaderAccepted'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n editType: ej.Grid.EditingType.Boolean,\r\n template: '#ansepllitemplateDataColumn5',\r\n width: 195\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: false,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id', 'AnnualSeasonPlanList.Year']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('MEGTKOROSZT'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.MEGTKOROSZT = results[5];\r\n vm.MEGTFELH = results[6];\r\n vm.MEGTEVVERST = results[7];\r\n vm.selectedYear = results[0]['AnnualSeasonPlanList.Year'];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (!vm.selectedYear) {\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n }\r\n\r\n dataservice.annualSeasonPlanList(vm.selectedYear.split('/')[0])\r\n .then(function (args) {\r\n grid.dataSource = args.itemsList;\r\n });\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.selectedYear = vm.yearList[0].value;\r\n } else {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n paramHelper.setParams([{'AnnualSeasonPlanList.Year': vm.selectedYear}]);\r\n\r\n dataservice.annualSeasonPlanList(vm.selectedYear.split('/')[0])\r\n .then(function (args) {\r\n grid.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function goToNewAgeGroup(args) {\r\n if (!vm.MEGTKOROSZT) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'ageGroups.ageGroup': args\r\n }]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToNewCoach(args) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'newUser.userId': args\r\n }]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToAnnualSeasonPlan(args) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': args,\r\n 'AnnualSeasonPlanList.Year': vm.selectedYear\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanList',\r\n config: {\r\n url: '/annualSeasonPlanList',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.html',\r\n controller: 'AnnualSeasonPlanListController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlanList',\r\n settings: {\r\n navId: 284,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Éves felkészítési és versenyeztetési terv lista',\r\n orderTitle_en: 'Annual Preparation and Competition Plan List',\r\n parentId: 4,\r\n content: 'AnnualSeasonPlanList',\r\n activatorPermission: ['\"MEGTEVVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage1Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1')\r\n .controller('AnnualSeasonPlanReportPage1Controller', AnnualSeasonPlanReportPage1Controller);\r\n\r\n function AnnualSeasonPlanReportPage1Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlan');\r\n vm.columns = [];\r\n vm.egyeni = false;\r\n vm.maKorabbiEditable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.loadedById = false;\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n vm.selectedCoach = -1;\r\n vm.coachContact = '';\r\n vm.coachEmail = '';\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = -1;\r\n //Korcsoportok listája, kiválasztott korcsoport\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = -1;\r\n // coach dropdown\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n // section dropdown\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n // ageGroup dropdown\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // year dropdown\r\n vm.yearSelect = yearSelect;\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n vm.noAnnualSeasonPlan = false;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n\r\n vm.data = [];\r\n vm.autoSelect = false;\r\n\r\n // functions\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.annualSeasonPlanReportSelect = annualSeasonPlanReportSelect;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.refreshData = refreshData;\r\n vm.goToNextPage = goToNextPage;\r\n vm.annualSeasonPlanReportCreate = annualSeasonPlanReportCreate;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([],\r\n [\r\n 'AnnualSeasonPlanReport.Id',\r\n 'AnnualSeasonPlanReport.sectionId',\r\n 'AnnualSeasonPlanReport.ageGroupId',\r\n 'AnnualSeasonPlanReport.coachId',\r\n 'AnnualSeasonPlanReport.year'\r\n ]),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n console.log('results', results[0]);\r\n vm.selectedSection = results[0]['AnnualSeasonPlanReport.sectionId'];\r\n vm.selectedAgeGroup = results[0]['AnnualSeasonPlanReport.ageGroupId'];\r\n vm.selectedCoach = results[0]['AnnualSeasonPlanReport.coachId'];\r\n if (results[0]['AnnualSeasonPlanReport.year'] != null) {\r\n vm.selectedYear = results[0]['AnnualSeasonPlanReport.year'];\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n dataservice.annualSeasonPlanReportSelectById(results[0]['AnnualSeasonPlanReport.Id'])\r\n .then(function (data) {\r\n $timeout(function () {\r\n vm.maKorabbiEditable = true;\r\n vm.jumpedPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n vm.defaultJumpPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n $scope.$apply();\r\n }, 100);\r\n\r\n if (data.EdzoLezarta) {\r\n vm.hasSignedAnnualSeasonPlan = true;\r\n } else if (data.SzakosztalyvezetoJovahagyta) {\r\n vm.hasAcceptedAnnualSeasonPlan = true;\r\n } else {\r\n vm.hasAnnualSeasonPlan = true;\r\n }\r\n vm.selectedCoach = data.IdEdzo;\r\n vm.selectedSection = data.IdSzakosztaly;\r\n vm.selectedAgeGroup = data.IdKorosztaly;\r\n vm.loadedById = true;\r\n $timeout(function () {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', new Date(data.ErvenyessegTol).getFullYear() + ' / ' + new Date(data.ErvenyessegIg).getFullYear());\r\n getCoaches();\r\n vm.autoSelect = true;\r\n viewAnnualSeasonPlanReport(data);\r\n annualSeasonPlanReportSelect();\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n }, 333);\r\n });\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n getSections();\r\n dataservice.getTrainerEmailContact(vm.selectedCoach)\r\n .then(function (data) {\r\n vm.coachContact = data.retValue.contact;\r\n vm.coachEmail = data.retValue.email;\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.selectedCoach, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n dataservice.sectionIndividualOrTeam(vm.selectedSection)\r\n .then(function (data) {\r\n vm.egyeni = data.retValue;\r\n });\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear.split('/')[0])\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n var vmi = angular.element('#maKorosztaly').data('ejDropDownList');\r\n if (vm.autoSelect && vmi.selectedIndexValue >= 0) {\r\n annualSeasonPlanReportSelect();\r\n }\r\n }\r\n }\r\n\r\n // Run after selection\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n if (vm.loadedById === false) {\r\n getAgeGroups();\r\n } else {\r\n vm.loadedById = false;\r\n }\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '1 ') {\r\n return;\r\n }\r\n\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function annualSeasonPlanReportSelect() {\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.coachContact = '';\r\n vm.coachEmail = '';\r\n vm.data = [];\r\n grid.dataSource = vm.data;\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.coachId': vm.selectedCoach}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.sectionId': vm.selectedSection}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.ageGroupId': vm.selectedAgeGroup}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.year': vm.selectedYear}]);\r\n\r\n dataservice.getTrainerEmailContact(vm.selectedCoach)\r\n .then(function (data) {\r\n if (data.retValue.contact) {\r\n vm.coachContact = data.retValue.contact;\r\n }\r\n if (data.retValue.email) {\r\n vm.coachEmail = data.retValue.email;\r\n }\r\n });\r\n vm.data = [];\r\n dataservice.annualSeasonPlanReportSelect(vm.selectedSection, vm.selectedAgeGroup, vm.selectedCoach, vm.selectedYear.split('/')[0], vm.egyeni)\r\n .then(function (args) {\r\n showMessages(args);\r\n $timeout(function () {\r\n vm.maKorabbiEditable = true;\r\n vm.jumpedPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n vm.defaultJumpPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n function showMessages(args) {\r\n if (args.Id === 0) {\r\n vm.noAnnualSeasonPlan = true;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n } else {\r\n vm.noAnnualSeasonPlan = false;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n if (args.EdzoLezarta) {\r\n vm.hasSignedAnnualSeasonPlan = true;\r\n } else if (args.SzakosztalyvezetoJovahagyta) {\r\n vm.hasAcceptedAnnualSeasonPlan = true;\r\n } else {\r\n vm.hasAnnualSeasonPlan = true;\r\n }\r\n viewAnnualSeasonPlanReport(args);\r\n }\r\n }\r\n\r\n function viewAnnualSeasonPlanReport(args) {\r\n vm.annualSeasonPlanReportId = args.Id;\r\n vm.coachContact = args.EdzoMobil;\r\n vm.coachEmail = args.EdzoEmail;\r\n if (vm.annualSeasonPlanReportId) {\r\n dataservice.annualSeasonPlanReportMembersDataByIdSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('AtlethesName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#anseplrepa1templateDataColumn1'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SITagsagKezdete',\r\n headerText: gettextCatalog.getString('StartMemberDate'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'IskolaNeveCime',\r\n headerText: gettextCatalog.getString('SchoolNameAddress'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'TestneveloTanarNeve',\r\n headerText: gettextCatalog.getString('SportingTeacherName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Lakcim',\r\n headerText: gettextCatalog.getString('Address'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function refreshData() {\r\n if (vm.annualSeasonPlanReportId) {\r\n dataservice.annualSeasonPlanDeleteMembers(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n });\r\n });\r\n } else {\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n });\r\n }\r\n }\r\n\r\n function goToNextPage() {\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n }, 100);\r\n }\r\n\r\n function annualSeasonPlanReportCreate() {\r\n vm.fej = {};\r\n vm.fej.DSIVezetoJovahagyta = false;\r\n vm.fej.EdzoEmail = vm.coachEmail;\r\n vm.fej.EdzoLezarta = false;\r\n vm.fej.EdzoMobil = vm.coachContact;\r\n vm.fej.EdzoNeve = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.fej.EgyebCelkituzesek = '';\r\n vm.fej.Egyeni = vm.egyeni;\r\n vm.fej.ErvenyessegIg = moment({y: vm.selectedYear.split('/')[1].trim(), M: 6, d: 31}).format('YYYY-MM-DD');\r\n vm.fej.ErvenyessegTol = moment({y: vm.selectedYear.split('/')[0].trim(), M: 7, d: 1}).format('YYYY-MM-DD');\r\n vm.fej.IdEdzo = vm.selectedCoach;\r\n vm.fej.IdKorosztaly = vm.selectedAgeGroup;\r\n vm.fej.IdSzakosztaly = vm.selectedSection;\r\n vm.fej.KeszitesDatum = moment().format('YYYY-MM-DD');\r\n vm.fej.KorosztalyNeve = angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.fej.SzakosztalyNeve = angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n dataservice.saveAnnualSeasonPlanHead(vm.fej)\r\n .then(function (args) {\r\n vm.annualSeasonPlanReportId = args.retValue;\r\n vm.fej.Id = args.retValue;\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.fej.Id)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('AnnualSeasonPlanCreated'));\r\n });\r\n showMessages(vm.fej);\r\n });\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanList');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage1',\r\n config: {\r\n url: '/annualSeasonPlanReportPage1',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.html',\r\n controller: 'AnnualSeasonPlanReportPage1Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan',\r\n settings: {\r\n navId: 252,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Éves felkészítési és versenyeztetési terv',\r\n orderTitle_en: 'Annual Preparation and Competition Plan',\r\n parentId: 2,\r\n content: 'AnnualSeasonPlan',\r\n activatorPermission: ['\"MEGTEVVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage2Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2')\r\n .controller('AnnualSeasonPlanReportPage2Controller', AnnualSeasonPlanReportPage2Controller);\r\n\r\n function AnnualSeasonPlanReportPage2Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.refreshData = refreshData;\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast');\r\n vm.defaultJumpPage = '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n viewAnnualSeasonPlanReport(data);\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '2 ') {\r\n return;\r\n }\r\n\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function viewAnnualSeasonPlanReport() {\r\n dataservice.annualSeasonPlanReportMembersPastSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n if (vm.editable && data.itemsList.length === 0) {\r\n refreshData();\r\n }\r\n });\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('AtlethesName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#anseplrepa2templateDataColumn1'\r\n },\r\n {\r\n field: 'VersSportKezd',\r\n headerText: gettextCatalog.getString('BeginningOfCompetitiveSports'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EddigiEdzoi',\r\n headerText: gettextCatalog.getString('HisCoachesUntilNow'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EddigiSportEgyesuletei',\r\n headerText: gettextCatalog.getString('HisTeamsUntilNow'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function refreshData() {\r\n dataservice.annualSeasonPlanReportMembersPastDelete(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n dataservice.annualSeasonPlanReportMembersPastRefresh(vm.annualSeasonPlanReportId,\r\n vm.head.IdSzakosztaly, vm.head.IdKorosztaly, vm.head.IdEdzo)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n });\r\n });\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }, 100);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage2',\r\n config: {\r\n url: '/annualSeasonPlanReportPage2',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.html',\r\n controller: 'AnnualSeasonPlanReportPage2Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage3Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3')\r\n .controller('AnnualSeasonPlanReportPage3Controller', AnnualSeasonPlanReportPage3Controller);\r\n\r\n function AnnualSeasonPlanReportPage3Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.selectedRowRecords;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.dataPopup = [];\r\n\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.newAthletesNewRow = newAthletesNewRow;\r\n vm.oldAthletesNewRow = oldAthletesNewRow;\r\n vm.search = search;\r\n vm.search2 = search2;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithDelete,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, allowDeleting: true, showDeleteConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: function() {\r\n grid.editSettings.allowDeleting = true;\r\n vm.selectedRowRecords = grid.getSelectedRecords();\r\n document.getElementById('oldNew').removeAttribute('disabled');\r\n },\r\n rowDeselected: function() {\r\n grid.editSettings.allowDeleting = false;\r\n document.getElementById('oldNew').setAttribute('disabled', 'disabled');\r\n },\r\n actionBegin: function() {\r\n grid.editSettings.allowDeleting = false;\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridSearch = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridSearch.appendTo('#GridPopup');\r\n gridSearch.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridSearch);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '3 - ' + gettextCatalog.getString('OutstandingResults');\r\n vm.defaultJumpPage = '3 - ' + gettextCatalog.getString('OutstandingResults');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n\r\n initGrid();\r\n dataservice.annualSeasonPlanReportBestResultsList(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n grid.editSettings.allowEditing = vm.editable;\r\n grid.editSettings.allowDeleting = vm.editable;\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function SaveResults() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n }\r\n\r\n if (vm.data.length === 0) {\r\n vm.data.push({IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId});\r\n }\r\n dataservice.saveAnnualSeasonPlanBestResults(vm.data).then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '3 ') {\r\n return;\r\n }\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('VersenyzoNeve'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable,\r\n visible: vm.egyeni\r\n },\r\n {\r\n field: 'KiemelkSportolo',\r\n headerText: gettextCatalog.getString('KiemelkSportolo'),\r\n textAlign: 'center',\r\n width: 200,\r\n allowEditing: vm.editable,\r\n visible: !vm.egyeni\r\n },\r\n {\r\n field: 'EsemenyNeve',\r\n headerText: gettextCatalog.getString('EsemenyNeve'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyIdopontja',\r\n headerText: gettextCatalog.getString('EsemenyIdopontja'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyHelye',\r\n headerText: gettextCatalog.getString('EsemenyHelye'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'ElertHelyezes',\r\n headerText: gettextCatalog.getString('ElertHelyezes'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n }\r\n ];\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Helyszin'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'CsapatSportolo',\r\n headerText: gettextCatalog.getString('CsapatSportolo'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n }, 100);\r\n }\r\n\r\n function newAthletesNewRow() {\r\n grid.editModule.endEdit();\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: '',\r\n EsemenyHelye: '',\r\n EsemenyIdopontja: '',\r\n EsemenyNeve: '',\r\n KiemelkSportolo: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function oldAthletesNewRow() {\r\n grid.editModule.endEdit();\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: vm.selectedRowRecords[0].Sorszam,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: '',\r\n EsemenyHelye: '',\r\n EsemenyIdopontja: '',\r\n EsemenyNeve: '',\r\n KiemelkSportolo: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function search() {\r\n vm.same = false;\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.annualSeasonPlanReportBestResultsSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridSearch.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function search2() {\r\n vm.same = true;\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.annualSeasonPlanReportBestResultsSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridSearch.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults(same) {\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n if (!same) {\r\n sorszam++;\r\n }\r\n vm.data.push(\r\n {\r\n Id: -1 * vmi.Id,\r\n Sorszam: sorszam,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: vmi.Helyezes,\r\n EsemenyHelye: vmi.Helyszin,\r\n EsemenyIdopontja: (vmi.DatumTol ? vmi.DatumTol : '') + (vm.Datumig ? '-' + vm.DatumIg : ''),\r\n EsemenyNeve: vmi.EsemenyNeve,\r\n VersenyzoNeve: vmi.CsapatSportolo\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage3',\r\n config: {\r\n url: '/annualSeasonPlanReportPage3',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.html',\r\n controller: 'AnnualSeasonPlanReportPage3Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage4Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$state\", \"$window\", \"DOMAIN\", \"$timeout\", \"$scope\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4')\r\n .controller('AnnualSeasonPlanReportPage4Controller', AnnualSeasonPlanReportPage4Controller);\r\n\r\n function AnnualSeasonPlanReportPage4Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $state, $window, DOMAIN, $timeout, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.columnsPopup = [];\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.head = {};\r\n vm.data = {};\r\n vm.dataPopup = [];\r\n vm.selectedRowIndexPopup = 0;\r\n\r\n vm.file = {};\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.numberChange = numberChange;\r\n vm.openTechnicalTrainingObjectives = openTechnicalTrainingObjectives;\r\n vm.removeTechnicalTrainingObjectives = removeTechnicalTrainingObjectives;\r\n vm.openTacticalTrainingObjectives = openTacticalTrainingObjectives;\r\n vm.removeTacticalTrainingObjectives = removeTacticalTrainingObjectives;\r\n vm.openAbilitydevelopmentObjectives = openAbilitydevelopmentObjectives;\r\n vm.removeAbilitydevelopmentObjectives = removeAbilitydevelopmentObjectives;\r\n vm.openEducationalObjectives = openEducationalObjectives;\r\n vm.removeEducationalObjectives = removeEducationalObjectives;\r\n vm.openEfficiencyObjectives = openEfficiencyObjectives;\r\n vm.removeEfficiencyObjectives = removeEfficiencyObjectives;\r\n vm.openSportSpecificTrainingObjectives = openSportSpecificTrainingObjectives;\r\n vm.removeSportSpecificTrainingObjectives = removeSportSpecificTrainingObjectives;\r\n vm.closeEarlierAnnualSeasonPlanWindow = closeEarlierAnnualSeasonPlanWindow;\r\n vm.selectEarlierAnnualSeasonPlan = selectEarlierAnnualSeasonPlan;\r\n\r\n vm.search = search;\r\n vm.closeEarlierAnnualSeasonPlanWindow = closeEarlierAnnualSeasonPlanWindow;\r\n vm.selectEarlierAnnualSeasonPlan = selectEarlierAnnualSeasonPlan;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 125,\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#GridPopup');\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '4 - ' + gettextCatalog.getString('CapitalObjectives');\r\n vm.defaultJumpPage = '4 - ' + gettextCatalog.getString('CapitalObjectives');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']), authenticationService.getRight('EDZO'), authenticationService.getRight('ADMIN'), authenticationService.getRight('SZAKOSZTVEZ'), authenticationService.getRight('TECHIGAZGATO'), authenticationService.getRight('EVVERSTALAIR1'), authenticationService.getRight('EVVERSTALAIR2'), authenticationService.getRight('UJEVVERST'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n initUploadBox();\r\n dataservice.annualSeasonPlanReportObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data;\r\n if (vm.data.IdVersenyeztetesiTervFej == null) {\r\n vm.data.IdVersenyeztetesiTervFej = vm.annualSeasonPlanReportId;\r\n }\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function initUploadBox() {\r\n angular.element('#uploadbox1').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|techKepzes', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox2').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|taktKepzes', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox3').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|kepessegFejl', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox4').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|nevFelad', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox5').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|eredmFelad', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n\r\n angular.element('#uploadbox6').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|spSpec', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '4 ') {\r\n return;\r\n }\r\n\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n }, 100);\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults() {\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push(\r\n {\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: vmi.Helyezes,\r\n EsemenyHelye: vmi.Helyszin,\r\n EsemenyIdopontja: (vmi.DatumTol ? vmi.DatumTol : '') + (vm.Datumig ? '-' + vm.DatumIg : ''),\r\n EsemenyNeve: vmi.EsemenyNeve,\r\n VersenyzoNeve: vmi.CsapatSportolo\r\n });\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function numberChange() {\r\n var tx1 = angular.element('#teSpSpec').data('ejNumericTextbox');\r\n var tx2 = angular.element('#teAddTraining').data('ejNumericTextbox');\r\n vm.data.HetiEdzesOsszesen = Number(tx1.model.value) + Number(tx2.model.value);\r\n }\r\n\r\n function openTechnicalTrainingObjectives() {\r\n if (vm.data.TechKepzesFeladatokFile) {\r\n openLink(vm.data.TechKepzesFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeTechnicalTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.TechKepzesFeladatokFile, host)\r\n .then(function () {\r\n vm.data.TechKepzesFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openTacticalTrainingObjectives() {\r\n if (vm.data.TaktikaiKepzesFeladatokFile) {\r\n openLink(vm.data.TaktikaiKepzesFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeTacticalTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.TaktikaiKepzesFeladatokFile, host)\r\n .then(function () {\r\n vm.data.TaktikaiKepzesFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openAbilitydevelopmentObjectives() {\r\n if (vm.data.KepessegFejlFeladatokFile) {\r\n openLink(vm.data.KepessegFejlFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeAbilitydevelopmentObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.KepessegFejlFeladatokFile, host)\r\n .then(function () {\r\n vm.data.KepessegFejlFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openEducationalObjectives() {\r\n if (vm.data.NevelesiFeladatokFile) {\r\n openLink(vm.data.NevelesiFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeEducationalObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.NevelesiFeladatokFile, host)\r\n .then(function () {\r\n vm.data.NevelesiFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openEfficiencyObjectives() {\r\n if (vm.data.EredmenyessegiFeladatokFile) {\r\n openLink(vm.data.EredmenyessegiFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeEfficiencyObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.EredmenyessegiFeladatokFile, host)\r\n .then(function () {\r\n vm.data.EredmenyessegiFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openSportSpecificTrainingObjectives() {\r\n if (vm.data.SportagSpecFeladatokFile) {\r\n openLink(vm.data.SportagSpecFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeSportSpecificTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.SportagSpecFeladatokFile, host)\r\n .then(function () {\r\n vm.data.SportagSpecFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openLink(url) {\r\n $window.open(url, '_blank');\r\n }\r\n\r\n function search() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getAnnualSeasonPlanListByTrainer(vm.head.IdEdzo, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n grid.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeEarlierAnnualSeasonPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierAnnualSeasonPlan() {\r\n vm.selectedRowIndexPopup = grid.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.annualSeasonPlanReportObjectivesSelect(vmi.Id)\r\n .then(function (data) {\r\n vm.data.HetiEdzesSportag = data.HetiEdzesSportag;\r\n vm.data.HetiEdzesKiegeszito = data.HetiEdzesKiegeszito;\r\n vm.data.HetiEdzesOsszesen = data.HetiEdzesOsszesen;\r\n vm.data.SportagSpecFeladatok = data.SportagSpecFeladatok;\r\n vm.data.SportagSpecFeladatokFile = data.SportagSpecFeladatokFile;\r\n vm.data.KepessegFejlFeladatok = data.KepessegFejlFeladatok;\r\n vm.data.KepessegFejlFeladatokFile = data.KepessegFejlFeladatokFile;\r\n vm.data.NevelesiFeladatok = data.NevelesiFeladatok;\r\n vm.data.NevelesiFeladatokFile = data.NevelesiFeladatokFile;\r\n vm.data.TechKepzesFeladatok = data.TechKepzesFeladatok;\r\n vm.data.TechKepzesFeladatokFile = data.TechKepzesFeladatokFile;\r\n vm.data.TaktikaiKepzesFeladatok = data.TaktikaiKepzesFeladatok;\r\n vm.data.TaktikaiKepzesFeladatokFile = data.TaktikaiKepzesFeladatokFile;\r\n vm.data.EredmenyessegiFeladatok = data.EredmenyessegiFeladatok;\r\n vm.data.EredmenyessegiFeladatokFile = data.EredmenyessegiFeladatokFile;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage4',\r\n config: {\r\n url: '/annualSeasonPlanReportPage4',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.html',\r\n controller: 'AnnualSeasonPlanReportPage4Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage5Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$compile\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5')\r\n .controller('AnnualSeasonPlanReportPage5Controller', AnnualSeasonPlanReportPage5Controller);\r\n\r\n function AnnualSeasonPlanReportPage5Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $compile, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.selectedRowIndex = -1;\r\n vm.selectedRowIndexPopup = -1;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.dataPopup = [];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.newRow = newRow;\r\n vm.removeRow = removeRow;\r\n vm.search = search;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n vm.maskObject = {};\r\n vm.elem = {};\r\n\r\n vm.dateTimeEditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '[1-9][0-9][0-9][0-9].[0-1][0-9].[0-3][0-9].',\r\n value: args.rowData[args.column.field],\r\n readOnly: vm.editable,\r\n focus: function(args) {\r\n args.selectionEnd= args.selectionStart;\r\n }\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: vm.editable, mode: 'Batch', showConfirmDialog: false, allowDeleting: vm.editable, showDeleteConfirmDialog: true},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: vm.editable,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives');\r\n vm.defaultJumpPage = '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')\r\n ])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n vm.editable = !data.EdzoLezarta;\r\n\r\n initGrid();\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n grid.editSettings.allowEditing = vm.editable;\r\n grid.editSettings.allowDeleting = vm.editable;\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '5 ') {\r\n return;\r\n }\r\n console.log('sorszam', sorszam);\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n navigate(sorszam);\r\n });\r\n } else {\r\n navigate(sorszam);\r\n }\r\n }\r\n\r\n function navigate(sorszam) {\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EsemenyIdopont',\r\n headerText: gettextCatalog.getString('DateInText'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyIdopont2',\r\n headerText: gettextCatalog.getString('Datumn'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n width: 125,\r\n edit: vm.dateTimeEditorTemplate,\r\n //validationRules: { date: true },\r\n },\r\n {\r\n field: 'EsemenyNeve',\r\n headerText: gettextCatalog.getString('EsemenyNeve'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyHelyszin',\r\n headerText: gettextCatalog.getString('EsemenyHelye'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('VersenyzoNeve'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EredmenyTerv',\r\n headerText: gettextCatalog.getString('EredmenyTerv'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable,\r\n visible: !vm.egyeni\r\n }\r\n ];\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 125,\r\n }\r\n ];\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n }, 100);\r\n });\r\n }\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n }, 100);\r\n });\r\n }\r\n }\r\n\r\n function newRow() {\r\n grid.editModule.endEdit();\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n EredmenyTerv: '',\r\n EsemenyHelyszin: '',\r\n EsemenyIdopont: '',\r\n EsemenyIdopont2: '',\r\n EsemenyNeve: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function removeRow() {\r\n grid.editModule.endEdit();\r\n vm.selectedRowIndex = grid.selectedRowIndex;\r\n if (vm.selectedRowIndex > -1) {\r\n var vmi = vm.data[vm.selectedRowIndex];\r\n if (vmi.Id > 0) {\r\n dataservice.deleteAnnualSeasonPlanCompetitionPlansAndObjective(vmi.Id)\r\n .then(function () {\r\n deleteRow(vm.selectedRowIndex);\r\n });\r\n } else {\r\n deleteRow(vm.selectedRowIndex);\r\n }\r\n }\r\n }\r\n\r\n function deleteRow(index) {\r\n vm.data.splice(index, 1);\r\n var i = 1;\r\n angular.forEach(vm.data, function (value) {\r\n value.Sorszam = i++;\r\n });\r\n grid.dataSource = vm.data;\r\n grid.refresh();\r\n }\r\n\r\n function search() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getAnnualSeasonPlanListByTrainer(vm.head.IdEdzo, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.deleteAnnualSeasonPlanCompetitionPlansAndObjectives(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n vm.data = [];\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vmi.Id)\r\n .then(function (data) {\r\n angular.forEach(data.itemsList, function (value) {\r\n value.Id = 0;\r\n value.IdVersenyeztetesiTervFej = vm.annualSeasonPlanReportId;\r\n vm.data.push(value);\r\n });\r\n grid.dataSource = vm.data;\r\n log.successMsg('refreshSuccessed');\r\n });\r\n });\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage5',\r\n config: {\r\n url: '/annualSeasonPlanReportPage5',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.html',\r\n controller: 'AnnualSeasonPlanReportPage5Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSeasonPlanReportPage6Controller.$inject = [\"$rootScope\", \"gettextCatalog\", \"dataservice\", \"log\", \"$q\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6')\r\n .controller('AnnualSeasonPlanReportPage6Controller', AnnualSeasonPlanReportPage6Controller);\r\n\r\n function AnnualSeasonPlanReportPage6Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n var printOpened = false;\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.stackedHeaderRows = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.closed = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.rejectAttendanceText = '';\r\n vm.reportParameters = {};\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.months = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n // functions\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.gotoMainPage = gotoMainPage;\r\n vm.savePlan = savePlan;\r\n vm.print = print;\r\n vm.refreshCompetition = refreshCompetition;\r\n vm.closePlan = closePlan;\r\n vm.rejectPlan = rejectPlan;\r\n vm.acceptPlan = acceptPlan;\r\n vm.rejectAttendance = rejectAttendance;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n vm.cellEdit = cellEdit;\r\n vm.cellsave = cellsave;\r\n\r\n vm.tableEditorTemplate = {\r\n create: function () {\r\n return '';\r\n },\r\n read: function (args) {\r\n return args.ejMaskEdit('get_StrippedValue');\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n args.element.ejMaskEdit({\r\n width: '100%',\r\n maskFormat: 'C',\r\n customCharacter: 'xX',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n }\r\n };\r\n\r\n vm.tableEditorTemplateNumX = {\r\n create: function () {\r\n elem = document.createElement('input');\r\n elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return elem;\r\n },\r\n read: function () {\r\n return gridMaskEdit.value;\r\n },\r\n destroy: function () {\r\n gridMaskEdit.destroy();\r\n },\r\n write: function (args) {\r\n gridMaskEdit = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: 'xX0123456789'},\r\n value: args.rowData !== undefined ? (args.rowData[args.column.field]).toString().trim() : '',\r\n readOnly: !vm.editable\r\n });\r\n gridMaskEdit.appendTo(elem);\r\n }\r\n };\r\n\r\n vm.tableEditorTemplateNum = {\r\n create: function () {\r\n elem = document.createElement('input');\r\n elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return elem;\r\n },\r\n read: function () {\r\n return gridMaskEdit.value;\r\n },\r\n destroy: function () {\r\n gridMaskEdit.destroy();\r\n },\r\n write: function (args) {\r\n gridMaskEdit = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: '0123456789'},\r\n value: args.rowData !== undefined ? (args.rowData[args.column.field]).toString().trim() : '',\r\n readOnly: !vm.editable\r\n });\r\n gridMaskEdit.appendTo(elem);\r\n }\r\n };\r\n\r\n vm.smallColumnWidth = 40;\r\n vm.columns = [{\r\n headerText: gettextCatalog.getString('FelkHetSzam') + '
(1-52)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: vm.smallColumnWidth\r\n },\r\n {\r\n field: 'HetSzam',\r\n headerText: gettextCatalog.getString('WeekNumber'),\r\n textAlign: 'center',\r\n width: 75,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FelkHetSzam',\r\n headerText: gettextCatalog.getString('PreparationWeekNumber'),\r\n textAlign: 'center',\r\n width: 75,\r\n type: 'number',\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 140\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('FelkIdJelleg') + '
(X)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'FelkIdJellTiszta',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoTiszta'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', padding: 0},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelkIdJellVegyes',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVegyes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelkIdJellVerseny',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVerseny'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesSzam') + '
(0-21)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiEdzesSzamAlt',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamAltalanos'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false, min: 0, max: 21}},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzesSzamSpSpec',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamSportagSpecifikus'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false, min: 0, max: 21}},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzesSzamOsszesen',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamOsszesen'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n readOnly: true\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiTerheles') + '
(X, 0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiTerhelesMagas',\r\n headerText: gettextCatalog.getString('HetiTerhelesMagas'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiTerhelesKozepes',\r\n headerText: gettextCatalog.getString('HetiTerhelesKozepes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiTerhelesAlacsony',\r\n headerText: gettextCatalog.getString('HetiTerhelesAlacsony'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesJell') + '
(X, 0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiEdzMunkaTechnikai',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaTechnikai'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaKepFejl',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKepessegFejlesztes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaKieg',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKiegeszito'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaEgyeb',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaEgyeb'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Felmeresek') + '
(0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'FelmeresekAlt',\r\n headerText: gettextCatalog.getString('GeneralSurveys'),\r\n textAlign: 'center',\r\n width: 45,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNum,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelmeresekSpSpec',\r\n headerText: gettextCatalog.getString('SportagSpecifikusFelmeresek'),\r\n textAlign: 'center',\r\n width: 45,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNum,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edzotaborozas'),\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'EdzTabIdopont',\r\n headerText: gettextCatalog.getString('EdzotaborozasIdopont'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n width: 90,\r\n customAttributes: {id: 'annualseason'}\r\n },\r\n {\r\n field: 'EdzTabHely',\r\n headerText: gettextCatalog.getString('EdzotaborozasHely'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 150\r\n },\r\n {\r\n field: 'EdzTabLetszam',\r\n headerText: gettextCatalog.getString('EdzotaborozasLetszam'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 80\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'Verseny',\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 100\r\n }]\r\n }\r\n ];\r\n\r\n activate();\r\n\r\n var gridMaskEdit;\r\n var elem;\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['ExcelExport'],\r\n allowExcelExport: true,\r\n height: 325,\r\n allowPdfExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n cellSave: cellsave,\r\n cellEdit: cellEdit\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n vm.jumpedPage = '6 - ' + gettextCatalog.getString('YearlyTablePlan');\r\n vm.defaultJumpPage = '6 - ' + gettextCatalog.getString('YearlyTablePlan');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')\r\n ])\r\n .then(function (results) {\r\n {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n vm.closed = (data.SzakosztalyvezetoJovahagyta == null || data.SzakosztalyvezetoJovahagyta === true) && !vm.EVVERSTALAIR1;\r\n\r\n dataservice.annualSeasponPlanTableListSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n if (vm.data.length === 0) {\r\n //megkeressük az első hétfőt augusztusban\r\n var datum = new Date(vm.head.ErvenyessegTol);\r\n while (datum.getDay() > 1 || datum.getDay() === 0) {\r\n datum.setDate(datum.getDate() + 1);\r\n }\r\n for (var i = 1; i <= 52; i++) {\r\n var datumstr = vm.months[datum.getMonth()] + '.' + datum.getDate() + '. - ';\r\n //vasárnap\r\n datum.setDate(datum.getDate() + 6);\r\n datumstr += vm.months[datum.getMonth()] + '.' + datum.getDate() + '.';\r\n //hétfő\r\n datum.setDate(datum.getDate() + 1);\r\n var obj = {\r\n Datum: datumstr,\r\n EdzTabHely: '',\r\n EdzTabIdopont: '',\r\n EdzTabLetszam: '',\r\n FelkHetSzam: '',\r\n FelkIdJellTiszta: '',\r\n FelkIdJellVegyes: '',\r\n FelkIdJellVerseny: '',\r\n FelmeresekAlt: '',\r\n FelmeresekSpSpec: '',\r\n HetiEdzesSzamAlt: '',\r\n HetiEdzesSzamOsszesen: '',\r\n HetiEdzesSzamSpSpec: '',\r\n HetiEdzMunkaEgyeb: '',\r\n HetiEdzMunkaKepFejl: '',\r\n HetiEdzMunkaKieg: '',\r\n HetiEdzMunkaTechnikai: '',\r\n HetiTerhelesAlacsony: '',\r\n HetiTerhelesKozepes: '',\r\n HetiTerhelesMagas: '',\r\n HetSzam: i,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n Verseny: '',\r\n Id: -1 * i\r\n };\r\n vm.data.push(obj);\r\n }\r\n }\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '6 ') {\r\n return;\r\n }\r\n\r\n if (vm.editable) {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head).then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data).then(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n });\r\n });\r\n }\r\n\r\n function gotoMainPage() {\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function savePlan() {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveSuccessed');\r\n });\r\n });\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.head.SzakosztalyvezetoJovahagytaId === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.head.SzakosztalyvezetoJovahagytaId)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function print() {\r\n $q.all([getAccepterCoachById()])\r\n .then(function (results) {\r\n vm.reportParameters = {\r\n Szakosztaly: vm.head.SzakosztalyNeve,\r\n Korcsoport: vm.head.KorosztalyNeve,\r\n Edzo: vm.head.EdzoNeve,\r\n Mobil: vm.head.EdzoMobil === undefined ? '' : vm.head.EdzoMobil,\r\n Email: vm.head.EdzoEmail === undefined ? '' : vm.head.EdzoEmail,\r\n FejId: vm.head.Id,\r\n Jovahagyta: results[0],\r\n Keszitette: vm.head.EdzoNeve,\r\n techKepzes: ''\r\n };\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n });\r\n }\r\n\r\n function refreshCompetition() {\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n var dt = new Date(vm.head.ErvenyessegTol);\r\n var di = new Date(dt);\r\n di.setDate(dt.getDate() + 7);\r\n grid.endEdit();\r\n for (var j = 0; j < grid.getRows().length; j++) {\r\n for (var i = 0; i < args.itemsList.length; i++) {\r\n var esDate = new Date((args.itemsList[i].EsemenyIdopont2).replace('. ', '-').replace('. ', '-').replace('.', ''));\r\n if (esDate >= dt && esDate < di) {\r\n var row = grid.getRowByIndex(j);\r\n vm.data[j]['Verseny'] += '; ' + args.itemsList[i].EsemenyNeve;\r\n }\r\n }\r\n dt = new Date(di);\r\n di.setDate(dt.getDate() + 7);\r\n }\r\n grid.dataSource = vm.data;\r\n // grid.refresh();\r\n });\r\n }\r\n\r\n function closePlan() {\r\n vm.head.EdzoLezarta = true;\r\n vm.head.EdzoLezartaDatum = new Date().toDateString();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n if (!vm.hasErrorAtSave) {\r\n vm.editable = false;\r\n }\r\n });\r\n }\r\n\r\n function rejectPlan() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectAttendance() {\r\n if (vm.rejectAttendanceText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\r\\n' + gettextCatalog.getString('The') + ' ' + vm.head.SzakosztalyNeve + ' - ' +\r\n vm.head.KorosztalyNeve + ' ' + new Date(vm.head.ErvenyessegTol).getFullYear() + '/' + new Date(vm.head.ErvenyessegIg).getFullYear() +\r\n ' ' + gettextCatalog.getString('AnnualSeasonPlanReportRejected') + '\\r\\n' + gettextCatalog.getString('Cause') + vm.rejectAttendanceText;\r\n vm.head.EdzoLezarta = false;\r\n vm.head.EdzoAlairtaDatum = undefined;\r\n vm.head.SzakosztalyVezetoJovahagyva = undefined;\r\n vm.head.SzakosztalyVezetoJovahagytaId = undefined;\r\n vm.head.SzakosztalyVezetoJovahagyta = false;\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n if (!vm.hasErrorAtSave) {\r\n dataservice.messageSave(uzi, [vm.head.IdEdzo], vm.head.IdSzakosztaly).then(function () {\r\n vm.editable = true;\r\n });\r\n }\r\n });\r\n }\r\n\r\n function acceptPlan() {\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\r\\n' + gettextCatalog.getString('The') + ' ' + vm.head.SzakosztalyNeve + ' - ' +\r\n vm.head.KorosztalyNeve + ' ' + new Date(vm.head.ErvenyessegTol).getFullYear() + '/' + new Date(vm.head.ErvenyessegIg).getFullYear() +\r\n ' ' + gettextCatalog.getString('AnnualSeasonPlanReportAccepted');\r\n dataservice.messageSave(uzi, [vm.head.IdEdzo], vm.head.IdSzakosztaly).then(function () {\r\n vm.head.SzakosztalyvezetoJovahagyta = true;\r\n vm.head.SzakosztalyvezetoJovahagyva = new Date();\r\n vm.head.SzakosztalyvezetoJovahagytaId = authenticationService.getAuthData().id;\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n log.successMsg('AnnualSeasonPlanAccepted');\r\n });\r\n });\r\n }\r\n\r\n function cellsave(args) {\r\n if (args.columnName === 'HetiEdzesSzamSpSpec') {\r\n var alt = args.rowData.HetiEdzesSzamAlt;\r\n if (alt === undefined || alt == null || (alt.trim && alt.trim() === '')) {\r\n alt = 0;\r\n }\r\n var sp = args.value;\r\n if (sp === undefined || sp == null || (sp.trim && sp.trim() === '')) {\r\n sp = 0;\r\n }\r\n alt = checkNumberInterval(alt, 0, 21);\r\n sp = checkNumberInterval(sp, 0, 21);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamAlt'] = parseInt(alt);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamSpSpec'] = parseInt(sp);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamOsszesen'] = (parseInt(alt) + parseInt(sp));\r\n grid.refresh();\r\n } else if (args.columnName === 'HetiEdzesSzamAlt') {\r\n var sp = args.rowData.HetiEdzesSzamSpSpec;\r\n if (sp === undefined || sp == null || (sp.trim && sp.trim() === '')) {\r\n sp = 0;\r\n }\r\n var alt = args.value;\r\n if (alt === undefined || alt == null || (alt.trim && alt.trim() === '')) {\r\n alt = 0;\r\n }\r\n alt = checkNumberInterval(alt, 0, 21);\r\n sp = checkNumberInterval(sp, 0, 21);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamAlt'] = parseInt(alt);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamSpSpec'] = parseInt(sp);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamOsszesen'] = (parseInt(alt) + parseInt(sp));\r\n grid.refresh();\r\n } else {\r\n vm.data[args.rowData.HetSzam - 1][args.columnName] = args.value;\r\n // grid.refresh();\r\n }\r\n }\r\n\r\n function checkNumberInterval(number, min, max) {\r\n if (number > max) {\r\n return max;\r\n }\r\n if (number < min) {\r\n return min;\r\n }\r\n return number;\r\n }\r\n\r\n function cellEdit(args) {\r\n if (args.columnName === 'HetiEdzesSzamOsszesen') {\r\n args.cancel = true;\r\n return;\r\n }\r\n if (args.columnName === 'FelkHetSzam') {\r\n var ssz = 1;\r\n for (var j = args.rowData.HetSzam; j <= 52; j++) {\r\n vm.data[j - 1]['FelkHetSzam'] = ssz++;\r\n }\r\n ssz = 52;\r\n for (var j = args.rowData.HetSzam - 1; j > 0; j--) {\r\n vm.data[j - 1]['FelkHetSzam'] = ssz--;\r\n }\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellTiszta') {\r\n if (args.rowData['FelkIdJellTiszta'] === 'x' || args.rowData['FelkIdJellTiszta'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellVegyes') {\r\n if (args.rowData['FelkIdJellVegyes'] === 'x' || args.rowData['FelkIdJellVegyes'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellVerseny') {\r\n if (args.rowData['FelkIdJellVerseny'] === 'x' || args.rowData['FelkIdJellVerseny'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n }\r\n /*else if (args.columnName === 'HetiTerhelesMagas') {\r\n if (args.rowData['HetiTerhelesMagas'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesMagas', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesMagas', 'X');\r\n }\r\n } else if (args.columnName === 'HetiTerhelesKozepes') {\r\n if (args.rowData['HetiTerhelesKozepes'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesKozepes', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesKozepes', 'X');\r\n }\r\n } else if (args.columnName === 'HetiTerhelesAlacsony') {\r\n if (args.rowData['HetiTerhelesAlacsony'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesAlacsony', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesAlacsony', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaTechnikai') {\r\n if (args.rowData['HetiEdzMunkaTechnikai'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaTechnikai', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaTechnikai', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaKepFejl') {\r\n if (args.rowData['HetiEdzMunkaKepFejl'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKepFejl', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKepFejl', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaKieg') {\r\n if (args.rowData['HetiEdzMunkaKieg'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKieg', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKieg', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaEgyeb') {\r\n if (args.rowData['HetiEdzMunkaEgyeb'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaEgyeb', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaEgyeb', 'X');\r\n }\r\n }*/\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage6',\r\n config: {\r\n url: '/annualSeasonPlanReportPage6',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.html',\r\n controller: 'AnnualSeasonPlanReportPage6Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AssetManagementController.$inject = [\"$q\", \"paramHelper\", \"gettextCatalog\", \"$state\", \"dataservice\", \"authenticationService\", \"$rootScope\", \"$scope\", \"log\", \"$timeout\", \"$filter\"];\r\n angular\r\n .module('app.administration.assetManagement')\r\n .controller('AssetManagementController', AssetManagementController);\r\n\r\n function AssetManagementController($q, paramHelper, gettextCatalog, $state, dataservice, authenticationService, $rootScope, $scope, log, $timeout, $filter) {\r\n $rootScope.title = gettextCatalog.getString('AssetManagement');\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.userid = authenticationService.getAuthData().id;\r\n vm.groupList = [];\r\n vm.groupId = undefined;\r\n vm.dropdownDataBound = dropdownDataBound;\r\n vm.groupSelect = groupSelect;\r\n vm.athleteSelect = athleteSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.Issue = Issue;\r\n vm.choosen = -1;\r\n vm.typeSelected = false;\r\n\r\n vm.filter = 'issuable';\r\n vm.types = [];\r\n vm.assets = [];\r\n vm.athletes = [];\r\n vm.coaches = [];\r\n vm.selectedAssets = [];\r\n vm.athletecoachList = [\r\n {value: 'athlete', text: gettextCatalog.getString('Athlete')},\r\n {value: 'coach', text: gettextCatalog.getString('User')}\r\n ];\r\n vm.assetFilterList = [\r\n {value: 'issuable', text: gettextCatalog.getString('IssuableOnly')},\r\n {value: 'issued', text: gettextCatalog.getString('IssuedOnly')},\r\n {value: 'all', text: gettextCatalog.getString('All')},\r\n {value: 'active', text: gettextCatalog.getString('ActiveOnly')},\r\n {value: 'deleted', text: gettextCatalog.getString('DeletedOnly')}\r\n ];\r\n vm.assetTypeColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 60, visible: false},\r\n {field: 'TipusId', visible: false, isPrimaryKey: true},\r\n {field: 'TipusNev', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 125},\r\n {field: 'aktivDarab', headerText: gettextCatalog.getString('ActiveItem'), textAlign: 'center', width: 125},\r\n {field: 'inaktivDarab', headerText: gettextCatalog.getString('InactiveItem'), textAlign: 'center', width: 125},\r\n {field: 'szabadDarab', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.assetColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 60},\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 175},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 175},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 100},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 100},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 100},\r\n {field: 'Szabad', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', displayAsCheckBox: true, width: 150},\r\n {field: 'deleted', headerText: gettextCatalog.getString('Deleted'), textAlign: 'center', displayAsCheckBox: true, width: 150},\r\n {field: 'NalaVan', headerText: gettextCatalog.getString('WhoHasIt'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.athleteColumns = [\r\n {field: 'SportoloId', visible: false, isPrimaryKey: true},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center'},\r\n {field: 'Section', headerText: gettextCatalog.getString('Section'), textAlign: 'center'},\r\n {field: 'AgeGroup', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'}\r\n ];\r\n\r\n vm.coachColumns = [\r\n {field: 'EdzoId', visible: false, isPrimaryKey: true},\r\n {field: 'EdzoNev', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center'},\r\n {field: 'Section', headerText: gettextCatalog.getString('Section'), textAlign: 'center'},\r\n {field: 'AgeGroup', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'}\r\n ];\r\n\r\n vm.AddAssetType = AddAssetType;\r\n vm.EditAssetType = EditAssetType;\r\n vm.DeleteAssetType = DeleteAssetType;\r\n\r\n vm.AddAsset = AddAsset;\r\n vm.EditAsset = EditAsset;\r\n vm.DeleteAsset = DeleteAsset;\r\n vm.UndeleteAsset = UndeleteAsset;\r\n\r\n vm.filterSelect = filterSelect;\r\n\r\n vm.SelectAll = SelectAll;\r\n vm.clearSelection = clearSelection;\r\n\r\n vm.IssuePopup = IssuePopup;\r\n vm.TakeBack = TakeBack;\r\n vm.issueToSelect = issueToSelect;\r\n\r\n vm.ESZKNYILVMEGT = false;\r\n vm.ESZKNYILVMOD = false;\r\n vm.ESZKMOZG = false;\r\n vm.AddAssetTypeEnabled = false;\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n vm.AddAssetEnabled = false;\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n vm.issueToAthlete = false;\r\n vm.issueToCoach = false;\r\n vm.chooseEnabled = false;\r\n\r\n var TypeGrid2 = null;\r\n var AssetGrid2 = null;\r\n var AthleteGrid2 = null;\r\n var CoachGrid2 = null;\r\n\r\n CreateTypeGrid();\r\n CreateAssetGrid();\r\n CreateAthleteGrid();\r\n CreateCoachGrid();\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT'), authenticationService.getRight('ESZKNYILVMOD'), authenticationService.getRight('ESZKMOZG')]).then(function (data) {\r\n $timeout(function () {\r\n vm.ESZKNYILVMEGT = data[0];\r\n vm.ESZKNYILVMOD = data[1];\r\n vm.ESZKMOZG = data[2];\r\n if (vm.ESZKNYILVMEGT) {\r\n GridRefresh();\r\n if (vm.ESZKNYILVMOD) {\r\n vm.AddAssetTypeEnabled = true;\r\n }\r\n } else {\r\n log.permissionError(true);\r\n }\r\n }, 100);\r\n });\r\n }\r\n\r\n function CreateAthleteGrid() {\r\n AthleteGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.athletes,\r\n columns: vm.athleteColumns,\r\n allowPaging: true,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n athleteSelect(args);\r\n }\r\n });\r\n AthleteGrid2.appendTo('#AthleteGrid2');\r\n }\r\n\r\n function CreateCoachGrid() {\r\n CoachGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.coaches,\r\n columns: vm.coachColumns,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n coachSelect(args);\r\n }\r\n });\r\n CoachGrid2.appendTo('#CoachGrid2');\r\n }\r\n\r\n function CreateTypeGrid() {\r\n TypeGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.types,\r\n columns: vm.assetTypeColumns,\r\n allowPaging: true,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n toolbar: ['Search'],\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n console.log('CreateTypeGrid rowSelected ', args);\r\n assetTypeSelect(args);\r\n vm.typeSelected = true;\r\n },\r\n rowDeselected: function (arg) {\r\n console.log('CreateTypeGrid rowDeselected ', arg);\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n assetTypeSelect(null);\r\n vm.typeSelected = false;\r\n $scope.$apply();\r\n },\r\n rowSelecting: function () {\r\n TypeGrid2.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, TypeGrid2);\r\n }\r\n });\r\n TypeGrid2.appendTo('#TypeGrid2');\r\n }\r\n\r\n function CreateAssetGrid() {\r\n AssetGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.assets,\r\n columns: vm.assetColumns,\r\n toolbar: ['Search'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowSelected: function () {\r\n assetSelectOrDeselect();\r\n },\r\n rowDeselected: function () {\r\n assetSelectOrDeselect();\r\n }\r\n });\r\n AssetGrid2.appendTo('#AssetGrid2');\r\n }\r\n\r\n // ESZKÖZ TÍPUSOK\r\n function AddAssetType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateAssetType'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n } else {\r\n dataservice.AssetManager({TipusId: -1, TipusNev: inputValue.value}).then(function (response) {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(response.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditAssetType() {\r\n swal({\r\n title: gettextCatalog.getString('EditAssetType'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.editype.TipusNev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n } else {\r\n dataservice.AssetManager({TipusId: vm.editype.TipusId, TipusNev: inputValue.value}).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteAssetType() {\r\n var warningText = '';\r\n if (vm.assets.length > 0) {\r\n log.errorMsg(gettextCatalog.getString('Only empty asset types can be deleted.'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected asset type?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this asset type'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.AssetManager({TipusId: vm.editype.TipusId, TipusTorles: true}).then(function () {\r\n vm.addNewSubType = false;\r\n GridRefresh();\r\n });\r\n }\r\n });\r\n }\r\n\r\n // ESZKÖZÖK\r\n function AddAsset() {\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras') + ' (50 karakter)', value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar') + ' (Ft.)', value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: () => {\r\n vm.newAsset = {};\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = vm.editype.TipusId;\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n\r\n return new Promise((resolve) => {\r\n if (!vm.newAsset.Megnevezes && vm.newAsset.Megnevezes.length == 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n if (vm.newAsset.Leiras.length > 50) {\r\n swal.showValidationError(gettextCatalog.getString('AssetDescTooLong'));\r\n }\r\n if (isNaN(vm.newAsset.Ar)) {\r\n swal.showValidationError(gettextCatalog.getString('AssetPriceFormat'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.AssetManager(vm.newAsset).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n swal.close();\r\n }\r\n });\r\n }\r\n\r\n function EditAsset() {\r\n if (getSelectedAssetIds().length != 1) {\r\n log.errorMsg(gettextCatalog.getString('MultipleAssetsCannotBeEditedAtOnce'));\r\n return;\r\n }\r\n console.log('EDIT ASSET vm.editAsset', vm.editAsset);\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: vm.editAsset.Megnevezes},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras') + ' (50 karakter)', value: vm.editAsset.Leiras},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: vm.editAsset.Azonosito},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: vm.editAsset.Meret},\r\n {\r\n id: 'Ar',\r\n text: gettextCatalog.getString('Ar') + ' (Ft.)',\r\n value: vm.editAsset.Ar ? vm.editAsset.Ar.toString() : ''\r\n },\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', dd: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('EditAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.editAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.editAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.editAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.editAsset.Meret = document.getElementById('Meret').value;\r\n vm.editAsset.Ar = document.getElementById('Ar').value;\r\n if (vm.editAsset.Megnevezes && vm.editAsset.Megnevezes.length > 0) {\r\n dataservice.AssetManager(vm.editAsset).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editAsset.TipusId);\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n }\r\n });\r\n angular.element('#DropDownSwal').ejDropDownList({\r\n dataSource: vm.types,\r\n select: function (arg) {\r\n vm.editAsset.TipusId = arg.value;\r\n },\r\n value: vm.editAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function DeleteAsset() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected asset?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this asset'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteUndeleteAssets({\r\n action: 'delete',\r\n assetList: getSelectedAssetIds()\r\n }).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function UndeleteAsset() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to undelete the selected asset?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, undelete this asset'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteUndeleteAssets({\r\n action: 'undelete',\r\n assetList: getSelectedAssetIds()\r\n }).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function GridRefresh(tipusId) {\r\n console.log('GridRefresh');\r\n clearSelection();\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n AssetGrid2.dataSource = vm.assets;\r\n AssetGrid2.refresh();\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n TypeGrid2.dataSource = vm.types;\r\n var index = $filter('getIndex')(vm.types, 'TipusId', tipusId);\r\n if (index !== false && index !== null && index >= 0) {\r\n $timeout(function () {\r\n TypeGrid2.selectRows([index]);\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n });\r\n }\r\n\r\n function assetTypeSelect(args) {\r\n log.infoMsg(gettextCatalog.getString('DetailsAreShownInTheGridBelow'));\r\n clearSelection();\r\n if (vm.ESZKNYILVMOD) {\r\n if (vm.filter != 'deleted') {\r\n vm.AddAssetEnabled = true;\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.EditAssetTypeEnabled = true;\r\n vm.DeleteAssetTypeEnabled = true;\r\n }\r\n }\r\n if (args == null) {\r\n vm.assets = [];\r\n AssetGrid2.dataSource = vm.assets;\r\n } else {\r\n vm.editype = args.data;\r\n console.log('vm.editype', vm.editype);\r\n getAssetsByType(args.data.TipusId, vm.filter);\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function assetSelectOrDeselect() {\r\n $timeout(function () {\r\n vm.selectedAssets = getSelectedAssets();\r\n console.log('vm.selectedAssets', vm.selectedAssets.length, vm.selectedAssets);\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.EditAssetEnabled = false;\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n if (vm.selectedAssets.length == 1) {\r\n vm.editAsset = vm.selectedAssets[0];\r\n if (vm.ESZKNYILVMOD) {\r\n if (vm.filter != 'deleted') {\r\n vm.AddAssetEnabled = true;\r\n }\r\n if (vm.editAsset.Aktiv && vm.editAsset.Szabad) {\r\n console.log('vm.ESZKNYILVMOD', vm.ESZKNYILVMOD);\r\n vm.EditAssetEnabled = true;\r\n vm.DeleteAssetEnabled = true;\r\n }\r\n vm.UndeleteAssetEnabled = !vm.editAsset.Aktiv;\r\n }\r\n if (vm.ESZKMOZG) {\r\n vm.IssueEnabled = allIssuable();\r\n vm.TakeBackEnabled = allIssued();\r\n }\r\n } else if (vm.selectedAssets.length > 1) {\r\n vm.editAsset = null;\r\n vm.DeleteAssetEnabled = allIssuable();\r\n vm.UndeleteAssetEnabled = allDeleted();\r\n console.log('EZUISlefut');\r\n vm.EditAssetEnabled = false;\r\n if (vm.ESZKMOZG) {\r\n vm.IssueEnabled = allIssuable();\r\n vm.TakeBackEnabled = allIssued();\r\n }\r\n }\r\n }, 100);\r\n }\r\n\r\n // MINDEGYIK TÖRÖLT\r\n function allDeleted() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Aktiv == true) {\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n // MINDEGYIK SZABAD\r\n function allIssuable() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Szabad == false || asset.Aktiv == false) { // Ha valamelyik ki van adva, vagy törölt akkor return false\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n // MINDEGYIK KI VAN ADVA\r\n function allIssued() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Szabad == true || asset.Aktiv == false) { // Ha valamelyik Nincs kiadva, vagy törölt akkor return false\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n function getAssetsByType(TipusId) {\r\n clearSelection();\r\n dataservice.AssetsByType(TipusId, vm.filter).then(function (data) {\r\n vm.assets = data.data;\r\n AssetGrid2.dataSource = vm.assets;\r\n });\r\n }\r\n\r\n function filterSelect(arg) {\r\n console.log('filterSelect', arg);\r\n clearSelection();\r\n vm.filter = arg.value;\r\n vm.AddAssetEnabled = (vm.filter != 'deleted');\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n if (vm.editype && vm.editype.TipusId > 0) {\r\n getAssetsByType(vm.editype.TipusId);\r\n }\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '
';\r\n arr.forEach(function (item) {\r\n HTMLtext += '
';\r\n if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '';\r\n HTMLtext += '
';\r\n } else {\r\n HTMLtext += '';\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '
';\r\n } else {\r\n HTMLtext += '
';\r\n }\r\n }\r\n HTMLtext += '
';\r\n });\r\n HTMLtext += '

';\r\n return HTMLtext;\r\n }\r\n\r\n function getSelectedAssets() {\r\n vm.selectedAssets = AssetGrid2.getSelectedRecords();\r\n return vm.selectedAssets;\r\n }\r\n\r\n function getSelectedAssetIds() {\r\n var selectedAssets = getSelectedAssets();\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function clearSelection() {\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n AssetGrid2.clearSelection();\r\n }\r\n\r\n function SelectAll() {\r\n var indexes = [];\r\n for (var i = 0; i < vm.assets.length; i++) {\r\n indexes.push(i);\r\n }\r\n AssetGrid2.selectRows(indexes);\r\n }\r\n\r\n function IssuePopup() {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n }\r\n\r\n function TakeBack() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('TakeBackAssetComment'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n dataservice.AssetTakeBack(getSelectedAssetIds(), inputValue.value).then(function () {\r\n log.successMsg('TakenBackSuccessfully');\r\n getAssetsByType(vm.editype.TipusId);\r\n });\r\n });\r\n }\r\n\r\n function issueToSelect(arg) {\r\n vm.chooseEnabled = false;\r\n switch (arg.value) {\r\n case 'athlete':\r\n getSections(vm.userid);\r\n vm.issueToAthlete = true;\r\n vm.issueToCoach = false;\r\n vm.dropdownlabel = gettextCatalog.getString('Section');\r\n break;\r\n case 'coach':\r\n getUserGroups();\r\n vm.issueToAthlete = false;\r\n vm.issueToCoach = true;\r\n vm.dropdownlabel = gettextCatalog.getString('UserGroup');\r\n break;\r\n }\r\n }\r\n\r\n function getSections(userid) {\r\n dataservice.sectionDropDownList(userid).then(function (data) {\r\n vm.groupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getUserGroups() {\r\n dataservice.userGroupList().then(function (data) {\r\n vm.groupList = data.itemsList;\r\n });\r\n }\r\n\r\n function dropdownDataBound() {\r\n if (vm.groupList.length > 0) {\r\n vm.groupId = vm.groupList[0].value;\r\n }\r\n }\r\n\r\n function groupSelect(arg) {\r\n vm.chooseEnabled = false;\r\n vm.groupId = arg.value;\r\n if (vm.issueToAthlete) {\r\n AthletesInSection(arg.value);\r\n } else if (vm.issueToCoach) {\r\n UsersInGroup(arg.value);\r\n }\r\n }\r\n\r\n function athleteSelect(arg) {\r\n $timeout(function () {\r\n vm.chooseEnabled = true;\r\n vm.choosen = arg.data.SportoloId;\r\n }, 100);\r\n }\r\n\r\n function coachSelect(arg) {\r\n $timeout(function () {\r\n vm.chooseEnabled = true;\r\n vm.choosen = arg.data.EdzoId;\r\n }, 100);\r\n }\r\n\r\n function Issue() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('IssueAssetComment'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: false,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n var edzo = 0;\r\n var sportolo = 0;\r\n if (vm.issueToAthlete) {\r\n sportolo = vm.choosen;\r\n } else if (vm.issueToCoach) {\r\n edzo = vm.choosen;\r\n }\r\n dataservice.AssetIssue(getSelectedAssetIds(), edzo, sportolo, inputValue.value).then(function () {\r\n log.successMsg('IssuedSuccessfully');\r\n getAssetsByType(vm.editype.TipusId);\r\n });\r\n });\r\n }\r\n\r\n function AthletesInSection(section) {\r\n dataservice.AthletesInSection(section).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n AthleteGrid2.dataSource = vm.athletes;\r\n });\r\n }\r\n\r\n function UsersInGroup(usergroup) {\r\n dataservice.UsersInGroup(usergroup).then(function (data) {\r\n vm.coaches = data.itemsList;\r\n CoachGrid2.dataSource = vm.coaches;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.assetManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.assetManagement',\r\n config: {\r\n url: '/assetManagement',\r\n templateUrl: 'app/administration/assetManagement/assetManagement.html',\r\n controller: 'AssetManagementController',\r\n controllerAs: 'vm',\r\n title: 'AssetManagement',\r\n settings: {\r\n navId: 2132,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Eszköznyilvántartó',\r\n orderTitle_en: 'AssetManagement',\r\n parentId: 2,\r\n content: 'AssetManagement',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.awayBudgetPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan',\r\n config: {\r\n url: '/awayBudgetPlan',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AwayBudgetPlanCreateController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$timeout\", \"$filter\", \"$state\"];\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanCreate')\r\n .controller('AwayBudgetPlanCreateController', AwayBudgetPlanCreateController);\r\n\r\n function AwayBudgetPlanCreateController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $timeout, $filter, $state) {\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanCreate');\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.tervId = -1;\r\n vm.tenyId = -1;\r\n vm.printOpened = false;\r\n vm.title = '';\r\n vm.subtitle = '';\r\n vm.data = {};\r\n vm.data.Id = 0;\r\n vm.currentUserId = authenticationService.getAuthData().id;\r\n vm.saveIsBusy = false;\r\n vm.forceDisableEdit = false; // Ha ez true, akkor nem lehet módosítani sehogy (olyan terv, amihez van tény)\r\n disableEverything();\r\n vm.SZAKOSZTVEZ = false;\r\n vm.GAZDASAGI = false;\r\n vm.TECHIGAZGATO = false;\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.allusers = [];\r\n\r\n vm.athleteList = [];\r\n vm.otherPersonName = '';\r\n vm.otherPersonYear = '';\r\n vm.sorszam = 1;\r\n vm.szint = 0;\r\n // Plans Grid\r\n vm.reportParameters = [];\r\n vm.busOwners = [];\r\n vm.busLists = [];\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 50},\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('PlanNumber'),\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: 80,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n width: 125,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'UtazasiKoltseg',\r\n headerText: gettextCatalog.getString('TravelCost'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Etkezes',\r\n headerText: gettextCatalog.getString('Meal'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szallas',\r\n headerText: gettextCatalog.getString('Accommodation'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevezesiDij',\r\n headerText: gettextCatalog.getString('RegistrationFee'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'KikuldetesiKoltseg',\r\n headerText: gettextCatalog.getString('SecondmentCost'),\r\n width: 150,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Egyeb',\r\n headerText: gettextCatalog.getString('Other'),\r\n width: 150,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n editSettings: {\r\n allowEditing: vm.allowEdit,\r\n allowDeleting: vm.allowEdit,\r\n allowSelection: vm.allowEdit,\r\n mode: 'Batch',\r\n showConfirmDialog: false\r\n },\r\n selectionSettings: {type: 'multiple', mode: 'Row'},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n cellSave: cellsave,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.athleteSelect = athleteSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.edzoSelect = edzoSelect;\r\n\r\n vm.addAthlete = addAthlete;\r\n vm.addAllAthlete = addAllAthlete;\r\n vm.addUser = addUser;\r\n vm.addOtherPersonName = addOtherPersonName;\r\n\r\n vm.travelCostDivide = travelCostDivide;\r\n vm.mealDivide = mealDivide;\r\n vm.accommodationDivide = accommodationDivide;\r\n vm.registrationFeeDivide = registrationFeeDivide;\r\n vm.secondmentCostDivide = secondmentCostDivide;\r\n vm.otherDivide = otherDivide;\r\n\r\n vm.UtazasiKoltsegOsszegChange = UtazasiKoltsegOsszegChange;\r\n vm.EtkezesOsszegChange = EtkezesOsszegChange;\r\n vm.SzallasOsszegChange = SzallasOsszegChange;\r\n vm.NevezesiOsszegChange = NevezesiOsszegChange;\r\n vm.KikuldetesiKoltsegOsszegChange = KikuldetesiKoltsegOsszegChange;\r\n vm.EgyebOsszegChange = EgyebOsszegChange;\r\n vm.excel = excel;\r\n\r\n vm.cellsave = cellsave;\r\n vm.ADMIN = false;\r\n vm.JOVIDEGENSZAK = false;\r\n vm.TORLIDEGENKOLTSTERV = false;\r\n vm.JOVIDEGENGAZD = false;\r\n vm.JOVIDEGENVEZ = false;\r\n vm.print = print;\r\n vm.finalize = finalize;\r\n vm.close = close;\r\n vm.open = open;\r\n vm.deleteSelected = deleteSelected;\r\n vm.openPlan = openPlan;\r\n vm.openFact = openFact;\r\n vm.deletePlan = deletePlan;\r\n\r\n vm.enableEdit = enableEdit;\r\n\r\n vm.save = save;\r\n vm.IWillAccept1 = IWillAccept1;\r\n vm.IWillAccept2 = IWillAccept2;\r\n vm.IWillAccept3 = IWillAccept3;\r\n vm.accept1 = accept1;\r\n vm.accept2 = accept2;\r\n vm.accept3 = accept3;\r\n vm.UndoAccept1 = UndoAccept1;\r\n vm.UndoAccept2 = UndoAccept2;\r\n vm.UndoAccept3 = UndoAccept3;\r\n\r\n vm.moreAgeGroups = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV'),\r\n authenticationService.getRight('MODIDEGENKOLTSTERV'),\r\n authenticationService.getRight('UJIDEGENKOLTSTERV'),\r\n authenticationService.getRight('JOVAHAGYIDEGENKOLTSTERV'),\r\n paramHelper.getParams([], ['awayBudgetPlan.planId', 'awayBudgetPlan.planSection', 'awayBudgetPlan.planAgeGroup']),\r\n getSections(),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('GAZDASAGI'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('JOVIDEGENSZAK'),\r\n authenticationService.getRight('JOVIDEGENGAZD'),\r\n authenticationService.getRight('JOVIDEGENVEZ'),\r\n authenticationService.getRight('TORLIDEGENKOLTSTERV'),\r\n authenticationService.getRight('VEGLIDEGENKOLTSTERV')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0] && results[1] && results[2]) {\r\n log.permissionError(true);\r\n }\r\n vm.MEGTIDEGENKOLTSTERV = results[0];\r\n vm.MODIDEGENKOLTSTERV = results[1];\r\n vm.UJIDEGENKOLTSTERV = results[2];\r\n vm.JOVAHAGYIDEGENKOLTSTERV = results[3];\r\n vm.SZAKOSZTVEZ = results[6];\r\n vm.GAZDASAGI = results[7];\r\n vm.TECHIGAZGATO = results[8];\r\n vm.ADMIN = (results[9] || results[13]); // Admin vagy Gazdasági\r\n vm.JOVIDEGENSZAK = results[10];\r\n vm.JOVIDEGENGAZD = results[11];\r\n vm.JOVIDEGENVEZ = results[12];\r\n vm.TORLIDEGENKOLTSTERV = results[13];\r\n vm.VEGLIDEGENKOLTSTERV = results[14];\r\n var tervId = results[4]['awayBudgetPlan.planId'];\r\n\r\n disableEverything();\r\n initAgeGroupDropDown();\r\n initAthleteDropDownMS();\r\n initUserDropDownMS();\r\n getBusOwners();\r\n getBuses();\r\n //getAllUsers();\r\n if (tervId && tervId > 0) {\r\n if (!vm.MODIDEGENKOLTSTERV) {\r\n $timeout(function () {\r\n vm.allowEdit = false;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n LoadPlan(tervId);\r\n } else {\r\n vm.title = gettextCatalog.getString('DetailedPlan');\r\n if (!vm.UJIDEGENKOLTSTERV) {\r\n log.permissionError(true);\r\n }\r\n vm.data.SzakosztalyId = (results[4]['awayBudgetPlan.planSection'] !== null && parseInt(results[4]['awayBudgetPlan.planSection']) > 0) ? results[4]['awayBudgetPlan.planSection'] : null;\r\n if (results[4]['awayBudgetPlan.planAgeGroup'] !== null && parseInt(results[4]['awayBudgetPlan.planAgeGroup']) > 0) {\r\n vm.data.KorosztalyId = results[4]['awayBudgetPlan.planAgeGroup'];\r\n } else {\r\n vm.data.KorosztalyId = null;\r\n }\r\n }\r\n });\r\n }\r\n\r\n function LoadPlan(Id) {\r\n disableEverything();\r\n dataservice.GetAwayBudgetPlan(Id).then(function (resp) {\r\n paramHelper.setParams([{'awayBudgetPlan.planId': Id}]);\r\n vm.szint = resp.Szint;\r\n if (!resp.Teny) {\r\n vm.terv = true;\r\n vm.teny = false;\r\n vm.tenyId = resp.TenyId;\r\n vm.forceDisableEdit = resp.retValue.Veglegesitve !== null;\r\n enableEdit(resp.retValue.Lezarva === null);\r\n }\r\n if (!resp.Terv) {\r\n vm.terv = false;\r\n vm.teny = true;\r\n vm.tervId = resp.TervId;\r\n vm.forceDisableEdit = false;\r\n enableEdit(resp.retValue.Lezarva === null);\r\n }\r\n vm.subtitle1 = resp.Jovahagyo1;\r\n vm.subtitle2 = resp.Jovahagyo2;\r\n vm.subtitle3 = resp.Jovahagyo3;\r\n // Megnyitáskor akkor van letiltva a szerkesztés ha: edző lezárta, vagy nem ugyanaz nyitja meg aki csinálta,\r\n // ÉS jóvá van hagyva valamilyen szinten && (vm.data.Jovahagyta1Datum || vm.data.Jovahagyta2Datum || vm.data.Jovahagyta3Datum) EZis kell ???\r\n if (resp.retValue.Lezarva || vm.data.EdzoId != vm.currentUserId) {\r\n enableEdit(false);\r\n }\r\n // Ha az edző sajátsa, vagy ADMIN\r\n if (resp.retValue.EdzoId == vm.currentUserId || vm.ADMIN || vm.SZAKOSZTVEZ) {\r\n if (resp.retValue.Lezarva) {\r\n vm.allowOpen = true;\r\n enableEdit(false);\r\n } else {\r\n vm.allowClose = true;\r\n enableEdit(true);\r\n }\r\n }\r\n if (resp.retValue.Vegleges) {\r\n vm.title = gettextCatalog.getString('DetailedFinal');\r\n } else {\r\n vm.title = gettextCatalog.getString('DetailedPlan');\r\n }\r\n if (resp.retValue.Sorszam > 0) {\r\n vm.title += ' - ' + gettextCatalog.getString('Number') + ': ' + resp.retValue.Sorszam;\r\n }\r\n vm.data = resp.retValue;\r\n vm.Terv = resp.Terv;\r\n vm.data.EdzoIdValue = resp.retValue.EdzoId;\r\n vm.allowFinalize = resp.Veglegesithet;\r\n vm.UserName = resp.EdzoNeve;\r\n vm.EdzoElerhetosege = resp.EdzoElerhetosege;\r\n grid.dataSource = resp.people;\r\n if (grid.dataSource.length > 0) {\r\n vm.sorszam = grid.dataSource[grid.dataSource.length - 1].Sorszam + 1;\r\n } else {\r\n vm.sorszam = 1;\r\n }\r\n setButtons();\r\n });\r\n }\r\n\r\n function disableEverything() {\r\n vm.allowEdit = true;\r\n vm.allowFinalize = false;\r\n vm.allowClose = false;\r\n vm.allowOpen = false;\r\n vm.allowIWillAccept1 = false;\r\n vm.allowIWillAccept2 = false;\r\n vm.allowIWillAccept3 = false;\r\n vm.allowAccept1 = false;\r\n vm.allowAccept2 = false;\r\n vm.allowAccept3 = false;\r\n vm.allowUndoAccept1 = false;\r\n vm.allowUndoAccept2 = false;\r\n vm.allowUndoAccept3 = false;\r\n vm.Accept1Enabled = false;\r\n vm.Accept2Enabled = false;\r\n vm.Accept3Enabled = false;\r\n vm.UndoAccept1Enabled = false;\r\n vm.UndoAccept2Enabled = false;\r\n vm.UndoAccept3Enabled = false;\r\n }\r\n\r\n function setButtons() {\r\n switch (vm.szint) {\r\n case 0:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = true;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n case 1:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.UndoAccept1Enabled = true;\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = true;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n case 2:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.UndoAccept2Enabled = true;\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = true;\r\n }\r\n break;\r\n case 3:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.UndoAccept3Enabled = true;\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n }\r\n // Ha levan zárva edző által\r\n if (vm.data.Lezarva) {\r\n // Szakmai\r\n // ő az aki már jóvahagyta\r\n if (vm.currentUserId == vm.data.Jovahagyta1Id) {\r\n // és nem vonta vissza akkor visszavonhatja\r\n if (vm.data.Jovahagyta1Datum) {\r\n vm.allowUndoAccept1 = true;\r\n }\r\n //de visszavonta akkor Jóváhagyhatja újra\r\n else {\r\n vm.allowAccept1 = true;\r\n }\r\n }\r\n // ÉS még nem hagyta jóvá akkor kijelölheti magát jóváhagyónak\r\n if (!vm.data.Jovahagyta1Id) {\r\n vm.allowIWillAccept1 = true;\r\n }\r\n\r\n // Gazdasági\r\n if (vm.currentUserId == vm.data.Jovahagyta2Id) {\r\n if (vm.data.Jovahagyta2Datum) {\r\n vm.allowUndoAccept2 = true;\r\n } else {\r\n vm.allowAccept2 = true;\r\n }\r\n }\r\n if (!vm.data.Jovahagyta2Id) {\r\n vm.allowIWillAccept2 = true;\r\n }\r\n\r\n // Vezetői\r\n if (vm.currentUserId == vm.data.Jovahagyta3Id) {\r\n if (vm.data.Jovahagyta3Datum) {\r\n vm.allowUndoAccept3 = true;\r\n } else {\r\n vm.allowAccept3 = true;\r\n }\r\n }\r\n if (!vm.data.Jovahagyta3Id) {\r\n vm.allowIWillAccept3 = true;\r\n }\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.data.SzakosztalyId);\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.data.SzakosztalyId = args.value;\r\n vm.athleteList = [];\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n initAgeGroupDropDown();\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.data.KorosztalyId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.data.KorosztalyId = args.value;\r\n getAthleteList(args.value);\r\n getCoachList(args.value);\r\n }\r\n\r\n function getAthleteList(ageGroupId, AgeGroups) {\r\n if (!AgeGroups) {\r\n AgeGroups = [];\r\n }\r\n AgeGroups.push(ageGroupId);\r\n return dataservice.getIdegenbeliKoltsegvetesiTervSportoloList(vm.data.SzakosztalyId, AgeGroups)\r\n .then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n initAthleteDropDownMS();\r\n });\r\n }\r\n\r\n function getCoachList(ageGroupId) {\r\n return dataservice.getIdegenbeliKoltsegvetesiTervEdzoList(vm.data.SzakosztalyId, ageGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n initUserDropDownMS();\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.data.EdzoIdValue);\r\n }\r\n }\r\n\r\n // Ez a terv tulajdonosa\r\n function edzoSelect(args) {\r\n vm.data.EdzoId = args.value;\r\n vm.UserName = args.text;\r\n dataservice.getCoachContant(vm.data.EdzoId).then(function (response) {\r\n vm.EdzoElerhetosege = response.data;\r\n });\r\n }\r\n\r\n function athleteSelect(args) {\r\n vm.selectedAthlete = vm.athleteList[args.itemId];\r\n vm.selectedAthlete.index = args.itemId;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.selectedCoach = vm.coachList[args.itemId];\r\n vm.selectedCoach.index = args.itemId;\r\n }\r\n\r\n function addAthlete() {\r\n var selectedItems = $('#AthleteDropDownMS').data('ejDropDownList').getSelectedItem();\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n var index = $filter('getIndex')(vm.athleteList, 'value', Number(selectedItems[i].dataset.value));\r\n var existing = $filter('getIndex')(grid.dataSource, 'SportoloId', vm.athleteList[index].value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: vm.athleteList[index].value,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.athleteList[index].text,\r\n SzuletesiEv: vm.athleteList[index].szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n }\r\n angular.element('#AthleteDropDownMS').ejDropDownList('uncheckAll');\r\n grid.refresh();\r\n vm.selectedAthlete = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addAllAthlete() {\r\n if (vm.athleteList.length <= 0) {\r\n return;\r\n }\r\n vm.athleteList.forEach(function (t) {\r\n var existing = $filter('getIndex')(grid.dataSource, 'SportoloId', t.value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: t.value,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: t.text,\r\n SzuletesiEv: t.szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n });\r\n grid.refresh();\r\n vm.selectedAthlete = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addUser() {\r\n var selectedItems = $('#UserDropDownMS').data('ejDropDownList').getSelectedItem();\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n var index = $filter('getIndex')(vm.coachList, 'value', Number(selectedItems[i].dataset.value));\r\n var existing = $filter('getIndex')(grid.dataSource, 'FelhasznaloId', vm.coachList[index].value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: null,\r\n FelhasznaloId: vm.coachList[index].value,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.coachList[index].text,\r\n SzuletesiEv: vm.coachList[index].szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n }\r\n angular.element('#UserDropDownMS').ejDropDownList('uncheckAll');\r\n grid.refresh();\r\n vm.selectedCoach = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addOtherPersonName() {\r\n if (!vm.otherPersonName || !vm.otherPersonYear) {\r\n swal({\r\n title: gettextCatalog.getString('PersonNameOrPersonYearEmpty'),\r\n type: 'error',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n grid.dataSource.push({\r\n SportoloId: null,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.otherPersonName,\r\n SzuletesiEv: vm.otherPersonYear,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n vm.otherPersonName = '';\r\n vm.otherPersonYear = '';\r\n grid.refresh();\r\n $scope.$apply();\r\n }\r\n\r\n function ToFixedTwo(n) {\r\n return n;\r\n var f = parseFloat(n).toFixed(2);\r\n f = parseFloat(f).toLocaleString('en');\r\n f = f.replace(/,/g, ' ');\r\n return f;\r\n }\r\n\r\n function travelCostDivide() {\r\n var result = 0;\r\n if (vm.data.UtazasiKoltsegOsszeg && vm.data.UtazasiKoltsegOsszeg !== 0) {\r\n result = ToFixedTwo(vm.data.UtazasiKoltsegOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.UtazasiKoltseg = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function mealDivide() {\r\n var result = 0;\r\n if (vm.data.EtkezesOsszeg && vm.data.EtkezesOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.EtkezesOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Etkezes = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function accommodationDivide() {\r\n var result = 0;\r\n if (vm.data.SzallasOsszeg && vm.data.SzallasOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.SzallasOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Szallas = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function registrationFeeDivide() {\r\n var result = 0;\r\n if (vm.data.NevezesiOsszeg && vm.data.NevezesiOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.NevezesiOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.NevezesiDij = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function secondmentCostDivide() {\r\n var result = 0;\r\n if (vm.data.KikuldetesiKoltsegOsszeg && vm.data.KikuldetesiKoltsegOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.KikuldetesiKoltsegOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.KikuldetesiKoltseg = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function otherDivide() {\r\n var result = 0;\r\n if (vm.data.EgyebOsszeg && vm.data.EgyebOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.EgyebOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Egyeb = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function UtazasiKoltsegOsszegChange(args) {\r\n vm.data.OsszesenOszeg = args.value + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function EtkezesOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + args.value + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function SzallasOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + args.value + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function NevezesiOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + args.value + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function KikuldetesiKoltsegOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + args.value + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function EgyebOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + args.value;\r\n }\r\n\r\n function reCalculate(args, column, property) {\r\n return $q(function () {\r\n grid.dataSource[args.rowData.Sorszam - 1][column] = args.value;\r\n vm.data[property] = 0;\r\n grid.dataSource.forEach(function (t) {\r\n if (!isNaN(parseFloat(t[column]))) {\r\n vm.data[property] += parseFloat(t[column]);\r\n }\r\n });\r\n });\r\n }\r\n\r\n function cellsave(args) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Sorszam', 'equal', args.rowData.Sorszam)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n\r\n if (args.columnName === 'UtazasiKoltseg') {\r\n args.cancel = true;\r\n reCalculate(args, 'UtazasiKoltseg', 'UtazasiKoltsegOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Etkezes') {\r\n args.cancel = true;\r\n reCalculate(args, 'Etkezes', 'EtkezesOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Szallas') {\r\n args.cancel = true;\r\n reCalculate(args, 'Szallas', 'SzallasOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'NevezesiDij') {\r\n args.cancel = true;\r\n reCalculate(args, 'NevezesiDij', 'NevezesiOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'KikuldetesiKoltseg') {\r\n args.cancel = true;\r\n reCalculate(args, 'KikuldetesiKoltseg', 'KikuldetesiKoltsegOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Egyeb') {\r\n args.cancel = true;\r\n reCalculate(args, 'Egyeb', 'EgyebOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n\r\n args.cancel = false;\r\n $scope.$apply();\r\n }\r\n\r\n function save(arg) {\r\n if (vm.saveIsBusy) {\r\n log.warningMsg(gettextCatalog.getString('PleaseWaitWhileSaving'));\r\n return;\r\n }\r\n vm.saveIsBusy = true;\r\n if (vm.allowEdit) {\r\n grid.editModule.batchSave();\r\n }\r\n vm.data.people = grid.dataSource;\r\n if (arg && arg.target && arg.target.name === 'saveAwayBudgetPlan') {\r\n arg = 'save';\r\n }\r\n ['UtazasiKoltsegOsszeg', 'EtkezesOsszeg', 'SzallasOsszeg', 'NevezesiOsszeg', 'KikuldetesiKoltsegOsszeg', 'EgyebOsszeg']\r\n .forEach(function (f) {\r\n if (!vm.data.hasOwnProperty(f) || vm.data[f] === null || vm.data[f] === '' || isNaN(vm.data[f])) {\r\n vm.data[f] = 0;\r\n }\r\n });\r\n $timeout(function () {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n vm.saveIsBusy = false;\r\n return;\r\n }\r\n vm.data.BuszKiallasIdopontjaString = angular.element('#CompetitionDepartmentTime').data('ejDateTimePicker').getValue();\r\n vm.data.ActionCode = arg.toString();\r\n return dataservice.SaveAwayBudgetPlan(vm.data).then(function (response) {\r\n vm.data.Id = response.retValue;\r\n log.successMsg('SaveCompleted');\r\n switch (arg) {\r\n case 'save':\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n break;\r\n case 'print':\r\n vm.reportParameters = {\r\n Header: vm.title,\r\n Szakosztaly: angular.element('#sectionDropDown').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n Korosztaly: angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n Edzo: vm.UserName,\r\n EdzoElerhetosege: vm.EdzoElerhetosege == undefined ? ' ' : vm.EdzoElerhetosege,\r\n Tervadat: vm.data.Vegleges ? 'Végleges' : 'Tervadat',\r\n UtaslistaNev: vm.data.Vegleges ? 'Végleges utaslista' : 'Tervezett utaslista',\r\n Sorszam: vm.data.Sorszam == undefined ? ' ' : vm.data.Sorszam,\r\n FejId: vm.data.Id,\r\n Lezaras: vm.data.Lezarva ? vm.data.Lezarva : 'Még nincs lezárva',\r\n Jovahagyas1: vm.subtitle1 == undefined ? ' ' : vm.subtitle1,\r\n Jovahagyas2: vm.subtitle2 == undefined ? ' ' : vm.subtitle2,\r\n Jovahagyas3: vm.subtitle3 == undefined ? ' ' : vm.subtitle3,\r\n };\r\n if (vm.printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n vm.printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n vm.saveIsBusy = false;\r\n break;\r\n case 'excel':\r\n dataservice.KoltesegvetesiTervExcelExport(vm.data.Id).then(function (response) {\r\n var urlCreator = window.URL || window.webkitURL || window.mozURL || window.msURL;\r\n if (urlCreator) {\r\n var url = response.data;\r\n var a = document.createElement('a');\r\n document.body.appendChild(a);\r\n a.href = url;\r\n a.click();\r\n window.URL.revokeObjectURL(url);\r\n }\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 'finalize':\r\n console.log('vm.VEGLIDEGENKOLTSTERV', vm.VEGLIDEGENKOLTSTERV);\r\n if (!vm.VEGLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n vm.saveIsBusy = false;\r\n } else {\r\n dataservice.KoltesegvetesiTervVeglegesites(vm.data.Id).then(function (veglegesResponse) {\r\n log.infoMsg('Finalized');\r\n LoadPlan(veglegesResponse.data.id);\r\n vm.saveIsBusy = false;\r\n });\r\n }\r\n break;\r\n case 'close':\r\n dataservice.KoltesegvetesiTervLezaras(vm.data.Id, true).then(function (lezarasResponse) {\r\n log.infoMsg('Closed');\r\n vm.allowClose = false;\r\n LoadPlan(lezarasResponse.data.id);\r\n enableEdit(false);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 'open':\r\n dataservice.KoltesegvetesiTervLezaras(vm.data.Id, false).then(function (lezarasResponse) {\r\n log.infoMsg('ReOpened');\r\n vm.allowOpen = false;\r\n LoadPlan(lezarasResponse.data.id);\r\n enableEdit(true);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -1:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = true;\r\n vm.allowUndoAccept1 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 1:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 11:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -2:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = true;\r\n vm.allowUndoAccept2 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 2:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 22:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -3:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = true;\r\n vm.allowUndoAccept3 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 3:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 33:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n }\r\n });\r\n }, 300);\r\n }\r\n\r\n function IWillAccept1() {\r\n if (!vm.JOVIDEGENSZAK) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(11);\r\n }\r\n\r\n function IWillAccept2() {\r\n if (!vm.JOVIDEGENGAZD) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(22);\r\n }\r\n\r\n function IWillAccept3() {\r\n if (!vm.JOVIDEGENVEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(33);\r\n }\r\n\r\n function excel() {\r\n save('excel');\r\n }\r\n\r\n function accept1() {\r\n save(1);\r\n }\r\n\r\n function accept2() {\r\n save(2);\r\n }\r\n\r\n function accept3() {\r\n save(3);\r\n }\r\n\r\n function UndoAccept1() {\r\n save(-1);\r\n }\r\n\r\n function UndoAccept2() {\r\n save(-2);\r\n }\r\n\r\n function UndoAccept3() {\r\n save(-3);\r\n }\r\n\r\n function close() {\r\n save('close');\r\n }\r\n\r\n function open() {\r\n save('open');\r\n }\r\n\r\n function finalize() {\r\n swal({\r\n title: gettextCatalog.getString('Away Budget Plan Finalize Warning!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save('finalize');\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n save('print');\r\n }\r\n\r\n function deleteSelected() {\r\n var selectedRecords = grid.getSelectedRecords();\r\n for (var i = selectedRecords.length - 1; i >= 0; i--) {\r\n var delIdx = $filter('getIndex')(grid.dataSource, 'Sorszam', selectedRecords[i].Sorszam);\r\n vm.data.UtazasiKoltsegOsszeg -= (!isNaN(selectedRecords[i].UtazasiKoltseg) && Number(selectedRecords[i].UtazasiKoltseg)) ? selectedRecords[i].UtazasiKoltseg : 0;\r\n vm.data.EtkezesOsszeg -= (!isNaN(selectedRecords[i].Etkezes) && Number(selectedRecords[i].Etkezes)) ? selectedRecords[i].Etkezes : 0;\r\n vm.data.SzallasOsszeg -= (!isNaN(selectedRecords[i].Szallas) && Number(selectedRecords[i].Szallas)) ? selectedRecords[i].Szallas : 0;\r\n vm.data.NevezesiOsszeg -= (!isNaN(selectedRecords[i].NevezesiDij) && Number(selectedRecords[i].NevezesiDij)) ? selectedRecords[i].NevezesiDij : 0;\r\n vm.data.KikuldetesiKoltsegOsszeg -= (!isNaN(selectedRecords[i].KikuldetesiKoltseg) && Number(selectedRecords[i].KikuldetesiKoltseg)) ? selectedRecords[i].KikuldetesiKoltseg : 0;\r\n vm.data.EgyebOsszeg -= (!isNaN(selectedRecords[i].Egyeb) && Number(selectedRecords[i].Egyeb)) ? selectedRecords[i].Egyeb : 0;\r\n grid.dataSource.splice(delIdx, 1);\r\n $scope.$apply();\r\n }\r\n if (selectedRecords) {\r\n $timeout(function () {\r\n vm.sorszam = 1;\r\n grid.dataSource.forEach(function (t) {\r\n t.Sorszam = vm.sorszam++;\r\n });\r\n grid.refresh();\r\n }, 333);\r\n }\r\n }\r\n\r\n function enableEdit(arg) {\r\n if (arg && vm.forceDisableEdit) {\r\n return;\r\n }\r\n vm.allowEdit = arg;\r\n grid.editSettings.allowEditing = arg;\r\n grid.editSettings.allowSelection = arg;\r\n grid.editSettings.allowDeleting = arg;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n $('#MoreAgeGroups').ejDropDownList({enabled: arg});\r\n $('#AthleteDropDownMS').ejDropDownList({enabled: arg});\r\n $('#UserDropDownMS').ejDropDownList({enabled: arg});\r\n }\r\n\r\n function openPlan() {\r\n // megkeresem a véglegesités évével és a tény sorszámával.\r\n LoadPlan(vm.tervId);\r\n }\r\n\r\n function openFact() {\r\n LoadPlan(vm.tenyId);\r\n }\r\n\r\n function initAgeGroupDropDown() {\r\n $('#MoreAgeGroups').ejDropDownList({\r\n dataSource: vm.ageGroupList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n change: function (arg) {\r\n if (arg.isChecked) {\r\n if (arg.value == 0) {\r\n for (var a = 1; a < vm.ageGroupList.length; a++) {\r\n $('#MoreAgeGroups').ejDropDownList('unselectItemByValue', vm.ageGroupList[a].value);\r\n }\r\n } else {\r\n $('#MoreAgeGroups').ejDropDownList('unselectItemByValue', 0);\r\n }\r\n }\r\n var selectedItems = $('#MoreAgeGroups').data('ejDropDownList').getSelectedItem();\r\n var moreAgeGroups = [];\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n moreAgeGroups.push(Number(selectedItems[i].dataset.value));\r\n }\r\n getAthleteList(vm.data.KorosztalyId, moreAgeGroups);\r\n }\r\n });\r\n }\r\n\r\n function initAthleteDropDownMS() {\r\n $('#AthleteDropDownMS').ejDropDownList({\r\n dataSource: vm.athleteList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter\r\n });\r\n }\r\n\r\n function initUserDropDownMS() {\r\n $('#UserDropDownMS').ejDropDownList({\r\n dataSource: vm.coachList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter\r\n });\r\n }\r\n\r\n function getBusOwners() {\r\n dataservice.IdegenKoltsegTervBuszTulaj().then(function (response) {\r\n vm.busOwners = response.data;\r\n });\r\n }\r\n\r\n function getBuses() {\r\n dataservice.IdegenKoltsegTervBusz().then(function (resp) {\r\n vm.busLists = resp.data;\r\n });\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.data.Id && vm.data.Id > 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected away budget Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteAwayBudgetPlan(vm.data.Id).then(function (res) {\r\n if (res.retValue) {\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanList');\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n }\r\n})\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan.awayBudgetPlanCreate',\r\n config: {\r\n url: '/awayBudgetPlanCreate',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.html',\r\n controller: 'AwayBudgetPlanCreateController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanCreate',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AwayBudgetPlanListController.$inject = [\"log\", \"$timeout\", \"paramHelper\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"$filter\"];\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanList')\r\n .controller('AwayBudgetPlanListController', AwayBudgetPlanListController);\r\n\r\n function AwayBudgetPlanListController(log, $timeout, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Title\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanList');\r\n\r\n // Section DropDown\r\n vm.sectionList = [];\r\n vm.sectionId = 0;\r\n // Age Group DropDown\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n // Coach DropDown\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n // DatePicker\r\n vm.typeId = 0;\r\n vm.typeList = [\r\n {value: 0, text: gettextCatalog.getString('All')},\r\n {value: 1, text: gettextCatalog.getString('Plan')},\r\n {value: 2, text: gettextCatalog.getString('Fact')}\r\n ];\r\n\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateTo.setMonth(vm.dateTo.getMonth() + 1);\r\n\r\n // Checkbox\r\n vm.onlyStartDate = false;\r\n // Plans Grid\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n template: '#PlanOpenTemplate',\r\n width: 60\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('PlanNumber'),\r\n textAlign: 'center',\r\n width: 80\r\n },\r\n {\r\n field: 'VersenyNeve',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'VersenyHelye',\r\n headerText: gettextCatalog.getString('CompetitionPlace'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'CompetitionStart',\r\n headerText: gettextCatalog.getString('CompetitionStart'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'CompetitionEnd',\r\n headerText: gettextCatalog.getString('CompetitionEnd'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Lezarva',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n },\r\n {\r\n field: 'Vegleges',\r\n headerText: gettextCatalog.getString('Final'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n },\r\n {\r\n field: 'Jovahagyva1',\r\n headerText: gettextCatalog.getString('ProfessionalApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 115\r\n },\r\n {\r\n field: 'Jovahagyva2',\r\n headerText: gettextCatalog.getString('EconomicApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 115\r\n },\r\n {\r\n field: 'Jovahagyva3',\r\n headerText: gettextCatalog.getString('LeaderApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n toolbar: ['Search'],\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.typeDataBound = typeDataBound;\r\n vm.typeSelect = typeSelect;\r\n\r\n vm.search = search;\r\n vm.openPlan = openPlan;\r\n vm.create = create;\r\n vm.delete = deletePlan;\r\n\r\n vm.selectedCoach = 0;\r\n vm.selectedSection = 0;\r\n vm.selectedAgeGroup = 0;\r\n vm.selectedType = 0;\r\n vm.selectedOnlyStartedDate = false;\r\n vm.selectedFromDate = vm.dateFrom;\r\n vm.selectedToDate = vm.dateTo;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV'),\r\n authenticationService.getRight('MODIDEGENKOLTSTERV'),\r\n authenticationService.getRight('UJIDEGENKOLTSTERV'),\r\n authenticationService.getRight('TORLIDEGENKOLTSTERV'),\r\n getSections(),\r\n paramHelper.getParams([], ['awayBudgetPlanList.edzoId', 'awayBudgetPlanList.szakosztalyId', 'awayBudgetPlanList.korosztalyId', 'awayBudgetPlanList.tipus', 'awayBudgetPlanList.csakKezdoDatum', 'awayBudgetPlanList.datumTol', 'awayBudgetPlanList.datumIg', 'awayBudgetPlanList.versenyHelye']),\r\n getCompetitionPlaces()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.MODIDEGENKOLTSTERV = results[1];\r\n vm.UJIDEGENKOLTSTERV = results[2];\r\n vm.TORLIDEGENKOLTSTERV = results[3];\r\n if (results[5]['awayBudgetPlanList.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[5]['awayBudgetPlanList.edzoId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[5]['awayBudgetPlanList.szakosztalyId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[5]['awayBudgetPlanList.korosztalyId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.tipus'] !== undefined) {\r\n vm.selectedType = results[5]['awayBudgetPlanList.tipus'];\r\n }\r\n if (results[5]['awayBudgetPlanList.csakKezdoDatum'] !== undefined) {\r\n vm.selectedOnlyStartedDate = results[5]['awayBudgetPlanList.csakKezdoDatum'];\r\n }\r\n if (results[5]['awayBudgetPlanList.datumTol'] !== undefined) {\r\n vm.dateFrom = results[5]['awayBudgetPlanList.datumTol'];\r\n }\r\n if (results[5]['awayBudgetPlanList.datumIg'] !== undefined) {\r\n vm.dateTo = results[5]['awayBudgetPlanList.datumIg'];\r\n }\r\n if (results[5]['awayBudgetPlanList.versenyHelye'] !== undefined) {\r\n vm.competitionPlace = results[5]['awayBudgetPlanList.versenyHelye'];\r\n }\r\n\r\n if (vm.selectedOnlyStartedDate) {\r\n angular.element('#onlyStartDate').ejCheckBox({checked: vm.selectedOnlyStartedDate});\r\n }\r\n });\r\n }\r\n\r\n function getCompetitionPlaces() {\r\n dataservice.getCompetitionPlaces().then(function (data) {\r\n vm.competitionPlaceList = data.itemsList;\r\n });\r\n }\r\n\r\n function typeDataBound() {\r\n if (!vm.selectedType) {\r\n vm.selectedType = 0;\r\n }\r\n angular.element('#typeDropDown').ejDropDownList('selectItemByValue', vm.selectedType);\r\n }\r\n\r\n function typeSelect(args) {\r\n vm.typeId = args.value;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getCoachList();\r\n }\r\n\r\n // Section dropDownList function Get coach' list\r\n function getCoachList() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'awayBudgetPlanList.edzoId': vm.coachId},\r\n {'awayBudgetPlanList.szakosztalyId': vm.sectionId},\r\n {'awayBudgetPlanList.korosztalyId': vm.ageGroupId},\r\n {'awayBudgetPlanList.tipus': vm.typeId},\r\n {'awayBudgetPlanList.csakKezdoDatum': $('#onlyStartDate').ejCheckBox('isChecked')},\r\n {'awayBudgetPlanList.datumTol': vm.dateFrom},\r\n {'awayBudgetPlanList.datumIg': vm.dateTo},\r\n {'awayBudgetPlanList.versenyHelye': vm.competitionPlace}\r\n ]);\r\n\r\n return dataservice.getAwayBudgetPlanList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.dateFrom, vm.dateTo, vm.onlyStartDate, vm.typeId, vm.competitionPlace).then(function (data) {\r\n var planList = $filter('dateStringFilter')(data.itemsList, 'CompetitionEnd');\r\n grid.dataSource = $filter('dateStringFilter')(planList, 'CompetitionStart');\r\n });\r\n }\r\n\r\n function openPlan(planId) {\r\n paramHelper.setParams([{\r\n 'awayBudgetPlan.planId': planId,\r\n 'awayBudgetPlan.planSection': $('#sectionDropDown').ejDropDownList('getSelectedValue'),\r\n 'awayBudgetPlan.planAgeGroup': $('#ageGroupDropDown').ejDropDownList('getSelectedValue')\r\n }]);\r\n paramHelper.setParams([\r\n {'awayBudgetPlanList.edzoId': vm.coachId},\r\n {'awayBudgetPlanList.szakosztalyId': vm.sectionId},\r\n {'awayBudgetPlanList.korosztalyId': vm.ageGroupId},\r\n {'awayBudgetPlanList.tipus': vm.typeId},\r\n {'awayBudgetPlanList.csakKezdoDatum': $('#onlyStartDate').ejCheckBox('isChecked')},\r\n {'awayBudgetPlanList.datumTol': vm.dateFrom},\r\n {'awayBudgetPlanList.datumIg': vm.dateTo}\r\n ]);\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanCreate');\r\n }\r\n\r\n function create() {\r\n if (!vm.UJIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n openPlan(-1);\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n var selected = $rootScope.getSelectedItems(grid);\r\n if (selected.length != 1) {\r\n log.errorMsg(gettextCatalog.getString('SelectAPlanToDelete'));\r\n } else if (selected.length == 1) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected away budget Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteAwayBudgetPlan(selected[0].Id).then(function () {\r\n search();\r\n log.infoMsg(gettextCatalog.getString('PlanDeleted'));\r\n });\r\n }\r\n }, function () {\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan.awayBudgetPlanList',\r\n config: {\r\n url: '/awayBudgetPlanList',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.html',\r\n controller: 'AwayBudgetPlanListController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanList',\r\n settings: {\r\n navId: 2122,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Idegenbeli költségvetési terv lista',\r\n orderTitle_en: 'Away Budget Plan',\r\n parentId: 2,\r\n content: 'AwayBudgetPlanList',\r\n activatorPermission: ['\"MEGTIDEGENKOLTSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular .module('app.administration.competitiveMonthlyPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan',\r\n config: {\r\n url: '/competitiveMonthlyPlan',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CompetitiveMonthlyPlanListController.$inject = [\"dataservice\", \"log\", \"$q\", \"$state\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$filter\", \"$timeout\", \"$rootScope\"];\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList')\r\n .controller('CompetitiveMonthlyPlanListController', CompetitiveMonthlyPlanListController);\r\n\r\n function CompetitiveMonthlyPlanListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $filter, $timeout, $rootScope) {\r\n var vm = this;\r\n\r\n $rootScope.title = gettextCatalog.getString('CompetitiveMonthlyPlanList');\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [];\r\n\r\n vm.selectedCoach = undefined;\r\n vm.coachList = [];\r\n vm.selectedSection = undefined;\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.allowAddNew = {\r\n team: false,\r\n individual: false\r\n };\r\n vm.sectionList = [];\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n vm.refreshData = refreshData;\r\n\r\n vm.openText = gettextCatalog.getString('Open');\r\n\r\n // Public functions\r\n vm.coachChanged = coachChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToCompetitiveMonthlyPlan = goToCompetitiveMonthlyPlan;\r\n vm.goToNewCompetitiveMonthlyPlan = goToNewCompetitiveMonthlyPlan;\r\n vm.versernytervTorlese = versernytervTorlese;\r\n var coachId = -1;\r\n var sectionId = -1;\r\n var year = -1;\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n }, {\r\n field: 'Link',\r\n headerText: '',\r\n template: '#openDeleteColumnTemplate',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 80\r\n }, {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#coachColumnTemplate',\r\n width: 200\r\n }, {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n }, {\r\n field: 'Lezart',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n displayAsCheckBox: true,\r\n type: 'boolean',\r\n width: 100\r\n }, {\r\n field: 'Elfogadott',\r\n headerText: gettextCatalog.getString('Accepted'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n displayAsCheckBox: true,\r\n type: 'boolean',\r\n width: 100\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Megjegyzes'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 200\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['competitiveMonthlyPlan.edzoId', 'competitiveMonthlyPlan.szakosztalyId', 'competitiveMonthlyPlan.korosztalyId', 'competitiveMonthlyPlan.year']),\r\n getCoaches(),\r\n authenticationService.getRight('UJHAVIVERST'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR2'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROSZT')\r\n ];\r\n\r\n return $q.all(promises).then(function (results) {\r\n angular.element('#maEdzo').ejDropDownList({\r\n dataSource: vm.coachList\r\n });\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n vm.UJHAVIVERST = results[2];\r\n vm.HAVIVERSTALAIR1 = results[3];\r\n vm.HAVIVERSTALAIR2 = results[4];\r\n vm.MEGTHAVIVERST = results[5];\r\n vm.MEGTFELH = results[6];\r\n vm.MEGTKOROSZT = results[7];\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.selectedCoach = results[0]['competitiveMonthlyPlan.edzoId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.selectedSection = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.year']) {\r\n vm.selectedYear = results[0]['competitiveMonthlyPlan.year'];\r\n }\r\n if (vm.selectedCoach || vm.selectedSection || vm.selectedYear) {\r\n refreshData();\r\n }\r\n });\r\n }\r\n\r\n function versernytervTorlese(id, SzakosztalyId) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected competitive monthly plan?'),\r\n text: gettextCatalog.getString('You will not be able to recover the plan!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this competitive monthly plan'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.VersenyTervHaviDeleteById(id, SzakosztalyId).then(\r\n function () {\r\n refreshData();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n if (vm) {\r\n refreshData();\r\n }\r\n paramHelper.setParams([{'competitiveMonthlyPlan.year': vm.selectedYear}]);\r\n }\r\n\r\n function coachChanged(args) {\r\n vm.selectedCoach = args.value;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n paramHelper.setParams([{'competitiveMonthlyPlan.edzoId': vm.selectedCoach}]);\r\n return dataservice.sectionDropDownListWithGroupStatus(vm.selectedCoach).then(\r\n function (data) {\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else if (vm.selectedSection !== undefined) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(args) {\r\n vm.selectedSection = args.value;\r\n vm.allowAddNew = vm.sectionList.find(function (element) {\r\n return element.value === args.value;\r\n });\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n refreshData();\r\n paramHelper.setParams([{'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection}]);\r\n }\r\n\r\n function refreshData() {\r\n if (vm.selectedSection && vm.selectedCoach !== 0 && vm.selectedYear !== 0) {\r\n sectionId = vm.selectedSection;\r\n coachId = vm.selectedCoach;\r\n year = vm.selectedYear;\r\n } else {\r\n return;\r\n }\r\n dataservice.getCompetitiveMonthlyPlanList(coachId, sectionId, year).then(\r\n function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Honap');\r\n $timeout(function () {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n );\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'competitiveMonthlyPlan.edzoId': vm.selectedCoach\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection\r\n }, {\r\n 'newUser.userId': edzoId\r\n }]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToCompetitiveMonthlyPlan(competitivePlanId) {\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n\r\n var elem = vm.data.filter(function (a) {\r\n return a.Id == competitivePlanId;\r\n });\r\n if (elem.length === 0) {\r\n return;\r\n }\r\n\r\n paramHelper.setParams([{\r\n 'competitiveMonthlyPlan.edzoId': elem[0].EdzoId\r\n }, {\r\n 'competitiveMonthlyPlan.edzoNev': elem[0].Edzo\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyNev': elem[0].Szakosztaly\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyId': elem[0].SzakosztalyId\r\n }, {\r\n 'competitiveMonthlyPlan.competitivePlanId': elem[0].Id\r\n },\r\n {'competitiveMonthlyPlan.egyeni': elem[0].Egyeni}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function goToNewCompetitiveMonthlyPlan(arg) {\r\n if (!vm.UJHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n var egyeni = (arg == 'egyeni');\r\n var datum = new Date();\r\n dataservice.ujHaviVersenyeztetesiTerv(datum, vm.selectedSection, vm.selectedCoach, egyeni).then(function (result) {\r\n datum = result.data;\r\n paramHelper.setParams([\r\n {'competitiveMonthlyPlan.edzoId': vm.selectedCoach},\r\n {'competitiveMonthlyPlan.edzoNev': angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText},\r\n {'competitiveMonthlyPlan.szakosztalyNev': angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText},\r\n {'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection},\r\n {'competitiveMonthlyPlan.competitivePlanId': -1},\r\n {'competitiveMonthlyPlan.egyeni': egyeni},\r\n {'competitiveMonthlyPlan.datum': datum}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan.competitiveMonthlyPlanList',\r\n config: {\r\n url: '/competitiveMonthlyPlanList',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.html',\r\n controller: 'CompetitiveMonthlyPlanListController',\r\n controllerAs: 'vm',\r\n title: 'CompetitiveMonthlyPlanList',\r\n settings: {\r\n navId: 262,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Havi versenyeztetési terv',\r\n orderTitle_en: 'Monthly Competition Plan',\r\n parentId: 2,\r\n content: 'CompetitiveMonthlyPlanList',\r\n activatorPermission: ['\"MEGTHAVIVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TeamsCtrl.$inject = [\"dataservice\", \"log\", \"$q\", \"$state\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$compile\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport')\r\n .controller('CompetitiveMonthlyPlanReportController', TeamsCtrl);\r\n\r\n function TeamsCtrl(dataservice, log, $q, $state, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $compile, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CompetitiveMonthlyPlanReport');\r\n\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n\r\n var gridHasAppended = false;\r\n // Grid's details\r\n vm.selectedAgeGroup = undefined;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.data = [];\r\n vm.dataYear = [];\r\n vm.columnsYear = [];\r\n vm.stackedHeaderRows = [];\r\n vm.coachsAgeGroups = [];\r\n initEvesGrid();\r\n\r\n vm.SzakosztalyNeve = '';\r\n vm.EdzoNeve = '';\r\n vm.SzakosztalyId = 0;\r\n vm.EdzoId = 0;\r\n vm.MODHAVIVERST = false;\r\n vm.readOnlyMonthlyPlan = true;\r\n vm.reportParameters = {};\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n vm.alreadyCreated = false;\r\n\r\n var evIg = new Date().getFullYear();\r\n var evvege = (new Date().getMonth() >= 9);\r\n if (evvege) {\r\n evIg++;\r\n }\r\n var year = new Date().getFullYear();\r\n var month = new Date().getMonth();\r\n\r\n for (var ev = year - 10; ev <= evIg; ev++) {\r\n vm.years.push({text: ev, value: ev});\r\n }\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.individualText = gettextCatalog.getString('Individual');\r\n vm.teamText = gettextCatalog.getString('Team');\r\n\r\n vm.selectedYear = undefined;\r\n vm.selectedMonth = undefined;\r\n\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n\r\n vm.egyeni = false;\r\n\r\n vm.noMonthlyPlan = false;\r\n vm.hasMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n\r\n //A szerkesztés alatt álló havi versenyterv\r\n vm.editedMonthlyPlan = {};\r\n\r\n //Jelenlét hiba volt a mentés során\r\n vm.hasErrorAtSave = false;\r\n //Visszautasítás indoka kerül bele\r\n vm.rejectMonthlyPlanText = '';\r\n\r\n vm.coachDataBound = coachDataBound;\r\n vm.deletePlan = deletePlan;\r\n vm.closeMonthlyPlan = closeMonthlyPlan;\r\n vm.acceptMonthlyPlan = acceptMonthlyPlan;\r\n vm.rejectMonthlyPlan = rejectMonthlyPlan;\r\n vm.saveMonthlyPlan = saveMonthlyPlan;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.rejectMonthlyPlan = rejectMonthlyPlan;\r\n vm.rejectMonthlyPlanOk = rejectMonthlyPlanOk;\r\n //vm.lefut = lefut;\r\n vm.actionBegin = actionBegin;\r\n vm.printMonthlyPlan = printMonthlyPlan;\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n vm.cellEdit = cellEdit;\r\n vm.cellSave = cellSave;\r\n\r\n vm.yearSelect = yearSelect;\r\n vm.monthSelect = monthSelect;\r\n\r\n vm.selectedRowIndexPopup = -1;\r\n vm.goToOlderMonthlyCompetitiveReports = goToOlderMonthlyCompetitiveReports;\r\n vm.closeEarlierCompetitvePlanWindow = closeEarlierCompetitvePlanWindow;\r\n vm.selectEarlierCompetitvePlanWindow = selectEarlierCompetitvePlanWindow;\r\n\r\n vm.dataPopup = [];\r\n\r\n vm.Id = 0;\r\n vm.editedRowId = 0;\r\n var coachId = -1;\r\n var sectionId = -1;\r\n var reopen = false;\r\n var newplan = false;\r\n\r\n var printOpenedCS = false;\r\n var printOpenedE = false;\r\n\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.editedColumnName = '';\r\n vm.CopyCellToColumn = CopyCellToColumn;\r\n\r\n vm.dateTimeEditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000.00.00.',\r\n value: args.rowData[args.column.field],\r\n readOnly: vm.readOnlyMonthlyPlan,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n var columnsSet = -1;\r\n\r\n activate();\r\n refreshGrid();\r\n\r\n function EdzoKorcsoportjai(EdzoId) {\r\n dataservice.getEdzoKorcsoportjai(EdzoId).then(function (data) {\r\n vm.coachsAgeGroups = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupSelect(arg) {\r\n vm.selectedAgeGroup = arg.value;\r\n VersenyTervTablazat(vm.EdzoId, vm.selectedAgeGroup, vm.selectedMonth);\r\n }\r\n\r\n function VersenyTervTablazat(edzo, korcsoport, honap) {\r\n initEvesGrid();\r\n dataservice.annualSeasponPlanTableListSelect2(edzo, korcsoport, honap)\r\n .then(function (data) {\r\n vm.dataYear = data.itemsList;\r\n gridSearch.dataSource = vm.dataYear;\r\n });\r\n }\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'RowNumber', headerText: '', textAlign: 'center', width: 50, allowEditing: false},\r\n {\r\n field: 'KorosztalySportolo',\r\n headerText: gettextCatalog.getString('Korosztály, sportoló'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 175,\r\n //template: '#cmpropenathlete'\r\n },\r\n {\r\n field: 'KorosztalyCsapat',\r\n headerText: gettextCatalog.getString('AgeGroupTeam'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 175,\r\n },\r\n {\r\n field: 'Merkozes1',\r\n headerText: gettextCatalog.getString('Verseny') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes1')\r\n },\r\n {\r\n field: 'Versenyszam1',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam1')\r\n },\r\n {\r\n field: 'Helyszin1',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin1')\r\n },\r\n {\r\n field: 'Eredmeny1',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny1')\r\n },\r\n {\r\n field: 'DatumTol1',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 1',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg1',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 1',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes2',\r\n headerText: gettextCatalog.getString('Verseny') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes2')\r\n },\r\n {\r\n field: 'Versenyszam2',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam2')\r\n },\r\n {\r\n field: 'Helyszin2',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin2')\r\n },\r\n {\r\n field: 'Eredmeny2',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny2')\r\n },\r\n {\r\n field: 'DatumTol2',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 2',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'DatumIg2',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 2',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'Merkozes3',\r\n headerText: gettextCatalog.getString('Verseny') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes3')\r\n },\r\n {\r\n field: 'Versenyszam3',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam3')\r\n },\r\n {\r\n field: 'Helyszin3',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin3')\r\n },\r\n {\r\n field: 'Eredmeny3',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny3')\r\n },\r\n {\r\n field: 'DatumTol3',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 3',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'DatumIg3',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 3',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'Merkozes4',\r\n headerText: gettextCatalog.getString('Verseny') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes4')\r\n },\r\n {\r\n field: 'Versenyszam4',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam4')\r\n },\r\n {\r\n field: 'Helyszin4',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin4')\r\n },\r\n {\r\n field: 'Eredmeny4',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny4')\r\n },\r\n {\r\n field: 'DatumTol4',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 4',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg4',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 4',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes5',\r\n headerText: gettextCatalog.getString('Verseny') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes5')\r\n },\r\n {\r\n field: 'Versenyszam5',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam5')\r\n },\r\n {\r\n field: 'Helyszin5',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin5')\r\n },\r\n {\r\n field: 'Eredmeny5',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny5')\r\n },\r\n {\r\n field: 'DatumTol5',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 5',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n // allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg5',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 5',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes6',\r\n headerText: gettextCatalog.getString('Verseny') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes6')\r\n },\r\n {\r\n field: 'Versenyszam6',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam6')\r\n },\r\n {\r\n field: 'Helyszin6',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin6')\r\n },\r\n {\r\n field: 'Eredmeny6',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny6')\r\n },\r\n {\r\n field: 'DatumTol6',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 6',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg6',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 6',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes7',\r\n headerText: gettextCatalog.getString('Verseny') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes7')\r\n },\r\n {\r\n field: 'Versenyszam7',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam7')\r\n },\r\n {\r\n field: 'Helyszin7',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin7')\r\n },\r\n {\r\n field: 'Eredmeny7',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny7')\r\n },\r\n {\r\n field: 'DatumTol7',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 7',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg7',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 7',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes8',\r\n headerText: gettextCatalog.getString('Verseny') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes8')\r\n },\r\n {\r\n field: 'Versenyszam8',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam8')\r\n },\r\n {\r\n field: 'Helyszin8',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin8')\r\n },\r\n {\r\n field: 'Eredmeny8',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny8')\r\n },\r\n {\r\n field: 'DatumTol8',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 8',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg8',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 8',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n }\r\n ];\r\n\r\n var gridNew = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n cellSave: vm.cellSave,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: vm.gridRowSelected,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridNew'), $scope);\r\n }\r\n },\r\n cellEdit: function (arg) {\r\n vm.AthleteUnderEditing = arg.rowData.SportoloId != null ? arg.rowData.KorosztalySportolo : arg.rowData.KorosztalyCsapat;\r\n vm.editedColumnName = arg.columnName;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n gridNew.appendTo('#GridNew');\r\n gridNew.keyConfigs.escape = '';\r\n gridNew.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridNew);\r\n };\r\n\r\n var gridSearch = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n columns: vm.columnsYear,\r\n stackedHeaderRows: vm.stackedHeaderRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridYear'), $scope);\r\n }\r\n }\r\n });\r\n gridSearch.appendTo('#GridYear');\r\n gridSearch.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridSearch);\r\n };\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n function activate() {\r\n // $scope.$watch('vm.data', function (args) {\r\n // //console.log('watcher: ', args);\r\n // });\r\n // $scope.$watch('vm.editedMonthlyPlan.tetelek', function (args) {\r\n // //console.log('watcher tetelek: ', args);\r\n // });\r\n\r\n $q.all([paramHelper.getParams([], ['competitiveMonthlyPlan.competitivePlanId', 'competitiveMonthlyPlan.szakosztalyId', 'competitiveMonthlyPlan.szakosztalyNev', 'competitiveMonthlyPlan.edzoId', 'competitiveMonthlyPlan.edzoNev', 'competitiveMonthlyPlan.egyeni', 'competitiveMonthlyPlan.datum']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR2'),\r\n authenticationService.getRight('UJHAVIVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('TORLHAVIVERS'),\r\n authenticationService.getRight('MODHAVIVERST')\r\n ])\r\n .then(function (results) {\r\n if (!results[9]) {\r\n log.permissionError(true);\r\n } else {\r\n //VersenyTervTablazat();\r\n\r\n $timeout(function () {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.HAVIVERSTALAIR1 = results[5];\r\n vm.HAVIVERSTALAIR2 = results[6];\r\n vm.UJHAVIVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTHAVIJEL = results[9];\r\n vm.TORLHAVIVERS = results[10];\r\n vm.MODHAVIVERST = results[11];\r\n\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyNev']) {\r\n vm.SzakosztalyNeve = results[0]['competitiveMonthlyPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoNev']) {\r\n vm.EdzoNeve = results[0]['competitiveMonthlyPlan.edzoNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.SzakosztalyId = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n vm.egyeni = false;\r\n if (results[0]['competitiveMonthlyPlan.egyeni'] != undefined) {\r\n vm.egyeni = results[0]['competitiveMonthlyPlan.egyeni'];\r\n if (vm.egyeni) {\r\n vm.columns[3].visible = false;\r\n vm.columns[2].visible = true;\r\n } else {\r\n vm.columns[2].visible = false;\r\n vm.columns[3].visible = true;\r\n }\r\n gridNew.refresh();\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n EdzoKorcsoportjai(vm.EdzoId);\r\n }\r\n\r\n //létezőt nyit vissza\r\n if (results[0]['competitiveMonthlyPlan.competitivePlanId'] && results[0]['competitiveMonthlyPlan.competitivePlanId'] !== -1) {\r\n paramHelper.removeParam('competitiveMonthlyPlan.competitivePlanId');\r\n reopen = true;\r\n dataservice.monthlyPlanSelectById(results[0]['competitiveMonthlyPlan.competitivePlanId'], results[0]['competitiveMonthlyPlan.szakosztalyId'], vm.egyeni)\r\n .then(function (data) {\r\n viewMonthlyPlan(data);\r\n var date = data.fej.Datum.split('-');\r\n $timeout(function () {\r\n var Datum = new Date(date[0], date[1] - 1, 1, 0, 0, 0);\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', Datum.getFullYear());\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', Datum.getMonth());\r\n $scope.$apply();\r\n }, 100);\r\n vm.defaultSection = vm.editedMonthlyPlan.fej.IdSzakosztaly;\r\n sectionId = vm.editedMonthlyPlan.fej.IdSzakosztaly;\r\n vm.defaultCoach = vm.editedMonthlyPlan.fej.IdEdzo;\r\n coachId = vm.editedMonthlyPlan.fej.IdEdzo;\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = data.fej.SzakosztalyNeve;\r\n vm.editedMonthlyPlan.fej.EdzoNeve = data.fej.EdzoNeve;\r\n vm.Id = vm.editedMonthlyPlan.fej.Id;\r\n });\r\n //új versenyeztetési terv\r\n } else {\r\n newplan = true;\r\n vm.noMonthlyPlan = true;\r\n vm.editedMonthlyPlan = {};\r\n vm.editedMonthlyPlan.fej = {};\r\n vm.editedMonthlyPlan.fej.Id = -1;\r\n vm.editedMonthlyPlan.fej.Tipus = vm.egyeni;\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyNev']) {\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = results[0]['competitiveMonthlyPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoNev']) {\r\n vm.editedMonthlyPlan.fej.EdzoNeve = results[0]['competitiveMonthlyPlan.edzoNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.editedMonthlyPlan.fej.SzakosztalyId = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n vm.editedMonthlyPlan.fej.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n EdzoKorcsoportjai(vm.EdzoId);\r\n }\r\n $timeout(function () {\r\n var datum = new Date(results[0]['competitiveMonthlyPlan.datum']);\r\n vm.selectedYear = datum.getFullYear();\r\n vm.selectedMonth = datum.getMonth();\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n $scope.$apply();\r\n }, 0);\r\n // selectByDate(); // Ha az adott hónapra már van terv, akkor azt tölti vissza\r\n }\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function actionBegin(args) {\r\n if (args.requestType && (args.requestType === 'paging' || args.requestType === 'sorting')) {\r\n args.cancel = true;\r\n gridNew.editModule.batchSave();\r\n }\r\n }\r\n\r\n function viewMonthlyPlan(data) {\r\n vm.editedMonthlyPlan = data;\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol1');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol2');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol3');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol4');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol5');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol6');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol7');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol8');\r\n\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg1');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg2');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg3');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg4');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg5');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg6');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg7');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg8');\r\n\r\n vm.noMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasMonthlyPlan = false;\r\n // UJ\r\n if (!vm.editedMonthlyPlan.fej || vm.editedMonthlyPlan.fej.Id < 0) {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.noMonthlyPlan = true;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.UJHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.UJHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n // if(vm.selectedMonth) {\r\n // createNewMonthlyPlan();\r\n // refreshGrid();\r\n // }\r\n // LETEZO\r\n } else {\r\n if (vm.editedMonthlyPlan.fej.Vegleges) {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyVezetoId) {\r\n vm.hasAcceptedMonthlyPlan = true;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n } else {\r\n vm.hasSignedMonthlyPlan = true;\r\n if (vm.UJHAVIVERST) {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HAVIVERSTALAIR1) {\r\n vm.acceptButton = true;\r\n vm.rejectButton = true;\r\n } else {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n }\r\n }\r\n } else {\r\n vm.hasMonthlyPlan = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.MODHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.MODHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n }\r\n vm.data = vm.editedMonthlyPlan.tetelek;\r\n }\r\n\r\n vm.readOnlyMonthlyPlan = !vm.saveButton;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyMonthlyPlan;\r\n\r\n if (vm.editedMonthlyPlan.fej) {\r\n vm.leadvaStr = $filter('dateStringFilter')(vm.editedMonthlyPlan.fej.Leadva);\r\n vm.elfogadvaStr = $filter('dateStringFilter')(vm.editedMonthlyPlan.fej.Elfogadas1);\r\n }\r\n refreshGrid();\r\n }\r\n\r\n function refreshGrid() {\r\n //vm.columns = [];\r\n\r\n if (gridNew) {\r\n gridNew.columns = vm.columns;\r\n gridNew.dataSource = vm.data; //[{Id: 1, RowNumber:1}, {Id: 2, RowNumber:2}];\r\n }\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Trainer'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function createNewMonthlyPlan() {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyId) {\r\n sectionId = vm.editedMonthlyPlan.fej.SzakosztalyId;\r\n }\r\n if (vm.editedMonthlyPlan.fej.EdzoId) {\r\n coachId = vm.editedMonthlyPlan.fej.EdzoId;\r\n }\r\n // TODO a versenyterven nem szerepelnek csak azok akik 1-én tagok voltak (nem lehete utólag helyesen tölteni)\r\n // dataservice.getCompetitiveMonthlyPlanItems(coachId, sectionId, moment(vm.editedMonthlyPlan.fej.Datum).endOf('month').format('YYYY-MM-DD'), vm.egyeni)\r\n dataservice.getCompetitiveMonthlyPlanItems(coachId, sectionId, moment(vm.editedMonthlyPlan.fej.Datum).format('YYYY-MM-DD'), vm.egyeni)\r\n .then(function (data2) {\r\n vm.data = data2.itemsList;\r\n vm.editedMonthlyPlan.tetelek = vm.data;\r\n gridNew.editSettings.allowEditing = true;\r\n refreshGrid();\r\n //saveMonthlyPlan();\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.defaultCoach);\r\n vm.selectedCoach = vm.defaultCoach;\r\n }\r\n }\r\n\r\n function closeMonthlyPlan() {\r\n $scope.$broadcast('submitted');\r\n vm.editedMonthlyPlan.fej.Vegleges = true;\r\n vm.editedMonthlyPlan.fej.Leadva = moment();\r\n saveMonthlyPlan();\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyMonthlyPlan = true;\r\n }\r\n }\r\n\r\n function acceptMonthlyPlan() {\r\n dataservice.monthlyCompetitionPlanAcceptByLeader(vm.editedMonthlyPlan.fej.Id, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.editedMonthlyPlan.fej.Tipus).then(function () {\r\n log.successMsg('CompetitionPlanAccepted');\r\n dataservice.monthlyPlanSelectById(vm.editedMonthlyPlan.fej.Id, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.egyeni).then(function (data) {\r\n viewMonthlyPlan(data);\r\n });\r\n });\r\n }\r\n\r\n //Havi jelenléti visszautasítása gomb click\r\n function rejectMonthlyPlan() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectMonthlyPlanOk() {\r\n if (vm.rejectMonthlyPlanText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '
' + gettextCatalog.getString('The') + ' ' + vm.editedMonthlyPlan.fej.SzakosztalyNev + ' - ' + ' ' + vm.selectedYear +\r\n ' ' + vm.months[vm.selectedMonth].text +\r\n ' ' + gettextCatalog.getString('MonthlyAttendanceReportRejected') + '
' + gettextCatalog.getString('Cause') + vm.MonthlyPlanText;\r\n\r\n dataservice.messageSave(uzi, [vm.selectedCoach], vm.selectedSection).then(function () {\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas2 = null;\r\n vm.editedMonthlyPlan.fej.SzakosztalyVezetoId = null;\r\n vm.editedMonthlyPlan.fej.GazdasagiId = null;\r\n saveMonthlyPlan();\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyMonthlyPlan = false;\r\n }\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n });\r\n }\r\n\r\n function saveMonthlyPlan() {\r\n $scope.$broadcast('submitted');\r\n if (gridNew.editSettings.allowEditing) {\r\n gridNew.editModule.endEdit();\r\n }\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!vm.MODHAVIVERST && vm.editedMonthlyPlan.fej.Id > 0) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.editedMonthlyPlan.tetelek = vm.data;\r\n dataservice.saveMonthlyCompetitionPlan(vm.editedMonthlyPlan)\r\n .then(function (/*id*/) {\r\n log.successMsg('aaaaCompetitionPlanSaved');\r\n $rootScope.back();\r\n /*\r\n if (vm.editedMonthlyPlan.fej.Id < 0) {\r\n dataservice.monthlyPlanSelectById(id.res, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.egyeni).then(function (data) {\r\n viewMonthlyPlan(data);\r\n });\r\n }\r\n */\r\n });\r\n }\r\n\r\n vm.yearDatabound = function () {\r\n $timeout(function () {\r\n vm.selectedYear = year;\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }, 0);\r\n };\r\n\r\n function yearSelect(args) {\r\n if (!vm.editedMonthlyPlan || !vm.editedMonthlyPlan.fej || !vm.editedMonthlyPlan.fej.Datum) {\r\n return;\r\n }\r\n if (vm.selectedYear != args.value) {\r\n vm.alreadyCreated = false;\r\n }\r\n vm.selectedYear = args.value;\r\n vm.editedMonthlyPlan.fej.Datum = moment(vm.editedMonthlyPlan.fej.Datum).year(vm.selectedYear).format('YYYY-MM-DD');\r\n }\r\n\r\n vm.monthDatabound = function () {\r\n $timeout(function () {\r\n vm.selectedMonth = month;\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', vm.selectedMonth);\r\n }, 0);\r\n };\r\n\r\n function monthSelect(args) {\r\n if (!vm.editedMonthlyPlan || !vm.editedMonthlyPlan.fej || !vm.editedMonthlyPlan.fej.Datum) {\r\n return;\r\n }\r\n if (vm.selectedMonth != args.value) {\r\n vm.alreadyCreated = false;\r\n }\r\n vm.selectedMonth = args.value;\r\n\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n if (vm.selectedYear && vm.selectedMonth >= 0) {\r\n selectByDate();\r\n }\r\n if (vm.selectedAgeGroup) {\r\n VersenyTervTablazat(vm.EdzoId, vm.selectedAgeGroup, vm.selectedMonth);\r\n }\r\n }\r\n\r\n function selectByDate() {\r\n if (reopen || angular.isUndefined(vm.selectedMonth) || vm.alreadyCreated) {\r\n return;\r\n }\r\n vm.alreadyCreated = true;\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyId) {\r\n sectionId = vm.editedMonthlyPlan.fej.SzakosztalyId;\r\n }\r\n if (vm.editedMonthlyPlan.fej.EdzoId) {\r\n coachId = vm.editedMonthlyPlan.fej.EdzoId;\r\n }\r\n dataservice.monthlyPlanSelectByDate(vm.selectedYear, vm.selectedMonth + 1, sectionId, coachId, newplan, vm.egyeni).then(function (data) {\r\n if (!data.status) { // nem null érkezett (új terv, és van az adott hónapra terv)\r\n vm.readOnlyMonthlyPlan = true;\r\n viewMonthlyPlan(data);\r\n } else { // null érkezett (új terv, és nincs még az adott hónapra)\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Id = -1;\r\n vm.editedMonthlyPlan.fej.Megjegyzes = '';\r\n vm.elfogadvaStr = '';\r\n vm.leadvaStr = '';\r\n vm.saveButton = true;\r\n vm.rejectButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.noMonthlyPlan = true;\r\n vm.hasMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n vm.readOnlyMonthlyPlan = false;\r\n createNewMonthlyPlan();\r\n }\r\n });\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyVezetoId === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.editedMonthlyPlan.fej.SzakosztalyVezetoId)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function printMonthlyPlan() {\r\n $q.all([getAccepterCoachById(), getSystemSettings()])\r\n .then(function (results) {\r\n var honap = moment(vm.editedMonthlyPlan.fej.Datum).format('YYYY-MM');\r\n var masodiklap = 1;\r\n if (vm.editedMonthlyPlan.tetelek == null || vm.editedMonthlyPlan.tetelek.length == 0) {\r\n masodiklap = 1;\r\n } else {\r\n vm.editedMonthlyPlan.tetelek.forEach(function (element) {\r\n if (\r\n element.Merkozes7 !== null || element.Merkozes8 !== null ||\r\n element.Eredmeny7 !== null || element.Eredmeny8 !== null ||\r\n element.Helyezes7 !== null || element.Helyezes8 !== null) {\r\n masodiklap = masodiklap < 4 ? 4 : masodiklap;\r\n } else if (\r\n element.Merkozes5 !== null || element.Merkozes6 !== null ||\r\n element.Eredmeny5 !== null || element.Eredmeny6 !== null ||\r\n element.Helyezes5 !== null || element.Helyezes6 !== null) {\r\n masodiklap = masodiklap < 3 ? 3 : masodiklap;\r\n } else if (\r\n element.Merkozes3 !== null || element.Merkozes4 !== null ||\r\n element.Eredmeny3 !== null || element.Eredmeny4 !== null ||\r\n element.Helyezes3 !== null || element.Helyezes4 !== null) {\r\n masodiklap = masodiklap < 2 ? 2 : masodiklap;\r\n }\r\n });\r\n }\r\n vm.reportParameters = {\r\n Honap: honap,\r\n Szakosztaly: vm.editedMonthlyPlan.fej.SzakosztalyNeve,\r\n EdzoNeve: vm.editedMonthlyPlan.fej.EdzoNeve,\r\n Edzo: vm.editedMonthlyPlan.fej.EdzoNeve,\r\n Varos: results[1] == null ? '' : (results[1] + ', '),\r\n Jovahagyta1: results[0],\r\n Veglegesitve: vm.leadvaStr,\r\n Elfogadas1: vm.elfogadvaStr,\r\n Jovahagyta2: '',\r\n Merkozes1: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes1 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes1,\r\n Merkozes2: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes2 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes2,\r\n Merkozes3: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes3 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes3,\r\n Merkozes4: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes4 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes4,\r\n Merkozes5: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes5 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes5,\r\n Merkozes6: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes6 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes6,\r\n Merkozes7: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes7 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes7,\r\n Merkozes8: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes8 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes8,\r\n TervId: vm.editedMonthlyPlan.fej.Id,\r\n Masodiklap: masodiklap\r\n };\r\n if (vm.egyeni == true) {\r\n if (printOpenedE) {\r\n angular.element('#printDialogE').ejDialog('open');\r\n } else {\r\n printOpenedE = true;\r\n angular.element('#printDialogE').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n } else {\r\n if (printOpenedCS) {\r\n angular.element('#printDialogCS').ejDialog('open');\r\n } else {\r\n printOpenedCS = true;\r\n angular.element('#printDialogCS').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openTeam(teamid, ageGroupId, sectionId) {\r\n paramHelper.setParams([\r\n {'teams.team': teamid},\r\n {'teams.ageGroupId': ageGroupId},\r\n {'teams.sectionId': sectionId}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n\r\n function cellEdit(args) {\r\n if (vm.readOnlyMonthlyPlan) {\r\n args.cancel = true;\r\n }\r\n }\r\n\r\n function goToOlderMonthlyCompetitiveReports() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldCompetitivePlanByUserId(vm.editedMonthlyPlan.fej.EdzoId, vm.editedMonthlyPlan.fej.Id).then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n gridPopup.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeEarlierCompetitvePlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierCompetitvePlanWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.getSelectedRowIndexes();\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.monthlyPlanSelectById(vmi.Id, vmi.SzakosztalyId).then(function (data) {\r\n vm.editedMonthlyPlan = {};\r\n vm.editedMonthlyPlan.fej = {};\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.EdzoId = vm.EdzoId;\r\n vm.editedMonthlyPlan.fej.EdzoNeve = vm.EdzoNeve;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas2 = null;\r\n vm.editedMonthlyPlan.fej.GazdasagiId = null;\r\n vm.Id = 0;\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Megjegyzes = data.fej.Megjegyzes;\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = vm.SzakosztalyNeve;\r\n vm.editedMonthlyPlan.fej.SzakosztalyId = vm.SzakosztalyId;\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.SzakosztalyVezetoId = null;\r\n vm.editedMonthlyPlan.tetelek = data.tetelek;\r\n vm.leadvaStr = null;\r\n vm.elfogadvaStr = null;\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n vm.Id = 0;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLHAVIVERS) {\r\n log.permissionError();\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected competitive monthly plan?'),\r\n text: gettextCatalog.getString('You will not be able to recover the plan!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this competitive monthly plan'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.VersenyTervHaviDeleteById(vm.editedMonthlyPlan.fej.Id, vm.SzakosztalyId, vm.egyeni).then(\r\n function () {\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanList');\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettings() {\r\n return dataservice.getSystemSettingsValue('VAROS').then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function CopyCellToColumn() {\r\n gridNew.editModule.batchSave();\r\n var db = vm.data.length;\r\n for (var rowCntr = 0; rowCntr < db; rowCntr++) {\r\n vm.data[rowCntr][vm.editedColumnName] = vm.editedColumnValue;\r\n }\r\n gridNew.refresh();\r\n }\r\n\r\n function cellSave(arg) {\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n vm.editedColumnValue = arg.value;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function initEvesGrid() {\r\n vm.columnsYear = [];\r\n vm.columnsYear = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: 30\r\n },\r\n {\r\n field: 'HetSzam',\r\n headerText: gettextCatalog.getString('WeekNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkHetSzam',\r\n headerText: gettextCatalog.getString('PreparationWeekNumber'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'FelkIdJellTiszta',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoTiszta'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkIdJellVegyes',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVegyes'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkIdJellVerseny',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVerseny'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamAlt',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamAltalanos'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamSpSpec',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamSportagSpecifikus'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamOsszesen',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamOsszesen'),\r\n textAlign: 'center',\r\n width: 110,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesMagas',\r\n headerText: gettextCatalog.getString('HetiTerhelesMagas'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesKozepes',\r\n headerText: gettextCatalog.getString('HetiTerhelesKozepes'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesAlacsony',\r\n headerText: gettextCatalog.getString('HetiTerhelesAlacsony'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaTechnikai',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaTechnikai'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaKepFejl',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKepessegFejlesztes'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaKieg',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKiegeszito'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaEgyeb',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaEgyeb'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelmeresekAlt',\r\n headerText: gettextCatalog.getString('GeneralSurveys'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelmeresekSpSpec',\r\n headerText: gettextCatalog.getString('SportagSpecifikusFelmeresek'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'EdzTabIdopont',\r\n headerText: gettextCatalog.getString('EdzotaborozasIdopont'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'EdzTabHely',\r\n headerText: gettextCatalog.getString('EdzotaborozasHely'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'EdzTabLetszam',\r\n headerText: gettextCatalog.getString('EdzotaborozasLetszam'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Verseny',\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ];\r\n\r\n vm.stackedHeaderRows = [{\r\n stackedHeaderColumns: [{\r\n headerText: gettextCatalog.getString('FelkHetSzam') + '
(1-52)',\r\n column: 'HetSzam, FelkHetSzam, Datum',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('FelkIdJelleg') + '
(X)',\r\n column: 'FelkIdJellTiszta, FelkIdJellVegyes, FelkIdJellVerseny',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesSzam') + '
(0-21)',\r\n column: 'HetiEdzesSzamAlt, HetiEdzesSzamSpSpec, HetiEdzesSzamOsszesen',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiTerheles') + '
(X, 0-9)',\r\n column: 'HetiTerhelesMagas, HetiTerhelesKozepes, HetiTerhelesAlacsony',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesJell') + '
(X, 0-9)',\r\n column: 'HetiEdzMunkaTechnikai, HetiEdzMunkaKepFejl, HetiEdzMunkaKieg, HetiEdzMunkaEgyeb',\r\n textAlign: 'center',\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Felmeresek') + '
(0-9)',\r\n column: 'FelmeresekAlt, FelmeresekSpSpec',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edzotaborozas') + '
',\r\n column: 'EdzTabIdopont, EdzTabHely, EdzTabLetszam',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Verseny') + '
',\r\n column: 'Verseny',\r\n textAlign: 'center'\r\n }\r\n ]\r\n }];\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport',\r\n config: {\r\n url: '/competitiveMonthlyPlanReport',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.html',\r\n controller: 'CompetitiveMonthlyPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DailyAttendanceController.$inject = [\"log\", \"logger\", \"DOMAIN\", \"paramHelper\", \"$state\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\"];\r\n angular\r\n .module('app.administration.dailyAttendance')\r\n .controller('DailyAttendanceController', DailyAttendanceController);\r\n\r\n function DailyAttendanceController(log, logger, DOMAIN, paramHelper, $state, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('dailyAttendance');\r\n vm.presenceText = gettextCatalog.getString('presenceText');\r\n vm.absenceText = gettextCatalog.getString('absenceText');\r\n vm.provenabsenceText = gettextCatalog.getString('provenabsenceText');\r\n vm.competitionText = gettextCatalog.getString('competitionText');\r\n vm.holidayText = gettextCatalog.getString('holidayText');\r\n vm.sicknessText = gettextCatalog.getString('sicknessText');\r\n vm.injuryText = gettextCatalog.getString('injuryText');\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n var newAthletesId = -1;\r\n vm.allAgeGroupfill = false;\r\n vm.coachList = [];\r\n vm.thereIsIncativeAthlete = false;\r\n vm.clicked = null;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.saveAttendance = saveAttendance;\r\n vm.loadAttendance = loadAttendance;\r\n vm.iconClicked = iconClicked;\r\n vm.DDClick = DDClick;\r\n vm.sectionId = undefined;\r\n vm.ageGroupId = undefined;\r\n vm.userid = undefined;\r\n vm.editedAttendance = {};\r\n vm.dayz = {};\r\n vm.today = {};\r\n vm.today.Year = new Date().getFullYear();\r\n vm.today.Month = new Date().getMonth() + 1;\r\n vm.today.Day = new Date().getDate();\r\n var button = {\r\n UNDEFINED: -1,\r\n PRESENCE: 1,\r\n ABSENCE: 2,\r\n PROVENABSENCE: 3, //22,\r\n HOLIDAY: 4,\r\n SICKNESS: 5,\r\n INJURY: 6,\r\n COMPETITION: 7, //3,\r\n NOTPRESSED: 10\r\n };\r\n vm.b = button;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('HJFELVIHET'), authenticationService.getRight('MEGTHAVIJEL'), authenticationService.getRight('EDZO'), authenticationService.getRight('SZAKOSZTVEZ'), paramHelper.getParams([], ['dailyAttendance.SzakosztalyId'])];\r\n $q.all(promises).then(function (results) {\r\n vm.userid = authenticationService.getAuthData().id;\r\n if (!(results[1])) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.allowEdit = results[0];\r\n if (!results[2] && !results[3]) {\r\n log.errorMsg(gettextCatalog.getString('YouMustBeACoachOrSectionLeaderToUseDailyAttendance'));\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n getSections(vm.userid);\r\n }\r\n if (results[4]['dailyAttendance.SzakosztalyId']) {\r\n vm.sectionId = results[4]['dailyAttendance.SzakosztalyId'];\r\n }\r\n });\r\n }\r\n\r\n function isMobile() {\r\n var check = false;\r\n (function (a) {\r\n if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) {\r\n check = true;\r\n }\r\n })(navigator.userAgent || navigator.vendor || window.opera);\r\n return check;\r\n }\r\n\r\n function iconClicked(index, setTo) {\r\n var tetel = vm.editedAttendance.tetelek[index];\r\n // console.log('iconClicked index:', index, 'Nev:', tetel.SportoloNev, 'prevState: ', tetel.selectedIcon, 'setTo:', setTo);\r\n //console.log('tetel[index]', tetel);\r\n // Ha volt már aznap jelenlét, és átkattintok máshova akkor a napi jelenlét értékét csökkentem\r\n if (setTo != button.PRESENCE && tetel.selectedIcon == button.PRESENCE && tetel.today > 0) {\r\n tetel.today--;\r\n }\r\n // HA ugyanarra kattintok, akkor leveszem a kijelölést\r\n if (tetel.selectedIcon == setTo) {\r\n tetel.selectedIcon = button.UNDEFINED;\r\n // Ha a jelenlét kivan jelölve, és arról szedem le a kijelölést, akkor csökkentem a mellette lévő számot\r\n if (setTo == button.PRESENCE) {\r\n tetel.today--;\r\n }\r\n }\r\n // Ha valamelyik szürkére kattintok\r\n else {\r\n // Ha a pipára kattintok\r\n if (setTo == button.PRESENCE) {\r\n // de már volt aznapra jelenlét (1,2,3),\r\n if (tetel.today > 0) {\r\n // három eddigi napi jelenlétnél már nem lehet több\r\n if (tetel.today == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + tetel.SportoloNev);\r\n tetel.selectedIcon = button.UNDEFINED;\r\n }\r\n // 1,2 nél lehet. Akkor a napi jelenlét nő eggyel.\r\n else {\r\n tetel.today++;\r\n tetel.selectedIcon = button.PRESENCE;\r\n }\r\n }\r\n // Pipára kattintok, de ez a mai első jelenlét\r\n else {\r\n tetel.today = 1;\r\n tetel.selectedIcon = button.PRESENCE;\r\n }\r\n }\r\n // Ha a hiányzásra kattintok, és ma még nem volt edzésen\r\n else if (setTo == button.ABSENCE) {\r\n if (tetel.today == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + tetel.SportoloNev);\r\n tetel.selectedIcon = button.UNDEFINED;\r\n } else {\r\n tetel.selectedIcon = button.ABSENCE;\r\n }\r\n }\r\n // Ha az igazolt hiányzásra kattintok, és ma még nem volt edzésen\r\n else if (setTo == button.PROVENABSENCE && !(tetel.today > 0)) {\r\n tetel.selectedIcon = button.PROVENABSENCE;\r\n }\r\n // Ha a sérülésre vagy betegségre kattintok (az is jelenlétnek számít)\r\n else if (setTo == button.INJURY || setTo == button.SICKNESS) {\r\n tetel.selectedIcon = setTo;\r\n }\r\n // Nem a pipára kattintok\r\n else {\r\n tetel.selectedIcon = setTo;\r\n }\r\n }\r\n }\r\n\r\n function loadAttendance() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!vm.allAgeGroupfill) {\r\n loadMonthlyAttendance(vm.userid, vm.sectionId, 0, vm.today.Year, vm.today.Month, vm.today.Day);\r\n } else {\r\n if (!(vm.ageGroupId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('ChooseAgeGroup'));\r\n return;\r\n }\r\n loadMonthlyAttendance(vm.userid, vm.sectionId, vm.ageGroupId, vm.today.Year, vm.today.Month, vm.today.Day);\r\n }\r\n }\r\n\r\n function setIcons() {\r\n //console.log('vm.editedAttendance', vm.editedAttendance);\r\n for (var t = 0; t < vm.editedAttendance.tetelek.length; t++) {\r\n var active = '';\r\n if (vm.editedAttendance.aktiv[t]['Nap' + vm.today.Day]) {\r\n active = vm.editedAttendance.aktiv[t]['Nap' + vm.today.Day].trim();\r\n }\r\n if (active == '1') {\r\n vm.editedAttendance.tetelek[t].activeToday = true;\r\n } else {\r\n vm.thereIsIncativeAthlete = true;\r\n vm.editedAttendance.tetelek[t].activeToday = false;\r\n }\r\n vm.editedAttendance.tetelek[t].selectedIcon = button.UNDEFINED;\r\n vm.editedAttendance.tetelek[t].img = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.editedAttendance.tetelek[t].img;\r\n setIconsForToday(t, vm.editedAttendance.tetelek[t]);\r\n }\r\n }\r\n\r\n function setIconsForToday(sor, tetel) {\r\n var nap = tetel['Nap' + vm.today.Day];\r\n if (nap) {\r\n nap = nap.trim();\r\n if (isNaN(nap)) {\r\n nap = nap.toUpperCase();\r\n } else if (nap.length > 0) {\r\n //console.log('setIconsForToday Nev:', vm.editedAttendance.tetelek[sor].SportoloNev, ' nap:', nap);\r\n nap = Number(nap);\r\n }\r\n }\r\n vm.editedAttendance.tetelek[sor].today = ' ';\r\n switch (nap) {\r\n case 'V':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.COMPETITION;\r\n break;\r\n case 'Ü':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.HOLIDAY;\r\n break;\r\n case 'B':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.SICKNESS;\r\n break;\r\n case 'S':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.INJURY;\r\n break;\r\n case 'H':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.PROVENABSENCE;\r\n break;\r\n case 0:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.ABSENCE;\r\n break;\r\n case 1:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 1;\r\n break;\r\n case 2:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 2;\r\n break;\r\n case 3:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 3;\r\n break;\r\n case '':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n break;\r\n default:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n }\r\n }\r\n\r\n /*\r\n Gomb állapotok:\r\n -1 Marad az előző állapot\r\n\t\t\t\t1 - 1++ presence \t (jelenlét)\r\n\t\t\t\t2 - 0 absence \t(hiányzás)\r\n 3 - H provenabsence (igazolt hiányzás)\r\n\t\t\t\t4 - Ü holiday \t(ünnep)\r\n\t\t\t\t5 - B sickness \t(betegség)\r\n\t\t\t\t6 - S injury \t(sérülés)\r\n\t\t\t\t7 - V competition \t(verseny)\r\n 10 - visszatöltésnél ha van már jelenlét\r\n */\r\n\r\n function loadMonthlyAttendance(coach, section, agegroup, year, month) {\r\n //console.log('loadMonthlyAttendance', coach, section, agegroup, year, month, day);\r\n dataservice.monthlyAttendanceSelect(coach, section, agegroup, year, month)\r\n .then(function (data) {\r\n if (data.fej) {\r\n if (data.fej.EdzoAlairta) {\r\n log.errorMsg(gettextCatalog.getString('MonthlyAttendanceIsAlreadyClosed'));\r\n return;\r\n }\r\n vm.editedAttendance = data;\r\n console.log('EXISTING vm.editedAttendance.tetelek', vm.editedAttendance.tetelek);\r\n setIcons();\r\n } else {\r\n createNewAttendance();\r\n }\r\n });\r\n }\r\n\r\n function createNewAttendance() {\r\n dataservice.getLastMonthlyAttendanceTrainingLocationAndTime(vm.userid, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.editedAttendance.fej = {};\r\n vm.editedAttendance.fej.CsoportLetszam = 0;\r\n vm.editedAttendance.fej.Datum = new Date(vm.today.Year, vm.today.Month - 1, 1, 0, 0, 0);\r\n vm.editedAttendance.fej.Erkezett = 0;\r\n vm.editedAttendance.fej.Id = -1;\r\n vm.editedAttendance.fej.IdEdzo = vm.userid;\r\n vm.editedAttendance.fej.IdKorcsoport = vm.ageGroupId;\r\n vm.editedAttendance.fej.IdSzakosztaly = vm.sectionId;\r\n vm.editedAttendance.fej.KorosztalyosToltes = vm.allAgeGroupfill;\r\n vm.editedAttendance.fej.Megjegyzes = '';\r\n vm.editedAttendance.fej.Tavozott = 0;\r\n //vm.editedAttendance.fej.EdzoNev = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.editedAttendance.fej.SzakosztalyNev = angular.element('#sectionDropDown').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n if (angular.element('#ageGroupDropDown').data('ejDropDownList') && angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem().length > 0) {\r\n vm.editedAttendance.fej.KorcsoportNev = angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.editedAttendance.fej.KorcsoportNev = 0;\r\n vm.ageGroupId = 0;\r\n }\r\n if (data !== null) {\r\n vm.dayz.CsutortokHely = data.CsutortokHely;\r\n vm.dayz.CsutortokIdo = data.CsutortokIdo;\r\n vm.dayz.HetfoHely = data.HetfoHely;\r\n vm.dayz.HetfoIdo = data.HetfoIdo;\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = data.KeddHely;\r\n vm.dayz.KeddIdo = data.KeddIdo;\r\n vm.dayz.PentekHely = data.PentekHely;\r\n vm.dayz.PentekIdo = data.PentekIdo;\r\n vm.dayz.SzerdaHely = data.SzerdaHely;\r\n vm.dayz.SzerdaIdo = data.SzerdaIdo;\r\n vm.dayz.SzombatHely = data.SzombatHely;\r\n vm.dayz.SzombatIdo = data.SzombatIdo;\r\n vm.dayz.VasarnapHely = data.VasarnapHely;\r\n vm.dayz.VasarnapIdo = data.VasarnapIdo;\r\n } else {\r\n vm.dayz.CsutortokHely = '';\r\n vm.dayz.CsutortokIdo = '';\r\n vm.dayz.HetfoHely = '';\r\n vm.dayz.HetfoIdo = '';\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = '';\r\n vm.dayz.KeddIdo = '';\r\n vm.dayz.PentekHely = '';\r\n vm.dayz.PentekIdo = '';\r\n vm.dayz.SzerdaHely = '';\r\n vm.dayz.SzerdaIdo = '';\r\n vm.dayz.SzombatHely = '';\r\n vm.dayz.SzombatIdo = '';\r\n vm.dayz.VasarnapHely = '';\r\n vm.dayz.VasarnapIdo = '';\r\n }\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n dataservice.getAthletesForMonthlyAttendance(vm.userid, vm.sectionId, vm.ageGroupId, vm.editedAttendance.fej.Datum)\r\n .then(function (data2) {\r\n if (data2.tetelek.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('ThereAreNoAthletesAtTheSelectedTimeForThisCoach'));\r\n } else {\r\n vm.data = data2.tetelek;\r\n vm.editedAttendance.tetelek = vm.data;\r\n console.log('UJ vm.editedAttendance.tetelek', vm.editedAttendance.tetelek);\r\n vm.editedAttendance.aktiv = data2.aktiv;\r\n vm.activePeriods = data2.aktiv;\r\n setIcons();\r\n }\r\n });\r\n });\r\n }\r\n\r\n function chechButtonStates() {\r\n for (var t = 0; t < vm.editedAttendance.tetelek.length; t++) {\r\n vm.editedAttendance.tetelek[t].JelenletOsszesen = -1;\r\n vm.editedAttendance.tetelek[t].HianyzasOsszesen = -1;\r\n vm.editedAttendance.tetelek[t].VersenyOsszesen = -1;\r\n var pressedButton = Number(vm.editedAttendance.tetelek[t].selectedIcon);\r\n if (vm.editedAttendance.tetelek[t].activeToday) {\r\n //console.log('chechButtonStates', vm.editedAttendance.tetelek[t].SportoloNev, pressedButton);\r\n switch (pressedButton) {\r\n case button.PRESENCE:\r\n //console.log('PRESENCE', vm.editedAttendance.tetelek[t]);\r\n if (vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day]) {\r\n if (isNaN(vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day])) {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 1;\r\n } else {\r\n if (vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + vm.editedAttendance.tetelek[t].SportoloNev);\r\n return false;\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day]++;\r\n }\r\n }\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 1;\r\n }\r\n break;\r\n case button.ABSENCE:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = '0';\r\n break;\r\n case button.COMPETITION:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'V';\r\n break;\r\n case button.HOLIDAY:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'Ü';\r\n break;\r\n case button.SICKNESS:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'B';\r\n break;\r\n case button.INJURY:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'S';\r\n break;\r\n case button.PROVENABSENCE:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'H';\r\n break;\r\n }\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = null;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function saveAttendance() {\r\n if (chechButtonStates()) {\r\n saveAttendanceOK();\r\n }\r\n }\r\n\r\n function saveAttendanceOK() {\r\n dataservice.saveDailyAttendance(vm.editedAttendance).then(function (id) {\r\n if (!isMobile()) {\r\n paramHelper.setParams([{'monthlyAttendance.id': id.res}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n } else {\r\n $state.go('dashboard');\r\n }\r\n });\r\n }\r\n\r\n function getSections(userid) {\r\n dataservice.sectionDropDownList(userid)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n paramHelper.setParams([{'dailyAttendance.SzakosztalyId': args.value}]);\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupSelect(vm.userid, vm.sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.userid > 0 && vm.ageGroupList.length == 1 && vm.sectionList.length == 1) {\r\n setTimeout(function () {\r\n loadAttendance();\r\n }, 1000);\r\n }\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n vm.ageGroupId = 0;\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getCoaches() {\r\n dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.userid))[0];\r\n if (item) {\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n }\r\n }\r\n );\r\n }\r\n\r\n function DDClick(sportolo, action) {\r\n // console.log('DDClick sportolo=', sportolo, ' action=', action, 'coordinates=',vm.coordinates);\r\n if (sportolo == -1) {\r\n if (vm.clicked) {\r\n var now = new Date();\r\n var diff = now - vm.clicked;\r\n if (diff > 100) { // mert egymas utan ketszer fut le, eloszor a sportoloid-vel, utana -1 el. 100ms felett valodi kattintas\r\n CloseEveryOtherDropDowns(sportolo);\r\n }\r\n if (diff > 310) {\r\n $('#containerDiv').animate({marginBottom: '0px'}, 300);\r\n }\r\n }\r\n return;\r\n } else {\r\n $('#containerDiv').animate({marginBottom: '0px'}, 300);\r\n vm.clicked = new Date();\r\n CloseEveryOtherDropDowns(sportolo);\r\n }\r\n var SportoloItem = ej.DataManager(vm.editedAttendance.tetelek).executeLocal(new ej.Query().where('IdSportolo', 'equal', sportolo))[0];\r\n if (SportoloItem.hasOwnProperty('open') == false) {\r\n SportoloItem.open = false;\r\n }\r\n switch (action) {\r\n case 'open':\r\n SportoloItem.open = true;\r\n $('#DDL' + sportolo).addClass('open');\r\n break;\r\n case 'close':\r\n $('#DDL' + sportolo).removeClass('open');\r\n SportoloItem.open = false;\r\n break;\r\n case 'toggle':\r\n if (SportoloItem.open === true) {\r\n $('#DDL' + sportolo).removeClass('open');\r\n SportoloItem.open = false;\r\n } else {\r\n $('#DDL' + sportolo).addClass('open');\r\n SportoloItem.open = true;\r\n }\r\n break;\r\n }\r\n if (sportolo == vm.editedAttendance.tetelek[vm.editedAttendance.tetelek.length - 1].IdSportolo && SportoloItem.open) {\r\n $('#containerDiv').animate({marginBottom: '230px'}, 300);\r\n }\r\n if (sportolo > 0 && SportoloItem.open) {\r\n setTimeout(function () {\r\n ScrollDownIfNeeded(sportolo, vm.coordinates);\r\n }, 250);\r\n }\r\n }\r\n\r\n function ScrollDownIfNeeded(sportolo) {\r\n var DropDownSize = 290;\r\n var ImgPos = $('#IMG_' + sportolo).offset();\r\n var DdPosStart = ImgPos.top + 164;\r\n var DdPosEnd = DdPosStart + DropDownSize;\r\n var TopOfPage = $(window).scrollTop();\r\n var BottomOfPage = TopOfPage + window.screen.height;\r\n var diff = BottomOfPage - DdPosEnd;\r\n if (diff < 0) {\r\n $('html, body').stop().animate({scrollTop: TopOfPage - diff + 70}, 300);\r\n }\r\n }\r\n\r\n function CloseEveryOtherDropDowns(except) {\r\n vm.editedAttendance.tetelek.forEach(function (athlete) {\r\n if (athlete.IdSportolo !== except) {\r\n $('#DDL' + athlete.IdSportolo).removeClass('open');\r\n athlete.open = false;\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.dailyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.dailyAttendance',\r\n config: {\r\n url: '/dailyAttendance',\r\n templateUrl: 'app/administration/dailyAttendance/dailyAttendance.html',\r\n controller: 'DailyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'dailyAttendance',\r\n settings: {\r\n navId: 212,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Napi jelenlét',\r\n orderTitle_en: 'Daily Attendance',\r\n parentId: 2,\r\n content: 'dailyAttendance',\r\n permission: ['3', '4'],\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.exercises')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises',\r\n config: {\r\n url: '/exercises',\r\n templateUrl: 'app/administration/exercises/exercises.html',\r\n settings: {\r\n activatorPermission: ['\"MODGYAKORLAT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ExercisesCreateController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"DOMAIN\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.exercises.exercisesCreate')\r\n .controller('ExercisesCreateController', ExercisesCreateController)\r\n .config([\"$sceProvider\", function ($sceProvider) {\r\n // Completely disable SCE. For demonstration purposes only!\r\n // Do not use in new projects or libraries.\r\n $sceProvider.enabled(false);\r\n }]);\r\n\r\n function ExercisesCreateController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, DOMAIN, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ExercisesCreate');\r\n\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n\r\n $scope.imageThumb = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'MS-thumbnail.png';\r\n $scope.dustbin = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'MS-dustbin.png';\r\n\r\n vm.formdata = {\r\n id: 0,\r\n bodyParts: null,\r\n sectionId: 0,\r\n ageGroupId: 0,\r\n coachId: 0,\r\n imageList: [],\r\n savedImageList: []\r\n };\r\n\r\n vm.addNewText = gettextCatalog.getString('addNewText');\r\n\r\n vm.save = save;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.publicChanged = publicChanged;\r\n vm.paintDataBound = paintDataBound;\r\n vm.paintSelect = paintSelect;\r\n vm.deleteExistingImg = deleteExistingImg;\r\n vm.deleteImg = deleteImg;\r\n vm.makeToThumb = makeToThumb;\r\n vm.openPaint = openPaint;\r\n vm.goToCreatePaint = goToCreatePaint;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJGYAKORLAT'), authenticationService.getRight('MODGYAKORLAT'), authenticationService.getRight('MEGTGYAKORLAT')]).then(function (results) {\r\n vm.UJGYAKORLAT = results[0];\r\n vm.MODGYAKORLAT = results[1];\r\n vm.MEGTGYAKORLAT = results[2];\r\n if (vm.UJGYAKORLAT !== true && vm.MODGYAKORLAT !== true && vm.MEGTGYAKORLAT !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['exercises.exerciseId'])]).then(function (results) {\r\n vm.exerciseId = results[0]['exercises.exerciseId'];\r\n paramHelper.removeParam('exercises.exerciseId');\r\n getSections();\r\n getTrainingPracticeAutoComplete();\r\n if (vm.exerciseId) {\r\n getExercise(vm.exerciseId);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTrainingPracticeAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete().then(function (data) {\r\n vm.bodyPartsList = data.data.Testresz;\r\n vm.typeList = data.data.Tipus;\r\n vm.individualTeamList = data.data.Jellege;\r\n vm.assertsList = data.data.Felszerelesek;\r\n });\r\n }\r\n\r\n function getExercise(exerciseId) {\r\n dataservice.getExercise(exerciseId).then(function (result) {\r\n $('#bodyParts').ejAutocomplete('clearText');\r\n $('#type').ejAutocomplete('clearText');\r\n $('#individualTeam').ejAutocomplete('clearText');\r\n $('#asserts').ejAutocomplete('clearText');\r\n vm.formdata = result.gyakorlat;\r\n\r\n // YOUTUBE\r\n vm.formdata.youtubeSeeing = angular.copy(vm.formdata.youtube);\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.replace('watch?v=', 'embed/');\r\n if (vm.formdata.youtubeSeeing.indexOf('&') !== -1) {\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.substring(0, vm.formdata.youtubeSeeing.indexOf('&'));\r\n }\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.split('embed/')[1];\r\n\r\n $('#playerWrapper').empty();\r\n $('#playerWrapper').append('
');\r\n vm.player = new Plyr(document.getElementById('player'));\r\n\r\n vm.youtube = '';\r\n // YOUTUBE\r\n\r\n vm.thumbnail = false;\r\n\r\n var index = 0;\r\n vm.formdata.savedImageList.forEach(function (image) {\r\n if (vm.formdata.thumbnail == image.fileName) {\r\n vm.thumbnailIndex = index;\r\n }\r\n index++;\r\n });\r\n\r\n if (vm.formdata.thumbnail) {\r\n vm.thumbnail = true;\r\n }\r\n if (vm.formdata.thumbnail) {\r\n vm.thumbnail = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + vm.formdata.thumbnail;\r\n }\r\n vm.formdata.savedImageList.forEach(function (t) {\r\n t.fileUrl = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + t.fileName;\r\n });\r\n angular.element('#public').ejCheckBox({checked: vm.formdata.publikus});\r\n $('#sectionId').ejDropDownList('selectItemByValue', vm.formdata.sectionId);\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n $timeout(function () {\r\n $('.gallery-item').magnificPopup({\r\n type: 'image',\r\n gallery: {\r\n enabled: true,\r\n }\r\n });\r\n }, 1);\r\n });\r\n }\r\n\r\n vm.youtubeChanged = function () {\r\n if (vm.youtube) {\r\n // YOUTUBE\r\n vm.formdata.youtubeSeeing = angular.copy(vm.youtube);\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.replace('watch?v=', 'embed/');\r\n vm.formdata.youtube = vm.formdata.youtubeSeeing;\r\n if (vm.formdata.youtubeSeeing.indexOf('&') !== -1) {\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.substring(0, vm.formdata.youtubeSeeing.indexOf('&'));\r\n }\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.split('embed/')[1];\r\n\r\n $('#playerWrapper').empty();\r\n $('#playerWrapper').append('
');\r\n vm.player = new Plyr(document.getElementById('player'));\r\n // YOUTUBE\r\n vm.youtube = '';\r\n }\r\n };\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionId').ejDropDownList('selectItemByValue', vm.formdata.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formdata.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formdata.sectionId)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.formdata.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formdata.ageGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formdata.sectionId, vm.formdata.ageGroupId).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.formdata.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formdata.coachId = args.value;\r\n getPaints();\r\n }\r\n\r\n function getPaints() {\r\n return dataservice.GetPaints(vm.formdata.sectionId, vm.formdata.ageGroupId, vm.formdata.coachId)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('None'), value: 0});\r\n vm.paintList = data.itemsList;\r\n });\r\n }\r\n\r\n function paintDataBound() {\r\n if (vm.formdata.paintId && vm.formdata.paintId > 0) {\r\n angular.element('#paintId').ejDropDownList('selectItemByValue', vm.formdata.paintId);\r\n } else {\r\n angular.element('#paintId').ejDropDownList('selectItemByValue', 0);\r\n }\r\n }\r\n\r\n function paintSelect(args) {\r\n vm.formdata.paintId = args.value;\r\n }\r\n\r\n function save() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n vm.formdata.imageList = [];\r\n for (var i = 0; i < $scope.files.length; i++) {\r\n vm.formdata.imageList.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n\r\n /* vagy a getExercise-ban az alábbi sor előtt kell egy\r\n angular.element('#bodyParts').ejAutocomplete('clearText');\r\n vm.formdata = result.gyakorlat;\r\n */\r\n vm.formdata.bodyParts = angular.element('#bodyParts').ejAutocomplete('getValue');\r\n vm.formdata.type = angular.element('#type').ejAutocomplete('getValue');\r\n vm.formdata.individualTeam = angular.element('#individualTeam').ejAutocomplete('getValue');\r\n vm.formdata.asserts = angular.element('#asserts').ejAutocomplete('getValue');\r\n return dataservice.saveExercise(vm.formdata).then(function (results) {\r\n vm.formdata.id = results.res;\r\n vm.formdata.imageList = [];\r\n $scope.imageDatas = [];\r\n $scope.files = [];\r\n log.htmlSuccess(gettextCatalog.getString('Saved'));\r\n getExercise(vm.formdata.id);\r\n });\r\n }\r\n }\r\n\r\n function deleteImg(index) {\r\n $scope.files.splice(index, 1);\r\n $scope.imageDatas.splice(index, 1);\r\n }\r\n\r\n function deleteExistingImg(index) {\r\n if (vm.thumbnailIndex === index) {\r\n vm.thumbnail = null;\r\n vm.formdata.thumbnail = null;\r\n }\r\n vm.formdata.savedImageList.splice(index, 1);\r\n }\r\n\r\n function publicChanged(args) {\r\n vm.formdata.publikus = args.value;\r\n }\r\n\r\n function makeToThumb(fileIndex) {\r\n var volt = false;\r\n $.each(vm.formdata.savedImageList, function (index, item) {\r\n item.thumbnail = index === fileIndex;\r\n if (index === fileIndex) {\r\n volt = true;\r\n vm.thumbnailIndex = fileIndex;\r\n vm.thumbnail = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + item.fileName;\r\n }\r\n });\r\n if (!volt) {\r\n vm.thumbnail = null;\r\n }\r\n }\r\n\r\n function openPaint() {\r\n var id = $('#paintId').ejDropDownList('getSelectedValue');\r\n var saved = save();\r\n if (id > 0 && saved) {\r\n saved.then(function () {\r\n paramHelper.setParams([{'Paint.id': id}, {'exercises.exerciseId': vm.formdata.id}]);\r\n $state.go('paint');\r\n });\r\n }\r\n }\r\n\r\n function goToCreatePaint() {\r\n var saved = save();\r\n if (saved) {\r\n saved.then(function () {\r\n paramHelper.setParams([{'exercises.exerciseId': vm.formdata.id}]);\r\n $state.go('paint');\r\n });\r\n }\r\n }\r\n\r\n vm.deleteVideo = function () {\r\n vm.formdata.youtube = null;\r\n if (vm.player) {\r\n vm.player.destroy();\r\n }\r\n $('#player').remove();\r\n };\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.exercises.exercisesCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises.exercisesCreate',\r\n config: {\r\n url: '/exercisesCreate',\r\n templateUrl: 'app/administration/exercises/exercisesCreate/exercisesCreate.html',\r\n controller: 'ExercisesCreateController',\r\n controllerAs: 'vm',\r\n title: 'ExercisesCreate',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ExercisesListController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"DOMAIN\", \"$scope\", \"$timeout\", \"authenticationService\", \"$state\", \"$filter\"];\r\n angular\r\n .module('app.administration.exercises.exercisesList')\r\n .controller('ExercisesListController', ExercisesListController);\r\n\r\n function ExercisesListController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, DOMAIN, $scope, $timeout, authenticationService, $state, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ExercisesList');\r\n\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.youtubeIcon = DOMAIN.baseURL + DOMAIN.youtubeIcon;\r\n\r\n vm.SzakosztalyId = 0;\r\n vm.KorosztalyId = 0;\r\n vm.EdzoId = 0;\r\n vm.dataSource = [];\r\n vm.MODGYAKORLAT = false;\r\n vm.UJGYAKORLAT = false;\r\n\r\n // autoComplete\r\n vm.bodyPartValue = '';\r\n vm.TypeValue = '';\r\n vm.individualTeamValue = '';\r\n vm.AssetValue = '';\r\n vm.difficultyValue = '';\r\n vm.timeValue = '';\r\n vm.necessaryAreaValue = '';\r\n vm.withVideo = false;\r\n vm.withPattern = false;\r\n vm.withPaint = false;\r\n vm.public = false;\r\n\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 60},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), width: 150, textAlign: 'center', template: '#wtpropentemp'},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 115, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('Video'), width: 80, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {field: 'SzakosztalyId', visible: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), width: 150, textAlign: 'center'},\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n {field: 'Tipus', headerText: gettextCatalog.getString('Type'), width: 150, textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), width: 150, textAlign: 'center'},\r\n {field: 'Felszerelesek', headerText: gettextCatalog.getString('Assets'), width: 150, textAlign: 'center'},\r\n {field: 'Publikus', headerText: gettextCatalog.getString('Public'), width: 100, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Kifesto', headerText: gettextCatalog.getString('Paint'), width: 150, textAlign: 'center'},\r\n {field: 'JatekosokSzama', headerText: gettextCatalog.getString('Players'), width: 100, textAlign: 'center'},\r\n {field: 'Nehezseg', headerText: gettextCatalog.getString('Difficulty'), width: 100, textAlign: 'center'},\r\n {field: 'SzuksegesTerulet', headerText: gettextCatalog.getString('Space'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getDatas = getDatas;\r\n vm.goToExercise = goToExercise;\r\n vm.deleteExercise = deleteExercise;\r\n vm.create = create;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([getSections(), paramHelper.getParams([], ['exercisesList.SzakosztalyId', 'exercisesList.KorosztalyId', 'exercisesList.EdzoId']), authenticationService.getRight('MODGYAKORLAT'), authenticationService.getRight('UJGYAKORLAT')]).then(function (results) {\r\n if (results[1]['exercisesList.SzakosztalyId']) {\r\n vm.SzakosztalyId = results[1]['exercisesList.SzakosztalyId'];\r\n vm.SzakosztalyId = results[1]['exercisesList.SzakosztalyId'];\r\n }\r\n if (results[1]['exercisesList.KorosztalyId']) {\r\n vm.KorosztalyId = results[1]['exercisesList.KorosztalyId'];\r\n vm.KorosztalyId = results[1]['exercisesList.KorosztalyId'];\r\n }\r\n if (results[1]['exercisesList.EdzoId']) {\r\n vm.EdzoId = results[1]['exercisesList.EdzoId'];\r\n vm.EdzoId = results[1]['exercisesList.EdzoId'];\r\n }\r\n vm.MODGYAKORLAT = results[2];\r\n vm.UJGYAKORLAT = results[3];\r\n getAutoComplete();\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.SzakosztalyId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SzakosztalyId = args.value;\r\n if (!vm.KorosztalyId) {\r\n vm.KorosztalyId = 0;\r\n }\r\n if (!vm.EdzoId) {\r\n vm.EdzoId = 0;\r\n }\r\n getAgeGroups(args.value);\r\n getCoachList();\r\n paramHelper.setParams([{'exercisesList.SzakosztalyId': args.value}]);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.KorosztalyId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.KorosztalyId = args.value;\r\n getCoachList(args.value);\r\n paramHelper.setParams([{'exercisesList.KorosztalyId': args.value}]);\r\n }\r\n\r\n function getCoachList(KorosztalyId) {\r\n return dataservice.coachDropDownList(vm.SzakosztalyId, KorosztalyId, new Date(1754, 1, 1), new Date(3000, 1, 1))\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.EdzoId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.EdzoId = args.value;\r\n paramHelper.setParams([{'exercisesList.EdzoId': args.value}]);\r\n }\r\n\r\n // function bottom\r\n function getAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete()\r\n .then(function (result) {\r\n vm.autoComplete = result.data;\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getExercises(vm.SzakosztalyId, vm.KorosztalyId, vm.EdzoId, vm.bodyPartValue, vm.TypeValue, vm.individualTeamValue, vm.AssetValue, vm.difficultyValue, vm.necessaryAreaValue, vm.withVideo, vm.withPattern, vm.withPaint, vm.timeValue, vm.public).then(function (response) {\r\n grid.dataSource = $filter('addImagePathToObject')(response.itemsList, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n function goToExercise(id) {\r\n if (vm.MODGYAKORLAT) {\r\n paramHelper.setParams([\r\n {'exercises.exerciseId': id},\r\n {'exercisesList.SzakosztalyId': vm.SzakosztalyId},\r\n {'exercisesList.KorosztalyId': vm.KorosztalyId},\r\n {'exercisesList.EdzoId': vm.EdzoId}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function deleteExercise(id) {\r\n if (vm.MODGYAKORLAT) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToDelete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteExercise(id).then(function (response) {\r\n if (response.retValue === true) {\r\n getDatas();\r\n log.htmlSuccess(gettextCatalog.getString('ExerciseDeleted'));\r\n }\r\n });\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function create() {\r\n if (vm.UJGYAKORLAT) {\r\n paramHelper.setParams([\r\n {'exercisesList.SzakosztalyId': vm.SzakosztalyId},\r\n {'exercisesList.KorosztalyId': vm.KorosztalyId},\r\n {'exercisesList.EdzoId': vm.EdzoId}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.exercises.exercisesList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises.exercisesList',\r\n config: {\r\n url: '/exercisesList',\r\n templateUrl: 'app/administration/exercises/exercisesList/exercisesList.html',\r\n controller: 'ExercisesListController',\r\n controllerAs: 'vm',\r\n title: 'ExercisesList',\r\n settings: {\r\n navId: 2162,\r\n level: 2,\r\n order: 16,\r\n orderTitle_hu: 'Gyakorlat lista',\r\n orderTitle_en: 'Exercises List',\r\n parentId: 2,\r\n content: 'ExercisesList'\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance',\r\n config: {\r\n url: '/monthlyAttendance',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendance.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyAttendanceListController.$inject = [\"dataservice\", \"log\", \"$q\", \"$state\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceList')\r\n .controller('MonthlyAttendanceListController', MonthlyAttendanceListController);\r\n\r\n function MonthlyAttendanceListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceList');\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn5'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }, {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn1'\r\n }, {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn2'\r\n\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }, {\r\n field: 'CsoportLetszam',\r\n headerText: gettextCatalog.getString('CsoportLetszam'),\r\n textAlign: 'center',\r\n width: 120,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n }, {\r\n field: 'Erkezett',\r\n headerText: gettextCatalog.getString('Erkezett'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n }, {\r\n field: 'Tavozott',\r\n headerText: gettextCatalog.getString('Tavozott'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoLezarta',\r\n headerText: gettextCatalog.getString('EdzoLezarta'),\r\n textAlign: 'center',\r\n width: 120,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false,\r\n type: 'boolean',\r\n template: '#moatlitemplateDataColumn3'\r\n }, {\r\n field: 'SzakvezJovahagyta',\r\n headerText: gettextCatalog.getString('SzakvezJovahagyta'),\r\n textAlign: 'center',\r\n width: 150,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false,\r\n type: 'boolean',\r\n template: '#moatlitemplateDataColumn4'\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function setInitVals() {\r\n //grid adatai\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n //Lekérés típusa\r\n vm.modeList = [\r\n gettextCatalog.getString('MindenHaviJelenleti'),\r\n gettextCatalog.getString('CsakLezartHaviJelenletik'),\r\n gettextCatalog.getString('CsakNemLezartHaviJelenletik')\r\n ];\r\n //Kiválasztott lekérés típusa\r\n vm.selectedMode = gettextCatalog.getString('MindenHaviJelenleti');\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n vm.years.push(gettextCatalog.getString('AllYear'));\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n //Hónapok\r\n vm.months = [\r\n {\r\n text: gettextCatalog.getString('AllMonth'),\r\n value: -1\r\n },\r\n {\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }];\r\n //Kiválasztott hónap\r\n vm.selectedMonth = -1; //new Date().getMonth();\r\n //A gridben megjelenő adatok\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.createNewAttendance = createNewAttendance;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.yearChanged = yearChanged;\r\n\r\n activate();\r\n\r\n //inicializálás\r\n function activate() {\r\n authenticationService.getRight('MEGTHAVIJEL').then(function (res) {\r\n if (!res) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n getCoaches(),\r\n authenticationService.getRight('HJFELVIHET'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n paramHelper.getParams([], ['monthlyAttendance.coachId', 'monthlyAttendance.year', 'monthlyAttendance.month', 'monthlyAttendance.selectedMode'])\r\n ];\r\n return $q.all(promises).then(function (results) {\r\n vm.HJFELVIHET = results[1];\r\n vm.MEGTFELH = results[2];\r\n vm.MEGTKOROKEZ = results[3];\r\n vm.MEGTHAVIJEL = results[4];\r\n $timeout(function () {\r\n vm.selectedCoach = results[5]['monthlyAttendance.coachId'];\r\n vm.selectedMode = results[5]['monthlyAttendance.selectedMode'];\r\n vm.selectedYear = results[5]['monthlyAttendance.year'];\r\n vm.selectedMonth = results[5]['monthlyAttendance.month'];\r\n }, 100);\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n //refreshData();\r\n });\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n /*\r\n var listObj = new ej.dropdowns.DropDownList({\r\n dataSource: vm.coachList,\r\n // set the index value to select an item based on index at initial rendering\r\n index: vm.selectedCoach,\r\n // set the placeholder to DropDownList input element\r\n placeholder: 'Select a couach',\r\n // bind the change event\r\n change: function (args) { coachChanged(args); }\r\n });\r\n listObj.appendTo('#maEdzo');\r\n */\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n console.log(args);\r\n /*\r\n vm.selectedCoach = args.value;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedCoach))[0];\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.selectedSection = 0;\r\n */\r\n }\r\n\r\n function createNewAttendance() {\r\n goToMonthlyAttendance(-1);\r\n }\r\n\r\n //Melyik az adott év/hónap utolsó napja?\r\n function daysInMonth(anyDateInMonth) {\r\n return new Date(anyDateInMonth.getFullYear(), anyDateInMonth.getMonth() + 1, 0).getDate();\r\n }\r\n\r\n function refreshData() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n\r\n saveParameters();\r\n var tol = new Date();\r\n var day = 0;\r\n var ig = 0;\r\n var year = isNaN(vm.selectedYear) ? 1754 : vm.selectedYear;\r\n var month = isNaN(vm.selectedMonth) ? 1 : vm.selectedMonth;\r\n\r\n if (vm.selectedMonth == -1) {\r\n tol = new Date(year, 0, 1, 0, 0, 0);\r\n day = daysInMonth(new Date(year === 1754 ? 9999 : year, 12, 1));\r\n ig = new Date(year === 1754 ? 9999 : year, 11, day, 23, 59, 59);\r\n } else {\r\n tol = new Date(year, month, 1, 0, 0, 0);\r\n day = daysInMonth(new Date(year, month, 1));\r\n ig = new Date(year === 1754 ? 9999 : year, month, day, 23, 59, 59);\r\n }\r\n\r\n var coach = 0;\r\n if (vm.selectedCoach) {\r\n coach = vm.selectedCoach;\r\n }\r\n\r\n var lezart = 0;\r\n if (vm.selectedMode === gettextCatalog.getString('CsakLezartHaviJelenletik')) {\r\n lezart = 1;\r\n } else if (vm.selectedMode === gettextCatalog.getString('CsakNemLezartHaviJelenletik')) {\r\n lezart = 2;\r\n }\r\n\r\n dataservice.getMonthlyAttendanceList(coach, tol, ig, lezart).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'newUser.userId': edzoId\r\n }]);\r\n saveParameters();\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'ageGroups.ageGroup': ageGroupId\r\n }]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function saveParameters() {\r\n paramHelper.setParams([{\r\n 'monthlyAttendance.month': vm.selectedMonth,\r\n 'monthlyAttendance.year': vm.selectedYear,\r\n 'monthlyAttendance.coachId': vm.selectedCoach,\r\n 'monthlyAttendance.selectedMode': vm.selectedMode\r\n\r\n }]);\r\n }\r\n\r\n function goToMonthlyAttendance(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'monthlyAttendance.id': attendanceId\r\n\r\n }]);\r\n saveParameters();\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function yearChanged(args) {\r\n if (args.itemId === 0) {\r\n vm.selectedMonth = -1;\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance.monthlyAttendanceList',\r\n config: {\r\n url: '/monthlyAttendanceList',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.html',\r\n controller: 'MonthlyAttendanceListController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceList',\r\n settings: {\r\n navId: 274,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Korábbi havi jelenléti összesítők',\r\n orderTitle_en: 'Previous Monthly Attendance Sheet Report',\r\n parentId: 4,\r\n content: 'MonthlyAttendanceList',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\n MonthlyAttendanceController.$inject = [\"dataservice\", \"log\", \"$q\", \"$state\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$compile\", \"$timeout\", \"$interval\"];\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceReport')\r\n .controller('MonthlyAttendanceReportController', MonthlyAttendanceController);\r\n\r\n function MonthlyAttendanceController(dataservice, log, $q, $state, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $compile, $timeout, $interval) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n vm.autoSave = undefined;\r\n vm.readOnlyAttendance = false;\r\n vm.AthleteUnderEditing = '';\r\n vm.allowAthleteRefresh = true;\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceReport');\r\n vm.openTrainingDiary = openTrainingDiary;\r\n vm.cellSave = cellSave;\r\n vm.activePeriods = [];\r\n var printOpened = false;\r\n var newAthletesId = -1;\r\n var prev = '';\r\n vm.plannedTrainings = undefined;\r\n vm.SetForAll = SetForAll;\r\n vm.defaultTeamInformations = false;\r\n vm.errors = [];\r\n vm.editedRowId = 0;\r\n vm.editedColumnName = '';\r\n vm.selectionMode = ['cell'];\r\n vm.gridRowSelected = gridRowSelected;\r\n // Grid's details\r\n vm.reportParameters = {};\r\n vm.selectedAthleteName = '';\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.elem;\r\n vm.maskObject;\r\n vm.CopyCellToColumn = CopyCellToColumn;\r\n var tableEditorTemplate =\r\n {\r\n create: function () {\r\n var btn = document.createElement('button');\r\n btn.setAttribute('type', 'button');\r\n btn.textContent = '↕';\r\n btn.style.width = '30px';\r\n btn.style.minWidth = '30px';\r\n btn.style.height = '28px';\r\n btn.style.color = 'black';\r\n btn.style.marginLeft = '-7px';\r\n btn.style.display = 'inline';\r\n var txt = document.createElement('input');\r\n txt.style.width = '20px';\r\n txt.style.float = 'left';\r\n // var elem=document.createElement('div');\r\n // elem.style.display='inline';\r\n // elem.appendChild(txt);\r\n // elem.appendChild(btn);\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var res = vm.maskObject.getMaskedValue();\r\n return res === '_' ? '' : res;\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.allowAthleteRefresh = false;\r\n $scope.$apply();\r\n var s = args.element.id.toString().replace('GridNew', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: 'bBüÜvVsShH0123-'},\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', '')\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n var gridNew;\r\n\r\n function queryCellInfo(args) {\r\n var element = angular.element(args.cell);\r\n var sportolo = args.data.IdSportolo;\r\n if (args.column.field.indexOf('Nap') !== -1) {\r\n var nap = args.column.field.substring(3);\r\n var sor = findLine(sportolo);\r\n if ((args.column.headerText.toString().indexOf(gettextCatalog.getString('MondayAbbr')) !== -1) || (args.column.headerText.toString().indexOf('MondayAbbr') !== -1)) {\r\n element.css('background-color', '#d2e4ff');\r\n }\r\n if (sor && sor['Nap' + nap] === '0') {\r\n element.css('background-color', '#efdcdc');\r\n }\r\n }\r\n }\r\n\r\n //Jelenlét százalék\r\n vm.presencePercentSum = 0;\r\n //Jelenlét számolásához kell\r\n vm.presenceTotalSum = 0;\r\n vm.presencePlannedTotalSum = 0;\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n vm.dayz = {};\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n //Hónapok\r\n vm.months = [\r\n {\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }\r\n ];\r\n //Kiválasztott hónap\r\n vm.yearValue = new Date().getFullYear();\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.monthValue = new Date().getMonth();\r\n vm.selectedMonth = new Date().getMonth();\r\n //Napok nevei (rövidítve)\r\n vm.days = [\r\n gettextCatalog.getString('SundayAbbr'),\r\n gettextCatalog.getString('MondayAbbr'),\r\n gettextCatalog.getString('TuesdayAbbr'),\r\n gettextCatalog.getString('WednesdayAbbr'),\r\n gettextCatalog.getString('ThursdayAbbr'),\r\n gettextCatalog.getString('FridayAbbr'),\r\n gettextCatalog.getString('SaturdayAbbr')\r\n ];\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n //Korcsoportok listája, kiválasztott korcsoport\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.saveButtonEnabled = true;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.attendanceOverChangeAthleteNames = '';\r\n //Havi jelenléti utolsó kitöltött nap\r\n vm.attendanceLastFilledDay = 0;\r\n //Minden korcsoportot egyszerre tölt az edző\r\n vm.allAgeGroupfill = false;\r\n //A szerkesztés alatt álló havi jelenléti\r\n vm.editedAttendance = {};\r\n //Jelenlét hiba volt a mentés során\r\n vm.hasErrorAtSave = false;\r\n //Visszautasítás indoka kerül bele\r\n vm.rejectAttendanceText = '';\r\n\r\n vm.attendanceSelect = attendanceSelect;\r\n vm.saveAttendance = saveAttendance;\r\n vm.closeMonthlyAttendance = closeMonthlyAttendance;\r\n vm.rejectMonthlyAttendance = rejectMonthlyAttendance;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.rejectAttendance = rejectAttendance;\r\n vm.acceptMonthlyAttendance = acceptMonthlyAttendance;\r\n // coach dropdown\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n // section dropdown\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n // ageGroup dropdown\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // year dropdown\r\n vm.yearSelect = yearSelect;\r\n // month dropdown\r\n vm.monthSelect = monthSelect;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.goToOlderMonthlyAttendanceReports = goToOlderMonthlyAttendanceReports;\r\n vm.CopyTimeAndPlaceFromWeeklyPlan = CopyTimeAndPlaceFromWeeklyPlan;\r\n vm.print = print;\r\n vm.runOnce = 0;\r\n vm.openTrainingDiaryAfterSave = false;\r\n\r\n vm.defaultSection = undefined;\r\n vm.defaultAgeGroup = undefined;\r\n vm.defaultCoach = undefined;\r\n vm.yearValue = vm.selectedYear;\r\n vm.defaultMonth = undefined;\r\n var JelenletTipus =\r\n {\r\n IgazoltHianyzas: 0,\r\n Serules: 1,\r\n Verseny: 2,\r\n Betegseg: 3\r\n };\r\n // Default beállítások\r\n vm.attendanceChecked = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n\r\n activate();\r\n\r\n function openTrainingDiary() {\r\n vm.openTrainingDiaryAfterSave = true;\r\n if (!vm.readOnlyAttendance) {\r\n gridNew.endEdit();\r\n }\r\n if (vm.readOnlyAttendance) {\r\n paramHelper.setParams([{'HaviJelenletiFejId': vm.editedAttendance.fej.Id}]);\r\n $state.go('administration.trainingDiary');\r\n } else {\r\n //saveAttendance();\r\n saveFunction(true).then(function (response) {\r\n console.log('saveFunction response', response);\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n }\r\n\r\n function findLine(sportolo) {\r\n for (var i = 0; i < vm.activePeriods.length; i++) {\r\n if (vm.activePeriods[i].IdSportolo == sportolo) {\r\n return vm.activePeriods[i];\r\n }\r\n }\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['monthlyAttendance.id', 'monthlyAttendance.sectionId', 'monthlyAttendance.ageGroupId', 'monthlyAttendance.coachId', 'monthlyAttendance.year', 'monthlyAttendance.month', 'monthlyAttendance.autoSave']), authenticationService.getRight('EDZO'), authenticationService.getRight('ADMIN'), authenticationService.getRight('SZAKOSZTVEZ'), authenticationService.getRight('TECHIGAZGATO'), authenticationService.getRight('HJALAIR1'), authenticationService.getRight('HJALAIR2'), authenticationService.getRight('HJFELVIHET'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTHAVIJEL'), getSystemSettingsValue('JELENLETNEKSZAMIT')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.HJALAIR1 = results[5];\r\n vm.HJALAIR2 = results[6];\r\n vm.HJFELVIHET = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTHAVIJEL = results[9];\r\n if (results[10] && results[10] != null) {\r\n vm.attendanceChecked = JSON.parse(results[10]);\r\n }\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n dataservice.getMonthlyAttendanceAutoSave().then(function (autoSave) {\r\n if (vm.HJFELVIHET) {\r\n vm.autoSave = autoSave.data;\r\n } else {\r\n vm.autoSave = false;\r\n }\r\n angular.element('#autoSaveCheckBox').ejCheckBox({checked: autoSave.data});\r\n });\r\n if (results[0]['monthlyAttendance.sectionId']) {\r\n vm.defaultSection = results[0]['monthlyAttendance.sectionId'];\r\n }\r\n\r\n if (results[0]['monthlyAttendance.ageGroupId']) {\r\n vm.defaultAgeGroup = results[0]['monthlyAttendance.ageGroupId'];\r\n }\r\n if (results[0]['monthlyAttendance.coachId']) {\r\n vm.defaultCoach = results[0]['monthlyAttendance.coachId'];\r\n }\r\n if (results[0]['monthlyAttendance.year']) {\r\n vm.selectedYear = results[0]['monthlyAttendance.year'];\r\n }\r\n if (results[0]['monthlyAttendance.month']) {\r\n vm.selectedMonth = results[0]['monthlyAttendance.month'];\r\n }\r\n if (results[0]['monthlyAttendance.id'] && results[0]['monthlyAttendance.id'] !== -1) {\r\n dataservice.monthlyAttendanceSelectById(results[0]['monthlyAttendance.id']).then(function (data) {\r\n paramHelper.removeParam('monthlyAttendance.id');\r\n createGrid(data.columns);\r\n if (data.fej) {\r\n vm.activePeriods = data.aktiv;\r\n //paramHelper.removeParam('monthlyAttendance.id');\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', new Date(data.fej.Datum).getFullYear());\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', new Date(data.fej.Datum).getMonth());\r\n gridNew.dataSource = data.fej ? data.fej : [];\r\n vm.defaultSection = data.fej.IdSzakosztaly ? data.fej.IdSzakosztaly : vm.defaultSection;\r\n vm.defaultCoach = data.fej.IdEdzo ? data.fej.IdEdzo : vm.defaultCoach;\r\n vm.defaultAgeGroup = data.fej.IdKorcsoport ? data.fej.IdKorcsoport : vm.defaultAgeGroup;\r\n getCoaches();\r\n viewMonthlyAttendance(data);\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n if (response.hasOwnProperty('retValue')) {\r\n return response.retValue;\r\n }\r\n return null;\r\n });\r\n }\r\n\r\n function CopyTimeAndPlaceFromWeeklyPlan() {\r\n dataservice.CopyTimeAndPlaceFromWeeklyPlan(vm.editedAttendance.fej.Id).then(function (response) {\r\n if (response.data) {\r\n if (response.data.HetfoHely.length > 0) {\r\n vm.dayz.HetfoHely = response.data.HetfoHely;\r\n }\r\n if (response.data.HetfoIdo.length > 0) {\r\n vm.dayz.HetfoIdo = response.data.HetfoIdo;\r\n }\r\n if (response.data.KeddHely.length > 0) {\r\n vm.dayz.KeddHely = response.data.KeddHely;\r\n }\r\n if (response.data.KeddIdo.length > 0) {\r\n vm.dayz.KeddIdo = response.data.KeddIdo;\r\n }\r\n if (response.data.SzerdaHely.length > 0) {\r\n vm.dayz.SzerdaHely = response.data.SzerdaHely;\r\n }\r\n if (response.data.SzerdaIdo.length > 0) {\r\n vm.dayz.SzerdaIdo = response.data.SzerdaIdo;\r\n }\r\n if (response.data.CsutortokHely.length > 0) {\r\n vm.dayz.CsutortokHely = response.data.CsutortokHely;\r\n }\r\n if (response.data.CsutortokIdo.length > 0) {\r\n vm.dayz.CsutortokIdo = response.data.CsutortokIdo;\r\n }\r\n if (response.data.PentekHely.length > 0) {\r\n vm.dayz.PentekHely = response.data.PentekHely;\r\n }\r\n if (response.data.PentekIdo.length > 0) {\r\n vm.dayz.PentekIdo = response.data.PentekIdo;\r\n }\r\n if (response.data.SzombatHely.length > 0) {\r\n vm.dayz.SzombatHely = response.data.SzombatHely;\r\n }\r\n if (response.data.SzombatIdo.length > 0) {\r\n vm.dayz.SzombatIdo = response.data.SzombatIdo;\r\n }\r\n if (response.data.VasarnapHely.length > 0) {\r\n vm.dayz.VasarnapHely = response.data.VasarnapHely;\r\n }\r\n if (response.data.VasarnapIdo.length > 0) {\r\n vm.dayz.VasarnapIdo = response.data.VasarnapIdo;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('NoPlaceAndTimeDataFoundOnWeeklyTrainingPlan'));\r\n }\r\n });\r\n }\r\n\r\n function SetForAll() {\r\n //gridNew.editModule.batchSave();\r\n gridNew.endEdit();\r\n var names = '';\r\n var canSet = true;\r\n for (var i = 0; i < gridNew.dataSource.length; i++) {\r\n if ((gridNew.dataSource[i].JelenletOsszesen + gridNew.dataSource[i].HianyzasOsszesen) > vm.plannedTrainings) {\r\n canSet = false;\r\n names += gridNew.dataSource[i].SportoloNev + ', ';\r\n }\r\n }\r\n if (!canSet) {\r\n names = names.substring(0, names.length - 2);\r\n log.errorMsg(gettextCatalog.getString('PresencePlusAbsenceIsGreaterThanPlannedMonthlyAttendance') + ':

' + names);\r\n return;\r\n }\r\n for (var i = 0; i < gridNew.dataSource.length; i++) {\r\n gridNew.dataSource[i].HaviOsszEdzesszam = vm.plannedTrainings;\r\n }\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.defaultCoach);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedCoach))[0];\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.selectedCoach)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.selectedCoach, vm.selectedSection, new Date(vm.selectedYear, vm.selectedMonth, 1, 12, 0, 0))\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n if (vm.defaultAgeGroup) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.defaultAgeGroup);\r\n } else if (vm.selectedAgeGroup) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n }\r\n\r\n // Run after selection\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after selection\r\n function monthSelect(args) {\r\n vm.selectedMonth = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n //'Választ' nyomógomb click\r\n function attendanceSelect() {\r\n vm.runOnce = 0;\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n //gridNew.dataSource = [];\r\n var kivDatum = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0, 0);\r\n var dt = new Date(new Date().getFullYear(), new Date().getMonth(), 1, 0, 0, 0, 0);\r\n dt.setMonth(dt.getMonth() + 1);\r\n if (kivDatum >= dt) {\r\n log.errorMsg('WrongDate');\r\n return;\r\n }\r\n dataservice.monthlyAttendanceSelect(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup,\r\n vm.selectedYear, (isNaN(vm.selectedMonth) ? 1 : Number(vm.selectedMonth)) + 1).then(function (data) {\r\n vm.saveButtonEnabled = true;\r\n createGrid(data.columns);\r\n viewMonthlyAttendance(data);\r\n vm.editedAttendance.aktiv = data.aktiv;\r\n vm.activePeriods = data.aktiv;\r\n if (data && data.fej && data.fej.Id) {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.year': vm.selectedYear},\r\n {'monthlyAttendance.month': vm.selectedMonth},\r\n {'monthlyAttendance.id': data.fej.Id}\r\n ]);\r\n } else {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.year': vm.selectedYear},\r\n {'monthlyAttendance.month': vm.selectedMonth},\r\n {'monthlyAttendance.id': -1}\r\n ]);\r\n }\r\n });\r\n }\r\n\r\n vm.rowNumber = 0;\r\n vm.columnNumber = 0;\r\n\r\n function createGrid(columns) {\r\n for (var i = 0; i < columns.length; i++) {\r\n if (columns[i].edit) {\r\n columns[i].edit = tableEditorTemplate;\r\n }\r\n if (i === (columns.length - 1)) {\r\n if (!gridNew) {\r\n gridNew = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['ExcelExport'],\r\n allowPaging: false,\r\n allowExcelExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n //frozenColumns: 4,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: columns,\r\n cellSave: vm.cellSave,\r\n queryCellInfo: queryCellInfo,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: vm.gridRowSelected,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridNew'), $scope);\r\n }\r\n },\r\n cellEdit: function (arg) {\r\n vm.columnNumber = gridNew.columns.findIndex(function (element) {\r\n return element.field === arg.columnName;\r\n });\r\n vm.rowNumber = gridNew.dataSource.findIndex(function (element) {\r\n return element.Id === arg.rowData.Id;\r\n });\r\n if (arg.columnName.indexOf('Nap') !== -1) {\r\n var nap = arg.columnName.substring(3);\r\n var sor = findLine(arg.rowData.IdSportolo);\r\n var property = 'Nap' + nap;\r\n if (sor && sor[property] == '0') {\r\n arg.cancel = true;\r\n }\r\n }\r\n vm.AthleteUnderEditing = arg.rowData.SportoloNev;\r\n vm.editedColumnName = arg.columnName;\r\n }\r\n });\r\n gridNew.appendTo('#GridNew');\r\n gridNew.keyConfigs['0'] = '0';\r\n gridNew.keyConfigs['1'] = '1';\r\n gridNew.keyConfigs['2'] = '2';\r\n gridNew.keyConfigs['3'] = '3';\r\n gridNew.keyConfigs['B'] = 'B';\r\n gridNew.keyConfigs['S'] = 'S';\r\n gridNew.keyConfigs['V'] = 'V';\r\n gridNew.keyConfigs['H'] = 'H';\r\n gridNew.keyConfigs['b'] = 'B';\r\n gridNew.keyConfigs['ü'] = '191';\r\n gridNew.keyConfigs['Ü'] = '191';\r\n gridNew.keyConfigs['s'] = 'S';\r\n gridNew.keyConfigs['v'] = 'V';\r\n gridNew.keyConfigs['h'] = 'H';\r\n gridNew.keyConfigs['numpad 0'] = '96';\r\n gridNew.keyConfigs['numpad 1'] = '97';\r\n gridNew.keyConfigs['numpad 2'] = '98';\r\n gridNew.keyConfigs['numpad 3'] = '99';\r\n var oldkeyAction = gridNew.keyboardModule.keyAction;\r\n\r\n gridNew.keyboardModule.keyAction = function (args) {\r\n if (args.key === '0') {\r\n vm.editedColumnValue = '0';\r\n }\r\n if (args.key === '1') {\r\n vm.editedColumnValue = '1';\r\n }\r\n if (args.key === '2') {\r\n vm.editedColumnValue = '2';\r\n }\r\n if (args.key === '3') {\r\n vm.editedColumnValue = '3';\r\n }\r\n if (args.key === 'B' || args.key === 'b') {\r\n vm.editedColumnValue = 'B';\r\n }\r\n if (args.key === 'Ü' || args.key === 'ü') {\r\n vm.editedColumnValue = 'Ü';\r\n }\r\n if (args.key === 'S' || args.key === 's') {\r\n vm.editedColumnValue = 'S';\r\n }\r\n if (args.key === 'V' || args.key === 'v') {\r\n vm.editedColumnValue = 'V';\r\n }\r\n if (args.key === 'H' || args.key === 'h') {\r\n vm.editedColumnValue = 'H';\r\n }\r\n if (args.key === 'Escape') {\r\n vm.AthleteUnderEditing = '';\r\n }\r\n if (args.key === 'Enter') {\r\n gridNew.editModule.batchSave();\r\n if (args.action === 'enter' && gridNew.dataSource[vm.rowNumber + 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber + 1, gridNew.columns[vm.columnNumber].field);\r\n }, 250);\r\n } else if (args.action === 'shiftEnter' && gridNew.dataSource[vm.rowNumber - 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber - 1, gridNew.columns[vm.columnNumber].field);\r\n }, 250);\r\n }\r\n }\r\n if (args.key === 'Tab') {\r\n gridNew.editModule.batchSave();\r\n if (args.action === 'tab' && gridNew.columns[vm.columnNumber + 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber, gridNew.columns[vm.columnNumber + 1].field);\r\n }, 250);\r\n } else if (args.action === 'shiftTab' && gridNew.columns[vm.columnNumber - 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber, gridNew.columns[vm.columnNumber - 1].field);\r\n }, 250);\r\n }\r\n }\r\n $scope.$apply();\r\n oldkeyAction(args);\r\n };\r\n gridNew.toolbarClick = function (args) {\r\n if (args.item.id === 'GridNew_excelexport') {\r\n gridNew.excelExport();\r\n }\r\n if (args.item.id === 'GridNew_csvexport') {\r\n gridNew.csvExport();\r\n }\r\n if (args.item.id === 'GridNew_print') {\r\n gridNew.print({pageOrientation: 'Landscape'});\r\n }\r\n };\r\n } else {\r\n gridNew.columns = columns;\r\n gridNew.refreshColumns();\r\n }\r\n }\r\n }\r\n }\r\n\r\n function viewMonthlyAttendance(data) {\r\n vm.noAttendance = false;\r\n vm.hasAttendance = false;\r\n vm.hasSignedAttendance = false;\r\n vm.hasAcceptedAttendance = false;\r\n\r\n vm.editedAttendance.aktiv = data.aktiv;\r\n vm.editedAttendance.edzesek = data.edzesek;\r\n vm.editedAttendance.fej = data.fej;\r\n vm.editedAttendance.tetelek = data.tetelek;\r\n if (vm.editedAttendance.fej === null) {\r\n vm.noAttendance = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.refreshAthletesButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJFELVIHET) {\r\n //vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = false;\r\n } else if (vm.EDZO && vm.HJFELVIHET) {\r\n //vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n createNewAttendance();\r\n } else {\r\n if (vm.editedAttendance.fej.EdzoAlairta) {\r\n if (vm.editedAttendance.fej.SzakosztalyvezetoAlairta) {\r\n vm.hasAcceptedAttendance = true;\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n } else {\r\n vm.hasSignedAttendance = true;\r\n if (vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJALAIR1) {\r\n vm.acceptButton = true;\r\n vm.rejectButton = true;\r\n } else {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n }\r\n }\r\n } else {\r\n vm.hasAttendance = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n }\r\n gridNew.dataSource = vm.editedAttendance.tetelek;\r\n vm.dayz = vm.editedAttendance.edzesek;\r\n // create('existing');\r\n }\r\n vm.AthleteUnderEditing = '';\r\n vm.readOnlyAttendance = !vm.saveButton;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n totalPercentageCount();\r\n athletesCountMonthlyAttendance();\r\n }\r\n\r\n //Melyik az adott év/hónap utolsó napja?\r\n function daysInMonth(anyDateInMonth) {\r\n return new Date(anyDateInMonth.getFullYear(), anyDateInMonth.getMonth() + 1, 0).getDate();\r\n }\r\n\r\n //Minden sportoló jelenlét százalék számítása\r\n function totalPercentageCount() {\r\n vm.valami = 0;\r\n vm.presenceTotalSum = 0;\r\n vm.presencePlannedTotalSum = 0;\r\n var db = 0;\r\n if (gridNew && gridNew.dataSource) {\r\n db = gridNew.dataSource.length;\r\n }\r\n for (var rec = 0; rec < db; rec++) {\r\n var jo = parseFloat(gridNew.dataSource[rec].JelenletOsszesen);\r\n vm.presenceTotalSum += jo;\r\n var hoe = parseFloat(gridNew.dataSource[rec].HaviOsszEdzesszam);\r\n vm.presencePlannedTotalSum += hoe;\r\n if (hoe === 0) {\r\n vm.valami += 1;\r\n } else {\r\n vm.valami += (jo / hoe);\r\n }\r\n }\r\n $timeout(function () {\r\n if (vm.presencePlannedTotalSum > 0) {\r\n vm.presencePercentSum = (vm.valami / db * 100).toFixed(0);\r\n } else {\r\n vm.presencePercentSum = 100;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n\r\n function cellSave(arg) {\r\n console.log(arg);\r\n vm.AthleteUnderEditing = '';\r\n var propertyChanged = arg.columnName;\r\n if (!(propertyChanged.indexOf('Nap') == -1 && propertyChanged != 'HaviOsszEdzesszam')) {\r\n var sor = arg.rowData;\r\n var change = false;\r\n var value = '';\r\n prev = '';\r\n if (arg.value) {\r\n if (propertyChanged != 'HaviOsszEdzesszam') { // ez szám, nem string\r\n value = arg.value.trim();\r\n } else {\r\n value = arg.value;\r\n }\r\n }\r\n if (arg.previousValue) {\r\n if (propertyChanged != 'HaviOsszEdzesszam') {\r\n prev = arg.previousValue.trim();\r\n } else {\r\n prev = arg.previousValue;\r\n }\r\n }\r\n if (value != prev) {\r\n // később frissül, ezért úgy állítom össze a teljes sort, hogy ami éppen megváltozott annak értéket adok, mert a sorban még a régi van\r\n sor[propertyChanged] = value;\r\n change = true;\r\n }\r\n var retObj = attendanceRowCount(sor);\r\n if (change) {\r\n if (retObj.hiba) {\r\n arg.value = prev;\r\n gridNew.dataSource[sor.RowNumber - 1][propertyChanged] = prev;\r\n } else {\r\n gridNew.dataSource[sor.RowNumber - 1][propertyChanged] = value;\r\n gridNew.dataSource[sor.RowNumber - 1].JelenletOsszesen = retObj.jelenlet;\r\n gridNew.dataSource[sor.RowNumber - 1].HianyzasOsszesen = retObj.hianyzas;\r\n gridNew.dataSource[sor.RowNumber - 1].JelenletSzazalek = retObj.jelenletSzazalek;\r\n gridNew.dataSource[sor.RowNumber - 1].HianyzasSzazalek = retObj.hianyzasSzazalek;\r\n gridNew.dataSource[sor.RowNumber - 1].VersenyOsszesen = retObj.verseny;\r\n gridNew.dataSource[sor.RowNumber - 1].utolsoKitoltottNap = retObj.utolsoKitoltottNap;\r\n }\r\n }\r\n if (propertyChanged != 'HaviOsszEdzesszam') {\r\n vm.editedColumnValue = gridNew.dataSource[sor.RowNumber - 1][propertyChanged];\r\n }\r\n } else {\r\n gridNew.dataSource[arg.rowData.RowNumber - 1][propertyChanged] = arg.value;\r\n }\r\n\r\n vm.selectedAthleteName = '';\r\n $timeout(function () {\r\n vm.allowAthleteRefresh = true;\r\n $scope.$apply();\r\n }, 10);\r\n\r\n totalPercentageCount();\r\n gridNew.refresh();\r\n }\r\n\r\n //Adott sportoló jelenlét számítás, túltöltés figyelése\r\n function attendanceRowCount(record) {\r\n var ret = {};\r\n var jelenlet = 0;\r\n var hianyzas = 0;\r\n var verseny = 0;\r\n var utolsoToltott = 0;\r\n vm.attendanceOverChangeAthleteNames = '';\r\n for (var i = 1; i < 32; i++) {\r\n var value = record['Nap' + i] !== null ? record['Nap' + i].trim() : record['Nap' + i];\r\n if (value) {\r\n utolsoToltott = i;\r\n if (typeof value === 'string') {\r\n value = value.toUpperCase();\r\n switch (value) {\r\n case '0':\r\n hianyzas++;\r\n break;\r\n case '1':\r\n jelenlet += 1;\r\n break;\r\n case '2':\r\n jelenlet += 2;\r\n break;\r\n case '3':\r\n jelenlet += 3;\r\n break;\r\n case 'H':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.IgazoltHianyzas) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'S':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Serules) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'V':\r\n verseny++;\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Verseny) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'B':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Betegseg) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'Ü':\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n var dt = vm.editedAttendance.fej.Datum;\r\n record['utolsoKitoltottNap'] = new Date(new Date(dt).getFullYear(), new Date(dt).getMonth(), utolsoToltott);\r\n ret.utolsoKitoltottNap = record['utolsoKitoltottNap'];\r\n record['JelenletOsszesen'] = jelenlet;\r\n ret.jelenlet = jelenlet;\r\n record['HianyzasOsszesen'] = hianyzas;\r\n ret.hianyzas = hianyzas;\r\n record['VersenyOsszesen'] = verseny;\r\n ret.verseny = verseny;\r\n if (record['HaviOsszEdzesszam'] > 0) {\r\n record['JelenletSzazalek'] = (record['JelenletOsszesen'] / record['HaviOsszEdzesszam'] * 100).toFixed(0);\r\n record['HianyzasSzazalek'] = (record['HianyzasOsszesen'] / record['HaviOsszEdzesszam'] * 100).toFixed(0);\r\n } else {\r\n record['JelenletSzazalek'] = '100';\r\n record['HianyzasSzazalek'] = '0';\r\n }\r\n ret.jelenletSzazalek = record['JelenletSzazalek'];\r\n ret.hianyzasSzazalek = record['HianyzasSzazalek'];\r\n if ((record['HianyzasOsszesen'] + record['JelenletOsszesen']) > record['HaviOsszEdzesszam']) {\r\n vm.attendanceOverChangeAthleteNames += record['SportoloNev'] +\r\n '
' + gettextCatalog.getString('PlannedMonthlyTrainingsNumbers') + ': ' + record['HaviOsszEdzesszam'] +\r\n '
' + gettextCatalog.getString('SumPresence') + ': ' + record['JelenletOsszesen'] +\r\n '
' + gettextCatalog.getString('MissedAttendance') + ': ' + record['HianyzasOsszesen'] +\r\n '
';\r\n }\r\n if (vm.attendanceOverChangeAthleteNames.length > 0) {\r\n var swalText = gettextCatalog.getString('AttendanceGreaterThanPlanned') + '
' +\r\n vm.attendanceOverChangeAthleteNames + '
' +\r\n gettextCatalog.getString('hintOnMonthlyAttendeance_Presence') + '

' +\r\n gettextCatalog.getString('PleaseCorrectTheDatas');\r\n log.htmlError(swalText);\r\n ret.hiba = true;\r\n } else {\r\n ret.hiba = false;\r\n }\r\n totalPercentageCount();\r\n return ret;\r\n }\r\n\r\n function saveFunction(forced) {\r\n return new Promise(function(resolve, reject) {\r\n if (!gridNew) {\r\n log.warningMsg(gettextCatalog.getString('PleaseFinishEditingInGrid'));\r\n return;\r\n }\r\n if (!gridNew || (!forced && vm.editedAttendance.fej.EdzoAlairta === true)) {\r\n return;\r\n }\r\n var SaveButtonWasEnabled = vm.saveButtonEnabled;\r\n vm.saveButtonEnabled = false;\r\n $timeout(function () {\r\n if (gridNew.isEdit === true && gridNew.editModule) {\r\n gridNew.editModule.endEdit();\r\n }\r\n totalPercentageCount();\r\n vm.hasErrorAtSave = false;\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n dataservice.saveMonthlyAttendance(vm.editedAttendance).then(function (resp) {\r\n vm.saveButtonEnabled = true;\r\n var haveImputError = [];\r\n resp.inputErrors.forEach(function (input) {\r\n if (input.error != null) {\r\n haveImputError += input.fieldName + '
';\r\n }\r\n });\r\n if (haveImputError.length > 0) {\r\n log.warningMsg(haveImputError);\r\n } else {\r\n if (resp && resp.res > 0) {\r\n log.successMsg('AttendanceSaved');\r\n if (vm.openTrainingDiaryAfterSave) {\r\n paramHelper.setParams([{'HaviJelenletiFejId': resp.res}]);\r\n $state.go('administration.trainingDiary');\r\n } else {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.id': resp.res}\r\n ]);\r\n dataservice.monthlyAttendanceSelectById(resp.res).then(function (data) {\r\n viewMonthlyAttendance(data);\r\n });\r\n }\r\n } else {\r\n vm.hasErrorAtSave = true;\r\n log.errorMsg('Error Saving Monthly Attendance');\r\n }\r\n }\r\n vm.netError = false;\r\n resolve('saveok');\r\n }, function (err) {\r\n console.log('SaveError', err);\r\n vm.saveButtonEnabled = SaveButtonWasEnabled;\r\n vm.netError = true;\r\n reject(err);\r\n });\r\n }, 0);\r\n });\r\n };\r\n\r\n //Havi jelenléti mentése gomb click\r\n function saveAttendance(forced) {\r\n saveFunction(forced).then(function (response) {\r\n console.log('saveFunction response', response);\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n\r\n //Lekéri a csoport létszámát, érkezők-távozók számát\r\n function athletesCountMonthlyAttendance() {\r\n var tol = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0);\r\n var ig = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), daysInMonth(tol), 23, 59, 59);\r\n if (!vm.editedAttendance.fej) {\r\n return;\r\n }\r\n if (!vm.editedAttendance.fej.IdKorcsoport) {\r\n vm.editedAttendance.fej.IdKorcsoport = 0;\r\n }\r\n dataservice.getAthletesCountForMonthlyAttendance(vm.editedAttendance.fej.IdEdzo, vm.editedAttendance.fej.IdSzakosztaly, vm.editedAttendance.fej.IdKorcsoport, tol, ig)\r\n .then(function (data) {\r\n vm.editedAttendance.fej.CsoportLetszam = data.Szam;\r\n vm.editedAttendance.fej.Erkezett = data.SzamErkezett;\r\n vm.editedAttendance.fej.Tavozott = data.SzamKilepett;\r\n });\r\n }\r\n\r\n //Havi jelenléti lezárása gomb click\r\n function closeMonthlyAttendance() {\r\n console.log('closeMonthlyAttendance');\r\n vm.editedAttendance.fej.EdzoAlairta = true;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = new Date().toDateString();\r\n saveFunction(true).then(function (response) {\r\n console.log('closeMonthlyAttendance saveFunction response', response);\r\n vm.readOnlyAttendance = true;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('closeMonthlyAttendance saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n vm.editedAttendance.fej.EdzoAlairta = false;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = null;\r\n return err;\r\n });\r\n }\r\n\r\n //Havi jelenléti visszautasítása gomb click\r\n function rejectMonthlyAttendance() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectAttendance() {\r\n if (vm.rejectAttendanceText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\n' + gettextCatalog.getString('The') + ' ' + vm.editedAttendance.fej.SzakosztalyNev;\r\n if (vm.editedAttendance.fej.KorcsoportNev) {\r\n uzi += ' - ' + vm.editedAttendance.fej.KorcsoportNev;\r\n }\r\n uzi += ' ' + vm.selectedYear + ' ' + vm.months[(isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth)].text + ' ' + gettextCatalog.getString('MonthlyAttendanceReportRejected') + '\\n' + gettextCatalog.getString('Cause') + ' ' + vm.rejectAttendanceText;\r\n vm.editedAttendance.fej.EdzoAlairta = false;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = '';\r\n //saveAttendance();\r\n saveFunction(true).then(function (response) {\r\n console.log('saveFunction response', response);\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyAttendance = false;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n viewMonthlyAttendance(vm.editedAttendance);\r\n dataservice.messageSave(uzi, [vm.selectedCoach], vm.selectedSection).then(function () {});\r\n }\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n\r\n //Havi jelenléti szakosztályvezetői elfogadása\r\n function acceptMonthlyAttendance() {\r\n dataservice.monthlyAttendanceAcceptByLeader(vm.editedAttendance.fej.Id).then(function (data) {\r\n vm.editedAttendance.fej.SzakosztalyvezetoAlairta = true;\r\n vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta = data.res;\r\n vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum = data.date;\r\n viewMonthlyAttendance(vm.editedAttendance);\r\n log.successMsg('AttendanceAccepted');\r\n vm.readOnlyAttendance = true;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n });\r\n }\r\n\r\n //Új havi jelenléti összesítő készítése\r\n function createNewAttendance() {\r\n dataservice.getLastMonthlyAttendanceTrainingLocationAndTime(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup)\r\n .then(function (data) {\r\n vm.editedAttendance.fej = {};\r\n vm.editedAttendance.fej.CsoportLetszam = 0;\r\n vm.editedAttendance.fej.Datum = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0);\r\n vm.editedAttendance.fej.Erkezett = 0;\r\n vm.editedAttendance.fej.Id = -1;\r\n vm.editedAttendance.fej.IdEdzo = vm.selectedCoach;\r\n vm.editedAttendance.fej.IdKorcsoport = vm.selectedAgeGroup;\r\n vm.editedAttendance.fej.IdSzakosztaly = vm.selectedSection;\r\n vm.editedAttendance.fej.KorosztalyosToltes = vm.allAgeGroupfill;\r\n vm.editedAttendance.fej.Megjegyzes = '';\r\n vm.editedAttendance.fej.Tavozott = 0;\r\n vm.editedAttendance.fej.EdzoNev = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.editedAttendance.fej.SzakosztalyNev = angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n if (angular.element('#maKorosztaly').data('ejDropDownList') && angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem().length > 0) {\r\n vm.editedAttendance.fej.KorcsoportNev = angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.editedAttendance.fej.KorcsoportNev = 0;\r\n vm.selectedAgeGroup = 0;\r\n }\r\n\r\n if (data !== null) {\r\n vm.dayz.CsutortokHely = data.CsutortokHely;\r\n vm.dayz.CsutortokIdo = data.CsutortokIdo;\r\n vm.dayz.HetfoHely = data.HetfoHely;\r\n vm.dayz.HetfoIdo = data.HetfoIdo;\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = data.KeddHely;\r\n vm.dayz.KeddIdo = data.KeddIdo;\r\n vm.dayz.PentekHely = data.PentekHely;\r\n vm.dayz.PentekIdo = data.PentekIdo;\r\n vm.dayz.SzerdaHely = data.SzerdaHely;\r\n vm.dayz.SzerdaIdo = data.SzerdaIdo;\r\n vm.dayz.SzombatHely = data.SzombatHely;\r\n vm.dayz.SzombatIdo = data.SzombatIdo;\r\n vm.dayz.VasarnapHely = data.VasarnapHely;\r\n vm.dayz.VasarnapIdo = data.VasarnapIdo;\r\n } else {\r\n vm.dayz.CsutortokHely = '';\r\n vm.dayz.CsutortokIdo = '';\r\n vm.dayz.HetfoHely = '';\r\n vm.dayz.HetfoIdo = '';\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = '';\r\n vm.dayz.KeddIdo = '';\r\n vm.dayz.PentekHely = '';\r\n vm.dayz.PentekIdo = '';\r\n vm.dayz.SzerdaHely = '';\r\n vm.dayz.SzerdaIdo = '';\r\n vm.dayz.SzombatHely = '';\r\n vm.dayz.SzombatIdo = '';\r\n vm.dayz.VasarnapHely = '';\r\n vm.dayz.VasarnapIdo = '';\r\n }\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n\r\n dataservice.getAthletesForMonthlyAttendance(vm.selectedCoach,\r\n vm.selectedSection, vm.selectedAgeGroup, vm.editedAttendance.fej.Datum)\r\n .then(function (data2) {\r\n gridNew.dataSource = data2.tetelek;\r\n // create('new');\r\n vm.editedAttendance.tetelek = gridNew.dataSource;\r\n vm.editedAttendance.aktiv = data2.aktiv;\r\n vm.activePeriods = data2.aktiv;\r\n athletesCountMonthlyAttendance();\r\n });\r\n });\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToOlderMonthlyAttendanceReports() {\r\n paramHelper.setParams([{'monthlyAttendance.coachId': vm.selectedCoach}, {'monthlyAttendance.year': vm.selectedYear}, {'monthlyAttendance.month': (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth)}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceList');\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function print() {\r\n var max = daysInMonth(new Date(vm.editedAttendance.fej.Datum));\r\n $q.all([getAccepterCoachById()])\r\n .then(function (results) {\r\n vm.reportParameters = {\r\n Szakosztaly: vm.editedAttendance.fej.SzakosztalyNev,\r\n EvHonap: (new Date(vm.editedAttendance.fej.Datum).getFullYear() + '. ' + vm.months[moment(vm.editedAttendance.fej.Datum).month()].text),\r\n EdzoNeve: vm.editedAttendance.fej.EdzoNev,\r\n FejId: vm.editedAttendance.fej.Id,\r\n Datum29: max >= 29 ? '29' : ' ',\r\n Datum30: max >= 30 ? '30' : ' ',\r\n Datum31: max >= 31 ? '31' : ' ',\r\n Nap1: 1 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 1, 0, 0, 0).getDay()],\r\n Nap2: 2 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 2, 0, 0, 0).getDay()],\r\n Nap3: 3 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 3, 0, 0, 0).getDay()],\r\n Nap4: 4 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 4, 0, 0, 0).getDay()],\r\n Nap5: 5 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 5, 0, 0, 0).getDay()],\r\n Nap6: 6 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 6, 0, 0, 0).getDay()],\r\n Nap7: 7 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 7, 0, 0, 0).getDay()],\r\n Nap8: 8 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 8, 0, 0, 0).getDay()],\r\n Nap9: 9 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 9, 0, 0, 0).getDay()],\r\n Nap10: 10 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 10, 0, 0, 0).getDay()],\r\n Nap11: 11 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 11, 0, 0, 0).getDay()],\r\n Nap12: 12 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 12, 0, 0, 0).getDay()],\r\n Nap13: 13 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 13, 0, 0, 0).getDay()],\r\n Nap14: 14 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 14, 0, 0, 0).getDay()],\r\n Nap15: 15 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 15, 0, 0, 0).getDay()],\r\n Nap16: 16 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 16, 0, 0, 0).getDay()],\r\n Nap17: 17 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 17, 0, 0, 0).getDay()],\r\n Nap18: 18 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 18, 0, 0, 0).getDay()],\r\n Nap19: 19 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 19, 0, 0, 0).getDay()],\r\n Nap20: 20 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 20, 0, 0, 0).getDay()],\r\n Nap21: 21 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 21, 0, 0, 0).getDay()],\r\n Nap22: 22 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 22, 0, 0, 0).getDay()],\r\n Nap23: 23 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 23, 0, 0, 0).getDay()],\r\n Nap24: 24 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 24, 0, 0, 0).getDay()],\r\n Nap25: 25 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 25, 0, 0, 0).getDay()],\r\n Nap26: 26 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 26, 0, 0, 0).getDay()],\r\n Nap27: 27 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 27, 0, 0, 0).getDay()],\r\n Nap28: 28 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 28, 0, 0, 0).getDay()],\r\n Nap29: max >= 29 ? (29 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 29, 0, 0, 0).getDay()]) : ' ',\r\n Nap30: max >= 30 ? (30 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 30, 0, 0, 0).getDay()]) : ' ',\r\n Nap31: max >= 31 ? (31 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 31, 0, 0, 0).getDay()]) : ' ',\r\n OsszJelenletiSzazalek: vm.presencePercentSum + '%',\r\n Keszult: vm.editedAttendance.fej.EdzoAlairtaDatum == null ? '' : moment(vm.editedAttendance.fej.EdzoAlairtaDatum).format('YYYY. MM. DD') === 'Invalid date' ? '' : moment(vm.editedAttendance.fej.EdzoAlairtaDatum).format('YYYY. MM. DD'),\r\n EdzoNeve2: vm.editedAttendance.fej.EdzoNev,\r\n JovahagytaDatum: vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum == null ? '' : moment(vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum).format('YYYY. MM. DD') === 'Invalid date' ? '' : moment(vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum).format('YYYY. MM. DD'),\r\n Jovahagyta: results != null ? results[0] : ' ',\r\n Korosztaly: vm.editedAttendance.fej.KorcsoportNev === null ? '' : vm.editedAttendance.fej.KorcsoportNev\r\n };\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n });\r\n }\r\n\r\n function gridRowSelected(arg) {\r\n vm.selectedAthleteName = arg.data.SportoloNev + ' - ' + arg.data.SzuletesiDatum;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function yearDataBound() {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }\r\n\r\n function monthDataBound() {\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', vm.selectedMonth);\r\n }\r\n\r\n function CopyCellToColumn() {\r\n gridNew.dataSource.forEach(function (element) {\r\n var retObj = attendanceRowCount(element);\r\n var sor = findLine(element.IdSportolo);\r\n if (!(retObj.hiba || (sor && sor[vm.editedColumnName] === '0'))) {\r\n var oldValue = element[vm.editedColumnName];\r\n element[vm.editedColumnName] = vm.editedColumnValue;\r\n //rollback\r\n if (attendanceRowCount(element).hiba) {\r\n element[vm.editedColumnName] = oldValue;\r\n attendanceRowCount(element);\r\n } else {\r\n element.JelenletOsszesen = retObj.jelenlet;\r\n element.HianyzasOsszesen = retObj.hianyzas;\r\n element.JelenletSzazalek = retObj.jelenletSzazalek;\r\n element.HianyzasSzazalek = retObj.hianyzasSzazalek;\r\n element.VersenyOsszesen = retObj.verseny;\r\n element.utolsoKitoltottNap = retObj.utolsoKitoltottNap;\r\n }\r\n }\r\n });\r\n totalPercentageCount();\r\n gridNew.refresh();\r\n }\r\n\r\n vm.autoSaveCheckboxChanged = function (args) {\r\n dataservice.setMonthlyAttendanceAutoSave(args.value).then(function (result) {\r\n if (result.retValue) {\r\n if (args.value) {\r\n log.infoMsg('AutoSaveOn');\r\n } else {\r\n log.infoMsg('AutoSaveOFF');\r\n }\r\n }\r\n });\r\n };\r\n\r\n $rootScope.monthlyAttendanceSaveInterval = $interval(function () {\r\n if (vm.autoSave && vm.saveButton) {\r\n saveAttendance();\r\n }\r\n }, 60000);\r\n\r\n function ShowError() {\r\n log.errorMsg(gettextCatalog.getString('NetError'));\r\n swal({\r\n title: gettextCatalog.getString('Error'),\r\n text: gettextCatalog.getString('NetError'),\r\n type: 'error',\r\n showCancelButton: false,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: false,\r\n confirmButtonText: gettextCatalog.getString('IUnderstood')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n console.log('ShowError isConfirmed', isConfirmed);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance.monthlyAttendanceReport',\r\n config: {\r\n url: '/monthlyAttendanceReport',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.html',\r\n controller: 'MonthlyAttendanceReportController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceReport',\r\n settings: {\r\n navId: 222,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Havi jelenléti összesítő',\r\n orderTitle_en: 'Monthly Attendance Sheet Report',\r\n parentId: 2,\r\n content: 'MonthlyAttendanceReport',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyTrainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan',\r\n config: {\r\n url: '/monthlyTrainingPlan',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyTrainingPlanListController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList')\r\n .controller('MonthlyTrainingPlanListController', MonthlyTrainingPlanListController);\r\n\r\n function MonthlyTrainingPlanListController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n function setInitVals() {\r\n $rootScope.title = gettextCatalog.getString('MonthlyTrainingPlanList');\r\n //grid adatai\r\n vm.columns = [];\r\n\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedRowId = -1;\r\n\r\n vm.textSearch = '';\r\n\r\n vm.delEnabled = false;\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.ageGroupChanged = ageGroupChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.createNewWeeklyTrainingPlan = goToNewWeeklyTrainingPlan;\r\n vm.rowSelect = rowSelect;\r\n vm.rowDeselected = rowDeselected;\r\n vm.deleteWeeklyTrainingPlan = deleteWeeklyTrainingPlan;\r\n\r\n gridColumnsRefresh();\r\n\r\n var grid = new ej2.grids.Grid({\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.rowSelect,\r\n rowDeselected: vm.rowDeselected,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['monthlyTrainingPlan.edzoId', 'monthlyTrainingPlan.szakosztalyId', 'monthlyTrainingPlan.korosztalyId', 'monthlyTrainingPlan.ev', 'monthlyTrainingPlan.szoveg']),\r\n authenticationService.getRight('UJHAVIEDZTERV'),\r\n authenticationService.getRight('MODHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('TORLHAVIEDZTERV')];\r\n\r\n return $q.all(promises).then(function (results) {\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n vm.UJHAVIEDZTERV = results[1];\r\n vm.MODHAVIEDZTERV = results[2];\r\n vm.MEGTHAVIEDZTERV = results[3];\r\n vm.MEGTFELH = results[4];\r\n vm.MEGTKOROKEZ = results[5];\r\n vm.TORLHAVIEDZTERV = results[6];\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getCoaches();\r\n $timeout(function () {\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.edzoId'])) {\r\n vm.selectedCoach = parseInt(results[0]['monthlyTrainingPlan.edzoId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.szakosztalyId'])) {\r\n vm.selectedSection = parseInt(results[0]['monthlyTrainingPlan.szakosztalyId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.korosztalyId'])) {\r\n vm.selectedAgeGroup = parseInt(results[0]['monthlyTrainingPlan.korosztalyId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.szoveg'])) {\r\n vm.textSearch = results[0]['monthlyTrainingPlan.szoveg'];\r\n }\r\n if (results[0]['monthlyTrainingPlan.ev']) {\r\n vm.selectedYear = results[0]['monthlyTrainingPlan.ev'];\r\n } else {\r\n vm.selectedYear = new Date().getFullYear();\r\n }\r\n angular.element('#maEv').ejDropDownList({value: vm.selectedYear});\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n }\r\n );\r\n }\r\n\r\n //Grid oszlopainak definíciója\r\n function gridColumnsRefresh() {\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 60,\r\n template: '#motrpllitemplateDataColumn3'\r\n },\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#motrpllitemplateDataColumn1'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#motrpllitemplateDataColumn2'\r\n },\r\n {\r\n field: 'Honap',\r\n headerText: gettextCatalog.getString('Month'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Makrociklus',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Jovahagyott',\r\n headerText: gettextCatalog.getString('Approved'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false,\r\n template: '#motrpllitemplateDataColumn4'\r\n }\r\n ];\r\n }\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n vm.selectedCoach = args.value;\r\n\r\n vm.ageGroupList = [];\r\n getSectionList(args.value);\r\n }\r\n\r\n function getSectionList(coachId) {\r\n return dataservice.sectionDropDownList(coachId).then(\r\n function (data) {\r\n vm.sectionList = [];\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }// Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(args) {\r\n if (args.value === vm.selectedSection) {\r\n vm.selectedSection = args.value;\r\n return;\r\n }\r\n vm.selectedSection = args.value;\r\n vm.ageGroupList = [];\r\n dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupChanged(args) {\r\n if (args.value != null) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function refreshData() {\r\n $timeout(function () {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n dataservice.getMonthlyTrainingPlanList(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.selectedYear, vm.textSearch).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.selectedRowId = -1;\r\n vm.delEnabled = false;\r\n }\r\n );\r\n }, 0);\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'newUser.userId': edzoId}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'ageGroups.ageGroup': ageGroupId}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'monthlyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'monthlyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'monthlyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'monthlyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.monthlyTrainingPlan.monthlyTrainingPlanReport');\r\n }\r\n\r\n function goToNewWeeklyTrainingPlan() {\r\n if (!vm.UJHAVIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedCoach) || vm.selectedCoach == null || vm.selectedCoach <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedSection) || vm.selectedSection == null || vm.selectedSection <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectSection'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedAgeGroup) || vm.selectedAgeGroup == null || vm.selectedAgeGroup <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectAgeGroup'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedYear) || vm.selectedYear == null || vm.selectedYear <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': -1},\r\n {'monthlyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'monthlyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'monthlyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'monthlyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.monthlyTrainingPlan.monthlyTrainingPlanReport');\r\n }\r\n\r\n function getNameByID(arr, id) {\r\n for (var i = 0; i < arr.length; i++) {\r\n if (arr[i].value == id) {\r\n return arr[i].text;\r\n }\r\n }\r\n }\r\n\r\n function rowSelect(args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHAVIEDZTERV;\r\n $scope.$apply();\r\n }\r\n\r\n function rowDeselected() {\r\n vm.delEnabled = false;\r\n $scope.$apply();\r\n }\r\n\r\n function deleteWeeklyTrainingPlan() {\r\n if (angular.isUndefined(vm.selectedRowId) || vm.selectedRowId <= 0) {\r\n return;\r\n }\r\n\r\n dataservice.deleteMonthlyTrainingPlan(vm.selectedRowId).then(\r\n function (result) {\r\n if (result.retValue) {\r\n for (var i = 0; i < grid.dataSource.length; i++) {\r\n if (grid.dataSource[i].Id === vm.selectedRowId) {\r\n grid.dataSource.splice(i, 1);\r\n grid.refresh();\r\n break;\r\n }\r\n }\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n } else {\r\n log.errorMsg('CantDeleted');\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan.monthlyTrainingPlanList',\r\n config: {\r\n url: '/monthlyTrainingPlanList',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.html',\r\n controller: 'MonthlyTrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyTrainingPlanList',\r\n settings: {\r\n navId: 282,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Havi edzésterv',\r\n orderTitle_en: 'Monthly Training Plan',\r\n parentId: 2,\r\n content: 'MonthlyTrainingPlanList',\r\n activatorPermission: ['\"MEGTHAVIEDZTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyTrainingPlanReportController.$inject = [\"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"log\", \"$scope\", \"authenticationService\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport')\r\n .controller('MonthlyTrainingPlanReportController', MonthlyTrainingPlanReportController);\r\n\r\n function MonthlyTrainingPlanReportController(dataservice, $q, $rootScope, gettextCatalog, paramHelper, log, $scope, authenticationService, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Monthly Training Plan');\r\n\r\n var printOpened = false;\r\n vm.trainingPlanId = -1;\r\n\r\n vm.editedMTP = {};\r\n\r\n vm.editedMTP.Hetfo = undefined;\r\n vm.copyEnabled = false;\r\n\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Hónapok\r\n vm.months = [{\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }];\r\n\r\n vm.save = save;\r\n vm.files = openFiles;\r\n vm.print = showPrint;\r\n vm.copyFromOldPlan = copyFromOldPlan;\r\n vm.columnsPopup = [];\r\n vm.dataPopup = [];\r\n vm.selectedRowIndexPopup = -1;\r\n vm.closeEarlierMonthlyPlanWindow = closeEarlierMonthlyPlanWindow;\r\n vm.selectEarlierMonthlyPlanWindow = selectEarlierMonthlyPlanWindow;\r\n vm.SectionLeaderApprove = SectionLeaderApprove;\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Makrociklus',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 50,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Ev',\r\n headerText: gettextCatalog.getString('Year'),\r\n textAlign: 'center',\r\n width: 50,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Honap',\r\n headerText: gettextCatalog.getString('Month'),\r\n textAlign: 'center',\r\n // type: 'date',\r\n // format: '{0:MMMM}',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['monthlyTrainingPlan.edzoId', 'monthlyTrainingPlan.szakosztalyId', 'monthlyTrainingPlan.korosztalyId', 'monthlyTrainingPlan.ev', 'monthlyTrainingPlan.trainingPlanId', 'monthlyTrainingPlan.edzoNev', 'monthlyTrainingPlan.szakosztalyNev', 'monthlyTrainingPlan.korosztalyNev']),\r\n authenticationService.getRight('UJHAVIEDZTERV'),\r\n authenticationService.getRight('MODHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTHAVIEDZTERV'),\r\n getSystemSettings('HAVIEDZTERVJOVAHAGYKOT'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('HAVIEDZESTERVJOVAHAGY')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJHAVIEDZTERV = results[1];\r\n vm.MODHAVIEDZTERV = results[2];\r\n vm.MEGTHAVIEDZTERV = results[3];\r\n vm.HAVIEDZTERVJOVAHAGYKOT = results[4];\r\n vm.SZAKOSZTVEZ = results[5];\r\n vm.ADMIN = results[6];\r\n vm.HAVIEDZESTERVJOVAHAGY = results[7];\r\n vm.HAVIEDZTERVJOVAHAGY = vm.HAVIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HAVIEDZESTERVJOVAHAGY;\r\n vm.JOVAHAGYOTT = false;\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.trainingPlanId = results[0]['monthlyTrainingPlan.trainingPlanId'];\r\n if (angular.isDefined(vm.trainingPlanId) && vm.trainingPlanId !== -1) {\r\n dataservice.monthlyTrainingPlanSelectById(vm.trainingPlanId).then(function (data) {\r\n vm.editedMTP = data.retValue;\r\n vm.editedMTP.IdSzakosztaly = data.retValue.IdSzakosztaly;\r\n vm.JOVAHAGYOTT = vm.editedMTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedMTP.EdzoNev = results[0]['monthlyTrainingPlan.edzoNev'];\r\n vm.editedMTP.SzakosztalyNev = results[0]['monthlyTrainingPlan.szakosztalyNev'];\r\n vm.editedMTP.KorosztalyNev = results[0]['monthlyTrainingPlan.korosztalyNev'];\r\n vm.copyEnabled = false;\r\n });\r\n } else {\r\n $timeout(function () {\r\n vm.editedMTP.EdzoNev = results[0]['monthlyTrainingPlan.edzoNev'];\r\n vm.editedMTP.SzakosztalyNev = results[0]['monthlyTrainingPlan.szakosztalyNev'];\r\n vm.editedMTP.KorosztalyNev = results[0]['monthlyTrainingPlan.korosztalyNev'];\r\n vm.editedMTP.Ev = results[0]['monthlyTrainingPlan.ev'];\r\n vm.editedMTP.EdzoId = results[0]['monthlyTrainingPlan.edzoId'];\r\n vm.editedMTP.IdSzakosztaly = results[0]['monthlyTrainingPlan.szakosztalyId'];\r\n vm.editedMTP.IdKorcsoport = results[0]['monthlyTrainingPlan.korosztalyId'];\r\n vm.editedMTP.Tartalom = '';\r\n vm.copyEnabled = true;\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function save() {\r\n if ((vm.copyEnabled && vm.UJHAVIEDZTERV) || (vm.MODHAVIEDZTERV && !vm.copyEnabled)) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n dataservice.saveMonthlyTrainingPlan(vm.editedMTP).then(function (data) {\r\n dataservice.monthlyTrainingPlanSelectById(data.retValue).then(function (data) {\r\n vm.editedMTP = data.retValue;\r\n vm.editedMTP.IdSzakosztaly = data.retValue.IdSzakosztaly;\r\n vm.JOVAHAGYOTT = vm.editedMTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedMTP.EdzoNev = vm.editedMTP.Edzo;\r\n vm.editedMTP.SzakosztalyNev = vm.editedMTP.Szakosztaly;\r\n vm.editedMTP.KorosztalyNev = vm.editedMTP.Korosztaly;\r\n vm.copyEnabled = false;\r\n });\r\n log.successMsg('SavedSuccessful');\r\n // $rootScope.back();\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openFiles() {\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': vm.editedMTP.Id},\r\n {'monthlyTrainingPlan.edzoNev': vm.editedMTP.EdzoNev},\r\n {'monthlyTrainingPlan.szakosztalyNev': vm.editedMTP.SzakosztalyNev},\r\n {'monthlyTrainingPlan.korosztalyNev': vm.editedMTP.KorosztalyNev},\r\n {'files.tipus': 'EdzesTervHavi'},\r\n {'files.tablaId': vm.editedMTP.Id}\r\n ]);\r\n $state.go('other.files');\r\n }\r\n\r\n function showPrint() {\r\n vm.reportParameters = {\r\n EvHonap: vm.editedMTP.Ev + '. ' + vm.months[vm.editedMTP.HonapSzama].text,\r\n Szakosztaly: vm.editedMTP.SzakosztalyNev,\r\n Korosztaly: vm.editedMTP.KorosztalyNev,\r\n Edzo: vm.editedMTP.EdzoNev,\r\n Makrociklus: vm.editedMTP.Makrociklus,\r\n Tartalom: vm.editedMTP.Tartalom,\r\n Keszult: moment().format('YYYY. MM. DD'),\r\n Keszitette: vm.editedMTP.EdzoNev\r\n };\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n\r\n function copyFromOldPlan() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldMonthlyPlanByUserId(vm.editedMTP.EdzoId, vm.editedMTP.Id).then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n for (var i = 0; i < vm.dataPopup.length; i++) {\r\n vm.dataPopup[i].Honap = vm.months[vm.dataPopup[i].HonapSzama].text;\r\n }\r\n gridPopup.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeEarlierMonthlyPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierMonthlyPlanWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.getSelectedRowIndexes();\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.monthlyTrainingPlanSelectById(vmi.Id).then(function (res) {\r\n vm.editedMTP.Tartalom = res.retValue.Tartalom;\r\n vm.editedMTP.Makrociklus = res.retValue.Makrociklus;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function SectionLeaderApprove() {\r\n dataservice.HaviEdzesTervJovahagyas(vm.editedMTP.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('MonthlyTraningPlanApproved'));\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n vm.JOVAHAGYOTT = true;\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan.monthlyTrainingPlanReport',\r\n config: {\r\n url: '/monthlyTrainingPlanReport',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.html',\r\n controller: 'MonthlyTrainingPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n QuickCompetitionResultsController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$compile\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.administration.quickCompetitionResults')\r\n .controller('QuickCompetitionResultsController', QuickCompetitionResultsController);\r\n\r\n function QuickCompetitionResultsController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $compile, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('QuickCompetitionResults');\r\n\r\n vm.maskObjectTime;\r\n vm.elem;\r\n vm.tableTimeEditorTemplate = {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObjectTime.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObjectTime != null) {\r\n vm.maskObjectTime.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('GridAthletes', '');\r\n vm.maskObjectTime = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '99:99:99.999',\r\n value: angular.isDefined(undefined) ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObjectTime.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.ratingEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'center';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>C',\r\n customCharacters: {C: '012345'},\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [\r\n\r\n {\r\n field: 'SportoloId',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#qcrname'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('TrainerName'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n },\r\n {\r\n field: 'VersenyLeiras',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: 125,\r\n editType: 'datetimepicker',\r\n allowEditing: true\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Helyszin'),\r\n textAlign: 'center',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('EredmenySzoveg'),\r\n textAlign: 'center',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('EredmenyPontGol'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('EredmenyIdo'),\r\n textAlign: 'center',\r\n edit: vm.tableTimeEditorTemplate,\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('EredmenyTavolsag'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n editParams: {decimalPlaces: 2, locale: 'HU-hu'},\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsagM',\r\n headerText: gettextCatalog.getString('EredmenyTavolsagM'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Eredmeny',\r\n headerText: gettextCatalog.getString('Rating'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n edit: {params: {min: 0, max: 5}},\r\n width: 200,\r\n allowEditing: true\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n cellSave: cellSave,\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Public functions\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.save = save;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('UJEERJEL'), getSections(), paramHelper.getParams([], ['qcr.sectionId', 'qcr.ageGroupId'])];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.sectionId = results[2]['qcr.sectionId'];\r\n vm.ageGroupId = results[2]['qcr.ageGroupId'];\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n // getAthletes();\r\n getAgeGroups();\r\n paramHelper.setParams([{'qcr.sectionId': vm.sectionId}]);\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n }\r\n var index = vm.ageGroupList.map(function (e) {\r\n return e.value;\r\n }).indexOf(vm.ageGroupId);\r\n if (index < 0) {\r\n index = 0;\r\n }\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemsByIndices', index);\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getAthletes();\r\n paramHelper.setParams([{'qcr.ageGroupId': vm.ageGroupId}]);\r\n }\r\n\r\n function getAthletes() {\r\n dataservice.athletesSelect2(vm.sectionId, vm.ageGroupId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.columnName === 'EredmenyTavolsag') {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsag = args.value;\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsagM = (args.value / 100).toFixed(2);\r\n grid.refresh();\r\n } else if (args.columnName === 'EredmenyTavolsagM') {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsagM = args.value;\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsag = Math.round(args.value * 100);\r\n grid.refresh();\r\n } else {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing][args.columnName] = args.value;\r\n grid.refresh();\r\n }\r\n }\r\n\r\n function save() {\r\n grid.endEdit();\r\n grid.editModule.batchSave();\r\n dataservice.quickCompetitionResult(grid.dataSource).then(function (resp) {\r\n if (resp.retValue) {\r\n swal({\r\n title: gettextCatalog.getString('SavedSuccessful'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n activate();\r\n }\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(Id) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.quickCompetitionResults')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.quickCompetitionResults',\r\n config: {\r\n url: '/quickCompetitionResults',\r\n templateUrl: 'app/administration/quickCompetitionResults/quickCompetitionResults.html',\r\n controller: 'QuickCompetitionResultsController',\r\n controllerAs: 'vm',\r\n title: 'QuickCompetitionResults',\r\n settings: {\r\n navId: 2112,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Eredményjelentő (gyors)',\r\n orderTitle_en: 'Result Report (quick)',\r\n parentId: 2,\r\n content: 'QuickCompetitionResults',\r\n activatorPermission: ['\"UJEERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ResultReportAthletesController.$inject = [\"$q\", \"dataservice\", \"log\", \"DOMAIN\", \"paramHelper\", \"$scope\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.administration.resultReportAthletes')\r\n .controller('ResultReportAthletesController', ResultReportAthletesController);\r\n\r\n function ResultReportAthletesController($q, dataservice, log, DOMAIN, paramHelper, $scope, authenticationService, gettextCatalog, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ResultReportAthletes');\r\n vm.deleted = false;\r\n vm.editedReportResult = {};\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.athleteList = [];\r\n vm.athleteListPartner1 = [];\r\n vm.athleteListPartner2 = [];\r\n vm.athleteListPartner3 = [];\r\n vm.noImage = '';\r\n vm.pageSize = 12;\r\n vm.defaultSection = -1;\r\n vm.competitionList = [];\r\n vm.EredmenyIdo = '';\r\n vm.noImage = DOMAIN.baseURL + DOMAIN.noImage;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editable = false;\r\n vm.CanCreateNew = true;\r\n vm.CanModify = true;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.columnsPopup = [];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.closeEarlierResultReportAthletesWindow = closeEarlierResultReportAthletesWindow;\r\n vm.selectEarlierResultReportAthletesWindow = selectEarlierResultReportAthletesWindow;\r\n\r\n vm.cmChange = cmChange;\r\n vm.mChange = mChange;\r\n\r\n function cmChange() {\r\n var cm = vm.editedReportResult.EredmenyTavolsag;\r\n if (vm.editedReportResult.EredmenyTavolsagM != cm / 100) {\r\n vm.editedReportResult.EredmenyTavolsagM = cm / 100;\r\n }\r\n }\r\n\r\n function mChange() {\r\n if (vm.editedReportResult.EredmenyTavolsagM && vm.editedReportResult.EredmenyTavolsagM.length > 0) {\r\n vm.editedReportResult.EredmenyTavolsagM = vm.editedReportResult.EredmenyTavolsagM.replace(',', '.');\r\n }\r\n var m = vm.editedReportResult.EredmenyTavolsagM;\r\n if (vm.editedReportResult.EredmenyTavolsag != m * 100) {\r\n vm.editedReportResult.EredmenyTavolsag = Math.round(m * 100);\r\n }\r\n }\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Filenev', headerText: gettextCatalog.getString('Filename'), textAlign: 'center', allowEditing: false, template: '#rereattemplateDataColumn1'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', allowEditing: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['Delete'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n if (args.requestType == 'delete') {\r\n return dataservice.deleteFiles(args.data[0].Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n vm.columnsPopup = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'VersenyNeve', headerText: gettextCatalog.getString('CompetitionName'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Versenyszam', headerText: gettextCatalog.getString('Versenyszam'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 100, allowEditing: false},\r\n {field: 'SportoloCsapat', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125, allowEditing: false}\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.athleteDataBound = athleteDataBound;\r\n vm.athleteSelect = athleteSelect;\r\n vm.athleteDataBoundPartner = athleteDataBoundPartner;\r\n vm.athleteDataBoundPartner2 = athleteDataBoundPartner2;\r\n vm.athleteDataBoundPartner3 = athleteDataBoundPartner3;\r\n vm.athleteSelectPartner = athleteSelectPartner;\r\n vm.athleteSelectPartner2 = athleteSelectPartner2;\r\n vm.athleteSelectPartner3 = athleteSelectPartner3;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n vm.openCropDialog = openImgDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.deleteFile = deleteFile;\r\n vm.createResultReport = createResultReport;\r\n vm.modifyResultReport = modifyResultReport;\r\n vm.saveResultReport = saveResultReport;\r\n vm.clearTars1 = clearTars1;\r\n vm.clearTars2 = clearTars2;\r\n vm.clearTars3 = clearTars3;\r\n\r\n activate();\r\n\r\n function activate() {\r\n generateUploadBox();\r\n $q.all([paramHelper.getParams([], ['resultReportAthletes.Id']),\r\n authenticationService.getRight('MODEERJEL'),\r\n authenticationService.getRight('UJEERJEL'),\r\n authenticationService.getRight('MEGTEERJEL')])\r\n .then(function (results) {\r\n vm.MODEERJEL = results[1];\r\n vm.UJEERJEL = results[2];\r\n vm.MEGTEERJEL = results[3];\r\n\r\n if (!vm.MEGTEERJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJEERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODEERJEL);\r\n //létezőt nyit vissza\r\n if (results[0]['resultReportAthletes.Id'] && results[0]['resultReportAthletes.Id'] !== -1) {\r\n getReportAthleteById(results[0]['resultReportAthletes.Id']).then(function () {\r\n paramHelper.removeParam('resultReportAthletes.Id');\r\n });\r\n } else {\r\n createResultReport();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function getReportAthleteById(Id) {\r\n return dataservice.resultReportAthletesSelectById(Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.defaultSection = data.item.SzakosztalyId;\r\n vm.defaultAgeGroup = data.item.KorcsoportId;\r\n vm.defaultAthlete = data.item.SportoloId;\r\n vm.defaultAthletePartner = data.item.TarsEredmenySportolo;\r\n vm.defaultAthletePartner2 = data.item.TarsEredmenySportolo2;\r\n vm.defaultAthletePartner3 = data.item.TarsEredmenySportolo3;\r\n if (!data.item.Foto || data.item.Foto == 'noImage.png' || data.item.Foto == 'noImg.jpg') {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.noImage;\r\n } else {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.resultReportImgBaseUrl + data.item.Foto;\r\n }\r\n getSections();\r\n getFiles(Id);\r\n });\r\n }\r\n\r\n function generateUploadBox() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n enabled: true,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls, .mp4, .avi',\r\n complete: function (args) {\r\n if (args.responseText === 'true') {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles(vm.editedReportResult.Id);\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf,.xls,.mp4,.avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'JelentokEgyeni', tablaId: vm.editedReportResult.Id};\r\n }\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.editedReportResult.SzakosztalyId = args.value;\r\n getAgeGroups(args.value);\r\n getCharacterOfACompetitionList(args.value);\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getCharacterOfACompetitionList(szakosztalyId) {\r\n var csapat = false;\r\n return dataservice.getCharacterOfACompetitionList(csapat, szakosztalyId)\r\n .then(function (data) {\r\n vm.competitionList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.defaultAgeGroup);\r\n }\r\n }\r\n\r\n function getAthletes(KorcsoportId) {\r\n return dataservice.athleteDropDownListSelect(vm.editedReportResult.SzakosztalyId, KorcsoportId, vm.defaultAthlete, vm.defaultAthletePartner)\r\n .then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n for (var i = 0; i < vm.athleteList.length; i++) {\r\n vm.athleteListPartner1[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n vm.athleteListPartner2[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n vm.athleteListPartner3[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n }\r\n });\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.editedReportResult.KorcsoportId = args.value;\r\n getAthletes(args.value);\r\n }\r\n\r\n function athleteDataBound() {\r\n if (vm.athleteList.length === 1) {\r\n angular.element('#maSportolo').ejDropDownList('selectItemByValue', vm.athleteList[0].value);\r\n } else {\r\n angular.element('#maSportolo').ejDropDownList('selectItemByValue', vm.editedReportResult.SportoloId);\r\n }\r\n }\r\n\r\n function excludeFromPartnerList(sportoloid) {\r\n vm.athleteListPartner1 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != sportoloid;\r\n });\r\n }\r\n\r\n function athleteDataBoundPartner() {\r\n angular.element('#maTarsSportolo').ejDropDownList('selectItemByValue', vm.defaultAthletePartner);\r\n }\r\n\r\n function athleteDataBoundPartner2() {\r\n angular.element('#maTarsSportolo2').ejDropDownList('selectItemByValue', vm.defaultAthletePartner2);\r\n }\r\n\r\n function athleteDataBoundPartner3() {\r\n angular.element('#maTarsSportolo3').ejDropDownList('selectItemByValue', vm.defaultAthletePartner3);\r\n }\r\n\r\n function athleteSelect(args) {\r\n vm.editedReportResult.SportoloId = args.value;\r\n vm.athleteListPartner1 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner(args) {\r\n vm.editedReportResult.TarsEredmenySportolo = args.value;\r\n vm.athleteListPartner2 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner2(args) {\r\n vm.editedReportResult.TarsEredmenySportolo2 = args.value;\r\n vm.athleteListPartner3 = vm.athleteListPartner2.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner3(args) {\r\n vm.editedReportResult.TarsEredmenySportolo3 = args.value;\r\n }\r\n\r\n function clearTars1() {\r\n vm.editedReportResult.TarsEredmenySportolo = undefined;\r\n $('#maTarsSportolo').ejDropDownList('clearText');\r\n clearTars2();\r\n clearTars3();\r\n }\r\n\r\n function clearTars2() {\r\n vm.editedReportResult.TarsEredmenySportolo2 = undefined;\r\n $('#maTarsSportolo2').ejDropDownList('clearText');\r\n clearTars3();\r\n }\r\n\r\n function clearTars3() {\r\n vm.editedReportResult.TarsEredmenySportolo3 = undefined;\r\n $('#maTarsSportolo3').ejDropDownList('clearText');\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n vm.deleted = false;\r\n\r\n if (angular.isUndefined(vm.editedReportResult.SzakosztalyId) || vm.editedReportResult.SzakosztalyId === null || vm.editedReportResult.SzakosztalyId === -1) {\r\n swal({\r\n title: gettextCatalog.getString('Error'),\r\n text: gettextCatalog.getString('LetHimGrantAtLeastASection'),\r\n type: 'error',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n vm.selectedRowIndexPopup = -1;\r\n angular.element('#searchWindow').data('ejDialog').open();\r\n dataservice.resultReportAthletesOlderReports(vm.editedReportResult.SzakosztalyId, vm.editedReportResult.KorcsoportId, true).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n }\r\n\r\n function openImgDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function createResultReport() {\r\n vm.editedReportResult = {};\r\n vm.editedReportResult.Id = -1;\r\n vm.editedReportResult.DatumIg = null;\r\n vm.editedReportResult.DatumTol = null;\r\n vm.editedReportResult.EdzoId = null;\r\n vm.editedReportResult.EdzoNeve = null;\r\n vm.editedReportResult.Eredmeny = 3;\r\n vm.editedReportResult.EredmenyIdo = null;\r\n vm.editedReportResult.EredmenySzoveg = null;\r\n vm.editedReportResult.EredmenyTavolsag = null;\r\n vm.editedReportResult.Ertekeles = null;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.Helyezes = null;\r\n vm.editedReportResult.Helyszin = null;\r\n vm.editedReportResult.Hivatalos = false;\r\n vm.editedReportResult.Jellege = null;\r\n vm.editedReportResult.KorcsoportId = null;\r\n vm.editedReportResult.KorcsoportNeve = null;\r\n vm.editedReportResult.SportoloId = null;\r\n vm.editedReportResult.SportoloNev = null;\r\n vm.editedReportResult.SzakosztalyId = null;\r\n vm.editedReportResult.SzakosztalyNeve = null;\r\n vm.editedReportResult.SzuletesiIdo = null;\r\n vm.editedReportResult.TarsEredmenySportolo = null;\r\n vm.editedReportResult.TarsEredmenySportolo2 = null;\r\n vm.editedReportResult.TarsEredmenySportolo3 = null;\r\n vm.editedReportResult.VersenyLeiras = null;\r\n vm.editedReportResult.fileData = null;\r\n vm.editedReportResult.fileName = null;\r\n grid.dataSource = [];\r\n grid.editSettings.allowDeleting = true;\r\n\r\n vm.editedReportResult.SzakosztalyId = 0;\r\n vm.editedReportResult.KorcsoportId = 0;\r\n vm.editedReportResult.SportoloId = 0;\r\n vm.editedReportResult.TarsEredmenySportolo = 0;\r\n vm.editedReportResult.TarsEredmenySportolo2 = 0;\r\n vm.editedReportResult.TarsEredmenySportolo3 = 0;\r\n // angular.element('#maSzakosztaly').ejDropDownList('clearText');\r\n // angular.element('#maKorosztaly').ejDropDownList('clearText');\r\n // angular.element('#maSportolo').ejDropDownList('clearText');\r\n // angular.element('#maTarsSportolo').ejDropDownList('clearText');\r\n $timeout(function () {\r\n vm.editable = true;\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n $scope.$apply();\r\n });\r\n }\r\n\r\n function modifyResultReport() {\r\n vm.editable = true;\r\n grid.editSettings.allowDeleting = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n }\r\n\r\n function saveResultReport() {\r\n $scope.$broadcast('submitted');\r\n if ((vm.editedReportResult.EredmenyIdo == null || angular.isUndefined(vm.editedReportResult.EredmenyIdo) || vm.editedReportResult.EredmenyIdo === '__:__:__.___') &&\r\n (vm.editedReportResult.EredmenySzoveg == null || angular.isUndefined(vm.editedReportResult.EredmenySzoveg) || vm.editedReportResult.EredmenySzoveg === '') &&\r\n (vm.editedReportResult.EredmenyTavolsag == null || angular.isUndefined(vm.editedReportResult.EredmenyTavolsag) || vm.editedReportResult.EredmenyTavolsag === '') &&\r\n (vm.editedReportResult.Eredmeny == null || angular.isUndefined(vm.editedReportResult.Eredmeny) || vm.editedReportResult.Eredmeny === '')\r\n ) {\r\n log.errorMsg('LegalabbEgyEredmenytAdjonMeg');\r\n return;\r\n }\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.editedReportResult.fileData = vm.cropper.croppedImage;\r\n vm.editedReportResult.fileName = angular.element('#fileName').val();\r\n }\r\n $timeout(function () {\r\n $scope.$apply();\r\n dataservice.saveResultReportAthletes(vm.editedReportResult)\r\n .then(function (args) {\r\n log.successMsg('ResultReportSaved');\r\n getReportAthleteById(args.data);\r\n vm.editable = false;\r\n angular.element('#UploadDefault').ejUploadbox('disable');\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJEERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODEERJEL);\r\n });\r\n }, 100);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.deleted = false;\r\n vm.editedReportResult.Foto = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheImage'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n vm.deleted = true;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.fileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getFiles(args) {\r\n dataservice.getFilesList('JelentokEgyeni', args).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function deleteFile(args) {\r\n return dataservice.deleteFiles(args.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n\r\n function closeEarlierResultReportAthletesWindow() {\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n\r\n function selectEarlierResultReportAthletesWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = gridPopup.currentViewData[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n getReportAthleteById(vmi.Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.Id = -1;\r\n });\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.resultReportAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.resultReportAthletes',\r\n config: {\r\n url: '/resultReportAthletes',\r\n templateUrl: 'app/administration/resultReportAthletes/resultReportAthletes.html',\r\n controller: 'ResultReportAthletesController',\r\n controllerAs: 'vm',\r\n title: 'ResultReportAthletes',\r\n settings: {\r\n navId: 292,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Eredményjelentő (egyéni)',\r\n orderTitle_en: 'Result Report (individual)',\r\n parentId: 2,\r\n content: 'ResultReportAthletes',\r\n activatorPermission: ['\"MEGTEERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ResultReportTeamController.$inject = [\"$q\", \"dataservice\", \"log\", \"DOMAIN\", \"paramHelper\", \"$scope\", \"$compile\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$timeout\", \"$filter\"];\r\n angular\r\n .module('app.administration.resultReportTeam')\r\n .controller('ResultReportTeamController', ResultReportTeamController);\r\n\r\n function ResultReportTeamController($q, dataservice, log, DOMAIN, paramHelper, $scope, $compile, authenticationService, gettextCatalog, $rootScope, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ResultReportTeam');\r\n vm.editedReportResult = {};\r\n vm.editedReportId = -1;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.teamList = [];\r\n vm.competitionList = [];\r\n vm.EredmenyIdo = '';\r\n vm.noImage = DOMAIN.baseURL + DOMAIN.noImage;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editable = false;\r\n vm.CanCreateNew = true;\r\n vm.CanModify = true;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.selectedRowIndex = -1;\r\n vm.AtjatszoAgeGroup = undefined;\r\n vm.AtjatszoAgeGroupList = [];\r\n vm.columnsPopup = [];\r\n vm.splicedAthletes = [];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.addAtjatszok = addAtjatszok;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.closeEarlierResultReportTeamWindow = closeEarlierResultReportTeamWindow;\r\n vm.selectEarlierResultReportTeamWindow = selectEarlierResultReportTeamWindow;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.tableTimeEditorTemplate = {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('GridAthletes', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '99:99:99.999',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100,\r\n template: '#reretetemplateDataColumn1'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['Delete', 'Search'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n if (args.requestType == 'delete') {\r\n return dataservice.deleteFiles(args.data[0].Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Athletes\r\n vm.columnsAthletes = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('TrainerName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n },\r\n {\r\n field: 'Atjatszo',\r\n headerText: gettextCatalog.getString('AtFeljatszo'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n type: 'boolean',\r\n editType: ej.Grid.EditingType.Boolean,\r\n displayAsCheckBox: true,\r\n },\r\n {\r\n field: 'Kiemelt',\r\n headerText: gettextCatalog.getString('Kiemelt'),\r\n textAlign: 'center',\r\n width: 80,\r\n type: 'boolean',\r\n editType: ej.Grid.EditingType.Boolean,\r\n displayAsCheckBox: true,\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('EredmenySzoveg'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('EredmenyPontGol'),\r\n textAlign: 'center',\r\n type: 'numeric',\r\n editType: ej.Grid.EditingType.Numeric,\r\n editParams: {decimalPlaces: 2, locale: 'HU-hu'},\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('EredmenyIdo'),\r\n textAlign: 'center',\r\n edit: vm.tableTimeEditorTemplate,\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('EredmenyTavolsag'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Numeric,\r\n format: 'N2',\r\n params: {decimals: 2},\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsagM',\r\n headerText: gettextCatalog.getString('EredmenyTavolsagM'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Numeric,\r\n width: 100,\r\n allowEditing: true\r\n }\r\n ];\r\n\r\n var gridAthletes = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n editSettings: {allowDeleting: false, allowEditing: false, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthletes,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridAthletes'), $scope);\r\n }\r\n },\r\n cellEdit: function (args) {\r\n if (!vm.editable) {\r\n args.cancel = true;\r\n } else {\r\n if (args.columnName === 'Kiemelt') {\r\n var index = gridAthletes.dataSource.findIndex(function (item) {\r\n return item.SportolokID === args.rowData.SportolokID;\r\n });\r\n gridAthletes.dataSource[index]['Kiemelt'] = !gridAthletes.dataSource[index]['Kiemelt'];\r\n gridAthletes.endEdit();\r\n args.cancel = true;\r\n }\r\n }\r\n },\r\n cellSave: function (arg) {\r\n if (arg.columnName == 'EredmenyTavolsag') {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i].EredmenyTavolsag = arg.value;\r\n gridAthletes.dataSource[i].EredmenyTavolsagM = arg.value / 100;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n } else if (arg.columnName == 'EredmenyTavolsagM') {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i].EredmenyTavolsagM = arg.value;\r\n gridAthletes.dataSource[i].EredmenyTavolsag = arg.value * 100;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n } else {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i][arg.columnName] = arg.value;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n });\r\n gridAthletes.appendTo('#GridAthletes');\r\n\r\n vm.atjatszoColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'Szuletes', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzoneve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var gridAtjatszo = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.atjatszoColumns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelecting: function () {\r\n },\r\n });\r\n gridAtjatszo.appendTo('#GridAtjatszo');\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'VersenyNeve',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloCsapat',\r\n headerText: gettextCatalog.getString('Team'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.teamDataBound = teamDataBound;\r\n vm.teamSelect = teamSelect;\r\n vm.openCropDialog = openImgDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.createResultReport = createResultReport;\r\n vm.modifyResultReport = modifyResultReport;\r\n vm.saveResultReport = saveResultReport;\r\n vm.oldTeamId = 0;\r\n vm.addAthletesToResultReport = addAthletesToResultReport;\r\n vm.removeAthletesFromResultReport = removeAthletesFromResultReport;\r\n vm.atjatszoAgeGroupSelect = atjatszoAgeGroupSelect;\r\n\r\n activate();\r\n\r\n function activate() {\r\n generateUploadbox();\r\n $q.all([paramHelper.getParams([], ['resultReportTeam.Id']),\r\n authenticationService.getRight('MODCSERJEL'),\r\n authenticationService.getRight('UJCSERJEL'),\r\n authenticationService.getRight('MEGTCSERJEL')])\r\n .then(function (results) {\r\n vm.MODCSERJEL = results[1];\r\n vm.UJCSERJEL = results[2];\r\n vm.MEGTCSERJEL = results[3];\r\n\r\n if (!vm.MEGTCSERJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJCSERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODCSERJEL);\r\n //létezőt nyit vissza\r\n if (results[0]['resultReportTeam.Id'] && results[0]['resultReportTeam.Id'] !== -1) {\r\n dataservice.resultReportTeamSelectById(results[0]['resultReportTeam.Id'])\r\n .then(function (data) {\r\n $timeout(function () {\r\n vm.editedReportId = results[0]['resultReportTeam.Id'];\r\n paramHelper.removeParam('resultReportTeam.Id');\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.SzakosztalyId = data.item.SzakosztalyId;\r\n vm.editedReportResult.KorcsoportId = data.item.KorcsoportId;\r\n vm.editedReportResult.CsapatId = data.item.CsapatId;\r\n if (!vm.editedReportResult.Foto || vm.editedReportResult.Foto == 'noImage.png' || vm.editedReportResult.Foto == 'noImg.jpg') {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.noImage;\r\n } else {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.resultReportTeamImgBaseUrl + vm.editedReportResult.Foto;\r\n }\r\n gridAthletes.dataSource = data.item.Sportolok;\r\n }, 0);\r\n getSections();\r\n getFiles(results[0]['resultReportTeam.Id']);\r\n });\r\n } else {\r\n createResultReport();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function generateUploadbox() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n enabled: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls, .mp4, .avi',\r\n complete: function (args) {\r\n if (args.responseText === 'true') {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles(vm.editedReportResult.Id);\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf,.xls,.mp4,.avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'JelentokCsapat', tablaId: vm.editedReportResult.Id};\r\n }\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.editedReportResult.SzakosztalyId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.editedReportResult.SzakosztalyId = args.value;\r\n getAgeGroups(args.value);\r\n getAgeGroupsForAtjatszo(args.value);\r\n getCharacterOfACompetitionList(args.value);\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.editedReportResult.KorcsoportId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.editedReportResult.KorcsoportId = args.value;\r\n\r\n // $('#maCsapat').ejDropDownList('clearText');\r\n vm.oldTeamId = -1;\r\n getTeams(args.value);\r\n }\r\n\r\n function getTeams(KorcsoportId) {\r\n var CsapatId = $('#maKorosztaly').ejDropDownList('getSelectedValue');\r\n dataservice.teamDropDownListSelect(vm.editedReportResult.SzakosztalyId, KorcsoportId, CsapatId).then(function (data) {\r\n vm.teamList = data.itemsList;\r\n });\r\n }\r\n\r\n function teamDataBound() {\r\n if (vm.teamList.length === 1) {\r\n angular.element('#maCsapat').ejDropDownList('selectItemByValue', vm.teamList[0].value);\r\n } else {\r\n angular.element('#maCsapat').ejDropDownList('selectItemByValue', vm.editedReportResult.CsapatId);\r\n }\r\n }\r\n\r\n function teamSelect(args) {\r\n if (!vm.editedReportId || vm.editedReportId === -1 || vm.oldTeamId !== -1) {\r\n if (vm.oldTeamId === args.value) {\r\n return;\r\n }\r\n vm.oldTeamId = args.value;\r\n dataservice.teamAthletesListSelect(args.value).then(function (athletesList) {\r\n gridAthletes.dataSource = athletesList.itemsList;\r\n\r\n swal({\r\n title: gettextCatalog.getString('AtjatszoSportolok'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToAddAtjatszoAthletes'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.EredmenyJelentoAtjatszoSportoloi(args.value).then(function (args) {\r\n for (var i = 0; i < args.itemsList.length; i++) {\r\n gridAthletes.dataSource.push(args.itemsList[i]);\r\n }\r\n gridAthletes.refresh();\r\n });\r\n }\r\n });\r\n });\r\n dataservice.getCoachUsers([vm.editedReportResult.SzakosztalyId]).then(function (args) {\r\n vm.atjatszoEdzoList = args.itemsList;\r\n });\r\n }\r\n getAtjatszoSportolok(vm.editedReportResult.SzakosztalyId, 0, 0, args.value);\r\n }\r\n\r\n function getAgeGroupsForAtjatszo(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.AtjatszoAgeGroupList = data.itemsList;\r\n vm.AtjatszoAgeGroupList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function atjatszoAgeGroupSelect(arg) {\r\n getAtjatszoSportolok(vm.editedReportResult.SzakosztalyId, arg.value, 0, vm.editedReportResult.CsapatId);\r\n }\r\n\r\n function getAtjatszoSportolok(section, agegroup, coach, exceptTeam) {\r\n dataservice.AtjatszoSportoloLista(section, agegroup, coach, exceptTeam).then(function (response) {\r\n gridAtjatszo.dataSource = $filter('dateStringFilter')(response.itemsList, 'Szuletes');\r\n });\r\n }\r\n\r\n function addAtjatszok() {\r\n vm.selectedAtjatszok = $rootScope.getSelectedItems(gridAtjatszo);\r\n if (!vm.selectedAtjatszok || vm.selectedAtjatszok.length == 0) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n vm.selectedAtjatszok.forEach(function (atjatszo) {\r\n addAthletesToResultReport(atjatszo.SportoloID, atjatszo.edzoneve, atjatszo.edzoid);\r\n if (gridAtjatszo.dataSource.includes(atjatszo)) {\r\n vm.splicedAthletes.push(atjatszo);\r\n gridAtjatszo.dataSource.splice(gridAtjatszo.dataSource.indexOf(atjatszo), 1);\r\n }\r\n });\r\n gridAtjatszo.refresh();\r\n }\r\n\r\n function addAthletesToResultReport(atjatszoSportoloID, edzoNeve, edzoId) {\r\n if (!atjatszoSportoloID) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n var id = -1;\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == atjatszoSportoloID) {\r\n log.errorMsg('AthleteExistsInResultReport');\r\n return;\r\n }\r\n if (gridAthletes.dataSource[i].Id < id) {\r\n id = gridAthletes.dataSource[i].Id;\r\n }\r\n }\r\n dataservice.getTeamResultAthleteData(atjatszoSportoloID).then(function (args) {\r\n var rec = {};\r\n rec.SportolokID = args.SportolokID;\r\n rec.Id = id - 1;\r\n rec.Nev = args.Nev;\r\n rec.KorcsoportNeve = args.KorcsoportNeve;\r\n rec.KorcsoportId = args.Korcsoport;\r\n rec.EdzoId = edzoId;\r\n rec.EdzoNeve = edzoNeve;\r\n rec.SzuletesiIdo = args.SzuletesiIdo;\r\n rec.SzakosztalyId = args.IdSzakosztaly;\r\n rec.Atjatszo = true;\r\n rec.atjatszoCsapatId = vm.editedReportResult.CsapatId;\r\n rec.Kiemelt = false;\r\n rec.EredmenySzoveg = '';\r\n rec.EredmenyPont = '';\r\n rec.EredmenyIdo = '';\r\n rec.EredmenyTavolsag = '';\r\n gridAthletes.dataSource.push(rec);\r\n gridAthletes.refresh();\r\n });\r\n }\r\n\r\n function getCharacterOfACompetitionList(szakosztalyId) {\r\n var csapat = true;\r\n return dataservice.getCharacterOfACompetitionList(csapat, szakosztalyId)\r\n .then(function (data) {\r\n vm.competitionList = data.itemsList;\r\n });\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n if (!vm.editedReportResult.SzakosztalyId || vm.editedReportResult.SzakosztalyId < 1) {\r\n log.errorMsg(gettextCatalog.getString('LetHimGrantAtLeastASection'));\r\n return;\r\n } else {\r\n vm.selectedRowIndexPopup = -1;\r\n\r\n angular.element('#searchWindow').data('ejDialog').open();\r\n var KorcsoportId = angular.element('#maKorosztaly').ejDropDownList('getSelectedValue');\r\n dataservice.resultReportAthletesOlderReports(vm.editedReportResult.SzakosztalyId,\r\n KorcsoportId, false).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n }\r\n\r\n function selectEarlierResultReportTeamWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = gridPopup.currentViewData[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.resultReportTeamSelectById(vmi.Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.Id = -1;\r\n for (var i = 0; i < vm.editedReportResult.Sportolok.length; i++) {\r\n vm.editedReportResult.Sportolok[i].Id = -1 * (i + 1);\r\n }\r\n });\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n }\r\n }\r\n\r\n function removeAthletesFromResultReport() {\r\n vm.selectedRowIndex = $rootScope.gridSelectedRowIndex(gridAthletes);\r\n if (vm.selectedRowIndex === undefined || vm.selectedRowIndex == null || vm.selectedRowIndex.length < 0) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DeleteAthlete'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteSelectedAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n grid.endEdit();\r\n vm.selectedRowIndex.forEach(function () {\r\n var ath = gridAthletes.getSelectedRecords();\r\n vm.splicedAthletes.forEach(elem => {\r\n if (elem.SportoloID == ath[0].SportolokID) {\r\n gridAtjatszo.dataSource.push(elem);\r\n vm.splicedAthletes.splice(elem, 1);\r\n }\r\n });\r\n gridAthletes.dataSource.splice(vm.selectedRowIndex, 1);\r\n });\r\n gridAthletes.refresh();\r\n gridAtjatszo.refresh();\r\n }\r\n });\r\n }\r\n\r\n function closeEarlierResultReportTeamWindow() {\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n\r\n function createResultReport() {\r\n vm.editedReportResult = {};\r\n vm.editedReportResult.DatumIg = null;\r\n vm.editedReportResult.DatumTol = null;\r\n vm.editedReportResult.EdzoId = null;\r\n vm.editedReportResult.EdzoNeve = null;\r\n vm.editedReportResult.Eredmeny = 3;\r\n vm.editedReportResult.EredmenyIdo = null;\r\n vm.editedReportResult.EredmenySzoveg = null;\r\n vm.editedReportResult.EredmenyTavolsag = null;\r\n vm.editedReportResult.Ertekeles = null;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.Helyezes = null;\r\n vm.editedReportResult.Helyszin = null;\r\n vm.editedReportResult.Hivatalos = false;\r\n vm.editedReportResult.Jellege = null;\r\n vm.editedReportResult.KorcsoportNeve = null;\r\n vm.editedReportResult.SportoloId = null;\r\n vm.editedReportResult.SportoloNev = null;\r\n vm.editedReportResult.SzakosztalyNeve = null;\r\n vm.editedReportResult.SzuletesiIdo = null;\r\n vm.editedReportResult.TarsEredmenySportolo = null;\r\n vm.editedReportResult.VersenyLeiras = null;\r\n vm.editedReportResult.fileData = null;\r\n vm.editedReportResult.fileName = null;\r\n vm.editedReportResult.Id = -1;\r\n gridAthletes.dataSource = [];\r\n grid.dataSource = [];\r\n grid.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowEditing = true;\r\n //vm.editable = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n // angular.element('#maSzakosztaly').ejDropDownList('clearText');\r\n // angular.element('#maKorosztaly').ejDropDownList('clearText');\r\n // angular.element('#maSportolo').ejDropDownList('clearText');\r\n // angular.element('#maTarsSportolo').ejDropDownList('clearText');\r\n\r\n vm.editedReportResult.SzakosztalyId = 0;\r\n vm.editedReportResult.KorcsoportId = 0;\r\n\r\n vm.editedReportId = -1;\r\n $timeout(function () {\r\n vm.editable = true;\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function modifyResultReport() {\r\n dataservice.getCoachUsers(vm.editedReportResult.SzakosztalyId).then(function (args) {\r\n vm.atjatszoEdzoList = args.itemsList;\r\n grid.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowEditing = true;\r\n vm.editable = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n });\r\n }\r\n\r\n function saveResultReport() {\r\n $scope.$broadcast('submitted');\r\n grid.endEdit();\r\n //grid.editModule.batchSave();\r\n\r\n gridAthletes.endEdit();\r\n //gridAthletes.editModule.batchSave();\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n vm.editedReportResult.Sportolok = gridAthletes.dataSource;\r\n // kép küldése, ha választott\r\n\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.editedReportResult.fileData = vm.cropper.croppedImage;\r\n vm.editedReportResult.fileName = angular.element('#fileName').val();\r\n }\r\n dataservice.saveResultReportTeams(vm.editedReportResult)\r\n .then(function (args) {\r\n if (args.res > 0) {\r\n vm.editedReportId = args.res;\r\n log.successMsg('ResultReportSaved');\r\n vm.editedReportResult.Id = args.res;\r\n angular.element('#UploadDefault').ejUploadbox('disable');\r\n vm.CanCreateNew = vm.UJCSERJEL;\r\n vm.CanModify = vm.MODCSERJEL;\r\n vm.editable = false;\r\n // $timeout(function () {\r\n // $scope.$apply();\r\n // }, 100);\r\n }\r\n });\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheImage'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.fileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getFiles(args) {\r\n dataservice.getFilesList('JelentokCsapat', args).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openImgDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.editedReportResult.Foto = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.resultReportTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.resultReportTeam',\r\n config: {\r\n url: '/resultReportTeam',\r\n templateUrl: 'app/administration/resultReportTeam/resultReportTeam.html',\r\n controller: 'ResultReportTeamController',\r\n controllerAs: 'vm',\r\n title: 'ResultReportTeam',\r\n settings: {\r\n navId: 292,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Eredményjelentő (csapat)',\r\n orderTitle_en: 'Result Report (team)',\r\n parentId: 2,\r\n content: 'ResultReportTeam',\r\n activatorPermission: ['\"MEGTCSERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function() {\r\n 'use strict';\r\n\n NewSportSpecificTestController.$inject = [\"log\", \"authenticationService\", \"dataservice\", \"$q\", \"$state\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"$compile\", \"$timeout\"];\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTest')\r\n .controller('NewSportSpecificTestController', NewSportSpecificTestController);\r\n\r\n function NewSportSpecificTestController(log, authenticationService, dataservice, $q, $state, $rootScope, gettextCatalog, paramHelper, $scope, $compile, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('NewSportSpecificTest');\r\n\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 200, allowEditing: false}\r\n ];\r\n vm.testdata = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = -1;\r\n vm.felmeroElemFejId = -1;\r\n vm.felmeroElemFejIdValue = undefined;\r\n vm.newTest = true;\r\n vm.createButtonEnabled = true;\r\n vm.editTestTypeButtonEnabled = true;\r\n vm.edzoertekeles = '';\r\n vm.querycellinfo = querycellinfo;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.felmeroDataBound = felmeroDataBound;\r\n vm.DeleteTest = DeleteTest;\r\n vm.SaveTest = SaveTest;\r\n vm.CreateTest = CreateTest;\r\n vm.CreateTestType = CreateTestType;\r\n vm.EditTestType = EditTestType;\r\n vm.params = [];\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n vm.dateValue = new Date();\r\n vm.hints = [];\r\n vm.cellHint = '';\r\n vm.openAthlete = openAthlete;\r\n vm.colorCheckBoxChange = colorCheckBoxChange;\r\n vm.UJSPFELM = false;\r\n vm.Highlight = -1;\r\n vm.colors = true;\r\n vm.showColors = false;\r\n var Grid2 = null;\r\n\r\n CreateGrid2();\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n paramHelper.getParams(['sportSpecificTest.sectionId', 'sportSpecificTest.ageGroupId', 'sportSpecificTest.coachId', 'sportSpecificTest.felmeroFejId', 'sportSpecificTest.felmeroElemFejId', 'sportSpecificTest.highlight']),\r\n authenticationService.getRight('UJSPFELM')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.params = results[0];\r\n vm.UJSPFELM = results[1];\r\n vm.sectionId = vm.params['sportSpecificTest.sectionId'];\r\n vm.ageGroupId = vm.params['sportSpecificTest.ageGroupId'];\r\n vm.coachId = vm.params['sportSpecificTest.coachId'];\r\n vm.felmeroFejId = vm.params['sportSpecificTest.felmeroFejId'];\r\n if (vm.params['sportSpecificTest.felmeroElemFejId']) {\r\n vm.felmeroElemFejId = vm.params['sportSpecificTest.felmeroElemFejId'];\r\n vm.felmeroElemFejIdValue = vm.params['sportSpecificTest.felmeroElemFejId'];\r\n }\r\n if (vm.params['sportSpecificTest.highlight']) {\r\n vm.Highlight = vm.params['sportSpecificTest.highlight'];\r\n }\r\n vm.sectionIdValue = vm.sectionId;\r\n vm.ageGroupIdValue = vm.ageGroupId;\r\n vm.coachIdValue = vm.coachId;\r\n getSections();\r\n getAgeGroups(vm.sectionId);\r\n getCoaches();\r\n getFelmeroTipusok(vm.sectionId);\r\n if (vm.felmeroFejId > 0) {\r\n vm.newTest = false;\r\n vm.showColors = true;\r\n vm.createButtonEnabled = false;\r\n LoadTest(vm.felmeroFejId);\r\n } else {\r\n vm.createButtonEnabled = true;\r\n vm.newTest = true;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n vm.MMSS_EditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>00:00',\r\n value: args.rowData[args.column.field],\r\n readOnly: false,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.HHMMSS_EditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>00:00:00',\r\n value: args.rowData[args.column.field],\r\n readOnly: false,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n function CreateGrid2() {\r\n Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.test,\r\n columns: vm.columns,\r\n allowPaging: false,\r\n allowSorting: true,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n mode: 'Batch', showConfirmDialog: false, allowEditing: true, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n if (vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2]) {\r\n vm.cellHint = gettextCatalog.getString('TheSelectedCellIs') + ' ' + vm.hints[arg.cellIndex.cellIndex - 2];\r\n if (vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2].ElvartEredmeny) {\r\n vm.cellHint += '. ' + gettextCatalog.getString('ExpectedResult') + ': ' + vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2].ElvartEredmeny;\r\n }\r\n } else {\r\n vm.cellHint = '';\r\n }\r\n $scope.$apply();\r\n },\r\n queryCellInfo: function (arg) {\r\n var cellIndex = -1;\r\n if (arg.column.field) {\r\n cellIndex = parseInt(arg.column.field.replace('c', ''));\r\n }\r\n var cell = angular.element(arg.cell);\r\n if (vm.Highlight && arg.data.SportoloID == vm.Highlight && arg.column.field == 'SportoloNeve') {\r\n cell.css('background-color', '#cdeecd');\r\n } else if (vm.colors && vm.testdata && vm.testdata.length > 0 && cellIndex >= 0) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID);\r\n if (vm.testdata[rowIndex].Colors[cellIndex] && vm.testdata[rowIndex].Colors[cellIndex].length > 0) {\r\n cell.css('background-color', vm.testdata[rowIndex].Colors[cellIndex]);\r\n }\r\n }\r\n }\r\n });\r\n Grid2.appendTo('#Grid2');\r\n }\r\n\r\n function get1DArrayBelongsToUserInRow(row) {\r\n var retArray1D = [];\r\n var SportoloNeve = vm.test[row].SportoloNeve;\r\n var SportoloID = vm.test[row].SportoloID.toString();\r\n retArray1D.push(SportoloID);\r\n retArray1D.push(SportoloNeve);\r\n var strArr = [];\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n retArray1D.push(vm.test[row][strArr[i]]);\r\n if (vm.test[row][strArr[i]] && vm.test[row][strArr[i]].length > 200) {\r\n log.errorMsg(gettextCatalog.getString('Max200CharactersInFields'));\r\n return false;\r\n }\r\n }\r\n return retArray1D;\r\n }\r\n\r\n function resetColumns() {\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 200, allowEditing: false}\r\n ];\r\n }\r\n\r\n function setColumns(FEF_ID, newTest, itemsList) {\r\n if (!FEF_ID) {\r\n return;\r\n }\r\n dataservice.getFelmeroElemList(FEF_ID).then(function (arg) {\r\n vm.dataFelmeroElem = arg.itemsList;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n switch (vm.dataFelmeroElem[i].Tipus){\r\n case 1: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberInteger'); break;\r\n case 2: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberFraction'); break;\r\n case 3: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('Text'); break;\r\n case 4: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'); break;\r\n case 5: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeMinuteSecHundredthOfASec'); break;\r\n case 6: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeSecHundredthOfASec'); break;\r\n default: vm.dataFelmeroElem[i].TipusStr = 'x';\r\n }\r\n vm.hints.push(vm.dataFelmeroElem[i].TipusStr);\r\n }\r\n if (newTest) {\r\n dataservice.FelmeroLetrehozasa(vm.coachId, vm.ageGroupId, parseInt(vm.felmeroElemFejIdValue), vm.dateValue).then(function(data) {\r\n vm.test = data.itemsList;\r\n Grid2.dataSource = vm.test;\r\n }); // dataservice.FelmeroLetrehozasa\r\n } else {\r\n for (var i = 0; i < itemsList.length; i++) {\r\n var line = {};\r\n line.SportoloID = itemsList[i].SportoloID;\r\n line.SportoloNeve = itemsList[i].SportoloNeve;\r\n for (var c = 0; c < vm.dataFelmeroElem.length; c++) {\r\n var fieldName = 'c' + c;\r\n line[fieldName] = '';\r\n }\r\n vm.test.push(line);\r\n }\r\n }\r\n var strArr = [];\r\n resetColumns();\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].ElvartEredmeny) {\r\n vm.dataFelmeroElem[i].Nev += '
' + gettextCatalog.getString('ExpectedResult') + ': ' + vm.dataFelmeroElem[i].ElvartEredmeny;\r\n }\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n switch (vm.dataFelmeroElem[i].Tipus){\r\n case 1:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n case 2:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n case 4:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true, edit: vm.HHMMSS_EditorTemplate});\r\n break;\r\n case 5:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true, edit: vm.MMSS_EditorTemplate});\r\n break;\r\n case 6:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n default: // 3: text\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 400, isEnabled: true, allowEditing: true});\r\n }\r\n for (var j = 0; !newTest && j < vm.test.length; j++) {\r\n vm.test[j][strArr[i]] = itemsList[j].Adatok1D[i];\r\n }\r\n }\r\n Grid2.dataSource = vm.test;\r\n Grid2.columns = vm.columns;\r\n console.log('Grid2.columns', Grid2.columns);\r\n console.log('Grid2.dataSource', Grid2.dataSource);\r\n Grid2.refreshColumns();\r\n Grid2.refresh();\r\n }); // dataservice.getFelmeroElemList\r\n }\r\n\r\n function EditTestType() {\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n if (felmeroTipusIdx == -1) {\r\n swal({title: gettextCatalog.getString('ChooseTestTypeFirst'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n var felmeroTipus = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n paramHelper.setParams([\r\n {'sectionId': vm.sectionIdValue},\r\n {'FelmeroElemFej': felmeroTipus}\r\n ]);\r\n $state.go('settings.createSportSpecificTest');\r\n }\r\n\r\n function CreateTest() {\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n if (felmeroTipusIdx == -1) {\r\n swal({title: gettextCatalog.getString('ChooseTestTypeFirst'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n var felmeroTipus = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n setColumns(felmeroTipus, true, null);\r\n }\r\n\r\n function LoadTest(ffid) {\r\n vm.felmeroFejId = ffid;\r\n resetColumns();\r\n return dataservice.getFelmeroById(ffid).then(function(data) {\r\n vm.dateValue = data.date;\r\n vm.testdata = data.itemsList;\r\n //console.log('LoadTest'+ ffid + ' vm.testdata', vm.testdata);\r\n vm.felmeroElemFejIdValue = data.FEFID;\r\n vm.felmeroElemFejId = data.FEFID;\r\n setColumns(vm.felmeroElemFejIdValue, false, vm.testdata);\r\n vm.edzoertekeles = data.EdzoErtekeles;\r\n });\r\n }\r\n\r\n function SaveTest() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n Grid2.endEdit();\r\n Grid2.editModule.endEdit();\r\n Grid2.editModule.batchSave();\r\n\r\n $timeout(function () {\r\n vm.createButtonEnabled = false;\r\n vm.testSaveTest = {};\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n vm.felmeroElemFejIdValue = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n vm.testSaveTest.FEF_ID = vm.felmeroElemFejIdValue;\r\n vm.testSaveTest.data = vm.test;\r\n\r\n var arr2D = [];\r\n for (var i = 0; i < vm.test.length; i++) {\r\n var arr1D = get1DArrayBelongsToUserInRow(i);\r\n if (arr1D === false) {\r\n return false;\r\n }\r\n arr2D.push(arr1D);\r\n }\r\n return dataservice.FelmeroMentes(arr2D, vm.felmeroFejId, vm.felmeroElemFejIdValue, vm.sectionId, vm.ageGroupId, vm.coachId, vm.edzoertekeles, vm.dateValue).then(function(data) {\r\n log.successMsg(gettextCatalog.getString('SaveCompleted'));\r\n var lastSaveTestdFFID = data.data;\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n LoadTest(lastSaveTestdFFID);\r\n });\r\n }, 10);\r\n }\r\n\r\n function DeleteTest() {\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected test?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this test'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteFelmero(vm.felmeroFejId).\r\n then(function () {\r\n $state.go('administration.sportSpecificTest.newSportSpecificTestList');\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getFelmeroTipusok(sectionId) {\r\n return dataservice.felmeroElemFejDropDownList(sectionId).then(function(data) {\r\n vm.newTest = false;\r\n vm.felmeroElemFejList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function(data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function(data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId, vm.dateValue).then(function(data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function felmeroDataBound() {\r\n if (vm.felmeroElemFejList.length === 1) {\r\n angular.element('#felmeroTipusDropDown').ejDropDownList('selectItemByValue', vm.felmeroElemFejList[0].value);\r\n } else {\r\n angular.element('#felmeroTipusDropDown').ejDropDownList('selectItemByValue', vm.felmeroElemFejId);\r\n }\r\n }\r\n\r\n function CreateTestType() {\r\n paramHelper.setParams([\r\n {'sectionId': vm.sectionIdValue},\r\n {'FelmeroElemFej': 0}\r\n ]);\r\n $state.go('settings.createSportSpecificTest');\r\n }\r\n\r\n function openAthlete(Id) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var $element = angular.element(arg.cell);\r\n if (vm.Highlight && arg.data.SportoloID == vm.Highlight && arg.column.field == 'SportoloNeve') {\r\n $element.css('background-color', '#cdeecd');\r\n } else if (vm.colors && vm.testdata && vm.testdata.length > 0 && arg.cell.cellIndex >= 2) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID);\r\n if (vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2] && vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2].length > 0) {\r\n $element.css('background-color', vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2]);\r\n }\r\n }\r\n }\r\n\r\n function getRowIndex(SportoloID) {\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n if (vm.testdata[i].SportoloID == SportoloID) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function colorCheckBoxChange(arg) {\r\n vm.colors = arg.value;\r\n vm.test = [];\r\n vm.testdata = [];\r\n LoadTest(vm.felmeroFejId);\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest.newSportSpecificTest',\r\n config: {\r\n url: '/newSportSpecificTest',\r\n templateUrl: 'app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.html',\r\n controller: 'NewSportSpecificTestController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n NewSportSpecificTestListController.$inject = [\"log\", \"dataservice\", \"authenticationService\", \"$q\", \"$state\", \"$scope\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTestList')\r\n .controller('NewSportSpecificTestListController', NewSportSpecificTestListController);\r\n\r\n function NewSportSpecificTestListController(log, dataservice, authenticationService, $q, $state, $scope, $rootScope, gettextCatalog, paramHelper, $filter, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('NewSportSpecificTestList');\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = 0;\r\n vm.Highlight = -1;\r\n vm.dateTo = new Date();\r\n vm.dateFrom = new Date(vm.dateTo.getFullYear() - 1, vm.dateTo.getMonth(), 1);\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n headerText: 'Id',\r\n textAlign: 'center',\r\n isPrimaryKey: true,\r\n visible: false\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#sstlOpen',\r\n width: 60\r\n },\r\n {\r\n field: 'FelmeroNeve',\r\n headerText: gettextCatalog.getString('TestName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'SzakosztalyNev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'EdzoNev',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150,\r\n template: '#sstlCoach'\r\n }, {\r\n field: 'KorcsoportNev',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n }, {\r\n field: 'Edzoertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 200\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Datum'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#sstlTest'\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n // Publikus funkciók\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.newTest = newTest;\r\n vm.goToTest = goToTest;\r\n vm.goToUser = goToUser;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getSections(),\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MODFELH'),\r\n paramHelper.getParams([], [\r\n 'newSportSpecificTest.sectionId',\r\n 'newSportSpecificTest.ageGroupId',\r\n 'newSportSpecificTest.yearId',\r\n 'newSportSpecificTest.coachId',\r\n 'newSportSpecificTest.selectedSection'\r\n ])\r\n ]).then(function (results) {\r\n vm.UJSPFELM = results[1];\r\n vm.MODFELH = results[2];\r\n vm.sectionId = results[3]['newSportSpecificTest.sectionId'];\r\n vm.ageGroupId = results[3]['newSportSpecificTest.ageGroupId'];\r\n vm.coachId = results[3]['newSportSpecificTest.coachId'];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function felmeroFejLista() {\r\n if (vm.ageGroupId === undefined || vm.ageGroupId === null) {\r\n vm.ageGroupId = 0;\r\n }\r\n if (vm.coachId === undefined || vm.coachId === null) {\r\n vm.coachId = 0;\r\n }\r\n if (vm.testId === undefined || vm.testId === null) {\r\n vm.testId = 0;\r\n }\r\n if (vm.sectionId == 0) {\r\n vm.Highlight = -1;\r\n }\r\n return dataservice.felmeroFejLista(vm.sectionId, vm.ageGroupId, vm.coachId, vm.testId, vm.Highlight, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function dateFromChange(arg) {\r\n vm.dateFrom = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function dateToChange(arg) {\r\n vm.dateTo = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n $timeout(function () {\r\n felmeroFejLista();\r\n }, 100);\r\n getAgeGroups();\r\n getActualCoachesList();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n vm.coachList = [];\r\n getActualCoachesList();\r\n felmeroFejLista();\r\n }\r\n\r\n // Section dropDownList function Get coach' list\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function newTest() {\r\n if (vm.sectionId == 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectedSectionCannotBeAll'));\r\n return;\r\n }\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.UJSPFELM !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': vm.sectionId},\r\n {'newSportSpecificTest.sectionId': vm.sectionId},\r\n {'sportSpecificTest.ageGroupId': vm.ageGroupId},\r\n {'sportSpecificTest.coachId': vm.coachId},\r\n {'sportSpecificTest.felmeroElemFejId': -1},\r\n {'sportSpecificTest.felmeroFejId': -1},\r\n {'sportSpecificTest.highlight': -1}\r\n ]);\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n }\r\n\r\n function goToTest(SzakosztalyId, KorcsoportId, EdzoId, FelmeroElemFejId, FelmeroFejId) {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': SzakosztalyId},\r\n {'newSportSpecificTest.sectionId': SzakosztalyId},\r\n {'sportSpecificTest.ageGroupId': KorcsoportId},\r\n {'sportSpecificTest.coachId': EdzoId},\r\n {'sportSpecificTest.felmeroElemFejId': FelmeroElemFejId},\r\n {'sportSpecificTest.felmeroFejId': FelmeroFejId},\r\n {'sportSpecificTest.highlight': vm.Highlight}\r\n ]);\r\n\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n\r\n function goToUser(EdzoId) {\r\n if (!vm.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTestList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest.newSportSpecificTestList',\r\n config: {\r\n url: '/newSportSpecificTestList',\r\n templateUrl: 'app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.html',\r\n controller: 'NewSportSpecificTestListController',\r\n controllerAs: 'vm',\r\n title: 'SportSpecificTestList2',\r\n settings: {\r\n navId: 242,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Sportágspecifikus felmérők',\r\n orderTitle_en: 'Sport Specific Tests',\r\n parentId: 2,\r\n content: 'NewSportSpecificTestList',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.sportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest',\r\n config: {\r\n url: '/sportSpecificTest',\r\n templateUrl: 'app/administration/sportSpecificTest/sportSpecificTest.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingDiaryController.$inject = [\"log\", \"logger\", \"DOMAIN\", \"paramHelper\", \"$state\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$filter\", \"$scope\", \"$timeout\"];\r\n angular\r\n .module('app.administration.trainingDiary')\r\n .controller('TrainingDiaryController', TrainingDiaryController);\r\n\r\n function TrainingDiaryController(log, logger, DOMAIN, paramHelper, $state, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('trainingDiary');\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.years = [];\r\n vm.month = [];\r\n vm.selectedCoach = undefined;\r\n vm.selectedSection = undefined;\r\n vm.selectedAgeGroup = undefined;\r\n vm.yearValue = undefined;\r\n vm.monthValue = undefined;\r\n vm.Save = Save;\r\n vm.addRow = addRow;\r\n vm.removeRow = removeRow;\r\n vm.data = [];\r\n vm.HaviJelenletiFejId = undefined;\r\n vm.lezart = false;\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n vm.selectedRow = selectedRow;\r\n vm.selectedId = undefined;\r\n vm.newId = -1;\r\n vm.querycellinfo = querycellinfo;\r\n vm.beginEdit = beginEdit;\r\n vm.print = print;\r\n vm.keszult = new Date();\r\n var printOpened = false;\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'AktivNap', visible: false, headerText: 'AktivNap', textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'Nap', headerText: gettextCatalog.getString('Day'), textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'EdzesIdopontja', headerText: gettextCatalog.getString('TrainingTime'), textAlign: 'center', width: 120, allowEditing: true},\r\n {field: 'TevekenysegHelye', headerText: gettextCatalog.getString('TrainingLocation'), textAlign: 'center', width: 120, allowEditing: true},\r\n {field: 'EdzesmunkaLeirasa', headerText: gettextCatalog.getString('TrainingDescription'), textAlign: 'center', width: 120, allowEditing: true}\r\n ];\r\n\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: true, editMode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: vm.selectedRow,\r\n columns: vm.columns,\r\n querycellinfo: vm.querycellinfo,\r\n cellEdit: vm.beginEdit,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('HJFELVIHET'), paramHelper.getParams([], ['HaviJelenletiFejId'])];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else if (results[1].HaviJelenletiFejId) {\r\n vm.HaviJelenletiFejId = results[1].HaviJelenletiFejId;\r\n loadTrainingDiary(results[1].HaviJelenletiFejId);\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n FejId: vm.HaviJelenletiFejId,\r\n 'EdzoNeve': angular.element('#edzo').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n 'keszult': vm.keszult\r\n };\r\n // Name : 'name',\r\n // TajSzam : 'TajSzam',\r\n // SzuletesiIdo : '2012-01-01',\r\n // SportoloId : 3422,\r\n // Type : 'Type',\r\n // Fenykeput : 'Fenykeput'\r\n // };\r\n\r\n $scope.$apply();\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '0', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n\r\n function querycellinfo(args) {\r\n var $element = angular.element(args.cell);\r\n if (!args.data.AktivNap) {\r\n $element.css('background-color', '#efdcdc');\r\n }\r\n }\r\n\r\n function beginEdit(arg) {\r\n if (!arg.rowData.AktivNap) {\r\n arg.cancel = true;\r\n }\r\n }\r\n\r\n function loadTrainingDiary(HaviJelenletiFejId) {\r\n dataservice.loadTrainingDiaryByMonthlyAttendanceId(HaviJelenletiFejId).then(function (data) {\r\n vm.sectionList.push({text: data.szakosztaly, value: data.szakosztalyid});\r\n vm.ageGroupList.push({text: data.korcsoport, value: data.korcsoportid});\r\n vm.coachList.push({text: data.edzo, value: data.edzoid});\r\n vm.selectedCoach = data.edzoid;\r\n vm.selectedSection = data.szakosztalyid;\r\n if (data.keszult) {\r\n vm.keszult = data.keszult;\r\n }\r\n var datum = new Date(data.datum);\r\n var year = (datum).getFullYear();\r\n var month = (datum).getMonth();\r\n vm.yearValue = year;\r\n vm.monthValue = month;\r\n vm.years.push({text: year, value: year});\r\n if (data.lezartJelenleti) {\r\n vm.lezart = true;\r\n grid.editSettings.allowEditing = false;\r\n grid.allowSelection = false;\r\n }\r\n vm.data = data.edzesmunka;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'Nap');\r\n grid.dataSource = vm.data;\r\n $timeout(function () {\r\n vm.selectedAgeGroup = data.korcsoportid;\r\n angular.element('#ev').ejDropDownList('selectItemByValue', vm.years[0].value);\r\n angular.element('#edzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n angular.element('#szakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n if (data.korcsoportid > 0) {\r\n angular.element('#korosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n }\r\n $scope.$apply();\r\n }, 10);\r\n });\r\n }\r\n\r\n function getIndex(id) {\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Id == id) {\r\n return i;\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n function addRow() {\r\n grid.endEdit();\r\n var idx = getIndex(vm.selectedId);\r\n var newLine = {};\r\n newLine.Id = vm.newId--;\r\n newLine.AktivNap = vm.data[idx].AktivNap;\r\n newLine.Nap = vm.data[idx].Nap;\r\n newLine.EdzesIdopontja = '';\r\n newLine.TevekenysegHelye = '';\r\n newLine.EdzesmunkaLeirasa = '';\r\n vm.data.splice(idx + 1, 0, newLine);\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n grid.refresh();\r\n }\r\n\r\n function removeRow() {\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n var idx = getIndex(vm.selectedId);\r\n var entries = entriesForThisDay(idx);\r\n if (entries > 1) {\r\n vm.data.splice(idx, 1);\r\n $scope.$apply();\r\n }\r\n grid.dataSource = vm.data;\r\n grid.refresh();\r\n }\r\n\r\n function entriesForThisDay(index) {\r\n var datum = vm.data[index].Nap;\r\n var counter = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Nap === datum) {\r\n counter++;\r\n }\r\n }\r\n return counter;\r\n }\r\n\r\n function selectedRow(arg) {\r\n vm.addEnabled = true;\r\n vm.selectedId = arg.data.Id;\r\n var idx = getIndex(arg.data.Id);\r\n var entries = entriesForThisDay(idx);\r\n vm.removeEnabled = entries > 1;\r\n $scope.$apply();\r\n }\r\n\r\n function Save() {\r\n grid.endEdit();\r\n dataservice.saveTrainingDiary(vm.data, vm.HaviJelenletiFejId, vm.keszult).then(function (response) {\r\n log.successMsg('SavedSuccessful');\r\n loadTrainingDiary(response.data);\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.trainingDiary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingDiary',\r\n config: {\r\n url: '/trainingDiary',\r\n templateUrl: 'app/administration/trainingDiary/trainingDiary.html',\r\n controller: 'TrainingDiaryController',\r\n controllerAs: 'vm',\r\n title: 'trainingDiary'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.trainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan',\r\n config: {\r\n url: '/trainingPlan',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingPlanCreateController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"DOMAIN\", \"$filter\", \"$scope\", \"$state\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$timeout\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanCreate')\r\n .controller('TrainingPlanCreateController', TrainingPlanCreateController);\r\n\r\n function TrainingPlanCreateController(log, paramHelper, dataservice, DOMAIN, $filter, $scope, $state, $q, $rootScope, gettextCatalog, authenticationService, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanCreate');\r\n\r\n // main datas\r\n vm.sorIndex = 0; // a gyakorlatok torléséhez kell egy elsödlegeskulcs sorIndex)\r\n vm.params = null;\r\n vm.loadPlan = false;\r\n vm.saveParams = null;\r\n vm.trainingSectionId = 0;\r\n vm.trainingSectionList = [];\r\n vm.trainingName = null;\r\n vm.trainingDescription = null;\r\n vm.trainingAgeGroupId = 0;\r\n vm.trainingAgeGroupList = [];\r\n vm.gridDataSourceTraining = [];\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.addNewPermission = false;\r\n vm.timeLength = 0;\r\n\r\n // filter\r\n vm.autoComplete = [];\r\n vm.sectionId = 0;\r\n vm.sectionList = [];\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n\r\n // grid\r\n vm.selectedRow = [];\r\n vm.EDZO = false;\r\n\r\n // autoComplete empty string ''\r\n vm.bodyPartValue = '';\r\n vm.TypeValue = '';\r\n vm.individualTeamValue = '';\r\n vm.AssetValue = '';\r\n vm.difficultyValue = '';\r\n vm.necessaryAreaValue = '';\r\n vm.withVideo = false;\r\n vm.withPattern = false;\r\n vm.withPaint = false;\r\n\r\n // button\r\n vm.addEnabled = false;\r\n vm.modify = false;\r\n vm.allowSave = false;\r\n\r\n function sumIdo(args) {\r\n var res = 0;\r\n args.result.forEach(function (element) {\r\n if (element.Ido) {\r\n res += element.Ido * element.IsmSzam;\r\n }\r\n });\r\n vm.timeLength = res;\r\n return res;\r\n }\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Custom',\r\n customAggregate: sumIdo,\r\n columnName: 'Ido',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n vm.columnsMain = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 55},\r\n {field: 'SorIndex', isPrimaryKey: true, visible: false},\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 200,\r\n textAlign: 'center',\r\n template: '#wtpropentemp'\r\n },\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'Mintakep',\r\n headerText: gettextCatalog.getString('Pattern'),\r\n width: 180,\r\n textAlign: 'center',\r\n template: '#imagetemplateGrid'\r\n },\r\n {\r\n field: 'Video',\r\n headerText: gettextCatalog.getString('Video'),\r\n width: 115,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'GyakorlatKategoria',\r\n headerText: gettextCatalog.getString('GyakorlatKategoria'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'GyakorlatTipus',\r\n headerText: gettextCatalog.getString('GyakorlatTipus'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('individualTeam'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var MainGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearchAndDelete,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMain,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#MainGrid'), $scope);\r\n }\r\n },\r\n actionBegin: function (args) {\r\n if (args.requestType === 'delete') {\r\n MainGrid.dataSource = $rootScope.deleteRows(MainGrid);\r\n args.cancel = true;\r\n }\r\n }\r\n });\r\n MainGrid.appendTo('#MainGrid');\r\n MainGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, MainGrid);\r\n };\r\n\r\n vm.trainingColumns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 60},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#wtpropentemp'\r\n },\r\n {\r\n field: 'Mintakep',\r\n headerText: gettextCatalog.getString('Pattern'),\r\n width: 120,\r\n textAlign: 'center',\r\n template: '#imagetemplateGrid'\r\n },\r\n {\r\n field: 'Video',\r\n headerText: gettextCatalog.getString('Video'),\r\n width: 100,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'SzakosztalyId', visible: false},\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n {field: 'Tipus', headerText: gettextCatalog.getString('Type'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('individualTeam'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Felszerelesek',\r\n headerText: gettextCatalog.getString('Assets'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Publikus',\r\n headerText: gettextCatalog.getString('Public'),\r\n width: 100,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {field: 'Kifesto', headerText: gettextCatalog.getString('Paint'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'JatekosokSzama',\r\n headerText: gettextCatalog.getString('Players'),\r\n width: 100,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Nehezseg',\r\n headerText: gettextCatalog.getString('Difficulty'),\r\n width: 100,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'SzuksegesTerulet',\r\n headerText: gettextCatalog.getString('Space'),\r\n width: 150,\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n var TrainingGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n enableToggle: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.trainingColumns,\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#TrainingGrid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n $timeout(function () {\r\n vm.selectedRow = TrainingGrid.getSelectedRecords();\r\n if (vm.selectedRow && vm.selectedRow.length > 0) {\r\n vm.addEnabled = true && vm.allowSave;\r\n }\r\n }, 100);\r\n },\r\n rowDeselecting: function (args) {\r\n $timeout(function () {\r\n if (TrainingGrid.getSelectedRecords().length === 0) {\r\n vm.addEnabled = false;\r\n vm.selectedRow = [];\r\n $scope.$apply();\r\n } else {\r\n vm.selectedRow.splice((vm.selectedRow.find(row => row.GyakorlatId == args.data[0].GyakorlatId)), 1);\r\n }\r\n }, 100);\r\n },\r\n });\r\n TrainingGrid.appendTo('#TrainingGrid');\r\n TrainingGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, TrainingGrid);\r\n };\r\n\r\n // events\r\n // filter bottom\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n\r\n // filter top\r\n vm.trainingSectionSelect = trainingSectionSelect;\r\n vm.trainingSectionDataBound = trainingSectionDataBound;\r\n vm.trainingAgeGroupSelect = trainingAgeGroupSelect;\r\n vm.trainingAgeGroupDataBound = trainingAgeGroupDataBound;\r\n\r\n // grid\r\n vm.openTemplate = openTemplate;\r\n\r\n // button\r\n vm.showExercises = showExercises;\r\n vm.addRow = addRow;\r\n vm.save = save;\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('UJEDZESSABLON'),\r\n authenticationService.getRight('MODEDZESSABLON'),\r\n authenticationService.getRight('MEGTEDZESSABLON'),\r\n authenticationService.getRight('EDZO'),\r\n paramHelper.getParams([],\r\n ['trainingPlanCreate.trainingId',\r\n 'trainingPlanCreate.sectionId',\r\n 'trainingPlanCreate.ageGroupId'\r\n ]),\r\n authenticationService.getRight('UJGYAKORLAT')\r\n ]).then(function (results) {\r\n $timeout(function () {\r\n vm.UJEDZESSABLON = results[0];\r\n vm.MODEDZESSABLON = results[1];\r\n vm.MEGTEDZESSABLON = results[2];\r\n vm.EDZO = results[3];\r\n vm.params = results[4];\r\n vm.addNewPermission = results[5];\r\n if (!vm.MEGTEDZESSABLON) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] > 0) {\r\n vm.trainingId = vm.params['trainingPlanCreate.trainingId'];\r\n LoadPlan(vm.params['trainingPlanCreate.trainingId']);\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] === 0) {\r\n LoadPlan(0);\r\n } else {\r\n getTrainingSections();\r\n getAutoComplete();\r\n }\r\n\r\n if ((vm.UJEDZESSABLON && (vm.trainingId < 1 || !vm.trainingId)) || (vm.MODEDZESSABLON && vm.trainingId > 0)) {\r\n vm.allowSave = true;\r\n MainGrid.allowSelection = true;\r\n TrainingGrid.allowSelection = true;\r\n MainGrid.editSettings.allowDeleting = true;\r\n MainGrid.refreshHeader();\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }, 0);\r\n }\r\n );\r\n }\r\n\r\n function LoadPlan(trainingId) {\r\n vm.loadPlan = true;\r\n if (trainingId > 0) {\r\n dataservice.GetTrainingPlanById(trainingId).then(function (data) {\r\n if (data) {\r\n vm.trainingSectionId = data.itemsList[0].SzakosztalyId ? data.itemsList[0].SzakosztalyId : vm.trainingSectionId;\r\n vm.trainingAgeGroupId = data.itemsList[0].KorosztalyId ? data.itemsList[0].KorosztalyId : vm.trainingAgeGroupId;\r\n vm.trainingName = data.itemsList[0].Nev;\r\n MainGrid.dataSource = $filter('addImagePathToObject')(data.itemsList[0].Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n vm.trainingDescription = data.itemsList[0].Leiras;\r\n vm.public = data.itemsList[0].Publikus;\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n }\r\n });\r\n } else {\r\n vm.trainingSectionId = vm.params['trainingPlanCreate.sectionId'] ? vm.params['trainingPlanCreate.sectionId'] : vm.trainingSectionId;\r\n vm.trainingAgeGroupId = vm.params['trainingPlanCreate.ageGroupId'] ? vm.params['trainingPlanCreate.ageGroupId'] : vm.trainingAgeGroupId;\r\n }\r\n getTrainingSections();\r\n getAutoComplete();\r\n }\r\n\r\n // function Top\r\n function getTrainingSections() {\r\n dataservice.sectionDropDownList(0, false).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n // egyszerre átadom a két szakosztály dropdown adatait\r\n vm.sectionList = data.itemsList;\r\n vm.trainingSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingSectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n }\r\n }\r\n\r\n function trainingSectionSelect(args) {\r\n vm.trainingSectionId = args.value;\r\n getTrainingAgeGroups(args.value);\r\n }\r\n\r\n function getTrainingAgeGroups(trainingSectionId) {\r\n return dataservice.ageGroupDropDownList(trainingSectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.trainingAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingAgeGroupDataBound() {\r\n if (vm.trainingAgeGroupList.length === 1) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupList[0].value);\r\n } else {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n }\r\n }\r\n\r\n function trainingAgeGroupSelect(args) {\r\n vm.trainingAgeGroupId = args.value;\r\n }\r\n\r\n // function bottom\r\n function getAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete()\r\n .then(function (result) {\r\n vm.autoComplete = result.data;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getCoachesList(args.value);\r\n }\r\n\r\n function getCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect() {\r\n //vm.coachId = args.value;\r\n }\r\n\r\n // grid top events\r\n function openTemplate(exerciseId) {\r\n if (vm.allowSave) {\r\n swal({\r\n title: gettextCatalog.getString('Would you like to save the plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save().then(function (res) {\r\n if (res) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else if (isConfirm.dismiss === 'cancel') {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n\r\n // button events\r\n function showExercises() {\r\n dataservice.getExercises(vm.sectionId, vm.ageGroupId, vm.coachId, vm.bodyPartValue, vm.TypeValue, vm.individualTeamValue, vm.AssetValue, vm.difficultyValue, vm.necessaryAreaValue, vm.withVideo, vm.withPattern, vm.withPaint, vm.timeValue)\r\n .then(function (data) {\r\n TrainingGrid.dataSource = $filter('addImagePathToObject')(data.itemsList, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n function save() {\r\n if ((vm.UJEDZESSABLON && (vm.trainingId < 1 || !vm.trainingId)) || (vm.MODEDZESSABLON && vm.trainingId > 0)) {\r\n return $q(function (resolve) {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n resolve(0);\r\n } else {\r\n vm.saveParam = {\r\n TrainingId: vm.trainingId,\r\n TrainingName: vm.trainingName,\r\n SectionId: vm.trainingSectionId,\r\n AgeGroupId: vm.trainingAgeGroupId,\r\n Description: vm.trainingDescription,\r\n Public: vm.public,\r\n Data: MainGrid.dataSource\r\n };\r\n dataservice.saveTrainingPlan(vm.saveParam).then(function (result) {\r\n if (result.retValue !== 0) {\r\n vm.trainingId = result.retValue;\r\n log.successMsg('SaveCompleted');\r\n // $state.go('administration.trainingPlan.trainingPlanList');\r\n }\r\n resolve(result.retValue);\r\n });\r\n if (vm.MODEDZESSABLON) {\r\n vm.allowSave = true;\r\n } else {\r\n vm.allowSave = false;\r\n TrainingGrid.clearSelection();\r\n MainGrid.editSettings.allowDeleting = false;\r\n }\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function addRow() {\r\n var gyakorlatKategoria = null;\r\n var ismSzam = null;\r\n var HTMLtext = '';\r\n HTMLtext += '
';\r\n HTMLtext += '
';\r\n HTMLtext += '
';\r\n HTMLtext += '
';\r\n HTMLtext += '
';\r\n HTMLtext += '
';\r\n if (vm.selectedRow && vm.selectedRow.length > 0) {\r\n swal({\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonText: gettextCatalog.getString('Add'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n vm.trainingPlanCategory = angular.element('#AutoCompleteSwalType').data('ejAutocomplete').getValue(); // get value\r\n return new Promise(function (resolve) {\r\n if (!vm.trainingPlanCategory) {\r\n swal.showValidationError(gettextCatalog.getString('ExerciseCategoryRequired'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var rows = MainGrid.dataSource;\r\n MainGrid.dataSource = [];\r\n vm.selectedRow.forEach(function (element) {\r\n rows.push(\r\n {\r\n SorIndex: vm.sorIndex,\r\n GyakorlatId: element.GyakorlatId,\r\n GyakorlatKategoria: gyakorlatKategoria,\r\n GyakorlatTipus: element.Tipus,\r\n IsmSzam: ismSzam,\r\n Nev: element.Nev,\r\n Ido: element.Ido,\r\n Video: element.Video,\r\n Mintakep: element.Mintakep,\r\n Jellege: element.Jellege,\r\n Testresz: element.Testresz\r\n }\r\n );\r\n vm.sorIndex++;\r\n });\r\n MainGrid.dataSource = rows;\r\n }\r\n }, function () {\r\n });\r\n\r\n // in swal\r\n angular.element('#AutoCompleteSwalType').ejAutocomplete({\r\n dataSource: vm.autoComplete.Tipus,\r\n allowAddNew: true,\r\n showPopupButton: true,\r\n showEmptyResultText: true,\r\n emptyResultText: gettextCatalog.getString('NoSuggestions'),\r\n change: function (arg) {\r\n gyakorlatKategoria = arg.value;\r\n },\r\n value: gyakorlatKategoria,\r\n width: '100%'\r\n });\r\n angular.element('#SwalIsmetlesSzam').ejNumericTextbox({\r\n change: function changeValue(arg) {\r\n ismSzam = arg.value;\r\n },\r\n width: '100%'\r\n });\r\n }\r\n }\r\n\r\n vm.createNewTrainingPlan = function () {\r\n if (vm.addNewPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (vm.allowSave) {\r\n swal({\r\n title: gettextCatalog.getString('Would you like to save the plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save().then(function (res) {\r\n if (res) {\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': res}]);\r\n paramHelper.setParams([\r\n {'exercisesList.SzakosztalyId': vm.trainingSectionId},\r\n {'exercisesList.KorosztalyId': vm.trainingAgeGroupId},\r\n {'exercisesList.EdzoId': 0}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else if (isConfirm.dismiss === 'cancel') {\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else {\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n };\r\n }\r\n }\r\n)\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanCreate',\r\n config: {\r\n url: '/trainingPlanCreate',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.html',\r\n controller: 'TrainingPlanCreateController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanCreate'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingPlanListController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$timeout\", \"$q\", \"$rootScope\", \"$filter\", \"DOMAIN\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanList')\r\n .controller('TrainingPlanListController', TrainingPlanListController);\r\n\r\n function TrainingPlanListController(log, paramHelper, dataservice, $timeout, $q, $rootScope, $filter, DOMAIN, gettextCatalog, authenticationService, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanList');\r\n\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.gridDataSource = [];\r\n vm.sectionId = 0;\r\n vm.sectionList = [];\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n vm.openPermission = false;\r\n vm.addNewPermission = false;\r\n vm.deletePermission = false;\r\n\r\n //events\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.createNewTrainingPlan = createNewTrainingPlan;\r\n vm.openTrainingPlan = openTrainingPlan;\r\n vm.deleteTrainingPlan = deleteTrainingPlan;\r\n vm.search = search;\r\n\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 55},\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#wtro'},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 120},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TrainingTimeLength'), textAlign: 'center', width: 120},\r\n {field: 'SzakosztalyId', visible: false},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 120},\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 120},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 120},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Description'), textAlign: 'center', width: 120},\r\n {field: 'Publikus', headerText: gettextCatalog.getString('Public'), type: 'boolean', displayAsCheckBox: true, textAlign: 'center', width: 100}\r\n ];\r\n\r\n //gyakorlatok\r\n vm.childGridColums = [\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {field: 'GyakorlatKategoria', headerText: gettextCatalog.getString('GyakorlatKategoria'), textAlign: 'center', width: 120},\r\n {field: 'Nehezseg', headerText: gettextCatalog.getString('Nehezseg'), textAlign: 'center', width: 100},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), textAlign: 'center', width: 100},\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), textAlign: 'center', width: 100},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', template: '#wtpropentemp', width: 180},\r\n {field: 'GyakorlatTipus', headerText: gettextCatalog.getString('GyakorlatTipus'), textAlign: 'center', width: 120},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 120, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('YouTube'), textAlign: 'center', width: 100, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), textAlign: 'center', width: 100},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), textAlign: 'center', width: 120},\r\n ];\r\n\r\n var Grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n //allowPaging: true,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n columns: vm.columns,\r\n childGrid: {\r\n dataSource: [],\r\n queryString: 'EdzesFejId',\r\n columns: vm.childGridColums,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n Grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, Grid);\r\n }\r\n });\r\n\r\n Grid.appendTo('#Grid');\r\n\r\n activate();\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTEDZESSABLON'), authenticationService.getRight('MODEDZESSABLON'), authenticationService.getRight('UJEDZESSABLON'), authenticationService.getRight('TOROLEDZESSABLON'), paramHelper.getParams([], ['trainPlanList.SzakosztalyId', 'trainPlanList.KorosztalyId', 'trainPlanList.EdzoId'])]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.openPermission = results[0];\r\n vm.modifyPermission = results[1];\r\n vm.addNewPermission = results[2];\r\n vm.deletePermission = results[3];\r\n $scope.$apply();\r\n }, 1);\r\n getSections();\r\n getAgeGroups();\r\n vm.sectionId = results[4]['trainPlanList.SzakosztalyId'];\r\n vm.ageGroupId = results[4]['trainPlanList.KorosztalyId'];\r\n vm.coachId = results[4]['trainPlanList.EdzoId'];\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, false)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.sectionId, 0).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function openTrainingPlan(Id) {\r\n if (vm.openPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n paramHelper.removeParam('trainingPlanCreate.sectionId');\r\n paramHelper.removeParam('trainingPlanCreate.ageGroupId');\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': Id}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }\r\n\r\n function createNewTrainingPlan() {\r\n if (vm.addNewPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n paramHelper.setParams([{'trainPlanList.SzakosztalyId': vm.sectionId}]);\r\n paramHelper.setParams([{'trainPlanList.KorosztalyId': vm.ageGroupId}]);\r\n paramHelper.setParams([{'trainPlanList.EdzoId': vm.coachId}]);\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': 0}, {'trainingPlanCreate.sectionId': vm.sectionId}, {'trainingPlanCreate.ageGroupId': vm.ageGroupId}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }\r\n\r\n function deleteTrainingPlan() {\r\n var selectedRow = Grid.getSelectedRecords();\r\n if (!selectedRow || selectedRow.length == 0) {\r\n log.errorMsg('CantDeleted');\r\n return;\r\n }\r\n if (vm.deletePermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected training plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteTrainingPlan(selectedRow[0].EdzesFejId)\r\n .then(function (response) {\r\n if (response.retValue == true) {\r\n log.successMsg('trainingPlanDeleted');\r\n search();\r\n }\r\n }, function () {\r\n });\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n paramHelper.setParams([{'trainPlanList.SzakosztalyId': vm.sectionId}]);\r\n paramHelper.setParams([{'trainPlanList.KorosztalyId': vm.ageGroupId}]);\r\n paramHelper.setParams([{'trainPlanList.EdzoId': vm.coachId}]);\r\n dataservice.getTrainingPlanList(vm.sectionId, vm.ageGroupId, vm.coachId)\r\n .then(function (response) {\r\n Grid.dataSource = response.itemsList;\r\n Grid.childGrid.dataSource = $filter('addImagePathToObject')(response.Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 300);\r\n });\r\n }\r\n\r\n vm.openTemplate = openTemplate;\r\n function openTemplate(exerciseId) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanList',\r\n config: {\r\n url: '/trainingPlanList',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanList/trainingPlanList.html',\r\n controller: 'TrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanList',\r\n settings: {\r\n navId: 2142,\r\n level: 2,\r\n order: 14,\r\n orderTitle_hu: 'Edzéssablon lista',\r\n orderTitle_en: 'Training Plan List',\r\n parentId: 2,\r\n content: 'TrainingPlanList',\r\n activatorPermission: ['\"MEGTEDZESSABLON\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingPlanTemplateController.$inject = [\"log\", \"paramHelper\", \"dataservice\", \"$timeout\", \"$q\", \"$rootScope\", \"$filter\", \"DOMAIN\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanTemplate')\r\n .controller('TrainingPlanTemplateController', TrainingPlanTemplateController);\r\n\r\n function TrainingPlanTemplateController(log, paramHelper, dataservice, $timeout, $q, $rootScope, $filter, DOMAIN, gettextCatalog, authenticationService, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanTemplate');\r\n vm.youtubeIcon = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'youtube.png';\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n // main datas\r\n vm.sorIndex = 0; // a gyakorlatok torléséhez kell egy elsödlegeskulcs sorIndex)\r\n vm.params = null;\r\n vm.loadPlan = false;\r\n vm.saveParams = null;\r\n vm.trainingSectionId = 0;\r\n vm.trainingSectionList = [];\r\n vm.trainingName = null;\r\n vm.trainingDescription = null;\r\n vm.trainingAgeGroupId = 0;\r\n vm.trainingAgeGroupList = [];\r\n function sumIdo(args) {\r\n var res = 0;\r\n args.result.forEach(function (element) {\r\n if (element.Ido) {\r\n res += element.Ido * element.IsmSzam;\r\n }\r\n });\r\n vm.timeLength = res;\r\n return res;\r\n }\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Custom',\r\n customAggregate: sumIdo,\r\n columnName: 'Ido',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n vm.columnsMain = [\r\n {field: 'SorIndex', isPrimaryKey: true, visible: false},\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), width: 200, textAlign: 'center', template: '#wtpropentemp'},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 120, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('Video'), width: 100, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'GyakorlatKategoria', headerText: gettextCatalog.getString('GyakorlatKategoria'), width: 150, textAlign: 'center'},\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), width: 125, textAlign: 'center'},\r\n {field: 'GyakorlatTipus', headerText: gettextCatalog.getString('GyakorlatTipus'), width: 150, textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), width: 125, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var MainGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMain,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridTraining'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n MainGrid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, MainGrid);\r\n }\r\n });\r\n MainGrid.appendTo('#GridTraining');\r\n\r\n // filter top\r\n vm.trainingSectionSelect = trainingSectionSelect;\r\n vm.trainingSectionDataBound = trainingSectionDataBound;\r\n vm.trainingAgeGroupSelect = trainingAgeGroupSelect;\r\n vm.trainingAgeGroupDataBound = trainingAgeGroupDataBound;\r\n\r\n // grid\r\n vm.openTemplate = openTemplate;\r\n\r\n activate();\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJEDZESSABLON'), authenticationService.getRight('MODEDZESSABLON'), authenticationService.getRight('MEGTEDZESSABLON'), paramHelper.getParams([], ['trainingPlanCreate.trainingId', 'trainingPlanCreate.sectionId', 'trainingPlanCreate.ageGroupId'])])\r\n .then(function (results) {\r\n var UJEDZESSABLON = results[0];\r\n var MODEDZESSABLON = results[1];\r\n var MEGTEDZESSABLON = results[2];\r\n vm.params = results[3];\r\n if (MEGTEDZESSABLON) {\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] > 0) {\r\n LoadPlan(results[3]['trainingPlanCreate.trainingId']);\r\n $timeout(function () {\r\n vm.modify = MODEDZESSABLON;\r\n $scope.$apply();\r\n });\r\n } else if (vm.params && vm.params['trainingPlanCreate.trainingId'] === 0) {\r\n $timeout(function () {\r\n vm.modify = UJEDZESSABLON;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n $timeout(function () {\r\n getTrainingSections();\r\n }, 0);\r\n } else {\r\n log.permissionError(true);\r\n }\r\n }\r\n );\r\n }\r\n\r\n function LoadPlan(trainingId) {\r\n vm.loadPlan = true;\r\n dataservice.GetTrainingPlanById(trainingId).then(function (data) {\r\n if (data.itemsList[0].SzakosztalyId) {\r\n vm.trainingSectionId = data.itemsList[0].SzakosztalyId;\r\n }\r\n if (data.itemsList[0].KorosztalyId) {\r\n vm.trainingAgeGroupId = data.itemsList[0].KorosztalyId;\r\n }\r\n vm.trainingName = data.itemsList[0].Nev;\r\n MainGrid.dataSource = $filter('addImagePathToObject')(data.itemsList[0].Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n vm.trainingDescription = data.itemsList[0].Leiras;\r\n vm.public = data.itemsList[0].Publikus;\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n // function Top\r\n function getTrainingSections() {\r\n dataservice.sectionDropDownList(0, false).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n vm.trainingSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingSectionDataBound() {\r\n if (!vm.trainingSectionList) {\r\n return;\r\n }\r\n if (vm.params != null && vm.params['trainingPlanCreate.sectionId'] != null) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.params['trainingPlanCreate.sectionId']);\r\n vm.params['trainingPlanCreate.sectionId'] = null;\r\n } else if (vm.loadPlan === true) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n } else {\r\n vm.trainingSectionId = vm.trainingSectionList[0].value;\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n }\r\n }\r\n\r\n function trainingSectionSelect(args) {\r\n vm.trainingSectionId = args.value;\r\n getTrainingAgeGroups(args.value);\r\n }\r\n\r\n function getTrainingAgeGroups(trainingSectionId) {\r\n return dataservice.ageGroupDropDownList(trainingSectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.trainingAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingAgeGroupDataBound() {\r\n if (!vm.trainingAgeGroupList) {\r\n return;\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.ageGroupId'] != null) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.params['trainingPlanCreate.ageGroupId']);\r\n vm.params['trainingPlanCreate.ageGroupId'] = null;\r\n } else if (vm.loadPlan === true) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n vm.loadPlan = false;\r\n } else {\r\n vm.trainingAgeGroupId = vm.trainingAgeGroupList[0].value;\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n }\r\n }\r\n\r\n function trainingAgeGroupSelect(args) {\r\n vm.trainingAgeGroupId = args.value;\r\n }\r\n\r\n function openTemplate(exerciseId) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanTemplate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanTemplate',\r\n config: {\r\n url: '/trainingPlanTemplate',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.html',\r\n controller: 'TrainingPlanTemplateController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanTemplate'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.weeklyTrainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan',\r\n config: {\r\n url: '/weeklyTrainingPlan',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n WeeklyTrainingPlanListController.$inject = [\"dataservice\", \"log\", \"$q\", \"$state\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList')\r\n .controller('WeeklyTrainingPlanListController', WeeklyTrainingPlanListController);\r\n\r\n function WeeklyTrainingPlanListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n function setInitVals() {\r\n $rootScope.title = gettextCatalog.getString('WeeklyTrainingPlan');\r\n //grid adatai\r\n vm.columns = [];\r\n\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n\r\n vm.years = [];\r\n var evIg = new Date().getFullYear();\r\n var december = (new Date().getMonth() === 11);\r\n if (december) {\r\n evIg++;\r\n }\r\n for (var ev = 2010; ev <= evIg; ev++) {\r\n vm.years.push(ev);\r\n }\r\n\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedRowId = -1;\r\n\r\n vm.textSearch = '';\r\n\r\n vm.delEnabled = false;\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.ageGroupChanged = ageGroupChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.createNewWeeklyTrainingPlan = goToNewWeeklyTrainingPlan;\r\n vm.deleteWeeklyTrainingPlan = deleteWeeklyTrainingPlan;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.szoveg']),\r\n authenticationService.getRight('UJHETIEDZTERV'),\r\n authenticationService.getRight('MODHETIEDZTERV'),\r\n authenticationService.getRight('MEGTHETIEDZTERV'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('TORLHETIEDZTERV')];\r\n\r\n return $q.all(promises).then(function (results) {\r\n vm.UJHETIEDZTERV = results[1];\r\n vm.MODHETIEDZTERV = results[2];\r\n vm.MEGTHETIEDZTERV = results[3];\r\n vm.MEGTFELH = results[4];\r\n vm.MEGTKOROKEZ = results[5];\r\n vm.TORLHETIEDZTERV = results[6];\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getCoaches();\r\n\r\n if (results[0]['weeklyTrainingPlan.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szoveg'] !== undefined) {\r\n vm.textSearch = results[0]['weeklyTrainingPlan.szoveg'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.ev']) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n } else {\r\n vm.selectedYear = new Date().getFullYear();\r\n }\r\n $timeout(function () {\r\n if (vm.selectedCoach > 0 && vm.selectedSection > 0 && vm.selectedAgeGroup > 0 && vm.selectedYear > 0) {\r\n refreshData();\r\n }\r\n angular.element('#maEv').ejDropDownList({value: vm.selectedYear});\r\n $scope.$apply();\r\n }, 500);\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n }\r\n );\r\n }\r\n\r\n //Grid oszlopainak definíciója\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn3',\r\n width: 70\r\n },\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn2',\r\n width: 150\r\n },\r\n {\r\n field: 'FelkHetSzama',\r\n headerText: gettextCatalog.getString('FelkHetSzam'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'MakrociklusSzama',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'Hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n },\r\n {\r\n field: 'Vasarnap',\r\n headerText: gettextCatalog.getString('Sunday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n },\r\n {\r\n field: 'Sportolok',\r\n headerText: gettextCatalog.getString('Athletes'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120,\r\n clipMode: 'EllipsisWithTooltip'\r\n },\r\n {\r\n field: 'Jovahagyott',\r\n headerText: gettextCatalog.getString('Approved'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn4',\r\n width: 125\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: false,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n getSectionList(args.value);\r\n }\r\n\r\n function getSectionList(coachId) {\r\n return dataservice.sectionDropDownList(coachId).then(\r\n function (data) {\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(arg) {\r\n dataservice.ageGroupSelectYear(vm.selectedCoach, arg.value, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n /*\r\n $timeout(function() {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', -1);\r\n $scope.$apply();\r\n }, 0);\r\n */\r\n }\r\n }\r\n );\r\n }\r\n\r\n function ageGroupChanged(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n }\r\n );\r\n }\r\n\r\n function refreshData() {\r\n dataservice.getWeeklyTrainingPlanList(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.selectedYear, vm.textSearch).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.delEnabled = false;\r\n }\r\n );\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach}, {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection}, {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'weeklyTrainingPlan.ev': vm.selectedYear}, {'newUser.userId': edzoId}, {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach}, {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection}, {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'weeklyTrainingPlan.ev': vm.selectedYear}, {'ageGroups.ageGroup': ageGroupId}, {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'weeklyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'weeklyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'weeklyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function goToNewWeeklyTrainingPlan() {\r\n if (!vm.UJHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.selectedCoach == undefined || vm.selectedCoach == null || vm.selectedCoach <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedSection === undefined || vm.selectedSection == null || vm.selectedSection <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectSection'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedAgeGroup === undefined || vm.selectedAgeGroup == null || vm.selectedAgeGroup <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectAgeGroup'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedYear == undefined || vm.selectedYear == null || vm.selectedYear <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectYear'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': -1},\r\n {'weeklyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'weeklyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'weeklyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function getNameByID(arr, id) {\r\n for (var i = 0; i < arr.length; i++) {\r\n if (arr[i].value == id) {\r\n return arr[i].text;\r\n }\r\n }\r\n }\r\n\r\n function deleteWeeklyTrainingPlan() {\r\n if (vm.selectedRowId === undefined || vm.selectedRowId <= 0 && vm.delEnabled) {\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected weekly Training Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteWeeklyTrainingPlan(vm.selectedRowId).then(\r\n function (result) {\r\n if (result.retValue) {\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n refreshData();\r\n $timeout(function () {\r\n vm.delEnabled = false;\r\n $scope.$apply();\r\n }, 10);\r\n } else {\r\n log.errorMsg('CantDeleted');\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan.weeklyTrainingPlanList',\r\n config: {\r\n url: '/weeklyTrainingPlanList',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.html',\r\n controller: 'WeeklyTrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTrainingPlan',\r\n settings: {\r\n navId: 272,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Heti edzésterv',\r\n orderTitle_en: 'Weekly Training Plan',\r\n parentId: 2,\r\n content: 'WeeklyTrainingPlan',\r\n activatorPermission: ['\"MEGTHETIEDZTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n WeeklyTrainingPlanReportController.$inject = [\"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"log\", \"$scope\", \"authenticationService\", \"$state\", \"$compile\", \"$timeout\", \"$filter\", \"$sce\"];\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport')\r\n .controller('WeeklyTrainingPlanReportController', WeeklyTrainingPlanReportController);\r\n\r\n function WeeklyTrainingPlanReportController(dataservice, $q, $rootScope, gettextCatalog, paramHelper, log, $scope, authenticationService, $state, $compile, $timeout, $filter, $sce) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('Weekly Training Plan');\r\n vm.EditText = gettextCatalog.getString('Edit');\r\n var printOpened = false;\r\n var printOpened2 = false;\r\n vm.trainingPlanId = -1;\r\n vm.editedWTP = {};\r\n vm.editedWTP.Hetfo = undefined;\r\n vm.hetfodatum = undefined;\r\n vm.copyEnabled = false;\r\n vm.save = save;\r\n vm.files = openFiles;\r\n vm.print = showPrint;\r\n vm.print2 = showPrint2;\r\n vm.MondayChange = MondayChange;\r\n vm.copyFromOldPlan = copyFromOldPlan;\r\n vm.editTraining = editTraining;\r\n vm.columnsPopup = [];\r\n vm.selectedRowIndexPopup = -1;\r\n vm.athleteListHeight = 0;\r\n vm.selectedRowIndex = -1;\r\n vm.selectedRow = -1;\r\n vm.closeEarlierWeeklyPlanWindow = closeEarlierWeeklyPlanWindow;\r\n vm.selectEarlierWeeklyPlanWindow = selectEarlierWeeklyPlanWindow;\r\n vm.editDateTemplate = editDateTemplate;\r\n vm.loadEvents = loadEvents;\r\n vm.SectionLeaderApprove = SectionLeaderApprove;\r\n vm.daySelect = daySelect;\r\n vm.editDay = editDay;\r\n vm.del = del;\r\n vm.ok = ok;\r\n vm.back = back;\r\n vm.cancel = cancel;\r\n vm.addNew = addNew;\r\n vm.addBtnEnabled = true;\r\n vm.editBtnEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n vm.editEnabled = false;\r\n vm.checkedItems = [];\r\n vm.checkedIndices = [];\r\n vm.athletesChange = athletesChange;\r\n vm.selectAll = selectAll;\r\n vm.deleteSelection = deleteSelection;\r\n vm.chooseTraining = chooseTraining;\r\n vm.chooseTrainingCancel = chooseTrainingCancel;\r\n vm.chooseTrainingAccept = chooseTrainingAccept;\r\n vm.createTrainingTemplate = createTrainingTemplate;\r\n vm.claimAsset = claimAsset;\r\n vm.openTemplate = openTemplate;\r\n vm.reportParametersEszkozIgenyek = [];\r\n\r\n vm.loadEventsEnabled = false;\r\n vm.caBtnEnabled = false;\r\n vm.days = [\r\n {value: 1, text: gettextCatalog.getString('Monday')},\r\n {value: 2, text: gettextCatalog.getString('Tuesday')},\r\n {value: 3, text: gettextCatalog.getString('Wednesday')},\r\n {value: 4, text: gettextCatalog.getString('Thursday')},\r\n {value: 5, text: gettextCatalog.getString('Friday')},\r\n {value: 6, text: gettextCatalog.getString('Saturday')},\r\n {value: 7, text: gettextCatalog.getString('Sunday')},\r\n ];\r\n vm.tetelColumns = [\r\n {field: 'id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Nap',\r\n headerText: gettextCatalog.getString('Day'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Tol',\r\n headerText: gettextCatalog.getString('From'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Ig',\r\n headerText: gettextCatalog.getString('To'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Hely',\r\n headerText: gettextCatalog.getString('Place'),\r\n textAlign: 'center',\r\n width: 200\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: false,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.tetelColumns,\r\n //rowSelected: vm.daySelect,\r\n rowSelected: function (args) {\r\n vm.selectedRowIndex = args.rowIndex;\r\n daySelect();\r\n },\r\n selectedRowIndex: vm.selectedRowIndex,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FelkHetSzama',\r\n headerText: gettextCatalog.getString('FelkHetSzam'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MakrociklusSzama',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Vasarnap',\r\n headerText: gettextCatalog.getString('Saturday'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false, allowDeleting: false, allowAdding: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n vm.columnsEdzesTetelek = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Tipus'),\r\n textAlign: 'center',\r\n width: 75\r\n },\r\n {\r\n field: 'GyakorlatNev',\r\n headerText: gettextCatalog.getString('GyakorlatNev'),\r\n textAlign: 'center',\r\n width: 75\r\n },\r\n {\r\n field: 'Mennyiseg',\r\n headerText: gettextCatalog.getString('Mennyiseg'),\r\n textAlign: 'center',\r\n width: 40\r\n }\r\n ];\r\n\r\n var gridEdzesTetelek = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false, allowDeleting: false, allowAdding: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsEdzesTetelek,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridEdzesTetelek'), $scope);\r\n }\r\n }\r\n });\r\n gridEdzesTetelek.appendTo('#GridEdzesTetelek');\r\n gridEdzesTetelek.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridEdzesTetelek);\r\n };\r\n\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n vm.TrainingTemplates = [];\r\n vm.trainingTemplate = undefined;\r\n vm.TrainingTemplateSelected = TrainingTemplateSelected;\r\n\r\n vm.edit = {};\r\n vm.edit.idx = -1;\r\n vm.edit.ac = '';\r\n vm.edit.Nap = '';\r\n vm.edit.Datum = '';\r\n vm.edit.Hely = '';\r\n vm.edit.Tol = '08:00';\r\n vm.edit.Ig = '17:00';\r\n vm.edit.Leiras = '';\r\n vm.edit.NapSzam = 1;\r\n vm.edit.Sablon = '';\r\n vm.edit.EdzesFejId = null;\r\n\r\n vm.dataEdzesTetelek = [];\r\n\r\n vm.tetelek = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], [\r\n 'weeklyTrainingPlan.edzoId',\r\n 'weeklyTrainingPlan.szakosztalyId',\r\n 'weeklyTrainingPlan.korosztalyId',\r\n 'weeklyTrainingPlan.ev',\r\n 'weeklyTrainingPlan.trainingPlanId',\r\n 'weeklyTrainingPlan.edzoNev',\r\n 'weeklyTrainingPlan.szakosztalyNev',\r\n 'weeklyTrainingPlan.korosztalyNev'\r\n ]),\r\n authenticationService.getRight('UJHETIEDZTERV'),\r\n authenticationService.getRight('MODHETIEDZTERV'),\r\n authenticationService.getRight('MEGTHETIEDZTERV'),\r\n getSystemSettings('HETIEDZTERVJOVAHAGYKOT'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('HETIEDZESTERVJOVAHAGY'),\r\n HetiEdzestervLegregebbiHet(),\r\n authenticationService.getRight('UJEDZESSABLON')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJHETIEDZTERV = results[1];\r\n vm.MODHETIEDZTERV = results[2];\r\n vm.MEGTHETIEDZTERV = results[3];\r\n vm.HETIEDZTERVJOVAHAGYKOT = results[4];\r\n vm.SZAKOSZTVEZ = results[5];\r\n vm.ADMIN = results[6];\r\n vm.HETIEDZESTERVJOVAHAGY = results[7];\r\n vm.HETIEDZTERVJOVAHAGY = vm.HETIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HETIEDZESTERVJOVAHAGY;\r\n vm.JOVAHAGYOTT = false;\r\n vm.UJEDZESSABLON = results[9];\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.trainingPlanId = results[0]['weeklyTrainingPlan.trainingPlanId'];\r\n if (angular.isDefined(vm.trainingPlanId) && vm.trainingPlanId !== -1) { // VAN EDZÉS TERV\r\n dataservice.weeklyTrainingPlanSelectByIdNew(vm.trainingPlanId).then(function (data) {\r\n vm.editedWTP = data.retValue;\r\n vm.JOVAHAGYOTT = vm.editedWTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HETIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedWTP.Keszult = $filter('dateStringFilter')(vm.editedWTP.Keszult);\r\n vm.tetelek = data.retValue.gridData;\r\n vm.tetelek = $filter('dateStringFilter')(vm.tetelek, 'Datum');\r\n grid.dataSource = vm.tetelek;\r\n vm.copyEnabled = false;\r\n vm.loadEventsEnabled = true;\r\n vm.athletes = data.retValue.checkedItems;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n vm.edit.Hely = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n $scope.$apply();\r\n vm.edit.Hely = '';\r\n }, 10);\r\n $timeout(function () {\r\n grid.refresh();\r\n if (data.retValue.mindenki === false) {\r\n data.retValue.checkedIndices.forEach(function (chk) {\r\n var index = $filter('getIndex')(data.retValue.checkedItems, 'value', chk);\r\n $('#athletesList').ejListBox('checkItemByIndex', index);\r\n });\r\n } else {\r\n selectAll();\r\n }\r\n }, 1000);\r\n });\r\n } else { // NINCS EDZÉS TERV\r\n vm.editedWTP.EdzoNev = results[0]['weeklyTrainingPlan.edzoNev'];\r\n vm.editedWTP.SzakosztalyNev = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n vm.editedWTP.KorosztalyNev = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n vm.editedWTP.Keszult = $filter('dateStringFilter')(new Date());\r\n vm.editedWTP.IdEdzo = results[0]['weeklyTrainingPlan.edzoId'];\r\n vm.editedWTP.IdSzakosztaly = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n vm.editedWTP.IdKorosztaly = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n dataservice.getAthletesForWeeklyTrainingPlan(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n angular.element('#deHetfo').ejDatePicker({minDate: results[8].data});\r\n selectAll();\r\n }, 1000);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function daySelect() {\r\n var changed = false;\r\n if (vm.selectedRow >= 0 && vm.edit && vm.tetelek[vm.selectedRow] &&\r\n (\r\n vm.edit.EdzesFejId !== vm.tetelek[vm.selectedRow].EdzesFejId ||\r\n vm.edit.Datum !== vm.tetelek[vm.selectedRow].Datum ||\r\n vm.edit.Hely !== vm.tetelek[vm.selectedRow].Hely ||\r\n vm.edit.Ig !== vm.tetelek[vm.selectedRow].Ig ||\r\n vm.edit.Tol !== vm.tetelek[vm.selectedRow].Tol ||\r\n vm.edit.Leiras !== vm.tetelek[vm.selectedRow].Leiras ||\r\n vm.edit.Nap !== vm.tetelek[vm.selectedRow].Nap ||\r\n vm.edit.NapSzam != vm.tetelek[vm.selectedRow].NapSzam\r\n )\r\n ) {\r\n changed = true;\r\n }\r\n // Éppen szerkesztés közben kattint el\r\n if (vm.editEnabled && changed) {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSaveChanges?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n ok();\r\n vm.selectedRow = vm.selectedRowIndex;\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n editDay();\r\n $scope.$apply();\r\n }, 300);\r\n } else {\r\n cancel();\r\n vm.selectedRow = vm.selectedRowIndex;\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n editDay();\r\n $scope.$apply();\r\n }, 300);\r\n }\r\n });\r\n } else {\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n vm.selectedRow = vm.selectedRowIndex;\r\n editDay();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function addNew() {\r\n if (!vm.editedWTP.Hetfo) {\r\n log.errorMsg(gettextCatalog.getString('ChooseMondayFirst'));\r\n return;\r\n }\r\n vm.edit = {};\r\n vm.edit.idx = -1;\r\n vm.edit.Helyek = [];\r\n vm.edit.Nap = '';\r\n vm.edit.Datum = '';\r\n vm.edit.Hely = '';\r\n vm.edit.Tol = '08:00';\r\n vm.edit.Ig = '17:00';\r\n vm.edit.Leiras = '';\r\n vm.edit.NapSzam = 1;\r\n vm.edit.Sablon = '';\r\n vm.editEnabled = true;\r\n }\r\n\r\n function editTraining(idx) {\r\n vm.editEnabled = true;\r\n vm.edit.idx = idx;\r\n vm.edit.Nap = vm.tetelek[idx].Nap;\r\n vm.edit.Datum = vm.tetelek[idx].Datum;\r\n vm.edit.Hely = vm.tetelek[idx].Hely;\r\n vm.edit.Tol = vm.tetelek[idx].Tol;\r\n vm.edit.Ig = vm.tetelek[idx].Ig;\r\n vm.edit.Leiras = vm.tetelek[idx].Leiras;\r\n vm.edit.NapSzam = vm.tetelek[idx].NapSzam;\r\n vm.edit.EdzesFejId = vm.tetelek[idx].EdzesFejId;\r\n vm.edit.Sablon = vm.tetelek[idx].Sablon;\r\n vm.edit.ac = vm.tetelek[idx].ac;\r\n if (vm.edit.Hely) {\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=' + vm.edit.Hely + '&output=embed');\r\n }\r\n vm.caBtnEnabled = vm.edit.EdzesFejId > 0;\r\n if (vm.edit.EdzesFejId > 0) {\r\n angular.element('#ct').ejButton({text: gettextCatalog.getString('ChangeTemplate')});\r\n } else {\r\n angular.element('#ct').ejButton({text: gettextCatalog.getString('ChooseTemplate')});\r\n }\r\n }\r\n\r\n function editDay() {\r\n $timeout(function () {\r\n vm.editEnabled = false;\r\n editTraining(vm.selectedRow);\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function del() {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteRecord?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.editBtnEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n vm.editEnabled = false;\r\n vm.tetelek.splice(vm.selectedRow, 1);\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n vm.tetelek[i].id = i;\r\n }\r\n grid.dataSource = vm.tetelek;\r\n cancel();\r\n }\r\n }, function () {\r\n });\r\n }\r\n\r\n function cancel() {\r\n $timeout(function () {\r\n vm.editEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n grid.refresh();\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function ok() {\r\n vm.edit.Hely = $('#Hely').val();\r\n var Datum = $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1);\r\n $timeout(function () {\r\n if (vm.edit.idx >= 0) {\r\n vm.tetelek[vm.edit.idx].Sablon = vm.edit.Sablon;\r\n vm.tetelek[vm.edit.idx].EdzesFejId = vm.edit.EdzesFejId;\r\n vm.tetelek[vm.edit.idx].Hely = vm.edit.Hely;\r\n vm.tetelek[vm.edit.idx].Tol = vm.edit.Tol;\r\n vm.tetelek[vm.edit.idx].Ig = vm.edit.Ig;\r\n vm.tetelek[vm.edit.idx].Leiras = vm.edit.Leiras;\r\n vm.tetelek[vm.edit.idx].NapSzam = vm.edit.NapSzam;\r\n vm.tetelek[vm.edit.idx].Nap = NumberOfDayToWeekDay(vm.edit.NapSzam);\r\n vm.tetelek[vm.edit.idx].Datum = $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1);\r\n } else {\r\n var id = -1;\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n if (vm.tetelek[i].id > id) {\r\n id = vm.tetelek[i].id;\r\n }\r\n }\r\n vm.tetelek.push(\r\n {\r\n Nap: NumberOfDayToWeekDay(vm.edit.NapSzam),\r\n Datum: $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1),\r\n Hely: vm.edit.Hely,\r\n Tol: vm.edit.Tol,\r\n Ig: vm.edit.Ig,\r\n Leiras: vm.edit.Leiras,\r\n NapSzam: vm.edit.NapSzam,\r\n EdzesFejId: vm.edit.EdzesFejId,\r\n Sablon: vm.edit.Sablon,\r\n id: ++id\r\n }\r\n );\r\n }\r\n grid.dataSource = vm.tetelek;\r\n vm.editEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n grid.refresh();\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function chooseTrainingCancel() {\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n gridEdzesTetelek.dataSource = [];\r\n }\r\n\r\n function chooseTrainingAccept(arg) {\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n vm.edit.EdzesFejId = vm.SelectedEdzesFejId;\r\n vm.edit.Sablon = vm.EdzesSablonNev;\r\n vm.edit.ac = vm.EdzesSablonHosszuNev;\r\n switch (arg) {\r\n case 'copy':\r\n if (vm.EdzesTetelLeiras) {\r\n if (vm.edit.Leiras && vm.edit.Leiras.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToReplaceTrainingDescription?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n $timeout(function () {\r\n vm.edit.Leiras = vm.EdzesTetelLeiras;\r\n }, 10);\r\n }\r\n }, function () {\r\n });\r\n } else {\r\n vm.edit.Leiras = vm.EdzesTetelLeiras;\r\n }\r\n }\r\n break;\r\n case 'append':\r\n if (vm.EdzesTetelLeiras) {\r\n vm.edit.Leiras = vm.edit.Leiras + ', ' + vm.EdzesTetelLeiras;\r\n }\r\n break;\r\n }\r\n }\r\n\r\n function chooseTraining() {\r\n vm.EdzesTetelLeiras = '';\r\n vm.TrainingTemplates = [];\r\n vm.dataEdzesTetelek = [];\r\n dataservice.EdzesFejLista(vm.editedWTP.IdSzakosztaly, vm.editedWTP.IdKorosztaly).then(function (response) {\r\n vm.TrainingTemplates = response.itemsList;\r\n vm.trainingTemplate = '';\r\n if (vm.edit.ac && vm.edit.ac.length > 0) {\r\n vm.trainingTemplate = vm.edit.ac;\r\n TrainingTemplateSelected(vm.edit.ac, vm.edit.EdzesFejId);\r\n }\r\n angular.element('#TrainingTemplate').ejAutocomplete({\r\n dataSource: vm.TrainingTemplates,\r\n fields: {key: 'value', text: 'text'},\r\n multiSelectMode: 'none',\r\n multiColumnSettings: {\r\n enable: true,\r\n showHeader: true,\r\n columns: [\r\n {field: 'text', headerText: 'EdzesFejNeve', key: 'value'},\r\n {field: 'szakosztaly', headerText: 'Szakosztaly', key: 'value'},\r\n {field: 'korosztaly', headerText: 'Korosztaly', key: 'value'}\r\n ]\r\n },\r\n showPopupButton: true,\r\n showEmptyResultText: true,\r\n select: function (arg) {\r\n vm.dataEdzesTetelek = [];\r\n TrainingTemplateSelected(arg.value, arg.item.value);\r\n arg.cancel = true;\r\n },\r\n value: vm.trainingTemplate,\r\n width: '100%'\r\n });\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').open();\r\n });\r\n gridEdzesTetelek.dataSource = [];\r\n }\r\n\r\n function TrainingTemplateSelected(name, EdzesFejId) {\r\n vm.EdzesTetelLeiras = '';\r\n vm.EdzesSablonNev = '';\r\n vm.EdzesSablonHosszuNev = '';\r\n if (!(EdzesFejId > 0)) {\r\n return;\r\n }\r\n dataservice.EdzesSablon(EdzesFejId).then(function (response) {\r\n if (response.data && response.data.found) {\r\n vm.SelectedEdzesFejId = response.data.EdzesFejId;\r\n vm.EdzesTetelLeiras = response.data.Leiras;\r\n vm.dataEdzesTetelek = response.data.Tetelek;\r\n vm.EdzesSablonNev = response.data.Nev;\r\n vm.EdzesSablonHosszuNev = name;\r\n gridEdzesTetelek.dataSource = vm.dataEdzesTetelek;\r\n }\r\n });\r\n }\r\n\r\n function createTrainingTemplate() {\r\n if (!vm.UJEDZESSABLON) {\r\n log.permissionError();\r\n return;\r\n }\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSaveChanges?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save(true, false);\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': -1}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }, 700);\r\n }, function () { });\r\n }\r\n\r\n function NumberOfDayToWeekDay(napSzam) {\r\n // return vm.days[parseInt(napSzam)];\r\n switch (napSzam) {\r\n case 1:\r\n case '1':\r\n return gettextCatalog.getString('Monday');\r\n break;\r\n case 2:\r\n case '2':\r\n return gettextCatalog.getString('Tuesday');\r\n break;\r\n case 3:\r\n case '3':\r\n return gettextCatalog.getString('Wednesday');\r\n break;\r\n case 4:\r\n case '4':\r\n return gettextCatalog.getString('Thursday');\r\n break;\r\n case 5:\r\n case '5':\r\n return gettextCatalog.getString('Friday');\r\n break;\r\n case 6:\r\n case '6':\r\n return gettextCatalog.getString('Saturday');\r\n break;\r\n case 7:\r\n case '7':\r\n return gettextCatalog.getString('Sunday');\r\n break;\r\n }\r\n }\r\n\r\n function getRowIndexForDate(date) {\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Datum == date) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function loadEvents() {\r\n if (!vm.loadEventsEnabled) {\r\n return;\r\n }\r\n dataservice.EsemenyekAttolteseHetiEdzestervre(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly, vm.editedWTP.Hetfo).then(function () {\r\n grid.refresh();\r\n });\r\n }\r\n\r\n function save(createEvents, navigateBack) {\r\n createEvents = true;\r\n if (vm.editEnabled) {\r\n ok();\r\n }\r\n if (vm.UJHETIEDZTERV || vm.MODHETIEDZTERV) {\r\n $timeout(function () {\r\n $scope.$broadcast('submitted');\r\n grid.refresh();\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n var temp = $('#athletesList').ejListBox('getCheckedItems');\r\n console.log('temp', temp);\r\n vm.checkedItems = [];\r\n temp.forEach(function (t) {\r\n vm.checkedItems.push(t.data);\r\n });\r\n var mindenki = temp.length === vm.athletes.length;\r\n dataservice.saveWeeklyTrainingPlanNew(vm.editedWTP, vm.tetelek, createEvents, mindenki, vm.checkedItems).then(function () {\r\n log.successMsg('SavedSuccessful');\r\n if (navigateBack !== false) {\r\n back();\r\n }\r\n });\r\n }\r\n }, 400);\r\n }\r\n }\r\n\r\n function openFiles() {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.edzoId': vm.editedWTP.IdEdzo},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.editedWTP.IdSzakosztaly},\r\n {'weeklyTrainingPlan.korosztalyId': vm.editedWTP.IdKorosztaly},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': vm.editedWTP.Id},\r\n {'weeklyTrainingPlan.edzoNev': vm.editedWTP.EdzoNev},\r\n {'weeklyTrainingPlan.szakosztalyNev': vm.editedWTP.SzakosztalyNev},\r\n {'weeklyTrainingPlan.korosztalyNev': vm.editedWTP.KorosztalyNev},\r\n {'files.tipus': 'EdzesTervHeti'},\r\n {'files.tablaId': vm.editedWTP.Id}\r\n ]);\r\n $state.go('other.files');\r\n }\r\n\r\n function showPrint() {\r\n var tetelek = $.extend(true, [], vm.tetelek);\r\n vm.reportParameters = {\r\n id: vm.editedWTP.Id,\r\n szakosztaly: vm.editedWTP.SzakosztalyNev,\r\n korosztaly: vm.editedWTP.KorosztalyNev,\r\n edzo: vm.editedWTP.EdzoNev,\r\n keszult: vm.editedWTP.Keszult,\r\n makrociklus: vm.editedWTP.Makrociklus,\r\n hetfo: vm.editedWTP.Hetfo,\r\n vasarnap: vm.editedWTP.Vasarnap,\r\n felkhet: vm.editedWTP.HetSzama,\r\n tetelek: tetelek\r\n };\r\n $timeout(function () {\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }, 500);\r\n }\r\n\r\n function MondayChange() {\r\n var sDate = angular.element('#deHetfo').data('ejDatePicker').getValue();\r\n var sMonday = $filter('startOfWeek')(sDate);\r\n if (vm.editedWTP.Hetfo == sMonday) {\r\n dataservice.getAthletesForWeeklyTrainingPlan(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly, sDate).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n angular.element('#deHetfo').ejDatePicker({minDate: results[8].data});\r\n $scope.$apply();\r\n selectAll();\r\n }, 1000);\r\n });\r\n }\r\n var sSunday = $filter('endOfWeek')(sDate);\r\n var sHetSzama = $filter('stringToMoment')(sDate).week();\r\n vm.editedWTP.Hetfo = sMonday;\r\n vm.editedWTP.Vasarnap = sSunday;\r\n vm.editedWTP.HetSzama = sHetSzama;\r\n vm.loadEventsEnabled = true;\r\n\r\n angular.element('#txHetSzama').val(vm.editedWTP.HetSzama);\r\n $timeout(function () {\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n vm.tetelek[i].Datum = $filter('addDays')(sMonday, vm.tetelek[i].NapSzam - 1);\r\n }\r\n grid.refresh();\r\n $scope.$apply();\r\n grid.dataSource = vm.tetelek;\r\n }, 100);\r\n if (vm.trainingPlanId == -1) {\r\n vm.copyEnabled = true;\r\n }\r\n }\r\n\r\n function copyFromOldPlan() {\r\n if (vm.trainingPlanId > 0) {\r\n log.infoMsg(gettextCatalog.getString('FormerWeeklyTrainingPlanCanOnlyBeCopiedToNewPlans'));\r\n return;\r\n }\r\n if (!vm.copyEnabled) {\r\n log.infoMsg(gettextCatalog.getString('ChooseMondayFirst'));\r\n return;\r\n }\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldWeeklyPlanByUserId(vm.editedWTP.IdEdzo, vm.editedWTP.Id).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeEarlierWeeklyPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierWeeklyPlanWindow() {\r\n var oldPlan = $rootScope.getSelectedItems(gridPopup)[0];\r\n if (oldPlan) {\r\n dataservice.weeklyTrainingPlanSelectByIdNew(oldPlan.Id).then(function (data) {\r\n vm.tetelek = [];\r\n for (var i = 0; i < data.retValue.gridData.length; i++) {\r\n var NapSzam = 1;\r\n switch (data.retValue.gridData[i].Nap) {\r\n case gettextCatalog.getString('Monday'):\r\n NapSzam = 1;\r\n break;\r\n case gettextCatalog.getString('Tuesday'):\r\n NapSzam = 2;\r\n break;\r\n case gettextCatalog.getString('Wednesday'):\r\n NapSzam = 3;\r\n break;\r\n case gettextCatalog.getString('Thursday'):\r\n NapSzam = 4;\r\n break;\r\n case gettextCatalog.getString('Friday'):\r\n NapSzam = 5;\r\n break;\r\n case gettextCatalog.getString('Saturday'):\r\n NapSzam = 6;\r\n break;\r\n case gettextCatalog.getString('Sunday'):\r\n NapSzam = 7;\r\n break;\r\n }\r\n data.retValue.gridData[i].Datum = $filter('addDays')(vm.editedWTP.Hetfo, NapSzam - 1);\r\n vm.tetelek.push(data.retValue.gridData[i]);\r\n }\r\n grid.dataSource = vm.tetelek;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n\r\n function editDateTemplate() {\r\n return {\r\n create: function () {\r\n return '';\r\n },\r\n read: function (args) {\r\n return args[0].value;\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n var q = args.element.ejTimePicker({\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n cssClass: 'gridEditTemplateTextAndButton',\r\n timeFormat: 'HH:mm'\r\n });\r\n vm.editedRowId = args.rowdata['Id'];\r\n $compile(args.element.context[1])($scope);\r\n return q;\r\n }\r\n };\r\n }\r\n\r\n function athletesChange(args) {\r\n if (vm.JOVAHAGYOTT) {\r\n args.cancel = true;\r\n return;\r\n }\r\n if (args.isChecked) {\r\n vm.checkedItems.push({value: args.value, text: args.text});\r\n } else {\r\n vm.checkedItems.splice(vm.checkedItems.indexOf({value: args.value, text: args.text}), 1);\r\n }\r\n }\r\n\r\n function selectAll() {\r\n $('#athletesList').ejListBox('checkAll');\r\n vm.checkedItems = $.extend(true, [], vm.athletes);\r\n }\r\n\r\n function deleteSelection() {\r\n $('#athletesList').ejListBox('uncheckAll');\r\n vm.checkedItems = [];\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function SectionLeaderApprove() {\r\n dataservice.HetiEdzesTervJovahagyas(vm.editedWTP.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('WeeklyTraningPlanApproved'));\r\n vm.HETIEDZTERVJOVAHAGY = false;\r\n vm.JOVAHAGYOTT = true;\r\n $rootScope.back();\r\n });\r\n }\r\n\r\n function claimAsset() {\r\n dataservice.EszkozIgenyLista(vm.edit.EdzesFejId).then(function (response) {\r\n var neededAssets = [];\r\n for (var i = 0; i < response.data.length; i++) {\r\n neededAssets.push({id: 'asset' + i, text: response.data[i], value: 1});\r\n }\r\n var HTMLtext = createHtmlSwalContent(neededAssets);\r\n swal({\r\n title: gettextCatalog.getString('PrintAssetClaim'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var neededAssetParams = [];\r\n for (var i = 0; i < response.data.length; i++) {\r\n var val = document.getElementById('asset' + i).value;\r\n if (val) {\r\n neededAssetParams.push({name: response.data[i], value: val});\r\n }\r\n }\r\n showPrint2(neededAssetParams);\r\n }\r\n }, function () {\r\n });\r\n });\r\n }\r\n\r\n function showPrint2(arg) {\r\n var items = $.extend(true, [], arg);\r\n vm.reportParameters2 = {\r\n edzo: vm.editedWTP.EdzoNev,\r\n szakosztaly: vm.editedWTP.SzakosztalyNev,\r\n korosztaly: vm.editedWTP.KorosztalyNev,\r\n datum: vm.edit.Datum,\r\n elemek: items\r\n };\r\n $timeout(function () {\r\n if (printOpened2) {\r\n angular.element('#printDialog2').ejDialog('open');\r\n } else {\r\n printOpened2 = true;\r\n angular.element('#printDialog2').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }, 500);\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '
';\r\n arr.forEach(function (item) {\r\n HTMLtext += '
';\r\n if (item.hasOwnProperty('cb')) {\r\n HTMLtext += '';\r\n HTMLtext += '
';\r\n HTMLtext += '

';\r\n HTMLtext += '
';\r\n } else if (item.hasOwnProperty('cp')) {\r\n HTMLtext += '';\r\n HTMLtext += '

';\r\n } else if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '';\r\n HTMLtext += '

';\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '
';\r\n HTMLtext += '';\r\n HTMLtext += '

';\r\n } else {\r\n HTMLtext += '';\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '

';\r\n } else {\r\n HTMLtext += '

';\r\n }\r\n }\r\n HTMLtext += '
';\r\n });\r\n HTMLtext += '
';\r\n return HTMLtext;\r\n }\r\n\r\n function openTemplate() {\r\n paramHelper.setParams([\r\n {'trainingPlanCreate.trainingId': vm.edit.EdzesFejId}\r\n ]);\r\n $state.go('administration.trainingPlan.trainingPlanTemplate');\r\n }\r\n\r\n function back() {\r\n $rootScope.back();\r\n }\r\n\r\n function HetiEdzestervLegregebbiHet() {\r\n return dataservice.HetiEdzestervLegregebbiHet().then(function (response) {\r\n return response;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan.weeklyTrainingPlanReport',\r\n config: {\r\n url: '/weeklyTrainingPlanReport',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.html',\r\n controller: 'WeeklyTrainingPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteDashboardController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\"];\r\n angular\r\n .module('app.athleteDashboard')\r\n .controller('AthleteDashboardController', AthleteDashboardController);\r\n\r\n function AthleteDashboardController(log, dataservice, $q, $rootScope, gettextCatalog) {\r\n $rootScope.vm = this;\r\n $rootScope.title = gettextCatalog.getString('AthleteDashboard');\r\n\r\n // Create variables\r\n\r\n // Public functions\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [];\r\n $q.all(promises).then(function () {})\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athleteDashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athleteDashboard',\r\n config: {\r\n url: '/athleteDashboard',\r\n templateUrl: 'app/athleteDashboard/athleteDashboard.html',\r\n controller: 'AthleteDashboardController',\r\n controllerAs: 'vm',\r\n title: 'AthleteDashboard',\r\n settings: {\r\n navId: 13,\r\n level: 1,\r\n order: 9,\r\n parentId: 0,\r\n content: 'AthleteDashboard',\r\n faIcon: 'fa-play',\r\n permission: ['6']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AddAgeGroupController.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"$q\", \"gettextCatalog\", \"$rootScope\", \"paramHelper\", \"$window\", \"$scope\"];\r\n angular\r\n .module('app.athletes.ageGroups.addAgeGroup')\r\n .controller('AddAgeGroupController', AddAgeGroupController);\r\n\r\n function AddAgeGroupController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $window, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddAgeGroup');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n var date = new Date().getFullYear();\r\n vm.yearList = dataservice.range(date + 5, 1900);\r\n vm.yearListTo = dataservice.range(date + 10, 1900);\r\n\r\n vm.formData = {\r\n Color: '#000000',\r\n ActiveAgeGroup: true,\r\n SelectedYearFrom: undefined,\r\n SelectedYearTo: undefined,\r\n Comment: undefined,\r\n AgeGroupName: undefined,\r\n SectionId: undefined\r\n };\r\n\r\n vm.clearDropdown = clearDropdown;\r\n vm.sectionSelect = sectionSelect;\r\n vm.saveAgeGroup = saveAgeGroup;\r\n vm.yearFromDropDownChanged = yearFromDropDownChanged;\r\n vm.yearToDropDownChanged = yearToDropDownChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.colorChanged = colorChanged;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['ageGroups.section'])]).then(function (results) {\r\n vm.UJKOROKEZ = true;\r\n vm.formData.SectionId = results[0]['ageGroups.section'];\r\n angular.element('#activeCheckBox').ejCheckBox({checked: vm.formData.ActiveAgeGroup});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function clearDropdown() {\r\n vm.formData.SelectedYearTo = null;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n }\r\n\r\n function yearFromDropDownChanged(args) {\r\n vm.formData.SelectedYearFrom = args.value;\r\n }\r\n\r\n function yearToDropDownChanged(args) {\r\n vm.formData.SelectedYearTo = args.value;\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.Color = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.formData.ActiveAgeGroup = args.value;\r\n }\r\n\r\n function saveAgeGroup() {\r\n if (vm.UJKOROKEZ) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n dataservice.saveAgeGroup(vm.formData)\r\n .then(function () {\r\n log.successMsg('AgeGroupAdded');\r\n paramHelper.setParams([{'ageGroups.section': vm.formData.SectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupsList');\r\n }, function () {\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.ageGroups.addAgeGroup')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.addAgeGroup',\r\n config: {\r\n url: '/addAgeGroup',\r\n templateUrl: 'app/athletes/ageGroups/addAgeGroup/addAgeGroup.html',\r\n controller: 'AddAgeGroupController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AgeGroupMembersList.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"$q\", \"$window\", \"$filter\", \"$scope\", \"gettextCatalog\", \"paramHelper\", \"$rootScope\"];\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupMembersList')\r\n .controller('AgeGroupMembersListController', AgeGroupMembersList);\r\n\r\n function AgeGroupMembersList(log, $state, dataservice, authenticationService, $q, $window, $filter, $scope, gettextCatalog, paramHelper, $rootScope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AgeGroupMembersList');\r\n\r\n // Dropdownlist's sources\r\n vm.ageGroupList = [];\r\n vm.ageGroupMembersList = [];\r\n\r\n vm.columns = [\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', template: '#aggrmelitemplateDataColumn1', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 100},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachsName'), textAlign: 'center', template: '#aggrmelitemplateDataColumn2', width: 150},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 100},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('PayedSportServiceFee'), textAlign: 'center', width: 125},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('PayedEducationalFee'), textAlign: 'center', width: 100},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowSelection: false,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Publikus funkciók\r\n vm.goToAgeGroupChange = goToAgeGroupChange;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.goToNewUser = goToNewUser;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTKOROKEZ'), authenticationService.getRight('MODKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODKOROKEZ = results[1];\r\n $q.all([paramHelper.getParams(['ageGroups.section', 'ageGroups.ageGroup']), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n vm.korosztaly = results[0]['ageGroups.ageGroup'];\r\n vm.szakosztaly = results[0]['ageGroups.section'];\r\n vm.MEGTSPORTLIST = results[1];\r\n getAgeGroupMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroupMembersList() {\r\n return dataservice.getAgeGroupMembersList(vm.szakosztaly, vm.korosztaly)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function goToAgeGroupChange() {\r\n authenticationService.getRight('MEGTKORVALT').then(function (results) {\r\n if (results) {\r\n $state.go('settings.ageGroupChange');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteNew.selectedSectionId': vm.szakosztaly}, {'athleteNew.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupMembersList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.ageGroupMembersList',\r\n config: {\r\n url: '/ageGroupMembersList',\r\n templateUrl: 'app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.html',\r\n controller: 'AgeGroupMembersListController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.ageGroups')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups',\r\n config: {\r\n url: '/ageGroups',\r\n templateUrl: 'app/athletes/ageGroups/ageGroups.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TeamsCtrl.$inject = [\"log\", \"dataservice\", \"authenticationService\", \"$q\", \"$state\", \"$scope\", \"gettextCatalog\", \"paramHelper\", \"$rootScope\"];\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupsList')\r\n .controller('AgeGroupsListController', TeamsCtrl);\r\n\r\n function TeamsCtrl(log, dataservice, authenticationService, $q, $state, $scope, gettextCatalog, paramHelper, $rootScope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AgeGroups');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.sectionListCopyTo = [];\r\n vm.ageGroupList = [];\r\n // checkbox\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#templateData'\r\n },\r\n {\r\n field: 'megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 50,\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Publikus funkciók\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDestinationDropDownChanged = sectionDestinationDropDownChanged;\r\n vm.copyAllAgeGroup = copyAllAgeGroup;\r\n vm.goToAddAgeGroup = goToAddAgeGroup;\r\n vm.goToModifyAgeGroup = goToModifyAgeGroup;\r\n vm.goToModifyAgeGroupButton = goToModifyAgeGroupButton;\r\n vm.goToAgeGroupMembersList = goToAgeGroupMembersList;\r\n vm.sectionDataBound = sectionDataBound;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTKOROKEZ')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTKOROKEZ = result[0];\r\n $q.all([authenticationService.getRight('UJKOROKEZ'), authenticationService.getRight('MODKOROKEZ'), paramHelper.getParams([], ['ageGroups.section'])]).then(function (results) {\r\n vm.UJKOROKEZ = results[0];\r\n vm.MODKOROKEZ = results[1];\r\n vm.sectionId = results[2]['ageGroups.section'];\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n paramHelper.setParams([{'ageGroups.section': vm.sectionId}]);\r\n vm.sectionListCopyTo = [];\r\n vm.sectionList.forEach(s => {\r\n if (s.value != vm.sectionId) {\r\n vm.sectionListCopyTo.push(s);\r\n }\r\n });\r\n }\r\n\r\n // in modal window\r\n function sectionDestinationDropDownChanged(args) {\r\n vm.selectedDestinationSection = args.value;\r\n angular.element('.sa-error-container').removeClass('show');\r\n angular.element('.sa-input-error').removeClass('show');\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n if (!sectionId) {\r\n sectionId = vm.sectionId;\r\n }\r\n return dataservice.ageGroupList(sectionId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function copyAllAgeGroup() {\r\n if (vm.UJKOROKEZ && vm.MODKOROKEZ) {\r\n if (angular.isDefined(vm.sectionId)) {\r\n swal({\r\n title: gettextCatalog.getString('CopyAllAgeGroup'),\r\n html: '',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n return new Promise(function (resolve, reject) {\r\n if (!vm.selectedDestinationSection) {\r\n swal.showValidationError(gettextCatalog.getString('PleaseChooseSection'));\r\n reject(gettextCatalog.getString('PleaseChooseSection'));\r\n } else {\r\n resolve();\r\n }\r\n });\r\n }\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n dataservice.copyAllAgeGroup(vm.sectionId, vm.selectedDestinationSection).then(function () {\r\n getAgeGroups();\r\n log.successMsg('AllAgeGroupCopied');\r\n swal.close();\r\n }, function () {\r\n });\r\n }\r\n });\r\n angular.element('#sectionDropDown3').ejDropDownList({\r\n dataSource: vm.sectionListCopyTo,\r\n change: sectionDestinationDropDownChanged,\r\n value: vm.selectedDestinationSection,\r\n width: '100%'\r\n });\r\n getAgeGroups();\r\n } else {\r\n log.errorMsg('YouHaveToSelectTeam');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToAddAgeGroup() {\r\n if (vm.UJKOROKEZ) {\r\n paramHelper.setParams([{'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.addAgeGroup');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyAgeGroupButton() {\r\n if (vm.MODKOROKEZ || vm.MEGTKOROKEZ) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'ageGroups.ageGroup': selectedRecords[0].id}, {'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyAgeGroup(id) {\r\n if (vm.MODKOROKEZ || vm.MEGTKOROKEZ) {\r\n if (id) {\r\n console.log(id);\r\n paramHelper.setParams([{'ageGroups.ageGroup': id}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToAgeGroupMembersList() {\r\n if (vm.MEGTKOROKEZ) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'ageGroups.ageGroup': selectedRecords[0].id}, {'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupMembersList');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupsList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.ageGroupsList',\r\n config: {\r\n url: '/ageGroupsList',\r\n templateUrl: 'app/athletes/ageGroups/ageGroupsList/ageGroupsList.html',\r\n controller: 'AgeGroupsListController',\r\n controllerAs: 'vm',\r\n title: 'AgeGroups',\r\n settings: {\r\n navId: 231,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Korosztályok',\r\n orderTitle_en: 'Age Groups',\r\n parentId: 1,\r\n content: 'AgeGroups',\r\n activatorPermission: ['\"MEGTKOROKEZ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ModifyAgeGroupController.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"$q\", \"gettextCatalog\", \"paramHelper\", \"$window\", \"$rootScope\", \"$scope\"];\r\n angular\r\n .module('app.athletes.ageGroups.modifyAgeGroup')\r\n .controller('ModifyAgeGroupController', ModifyAgeGroupController);\r\n\r\n function ModifyAgeGroupController(log, $state, dataservice, authenticationService, $q, gettextCatalog, paramHelper, $window, $rootScope, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyAgeGroup');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n var date = new Date().getFullYear();\r\n vm.yearList = dataservice.range(date + 5, 1900);\r\n vm.yearListTo = dataservice.range(date + 10, 1900);\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n\r\n vm.formData = {\r\n color: '#000000',\r\n activeAgeGroup: true,\r\n selectedYearFrom: undefined,\r\n selectedYearTo: undefined,\r\n comment: undefined,\r\n ageGroupName: undefined,\r\n sectionId: undefined,\r\n id: undefined\r\n };\r\n\r\n vm.clearDropdown = clearDropdown;\r\n vm.sectionSelect = sectionSelect;\r\n vm.modifyAgeGroup = modifyAgeGroup;\r\n vm.yearFromDropDownChanged = yearFromDropDownChanged;\r\n vm.yearToDropDownChanged = yearToDropDownChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.colorChanged = colorChanged;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODKOROKEZ'), authenticationService.getRight('MEGTKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODKOROKEZ = results[0];\r\n $q.all([paramHelper.getParams(['ageGroups.ageGroup'])]).then(function (results) {\r\n vm.ageGroupId = results[0]['ageGroups.ageGroup'];\r\n getAgeGroup().then(function () {\r\n getSections();\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function clearDropdown() {\r\n vm.formData.selectedYearTo = null;\r\n }\r\n\r\n function getAgeGroup() {\r\n return dataservice.getAgeGroup(vm.ageGroupId).then(function (data) {\r\n vm.formData.ageGroupName = data.ageGroupName;\r\n vm.formData.comment = data.comment;\r\n vm.formData.selectedYearFrom = data.selectedYearFrom;\r\n vm.formData.selectedYearTo = data.selectedYearTo;\r\n vm.formData.color = data.color;\r\n vm.formData.activeAgeGroup = data.activeAgeGroup;\r\n vm.formData.id = data.id;\r\n vm.formData.sectionId = data.sectionId;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.sectionId);\r\n }\r\n\r\n function sectionSelect(selectedSection) {\r\n vm.formData.sectionId = selectedSection.value;\r\n }\r\n\r\n function yearFromDropDownChanged(args) {\r\n vm.formData.selectedYearFrom = args.value;\r\n }\r\n\r\n function yearToDropDownChanged(args) {\r\n vm.formData.selectedYearTo = args.value;\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.formData.activeAgeGroup = args.value;\r\n }\r\n\r\n function modifyAgeGroup() {\r\n if (vm.MODKOROKEZ) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n dataservice.modifyAgeGroup(vm.formData).then(function () {\r\n log.successMsg('AgeGroupModified');\r\n paramHelper.setParams([{'ageGroups.section': vm.formData.sectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupsList');\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.ageGroups.modifyAgeGroup')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.modifyAgeGroup',\r\n config: {\r\n url: '/modifyAgeGroup',\r\n templateUrl: 'app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.html',\r\n controller: 'ModifyAgeGroupController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes',\r\n config: {\r\n title: 'Athletes',\r\n url: '/athletes',\r\n templateUrl: 'app/athletes/athletes.html',\r\n settings: {\r\n navId: 1,\r\n level: 1,\r\n order: 1,\r\n parentId: 0,\r\n content: 'Athletes',\r\n faIcon: 'fa-running',\r\n activatorPermission: [\r\n '\"MEGTKOROKEZ\"',\r\n '\"MEGTSPORTLIST\"',\r\n '\"MEGTCSOPORT\"',\r\n '\"SZAKOSZTALY\"',\r\n '\"MEGTSPORTLIST\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnthropometryController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\", \"DOMAIN\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.anthropometry')\r\n .controller('AnthropometryController', AnthropometryController);\r\n\r\n function AnthropometryController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, DOMAIN, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Create variables\r\n vm.felmeresId = 0;\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.REGIFELMERES = false;\r\n vm.fileName = null;\r\n vm.oldAnthropometryTestTitle = gettextCatalog.getString('OldAnthropometryTests');\r\n vm.formData = {\r\n athletesName: '',\r\n athletesAddress: '',\r\n birthDate: '',\r\n endOfPuberty: '',\r\n chosenSports: '',\r\n TM: '',\r\n TS: '',\r\n HUS: '',\r\n DS: '',\r\n VAS: '',\r\n MKS: '',\r\n MMG: '',\r\n CRS: '',\r\n MKK: '',\r\n FFK: '',\r\n FK: '',\r\n AKK: '',\r\n CUK: '',\r\n KZK: '',\r\n COK: '',\r\n ASK: '',\r\n BOK: '',\r\n BR: '',\r\n HR: '',\r\n R: '',\r\n COR: '',\r\n LR: '',\r\n MSR: '',\r\n CSR: '',\r\n Felmeres: '',\r\n Csoport: '',\r\n MeresDatuma: '',\r\n VizsgalatotKeroNeveCime: ''\r\n };\r\n vm.selectedRowIndexPopup = -1;\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Felmeres',\r\n headerText: gettextCatalog.getString('Felmeres'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Csoport',\r\n headerText: gettextCatalog.getString('Csoport'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MeresDatuma',\r\n headerText: gettextCatalog.getString('MeresDatuma'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.reportParameters = {};\r\n var printOpenedE = false;\r\n\r\n // Public functions\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.saveForm = saveForm;\r\n vm.deleteImg = deleteImg;\r\n vm.newAnthropometryTest = newAnthropometryTest;\r\n vm.oldAnthropometryTest = oldAnthropometryTest;\r\n vm.closeWindow = closeWindow;\r\n vm.selectTest = selectTest;\r\n vm.print = print;\r\n vm.focusOut = focusOut;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#GridPopup');\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n initKeyEvents();\r\n var promises = [authenticationService.getRight('MEGTANTFELM'), authenticationService.getRight('MODANTFELM'), authenticationService.getRight('ANTRKIERT')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODANTFELM = results[1];\r\n vm.ANTRKIERT = results[2];\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'])]).then(function (data) {\r\n vm.sportoloId = data[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = data[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Anthropometry');\r\n getAthleteForAnthropometry(vm.sportoloId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAthleteForAnthropometry(sportolo, felmeresId) {\r\n if (felmeresId === undefined) {\r\n felmeresId = 0;\r\n }\r\n dataservice.getAthleteForAnthropometry(sportolo, felmeresId).then(function (data) {\r\n data.ant.SzuletesiIdo = $filter('datetimeFilter')(data.ant.SzuletesiIdo);\r\n data.ant.MeresDatuma = $filter('datetimeFilter')(data.ant.MeresDatuma);\r\n data.ant.PubertaskorVege = $filter('datetimeFilter')(data.ant.PubertaskorVege);\r\n vm.formData = data.ant;\r\n vm.formData.IdSportolo = vm.sportoloId;\r\n vm.felmeresId = vm.formData.Id;\r\n if (vm.formData.Id !== 0 && vm.formData.Id !== '0') {\r\n vm.REGIFELMERES = true;\r\n }\r\n if (data.ant.LogoEleresiUt && data.ant.LogoEleresiUt != 'noImg.jpg') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.anthropometryPhotosUrl + data.ant.LogoEleresiUt;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + 'default.png';\r\n }\r\n });\r\n }\r\n\r\n function saveForm() {\r\n if (!vm.MODANTFELM) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n $scope.$apply();\r\n } else {\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.fileData = vm.cropper.croppedImage;\r\n vm.fileName = angular.element('#fileName').val();\r\n } else if (vm.photoUrl === undefined) {\r\n vm.fileName = 'noImg.jpg';\r\n }\r\n dataservice.saveAnthropometry(vm.formData, vm.fileData, vm.fileName).then(function (response) {\r\n getAthleteForAnthropometry(response.data.sportoloId, response.data.Id);\r\n if (response.data.sikeresSzinkron) {\r\n log.successMsg(response.data.hibauzenet);\r\n } else if (response.data.hibauzenet && response.data.hibauzenet.length > 0) {\r\n log.warningMsg(response.data.hibauzenet, true);\r\n }\r\n log.successMsg('Saved');\r\n });\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n angular.element('#fileName').val('');\r\n vm.fileName = 'oldDeleted';\r\n vm.photoUrl = vm.noImg;\r\n }\r\n\r\n function newAnthropometryTest() {\r\n vm.formData.Id = 0;\r\n vm.formData.Felmeres = '';\r\n vm.formData.Csoport = '';\r\n vm.formData.MeresDatuma = null;\r\n vm.formData.TTM = '';\r\n vm.formData.TTS = '';\r\n vm.formData.HUS = '';\r\n vm.formData.TDS = '';\r\n vm.formData.VAS = '';\r\n vm.formData.MKS = '';\r\n vm.formData.MMG = '';\r\n vm.formData.CRS = '';\r\n vm.formData.MKK = '';\r\n vm.formData.FFK = '';\r\n vm.formData.FK = '';\r\n vm.formData.AKK = '';\r\n vm.formData.CUK = '';\r\n vm.formData.KZK = '';\r\n vm.formData.COK = '';\r\n vm.formData.ASK = '';\r\n vm.formData.BOK = '';\r\n vm.formData.BR = '';\r\n vm.formData.HR = '';\r\n vm.formData.TR = '';\r\n vm.formData.COR = '';\r\n vm.formData.LR = '';\r\n vm.formData.MSR = '';\r\n vm.formData.CSR = '';\r\n vm.formData.Endomorfia = '';\r\n vm.formData.Mezomorfia = '';\r\n vm.formData.Ektomorfia = '';\r\n vm.formData.MetrikusConradIndex = '';\r\n vm.formData.PlasztikusConradIndex = '';\r\n vm.formData.DFDC = '';\r\n vm.formData.DFTZSSzazalek = '';\r\n vm.formData.DFTTS = '';\r\n vm.formData.DFDelta = '';\r\n vm.formData.DFBZS = '';\r\n vm.formData.DFBCS = '';\r\n vm.formData.DFBI = '';\r\n vm.formData.DFBZSR = '';\r\n vm.formData.DFBF = '';\r\n vm.formData.DFDCBF = '';\r\n vm.formData.DFVTM = '';\r\n vm.formData.DFBTTS = '';\r\n vm.formData.DFDELTASzazalek = '';\r\n vm.formData.DFBZSSzazalek = '';\r\n vm.formData.DFBCSSzazalek = '';\r\n vm.formData.DFBISzazalek = '';\r\n vm.formData.DFBZSRSzazalek = '';\r\n vm.formData.Testalkat = '';\r\n vm.formData.Sulyfelesleg = '';\r\n vm.formData.Erosithetoseg = '';\r\n vm.formData.VarhatoTestmagassag = '';\r\n vm.formData.SzakertoiVelemeny = '';\r\n vm.formData.AjanlottSportagak = '';\r\n $scope.$apply();\r\n }\r\n\r\n // Grid popup\r\n function oldAnthropometryTest() {\r\n vm.selectedRowIndexPopup = -1;\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n var dialogObj = angular.element('#oldAnthropometryTestsWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.getOldAnthropometryTest(vm.sportoloId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'MeresDatuma');\r\n });\r\n }\r\n\r\n function closeWindow() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n var dialogObj = angular.element('#oldAnthropometryTestsWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectTest() {\r\n var row = grid.getSelectedRecords()[0];\r\n if (!row) {\r\n vm.selectedRowIndexPopup = -1;\r\n } else {\r\n vm.selectedRowIndexPopup = row.Id;\r\n }\r\n getAthleteForAnthropometry(vm.sportoloId, vm.selectedRowIndexPopup);\r\n closeWindow();\r\n }\r\n\r\n function print() {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n 'Tomeges': vm.felmeresId + ',' + vm.sportoloId,\r\n 'SportoloId': 0,\r\n 'AntropometriaId': 0,\r\n 'SportiskolaLogo': vm.photoUrl\r\n };\r\n\r\n if (printOpenedE) {\r\n angular.element('#printDialoganthtest2').ejDialog('open');\r\n } else {\r\n printOpenedE = true;\r\n angular.element('#printDialoganthtest2').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n\r\n //angular.element('#printDialoganthtest2').ejDialog('open');\r\n }, 0);\r\n }\r\n\r\n var tizedesvesszo = false;\r\n var voltLostFocus = false;\r\n\r\n function initKeyEvents() {\r\n angular.element('body').on('keyup', 'button', function () {\r\n $(this).submit();\r\n });\r\n\r\n angular.element('body').on('keyup', 'select, textarea, input', function (e) {\r\n var form = $(this).parents('form:eq(0)');\r\n var focusable;\r\n var next;\r\n if (e.keyCode == 13) {\r\n var tab = $((this)).attr('tabIndex');\r\n tab++;\r\n $('[tabindex=\\'' + tab + '\\']').focus();\r\n\r\n return false;\r\n }\r\n });\r\n\r\n $('body').on('keyup', 'input', function (e) {\r\n var form = $(this).parents('form:eq(0)');\r\n var focusable;\r\n var next;\r\n var keyCode = e.keyCode;\r\n //volt már tizedesvessző, és számot adott meg, következő mezőre lépés\r\n if (tizedesvesszo === true && ((keyCode >= 48 && keyCode <= 57) || (keyCode >= 96 && keyCode <= 105))) {\r\n tizedesvesszo = false;\r\n var tab = $(this).attr('tabindex');\r\n tab++;\r\n $('[tabindex=\\'' + tab + '\\']').focus();\r\n\r\n return false;\r\n }\r\n //ha még nem volt tizedesvessző, és .-ot, vagy ,-t nyomott le\r\n if (!tizedesvesszo && (keyCode === 110 || keyCode === 188)) {\r\n tizedesvesszo = true;\r\n }\r\n //ha volt tizedesvessző, de BackSpace-t nyom le\r\n if (tizedesvesszo && keyCode === 8) {\r\n tizedesvesszo = false;\r\n }\r\n });\r\n }\r\n\r\n function focusOut(args) {\r\n if (voltLostFocus || args.value == null) {\r\n return;\r\n }\r\n if (!validate(args.model.minValue, args.model.maxValue, args.value)) {\r\n voltLostFocus = true;\r\n var audio2 = new Audio('/sounds/error.mp3');\r\n audio2.play();\r\n args.cancel = true;\r\n document.getElementsByName(args.model.name)[0].children[1].children[0].children[0].children[0].focus();\r\n voltLostFocus = false;\r\n return true;\r\n } else {\r\n if (args.model.name === 'MSR') {\r\n var audio = new Audio('/sounds/save.mp3');\r\n audio.play();\r\n } else {\r\n var audio = new Audio('/sounds/focusout.mp3');\r\n audio.play();\r\n }\r\n }\r\n }\r\n\r\n function validate(min, max, value) {\r\n return value >= min && value <= max;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.anthropometry')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.anthropometry',\r\n config: {\r\n url: '/anthropometry',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.html',\r\n controller: 'AnthropometryController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteFeesController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$state\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteFees')\r\n .controller('AthleteFeesController', AthleteFeesController);\r\n\r\n function AthleteFeesController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, $scope, authenticationService, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'K', value: 'K'}, {text: 'B', value: 'B'}, {\r\n text: 'EP',\r\n value: 'EP'\r\n }, {text: 'MT', value: 'MT'}];\r\n\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Ev', headerText: gettextCatalog.getString('Year'), width: 70, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', width: 150, textAlign: 'center',\r\n template: '#feearrearscolumnTemplate2'\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, textAlign: 'center',\r\n template: '#feearrearscolumnTemplate1'\r\n },\r\n {\r\n field: 'Dsi_Igazolas',\r\n headerText: gettextCatalog.getString('Regisztracios'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'OsszesHatralek',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Month'),\r\n columns: [\r\n {field: 'Honap_1', headerText: gettextCatalog.getString('January'), textAlign: 'center', width: 75},\r\n {field: 'Honap_2', headerText: gettextCatalog.getString('February'), textAlign: 'center', width: 75},\r\n {field: 'Honap_3', headerText: gettextCatalog.getString('March'), textAlign: 'center', width: 75},\r\n {field: 'Honap_4', headerText: gettextCatalog.getString('April'), textAlign: 'center', width: 75},\r\n {field: 'Honap_5', headerText: gettextCatalog.getString('May'), textAlign: 'center', width: 75},\r\n {field: 'Honap_6', headerText: gettextCatalog.getString('June'), textAlign: 'center', width: 75},\r\n {field: 'Honap_7', headerText: gettextCatalog.getString('July'), textAlign: 'center', width: 75},\r\n {field: 'Honap_8', headerText: gettextCatalog.getString('August'), textAlign: 'center', width: 75},\r\n {field: 'Honap_9', headerText: gettextCatalog.getString('September'), textAlign: 'center', width: 75},\r\n {field: 'Honap_10', headerText: gettextCatalog.getString('October'), textAlign: 'center', width: 75},\r\n {field: 'Honap_11', headerText: gettextCatalog.getString('November'), textAlign: 'center', width: 75},\r\n {field: 'Honap_12', headerText: gettextCatalog.getString('December'), textAlign: 'center', width: 75}\r\n ],\r\n textAlign: 'center'\r\n }\r\n ]\r\n ;\r\n vm.rowIndexUnderEditing = -1;\r\n\r\n // Public functions\r\n vm.getAthletes = getFees;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])];\r\n $q.all(promises).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthleteFees');\r\n getFees();\r\n });\r\n }\r\n\r\n function getFees() {\r\n return dataservice.getAthleteFees(vm.sportoloId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteFees')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athleteFees',\r\n config: {\r\n url: '/athleteFees',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.html',\r\n controller: 'AthleteFeesController',\r\n controllerAs: 'vm',\r\n title: 'AthleteFees'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteLogController.$inject = [\"dataservice\", \"log\", \"authenticationService\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$filter\", \"$scope\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteLog')\r\n .controller('AthleteLogController', AthleteLogController);\r\n\r\n function AthleteLogController(dataservice, log, authenticationService, $q, $rootScope, gettextCatalog, paramHelper, $filter, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.sportoloId = null;\r\n vm.sportoloNev = null;\r\n vm.logAll = [];\r\n vm.dateList = [];\r\n\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n\r\n vm.columns = [\r\n {field: 'strtimestamp', headerText: gettextCatalog.getString('TimeStamp'), headerTextAlign: 'center', textAlign: 'center', width: '150'},\r\n {field: 'field', headerText: gettextCatalog.getString('Field'), headerTextAlign: 'center', width: '100'},\r\n {field: 'oldvalue', headerText: gettextCatalog.getString('OldValue'), textAlign: 'center', width: '150'},\r\n {field: 'newvalue', headerText: gettextCatalog.getString('NewValue'), textAlign: 'center', width: '150'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('LOG')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthleteLog');\r\n getLog(vm.sportoloId, vm.dateFrom, vm.dateTo);\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function getLog(sportoloid, from, to) {\r\n dataservice.getLog('Sportolok', sportoloid, from, to).then(function (response) {\r\n grid.dataSource = response.data.List;\r\n vm.logAll = response.data.List;\r\n vm.dateList = response.data.DatesStr;\r\n vm.dateList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n setTimeout(function() {\r\n angular.element('#date').ejDropDownList('selectItemByValue', '0');\r\n $scope.$apply();\r\n }, 10);\r\n });\r\n }\r\n\r\n function dateFromChanged(arg) {\r\n getLog(vm.sportoloId, arg.value, vm.dateTo);\r\n }\r\n\r\n function dateToChanged(arg) {\r\n getLog(vm.sportoloId, vm.dateFrom, arg.value);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteLog')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athleteLog',\r\n config: {\r\n url: '/athleteLog',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.html',\r\n controller: 'AthleteLogController',\r\n controllerAs: 'vm',\r\n title: 'AthleteLog'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteModifyController.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"DOMAIN\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\", \"$timeout\", \"$scope\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify')\r\n .controller('AthleteModifyController', AthleteModifyController);\r\n\r\n function AthleteModifyController(log, logger, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $timeout, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.athleteMenuOpened = false;\r\n vm.printMenuOpened = false;\r\n\r\n $rootScope.title = gettextCatalog.getString('AthleteModify');\r\n\r\n vm.athleteMenuItems = [];\r\n\r\n vm.printMenuItems = [];\r\n\r\n var printOpened = false;\r\n vm.reportParameters = {};\r\n var printOpenedSchoolRequesting = false;\r\n vm.reportParametersSchoolRequesting = {};\r\n var printOpenedTaj = false;\r\n vm.reportParametersEgeszsegProfil = {};\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId'], ['athleteModify.sportoloNev', 'selectedSectionId', 'selectedAgeGroupId', 'selectedActiveOrInactive', 'selectedPage', 'selectedRow']),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('ModFizetesMod'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('KMVERSEREDM'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('MEGTANTFELM'),\r\n authenticationService.getRight('MEGTKPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n authenticationService.getRight('PSYCHO'),\r\n authenticationService.getRight('KIKERONYOMT'),\r\n authenticationService.getRight('TESTMERET'),\r\n authenticationService.getRight('MEGTSPORTBEF'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('LOG'),\r\n authenticationService.getRight('DOKLIST'),\r\n authenticationService.getRight('ESZKNYILVMEGT'),\r\n authenticationService.getRight('SPORTKILEPVEGLEGES')\r\n\r\n ]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n\r\n vm.ADMIN = results[1];\r\n vm.UJEDZVALT = results[2];\r\n vm.MODFELH = results[3];\r\n vm.SPORTKILEP = results[4];\r\n vm.ModFizetesMod = results[5];\r\n vm.MODSPORTOLO = results[6];\r\n vm.SPORTOLO = results[7];\r\n vm.SZULO = results[8];\r\n vm.EGESZSMEGT = results[9];\r\n vm.KMVERSEREDM = results[10];\r\n vm.MEGTHAVIJEL = results[11];\r\n vm.MODTAGDBEALL = results[12];\r\n vm.MEGTANTFELM = results[13];\r\n vm.MEGTKPFELM = results[14];\r\n vm.MEGTSPFELM = results[15];\r\n vm.PSYCHO = results[16];\r\n vm.KIKERONYOMT = results[17];\r\n vm.TESTMERET = results[18];\r\n vm.MEGTSPORTBEF = results[19];\r\n vm.MODKOROKEZ = results[20];\r\n vm.LOG = results[21];\r\n vm.DOKLIST = results[22];\r\n vm.ESZKNYILVMEGT = results[23];\r\n vm.SPORTKILEPVEGLEGES = results[24];\r\n\r\n dataservice.getAthleteDataMin(vm.sportoloId).then(function (data) {\r\n vm.SportoloNev = data.Nev;\r\n vm.Taj = data.Taj;\r\n vm.SzuletesiIdo = data.SzuletesiIdo;\r\n vm.Aktiv = data.Aktiv;\r\n vm.JelenlegiEdzo = data.JelenlegiEdzo;\r\n\r\n if (vm.Aktiv) {\r\n vm.SPORTBELEPTET = false;\r\n } else {\r\n vm.SPORTBELEPTET = vm.MODSPORTOLO;\r\n vm.SPORTKILEP = false;\r\n }\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('DataSheet'),\r\n state: 'DataSheet',\r\n enabled: true\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('DatasheetPrint'),\r\n state: 'DatasheetPrint',\r\n enabled: true\r\n });\r\n if (!vm.SPORTOLO && !vm.SZULO) {\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('RaceResultsReport'),\r\n state: 'RaceResultsReport',\r\n enabled: vm.KMVERSEREDM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('TrainingVisit'),\r\n state: 'TrainingVisit',\r\n enabled: vm.MEGTHAVIJEL\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Anthropometry'),\r\n state: 'Anthropometry',\r\n enabled: vm.MEGTANTFELM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('NewSportSpecificTestList'),\r\n state: 'NewSportSpecificTestList',\r\n enabled: vm.MEGTSPFELM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('goneAthlete'),\r\n state: 'goneAthlete',\r\n enabled: vm.SPORTKILEP\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('EnteringAthlete'),\r\n state: 'EnteringAthlete',\r\n enabled: vm.SPORTBELEPTET\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Psychology'),\r\n state: 'Psychology',\r\n enabled: vm.PSYCHO\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('SchoolRequesting'),\r\n state: 'SchoolRequesting',\r\n enabled: vm.KIKERONYOMT\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('HealthModul'),\r\n state: 'HealthModul',\r\n enabled: vm.EGESZSMEGT\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('PrintHealth'),\r\n state: 'PrintHealth',\r\n enabled: vm.EGESZSMEGT\r\n });\r\n }\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('CompetitionResultsChart'),\r\n state: 'CompetitionResultsChart',\r\n enabled: vm.KMVERSEREDM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('BodyStat'),\r\n state: 'BodyStat',\r\n enabled: vm.TESTMERET\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('AthleteFees'),\r\n state: 'AthleteFees',\r\n enabled: vm.MEGTSPORTBEF\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Log'),\r\n state: 'Log',\r\n enabled: vm.LOG\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Contracts'),\r\n state: 'Contracts',\r\n enabled: vm.DOKLIST && vm.MODSPORTOLO\r\n });\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('AthletesAssets'),\r\n state: 'AthletesAssets',\r\n enabled: (vm.ESZKNYILVMEGT && vm.Aktiv)\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('GDPRExitAthlete'),\r\n state: 'GDPRExitAthlete',\r\n enabled: vm.SPORTKILEPVEGLEGES\r\n });\r\n\r\n vm.athleteMenuItems.sort(function (item1, item2) {\r\n return item1.name.localeCompare(item2.name);\r\n });\r\n vm.printMenuItems.sort(function (item1, item2) {\r\n return item1.name.localeCompare(item2.name);\r\n });\r\n\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloNev': vm.SportoloNev},\r\n {'athleteModify.sportoloTaj': vm.Taj},\r\n {'athleteModify.sportoloSzuletesiIdo': vm.SzuletesiIdo},\r\n {'athleteModify.aktivSportolo': vm.Aktiv}\r\n ]);\r\n });\r\n });\r\n }\r\n\r\n vm.openAthleteMenu = function () {\r\n vm.athleteMenuOpened = !vm.athleteMenuOpened;\r\n if (vm.athleteMenuOpened) {\r\n $('#AthleteMenuButton').addClass('is-active');\r\n } else {\r\n $('#AthleteMenuButton').removeClass('is-active');\r\n }\r\n\r\n if (vm.athleteMenuOpened === true) {\r\n $('#AthletePrintButton').removeClass('is-active');\r\n vm.printMenuOpened = false;\r\n }\r\n };\r\n\r\n vm.openPrintMenu = function () {\r\n vm.printMenuOpened = !vm.printMenuOpened;\r\n if (vm.printMenuOpened) {\r\n $('#AthletePrintButton').addClass('is-active');\r\n } else {\r\n $('#AthletePrintButton').removeClass('is-active');\r\n }\r\n\r\n if (vm.printMenuOpened === true) {\r\n $('#AthleteMenuButton').removeClass('is-active');\r\n vm.athleteMenuOpened = false;\r\n }\r\n };\r\n\r\n vm.openAthletePage = function (item) {\r\n if (item.enabled === false) {\r\n // log.permissionError();\r\n return;\r\n }\r\n vm.openAthleteMenu();\r\n switch (item.state) {\r\n case 'DataSheet':\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n break;\r\n case 'RaceResultsReport':\r\n $state.go('athletes.athletesManagement.athleteModify.raceResultsReport');\r\n break;\r\n case 'TrainingVisit':\r\n $state.go('athletes.athletesManagement.athleteModify.trainingVisitReport');\r\n break;\r\n case 'Anthropometry':\r\n $state.go('athletes.athletesManagement.athleteModify.anthropometry');\r\n break;\r\n case 'NewSportSpecificTestList':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesSportSpecificTestList');\r\n break;\r\n case 'goneAthlete':\r\n goToGoneAthleteAllowed();\r\n break;\r\n case 'EnteringAthlete':\r\n getSectionsSwal();\r\n break;\r\n case 'Contracts':\r\n paramHelper.setParams([{'files.tipus': 'Sportolok'}, {'files.tablaId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.files');\r\n break;\r\n case 'Psychology':\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n break;\r\n case 'BodyStat':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesBodyStat');\r\n break;\r\n case 'HealthModul':\r\n $state.go('athletes.athletesManagement.athleteModify.health.healthList');\r\n break;\r\n case 'CompetitionResultsChart':\r\n $state.go('athletes.athletesManagement.athleteModify.competitionResultsChart');\r\n break;\r\n case 'AthleteFees':\r\n $state.go('athletes.athletesManagement.athleteModify.athleteFees');\r\n break;\r\n case 'Log':\r\n $state.go('athletes.athletesManagement.athleteModify.athleteLog');\r\n break;\r\n case 'AthletesAssets':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesAssets');\r\n break;\r\n case 'GDPRExitAthlete':\r\n GDPRExitAthlete();\r\n break;\r\n }\r\n };\r\n\r\n vm.printPage = function (item) {\r\n if (item.enabled === false) {\r\n return;\r\n }\r\n vm.openPrintMenu();\r\n switch (item.state) {\r\n case 'DatasheetPrint':\r\n datasheetPrint();\r\n break;\r\n case 'SchoolRequesting':\r\n schoolRequestingOk();\r\n break;\r\n case 'PrintHealth':\r\n testClick();\r\n break;\r\n }\r\n };\r\n\r\n function goToGoneAthleteAllowed() {\r\n var TitleString = gettextCatalog.getString(vm.SportoloNev + ' ' + gettextCatalog.getString('ExitAthleteTitlePart'));\r\n var enteringExitingText = gettextCatalog.getString('SelectDategoneAthlete'); // Válaszd ki a kiléptetés dátumát!\r\n var reasonEnteringExitingText = gettextCatalog.getString('ExitedAthletesText'); // A kiléptetés indoka\r\n var confirmButtonText = gettextCatalog.getString('Exiting');\r\n\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '
';\r\n HTMLarr[3] = '

';\r\n HTMLarr[6] = '';\r\n\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: TitleString,\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: confirmButtonText,\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n var preConfOk = true;\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue();\r\n vm.noteExitText = angular.element('#noteTextArea').val();\r\n checkExitDate(vm.selectedExitDate);\r\n return new Promise(function (resolve) {\r\n if (!vm.selectedExitDate || !vm.exitAthleteDateOk) {\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate'));\r\n }\r\n if (vm.noteExitText == null || vm.noteExitText === '') {\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveExitAthletes(true);\r\n swal.close();\r\n }\r\n });\r\n\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n dateFormat: 'yyyy-MM-dd',\r\n value: new Date(),\r\n change: function (args) {\r\n checkExitDate(args.value);\r\n }\r\n });\r\n }\r\n\r\n function checkExitDate(args) {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n }\r\n\r\n function saveExitAthletes(firstSection) {\r\n vm.datas = {};\r\n vm.datas.athletesId = [vm.sportoloId];\r\n vm.datas.selectedExitDate = vm.selectedExitDate;\r\n if (!vm.noteExitText) {\r\n vm.noteExitText = '----';\r\n }\r\n vm.datas.noteExitText = vm.noteExitText;\r\n vm.datas.firstSection = firstSection;\r\n dataservice.saveExitAthletes(vm.datas).then(function (answer) {\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok'\r\n });\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n $rootScope.back();\r\n /*\r\n if (answer.retValue) {\r\n swal(gettextCatalog.getString('SuccesfulExitAthleteResult'), '', 'success');\r\n $rootScope.back();\r\n } else {\r\n swal(gettextCatalog.getString('FailedExitAthleteResult'), '', 'error');\r\n }\r\n */\r\n });\r\n }\r\n\r\n function GDPRExitAthlete() {\r\n dataservice.getAthleteData(vm.sportoloId).then(function (data) {\r\n if (data.Egyenleg < 0 || data.Egyenleg2 < 0) {\r\n log.errorMsg(gettextCatalog.getString('AthleteHasArrear'));\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('FinallyExitAthlete'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToFinallyExitSelectedAthlete'),\r\n type: 'error',\r\n showCancelButton: true,\r\n confirmButtonColor: '#e50000',\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n confirmButtonText: gettextCatalog.getString('Yes')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n dataservice.GDPRExitAthlete(vm.sportoloId).then(function () {\r\n $state.go('athletes.athletesManagement.athletesList');\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSectionsSwal() {\r\n dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionListSwal = data.itemsList;\r\n reEnteringAthlete();\r\n });\r\n }\r\n\r\n function reEnteringAthlete() {\r\n var showAgeGroupSwal = false;\r\n var TitleString = gettextCatalog.getString(vm.SportoloNev + ' ' + gettextCatalog.getString('EnteringAthlete'));\r\n var enteringExitingText = gettextCatalog.getString('SelectDateEnteringAthlete'); // Válaszd ki a visszaléptetés dátumát!\r\n var confirmButtonText = gettextCatalog.getString('Entering');\r\n\r\n var HTMLarr = [];\r\n HTMLarr[0] = '
';\r\n HTMLarr[3] = '
';\r\n HTMLarr[4] = '
';\r\n HTMLarr[5] = '
';\r\n HTMLarr[6] = '
';\r\n HTMLarr[7] = '
';\r\n HTMLarr[8] = '
';\r\n HTMLarr[9] = '
';\r\n\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: TitleString,\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: confirmButtonText,\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n\r\n vm.exitAthleteDateOk = (new Date(vm.selectedExitDate).getTime()) <= new Date().getTime();\r\n\r\n return new Promise(function (resolve) {\r\n if (!vm.selectedExitDate || !vm.exitAthleteDateOk) {\r\n swal.showValidationError(gettextCatalog.getString('SelectEnteringDate'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveReEnteringAthletes();\r\n }\r\n }, function () {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notEnteringAthlete'), 'error');\r\n });\r\n\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n dateFormat: 'yyyy-MM-dd',\r\n value: new Date(),\r\n change: function (args) {\r\n // Get current date\r\n vm.selectedExitDate = new Date(args.value);\r\n vm.exitAthleteDateOk = vm.selectedExitDate.getDate() === 1;\r\n }\r\n });\r\n // Section swal\r\n angular.element('#sectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.sectionListSwal,\r\n select: selectSectionDropDownSwal,\r\n value: vm.athleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n\r\n function sectionSwalDatabound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalSzakosztaly);\r\n }\r\n }\r\n\r\n function selectSectionDropDownSwal(arg) {\r\n vm.athleteDataSwalSzakosztaly = arg.value;\r\n showAgeGroupSwal = true; // show ageGroup dropdown\r\n // Clear\r\n vm.coachListSwal = [];\r\n angular.element('#secondSectionDropDownSwalDiv').addClass('ng-hide');\r\n angular.element('#secondAgeGroupDropDownSwalDiv').addClass('ng-hide');\r\n angular.element('#secondCoachDropDownSwalDiv').addClass('ng-hide');\r\n\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n });\r\n getSecondSectionsSwal();\r\n getAgeGroupsSwal();\r\n }\r\n\r\n // AgeGroup swal\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.ageGroupListSwal,\r\n select: ageGroupDropDownSwal,\r\n value: vm.athleteDataSwalKorcsoport,\r\n databound: ageGroupSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getAgeGroupsSwal() {\r\n dataservice.ageGroupDropDownList(vm.athleteDataSwalSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupListSwal = data.itemsList;\r\n // reFresh\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.ageGroupListSwal,\r\n });\r\n });\r\n }\r\n\r\n function ageGroupSwalDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.ageGroupListSwal[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalKorcsoport);\r\n }\r\n }\r\n\r\n function ageGroupDropDownSwal(arg) {\r\n vm.athleteDataSwalKorcsoport = arg.value;\r\n getCoachesSwal();\r\n }\r\n\r\n // Coach swal\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n select: coachDropDownSwalSelect,\r\n value: vm.athleteDataSwalEdzo,\r\n databound: coachSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getCoachesSwal() {\r\n return dataservice.coachDropDownList(vm.athleteDataSwalSzakosztaly, vm.athleteDataSwalKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachListSwal = data.itemsList;\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n });\r\n });\r\n }\r\n\r\n function coachSwalDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#coachDropDownSwal').ejDropDownList('selectItemByValue', vm.coachListSwal[0].value);\r\n } else {\r\n angular.element('#coachDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalEdzo);\r\n }\r\n }\r\n\r\n function coachDropDownSwalSelect(arg) {\r\n vm.athleteDataSwalEdzo = arg.value;\r\n angular.element('#secondSectionDropDownSwalDiv').removeClass('ng-hide');\r\n angular.element('#secondAgeGroupDropDownSwalDiv').removeClass('ng-hide');\r\n angular.element('#secondCoachDropDownSwalDiv').removeClass('ng-hide');\r\n }\r\n\r\n // Second Section swal\r\n angular.element('#secondSectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondSectionListSwal,\r\n select: selectSecondSectionDropDownSwal,\r\n value: vm.secondAthleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n\r\n function selectSecondSectionDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalSzakosztaly = arg.value;\r\n // Clear\r\n vm.secondCoachListSwal = [];\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n });\r\n\r\n getsecondAgeGroupsSwal();\r\n }\r\n\r\n function getSecondSectionsSwal() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // itt ki kell venni a listából az elsődleges section-t (vm.athleteDataSwalSzakosztaly)\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n if (data.itemsList[i].value === vm.athleteDataSwalSzakosztaly) {\r\n data.itemsList.splice(i, 1);\r\n }\r\n }\r\n vm.secondSectionListSwal = data.itemsList;\r\n angular.element('#secondSectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondSectionListSwal,\r\n });\r\n });\r\n }\r\n\r\n // second AgeGroup swal\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondAgeGroupListSwal,\r\n select: secondAgeGroupDropDownSwal,\r\n value: vm.secondAthleteDataSwalKorcsoport,\r\n databound: secondAgeGroupSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getsecondAgeGroupsSwal() {\r\n dataservice.ageGroupDropDownList(vm.secondAthleteDataSwalSzakosztaly)\r\n .then(function (data) {\r\n vm.secondAgeGroupListSwal = data.itemsList;\r\n // reFresh\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondAgeGroupListSwal,\r\n });\r\n });\r\n }\r\n\r\n function secondAgeGroupSwalDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAgeGroupListSwal[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAthleteDataSwalKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalKorcsoport = arg.value;\r\n getsecondCoachesSwal();\r\n }\r\n\r\n // Coach swal\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n select: selectSecondCoachDropDownSwal,\r\n value: vm.secondAthleteDataSwalEdzo,\r\n databound: secondCoachSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function selectSecondCoachDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalEdzo = arg.value;\r\n }\r\n\r\n function getsecondCoachesSwal() {\r\n return dataservice.coachDropDownList(vm.secondAthleteDataSwalSzakosztaly, vm.secondAthleteDataSwalKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachListSwal = data.itemsList;\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n });\r\n });\r\n }\r\n\r\n function secondCoachSwalDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList('selectItemByValue', vm.secondCoachListSwal[0].value);\r\n } else {\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAthleteDataSwalEdzo);\r\n }\r\n }\r\n }\r\n\r\n function saveReEnteringAthletes() {\r\n vm.athleteData = {};\r\n vm.athleteData.IdSzakosztaly = vm.athleteDataSwalSzakosztaly;\r\n vm.SzakosztalyNev = '';\r\n vm.athleteData.Korcsoport = vm.athleteDataSwalKorcsoport;\r\n vm.athleteData.KorcsoportNeve = '';\r\n vm.athleteData.JelenlegiEdzo = vm.athleteDataSwalEdzo;\r\n vm.athleteData.JelenlegiEdzoNev = '';\r\n vm.athleteData.MasodlagosSzakosztaly = vm.secondAthleteDataSwalSzakosztaly;\r\n vm.athleteData.MasodlagosKorcsoport = vm.secondAthleteDataSwalKorcsoport;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.secondAthleteDataSwalEdzo;\r\n vm.athleteData.KilepesDatuma = '';\r\n vm.athleteData.KilepesIndoka = '';\r\n\r\n vm.sendAthleteDatas = {};\r\n vm.sendAthleteDatas.athletesId = vm.sportoloId;\r\n vm.sendAthleteDatas.selectedReEnteringDate = vm.selectedExitDate;\r\n vm.sendAthleteDatas.szakosztalyId = vm.athleteData.IdSzakosztaly;\r\n vm.sendAthleteDatas.korcsoportId = vm.athleteData.Korcsoport;\r\n vm.sendAthleteDatas.edzoId = vm.athleteData.JelenlegiEdzo;\r\n vm.sendAthleteDatas.masodlagosSzakosztalyId = vm.secondAthleteDataSwalSzakosztaly;\r\n vm.sendAthleteDatas.masodlagosKorcsoportId = vm.secondAthleteDataSwalKorcsoport;\r\n vm.sendAthleteDatas.masodlagosEdzoId = vm.secondAthleteDataSwalEdzo;\r\n\r\n return dataservice.saveReEnteringAthletes(vm.sendAthleteDatas).then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n\r\n function datasheetPrint() {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n 'Szak': '',\r\n 'Kor': '',\r\n 'Edzo': vm.JelenlegiEdzo,\r\n 'SzulHely': '',\r\n 'Lakcim': '',\r\n 'IskolaCim': '',\r\n 'Id': vm.sportoloId,\r\n 'fenykeput': '',\r\n 'UgyesebbLab': '',\r\n 'UgyesebbKez': '',\r\n 'Neme': '',\r\n 'Aktiv': vm.Aktiv === true ? gettextCatalog.getString('Yes') : gettextCatalog.getString('No')\r\n };\r\n }, 0);\r\n if (printOpened) {\r\n angular.element('#printDialogDatasheet').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialogDatasheet').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n\r\n function schoolRequestingOk() {\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '

';\r\n HTMLarr[1] = '';\r\n HTMLarr[2] = '


';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n $q.all([paramHelper.getParams([], ['schoolRequesting.dateInterval', 'schoolRequesting.justification'])])\r\n .then(function (results) {\r\n if (results[0] != null) {\r\n angular.element('#dateInterval').val(results[0]['schoolRequesting.dateInterval']);\r\n angular.element('#justification').val(results[0]['schoolRequesting.justification']);\r\n }\r\n });\r\n\r\n swal({\r\n title: gettextCatalog.getString('SchoolRequesting'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Print'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n var preConfOk = false;\r\n vm.dateInterval = angular.element('#dateInterval').val(); // get value\r\n vm.justification = angular.element('#justification').val();\r\n return new Promise(function (resolve, reject) {\r\n if (vm.dateInterval === null || vm.dateInterval === '') {\r\n preConfOk = false;\r\n reject(gettextCatalog.getString('FillDateInterval'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (vm.justification === null || vm.justification === '') {\r\n preConfOk = false;\r\n reject(gettextCatalog.getString('FillJustification'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (preConfOk) {\r\n resolve();\r\n }\r\n });\r\n },\r\n closeOnCancel: false\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n vm.reportParametersSchoolRequesting = {\r\n 'Logo': ' ',\r\n 'Fejlec': ' ',\r\n 'SportoloNeve': vm.SportoloNev,\r\n 'SportoloSzuletesiHelye': '',\r\n 'SportoloSzuletesiIdeje': '',\r\n 'SportoloAnyjaNeve': '',\r\n 'EgyesuletNeve': ' ',\r\n 'VarosDatum': '',\r\n 'Idopont': vm.dateInterval,\r\n 'Indok': vm.justification,\r\n 'Szoveg': '',\r\n 'Alairo': '',\r\n 'SportoloId': vm.sportoloId,\r\n 'EdzoId': authenticationService.getAuthData().id\r\n };\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n paramHelper.setParams([{\r\n 'schoolRequesting.dateInterval': vm.dateInterval,\r\n 'schoolRequesting.justification': vm.justification\r\n }]);\r\n if (printOpenedSchoolRequesting) {\r\n angular.element('#printDialogSchoolRequesting').ejDialog('open');\r\n } else {\r\n printOpenedSchoolRequesting = true;\r\n angular.element('#printDialogSchoolRequesting').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n swal.close();\r\n return true;\r\n }\r\n }).then(function () {\r\n });\r\n }\r\n\r\n function testClick() {\r\n swal({\r\n title: gettextCatalog.getString('HealthPrintQuestion'),\r\n input: 'select',\r\n inputOptions: {\r\n '1': gettextCatalog.getString('AllHealth'),\r\n '2': gettextCatalog.getString('ActualHealth')\r\n },\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n inputValidator: function (value) {\r\n return new Promise(function (resolve) {\r\n vm.healtType = value;\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.reportParametersEgeszsegProfil = {\r\n 'SportoloId': vm.sportoloId,\r\n 'Name': vm.SportoloNev,\r\n 'SzuletesiIdo': '',\r\n 'TajSzam': '',\r\n 'Type': vm.healtType,\r\n 'Fenykeput': ''\r\n };\r\n $scope.$apply();\r\n\r\n if (printOpenedTaj) {\r\n angular.element('#printDialogHealth').ejDialog('open');\r\n } else {\r\n printOpenedTaj = true;\r\n angular.element('#printDialogHealth').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify',\r\n config: {\r\n url: '/athleteModify',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteModify.html',\r\n controller: 'AthleteModifyController',\r\n controllerAs: 'vm',\r\n title: 'AthleteModify'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesAssetsController.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesAssets')\r\n .controller('AthletesAssetsController', AthletesAssetsController);\r\n\r\n function AthletesAssetsController(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.assetColumns = [\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), width: 150, textAlign: 'center'},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), width: 150, textAlign: 'center'},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), width: 100, textAlign: 'center'},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), width: 95, textAlign: 'center'},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), width: 95, textAlign: 'center'},\r\n {field: 'KiadaskoriMegjegyzes', headerText: gettextCatalog.getString('Comment'), width: 95, textAlign: 'center'}\r\n ];\r\n vm.types = [];\r\n vm.newAsset = {};\r\n vm.selectedAssets = [];\r\n vm.Issue = Issue;\r\n vm.IssueAsset = IssueAsset;\r\n vm.IssueNewAsset = IssueNewAsset;\r\n vm.TakeBack = TakeBack;\r\n vm.takebackEnabled = false;\r\n vm.chooseEnabled = false;\r\n vm.ESZKMOZG = false;\r\n vm.TakeBackComment = '';\r\n vm.IssueComment = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#AthletesAssetGrid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#AthletesAssetGrid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridPopUp = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 350,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#AssetGrid'), $scope);\r\n }\r\n }\r\n });\r\n gridPopUp.appendTo('#AssetGrid');\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('ESZKNYILVMEGT'),\r\n authenticationService.getRight('ESZKMOZG'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.ESZKMOZG = results[1];\r\n vm.sportoloId = results[2]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[2]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthletesAssets');\r\n IssuedAssets();\r\n }\r\n });\r\n }\r\n\r\n function IssuedAssets() {\r\n dataservice.IssuedAssets(vm.sportoloId, 0).then(function (response) {\r\n grid.dataSource = response.data;\r\n console.log(grid.dataSource);\r\n });\r\n }\r\n\r\n function getSelectedAssetIds(targetGrid) {\r\n var selectedAssets = targetGrid.getSelectedRecords();\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function IssueAsset() {\r\n if (vm.ESZKMOZG) {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n dataservice.AssetsByType(0, 'issuable').then(function (data) {\r\n gridPopUp.dataSource = data.data;\r\n });\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function Issue() {\r\n vm.chooseEnabled = false;\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n dataservice.AssetIssue(getSelectedAssetIds(gridPopUp), 0, vm.sportoloId, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets();\r\n });\r\n }\r\n\r\n function TakeBack() {\r\n vm.takebackEnabled = false;\r\n dataservice.AssetTakeBack(getSelectedAssetIds(grid), vm.TakeBackComment).then(function () {\r\n vm.TakeBackComment = '';\r\n log.successMsg('TakenBackSuccessfully');\r\n IssuedAssets();\r\n });\r\n }\r\n\r\n function IssueNewAsset() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n vm.chooseEnabled = false;\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras'), value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar'), value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''},\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', ac: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = '';\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n vm.newAsset.TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n console.log('vm.newAsset', vm.newAsset);\r\n if (!vm.newAsset.Megnevezes || vm.newAsset.Megnevezes.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n return;\r\n }\r\n if (vm.newAsset.TipusId == 0 && (!vm.newAsset.TipusNev || vm.newAsset.TipusNev.length == 0)) {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n return;\r\n }\r\n dataservice.AssetManager(vm.newAsset).then(function (response) {\r\n dataservice.AssetIssue(response.data.EszkozIdk, 0, vm.sportoloId, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets();\r\n });\r\n });\r\n }\r\n });\r\n angular.element('#AutoCompleteSwal').ejAutocomplete({\r\n dataSource: vm.types,\r\n change: function (arg) {\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = arg.value;\r\n },\r\n value: vm.newAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '
';\r\n arr.forEach(function (item) {\r\n HTMLtext += '
';\r\n HTMLtext += '';\r\n if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '
';\r\n // HTMLtext += ''\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '
';\r\n } else {\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '
';\r\n } else {\r\n HTMLtext += '
';\r\n }\r\n }\r\n HTMLtext += '
';\r\n });\r\n HTMLtext += '

';\r\n return HTMLtext;\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesAssets')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesAssets',\r\n config: {\r\n url: '/AthletesAssets',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.html',\r\n controller: 'AthletesAssetsController',\r\n controllerAs: 'vm',\r\n title: 'AthletesAssets'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesBodyStatController.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesBodyStat')\r\n .controller('AthletesBodyStatController', AthletesBodyStatController);\r\n\r\n function AthletesBodyStatController(log, logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.BodyStatText = gettextCatalog.getString('BodyStat');\r\n vm.cm = gettextCatalog.getString('Cm');\r\n vm.kg = gettextCatalog.getString('Kg');\r\n vm.bmi = gettextCatalog.getString('Bmi');\r\n vm.sportoloNev = '';\r\n vm.data = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('TESTMERET').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('athletesBodyStat');\r\n getAthletesBodyStat(vm.sportoloId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAthletesBodyStat(sportoloid) {\r\n vm.data = [];\r\n dataservice.getAthletesBodyStat(sportoloid)\r\n .then(function (data) {\r\n if (data.itemsList.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('NoBodyStatFoundOnMonthlyAttendanceReports'));\r\n $rootScope.back();\r\n }\r\n vm.data = data.itemsList;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'datum');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesBodyStat')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesBodyStat',\r\n config: {\r\n url: '/athletesBodyStat',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.html',\r\n controller: 'AthletesBodyStatController',\r\n controllerAs: 'vm',\r\n title: 'AthletesBodyStat',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesSportSpecificTestListController.$inject = [\"log\", \"dataservice\", \"authenticationService\", \"$q\", \"$state\", \"$scope\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList')\r\n .controller('AthletesSportSpecificTestListController', AthletesSportSpecificTestListController);\r\n\r\n function AthletesSportSpecificTestListController(log, dataservice, authenticationService, $q, $state, $scope, $rootScope, gettextCatalog, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = 0;\r\n vm.sportoloId = -1;\r\n vm.dateTo = new Date();\r\n vm.dateFrom = new Date(vm.dateTo.getFullYear() - 1, vm.dateTo.getMonth(), 1);\r\n\r\n // Grid's variables\r\n vm.pageSize = 20;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n headerText: 'Id',\r\n textAlign: 'center',\r\n isPrimaryKey: true,\r\n visible: false\r\n },\r\n {\r\n field: 'FelmeroNeve',\r\n headerText: gettextCatalog.getString('TestName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'SzakosztalyNev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }, {\r\n field: 'EdzoNev',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#sstlCoach'\r\n }, {\r\n field: 'KorcsoportNev',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }, {\r\n field: 'Edzoertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Datum'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }, {\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#sstlOpen',\r\n width: 80\r\n }];\r\n\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.goToTest = goToTest;\r\n vm.goToUser = goToUser;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MODFELH'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n vm.sportoloId = results[2]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[2]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthletesSportSpecificTestList');\r\n felmeroFejLista();\r\n vm.UJSPFELM = results[0];\r\n vm.MODFELH = results[1];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function felmeroFejLista() {\r\n return dataservice.felmeroFejLista(0, 0, 0, 0, vm.sportoloId, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function dateFromChange(arg) {\r\n vm.dateFrom = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function dateToChange(arg) {\r\n vm.dateTo = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function goToTest(SzakosztalyId, KorcsoportId, EdzoId, FelmeroElemFejId, FelmeroFejId) {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': SzakosztalyId},\r\n {'newSportSpecificTest.sectionId': SzakosztalyId},\r\n {'sportSpecificTest.ageGroupId': KorcsoportId},\r\n {'sportSpecificTest.coachId': EdzoId},\r\n {'sportSpecificTest.felmeroElemFejId': FelmeroElemFejId},\r\n {'sportSpecificTest.felmeroFejId': FelmeroFejId},\r\n {'sportSpecificTest.highlight': vm.sportoloId}\r\n ]);\r\n\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n\r\n function goToUser(EdzoId) {\r\n if (!vm.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesSportSpecificTestList',\r\n config: {\r\n url: '/athletesSportSpecificTestList',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.html',\r\n controller: 'AthletesSportSpecificTestListController',\r\n controllerAs: 'vm',\r\n title: 'athletesSportSpecificTestList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CompetitionResultsChartController.$inject = [\"dataservice\", \"log\", \"authenticationService\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.competitionResultsChart')\r\n .controller('CompetitionResultsChartController', CompetitionResultsChartController);\r\n\r\n function CompetitionResultsChartController(dataservice, log, authenticationService, $q, $rootScope, gettextCatalog, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Create variables\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.discipline = '0';\r\n vm.selectdateFrom = '';\r\n vm.selectdateTo = new Date();\r\n\r\n vm.data1 = [];\r\n vm.data2 = [];\r\n vm.data3 = [];\r\n vm.data4 = [];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.disciplineDataBound = disciplineDataBound;\r\n vm.disciplineSelect = disciplineSelect;\r\n vm.filter = filter;\r\n vm.selectdateFromChange = selectdateFromChange;\r\n vm.selectdateToChange = selectdateToChange;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMVERSEREDM')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n loadResults();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function loadResults() {\r\n var promises = [paramHelper.getParams([], ['athleteModify.sportoloId', 'athleteModify.sportoloNev'])];\r\n $q.all(promises).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('CompetitionResultsChart');\r\n getSections();\r\n\r\n angular.element('#Chart1').ejChart({\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n primaryYAxis: {\r\n title: {text: 'Értékelés'}\r\n },\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n series: [\r\n {\r\n points: vm.data1,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#358fcc',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#
Értékelés : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart1,\r\n title: {text: 'Értékelés'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart2').ejChart({\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n primaryYAxis: {\r\n title: {text: 'Pont'}\r\n },\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n series: [\r\n {\r\n points: vm.data2,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#628a00',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#
Pont : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart2,\r\n title: {text: 'Pont'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart3').ejChart({\r\n //Initializing Primary X Axis\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n\r\n //Initializing Primary Y Axis\r\n primaryYAxis: {\r\n title: {text: 'Távolság'}\r\n },\r\n\r\n //Initializing Common Properties for all the series\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n\r\n //Initializing Series\r\n series: [\r\n {\r\n points: vm.data3,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#dc6f00',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#
Távolság : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart3,\r\n title: {text: 'Távolság'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart4').ejChart({\r\n //Initializing Primary X Axis\r\n primaryXAxis: {\r\n title: {text: 'Eredmény'},\r\n labelFormat: 'mm:ss',\r\n valueType: 'datetime'\r\n },\r\n\r\n //Initializing Primary Y Axis\r\n primaryYAxis: {\r\n title: {text: 'Verseny'},\r\n rangePadding: 'additional'\r\n },\r\n\r\n //Initializing Common Properties for all the series\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n\r\n //Initializing Series\r\n series: [\r\n {\r\n points: vm.data4,\r\n name: 'Sales',\r\n type: 'line',\r\n isTransposed: true,\r\n fill: '#b81309',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#
Eredmény : #point.x#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart4,\r\n title: {text: 'Idő'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.resultChartSectionDropDown(vm.sportoloId, vm.ageGroupId, vm.discipline).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n angular.element('#section').ejDropDownList('selectItemByValue', 0);\r\n vm.sectionId = 0;\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.resultChartAgeGroupDropDown(vm.sportoloId, vm.sectionId, vm.discipline).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', 0);\r\n vm.ageGroupId = 0;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getDiscipline();\r\n }\r\n\r\n function getDiscipline() {\r\n dataservice.resultChartVersenyszamDropDown(vm.sportoloId, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.disciplineList = data.itemsList;\r\n });\r\n }\r\n\r\n function disciplineDataBound() {\r\n angular.element('#discipline').ejDropDownList('selectItemByValue', '0');\r\n vm.discipline = '0';\r\n }\r\n\r\n function disciplineSelect(args) {\r\n vm.discipline = args.value;\r\n }\r\n\r\n function selectdateFromChange(args) {\r\n vm.selectdateFrom = args.value;\r\n }\r\n\r\n function selectdateToChange(args) {\r\n vm.selectdateTo = args.value;\r\n }\r\n\r\n function loadChart1() {\r\n vm.chart1 = this;\r\n }\r\n\r\n function loadChart2() {\r\n vm.chart2 = this;\r\n }\r\n\r\n function loadChart3() {\r\n vm.chart3 = this;\r\n }\r\n\r\n function loadChart4() {\r\n vm.chart4 = this;\r\n }\r\n\r\n function filter() {\r\n dataservice.resultChart1(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data1 = data.itemsList;\r\n vm.chart1.model.series[0].points = vm.data1;\r\n if (vm.data1.length === 0) {\r\n vm.chart1.model.series[0].marker.visible = false;\r\n }\r\n vm.chart1.redraw();\r\n });\r\n dataservice.resultChart2(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data2 = data.itemsList;\r\n vm.chart2.model.series[0].points = vm.data2;\r\n if (vm.data2.length === 0) {\r\n vm.chart2.model.series[0].marker.visible = false;\r\n }\r\n vm.chart2.redraw();\r\n });\r\n dataservice.resultChart3(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data3 = data.itemsList;\r\n vm.chart3.model.series[0].points = vm.data3;\r\n if (vm.data3.length === 0) {\r\n vm.chart3.model.series[0].marker.visible = false;\r\n }\r\n vm.chart3.redraw();\r\n });\r\n dataservice.resultDateChart(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data4 = $filter('dateStringFilter2')(data.itemsList, 'x');\r\n vm.chart4.model.series[0].points = vm.data4;\r\n if (vm.data4.length === 0) {\r\n vm.chart4.model.series[0].marker.visible = false;\r\n }\r\n vm.chart4.redraw();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.competitionResultsChart')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.competitionResultsChart',\r\n config: {\r\n url: '/competitionResultsChart',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.html',\r\n controller: 'CompetitionResultsChartController',\r\n controllerAs: 'vm',\r\n title: 'CompetitionResultsChart'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteModifyDataSheetController.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"DOMAIN\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\", \"VIEW_DATA\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.dataSheet')\r\n .controller('AthleteModifyDataSheetController', AthleteModifyDataSheetController);\r\n\r\n function AthleteModifyDataSheetController(log, logger, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, VIEW_DATA, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.display = false;\r\n\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.selectedItems = [0, 1];\r\n vm.sexNum = 0;\r\n vm.sexList = [\r\n {text: gettextCatalog.getString('Man'), value: 1},\r\n {text: gettextCatalog.getString('Woman'), value: -1}\r\n ];\r\n vm.betterHandList = [\r\n {text: gettextCatalog.getString('Left'), value: 1},\r\n {text: gettextCatalog.getString('Right'), value: 2},\r\n {text: gettextCatalog.getString('Both'), value: 3}\r\n ];\r\n vm.betterFootList = [\r\n {text: gettextCatalog.getString('Left'), value: 1},\r\n {text: gettextCatalog.getString('Right'), value: 2},\r\n {text: gettextCatalog.getString('Both'), value: 3}\r\n ];\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('EducationFee'), value: -1},\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n\r\n vm.parentList = [];\r\n\r\n vm.FatherMotherList = [\r\n {value: 'mother', text: gettextCatalog.getString('Mother')},\r\n {value: 'father', text: gettextCatalog.getString('Father')},\r\n ];\r\n\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = Tagdíj = 1;\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee'); // Sportszolgáltatási díjas\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n vm.emptyResultText = gettextCatalog.getString('emptyResultText');\r\n vm.fatherNames = [];\r\n vm.motherNames = [];\r\n vm.feeOfEducationDataStart = undefined; // String\r\n vm.feeOfEducationDateOk = false;\r\n vm.sectionList = []; // recived section list\r\n vm.ageGroupList = []; // recived age group list\r\n vm.coachList = []; // for reentering\r\n vm.sectionListSwal = []; // recived section list\r\n vm.ageGroupListSwal = []; // recived age group list\r\n vm.coachListSwal = []; // for reentering\r\n vm.athleteDataSwalSzakosztaly = undefined;\r\n vm.athleteDataSwalKorcsoport = undefined;\r\n vm.athleteDataSwalEdzo = undefined;\r\n vm.secondAthleteDataSwalSzakosztaly = undefined;\r\n vm.secondAthleteDataSwalKorcsoport = undefined;\r\n vm.secondAthleteDataSwalEdzo = undefined;\r\n vm.allowEdit = true;\r\n\r\n vm.isSecondCoach = false;\r\n vm.isSecondCoachChange = false;\r\n vm.secondAgeGroupList = [];\r\n vm.secondSectionList = [];\r\n vm.secondCoachList = [];\r\n vm.secondAgeGroupListSwal = [];\r\n vm.secondSectionListSwal = [];\r\n vm.secondCoachListSwal = [];\r\n vm.selectedExitDate = undefined;\r\n vm.exitAthleteDateOk = false;\r\n // Athlete parameters\r\n vm.selectedAgeGroupText = undefined; // selected age group name\r\n vm.selectedAthlete = [];\r\n vm.athleteData = {\r\n Id: undefined,\r\n AdoSzam: undefined, // String\r\n Aktiv: undefined, // Boolean\r\n AktTestmagassag: undefined, // Int32?\r\n AktTestsuly: undefined, // Int32?\r\n Allampolgarsag: undefined, // String\r\n AnyjaLeanykoriNeve: undefined, // String\r\n AnyjaNeve: undefined, // String\r\n AnyjaTestmagassaga: undefined, // Int32?\r\n ApjaTestmagassaga: undefined, // Int32\r\n BefOktdij: undefined, // Decimal\r\n BefTagdij: undefined, // Decimal\r\n DSITagsagKezdete: undefined, // DateTime\r\n EddigiEdzoi: undefined, // String\r\n EddigiSpEgyesuletei: undefined, // String\r\n EdzesreJarasKezdete: undefined, // DateTime\r\n Egyenleg: undefined, // Decimal\r\n Elerhetoseg: undefined, // String\r\n EmailCim: undefined, // String\r\n EvzarasOsszege: undefined, // Decimal?\r\n FajiEredet: undefined, // String\r\n Fenykep: undefined, // Byte[]\r\n FenykepUt: undefined, // String\r\n fileData: null,\r\n FurdokopenyDb: undefined, // String\r\n FurdokopenyErtek: undefined, // String\r\n FurdokopenyMerete: undefined, // String\r\n GyermekkoriSport: undefined, // String\r\n IdSzakosztaly: undefined, // Int32\r\n IskolaEvfolyam: undefined, // String\r\n IskolaHazszam: undefined, // String\r\n IskolaIgazgatoNeve: undefined, // String\r\n IskolaIrSzam: undefined, // String\r\n IskolaNeve: undefined, // String\r\n IskolaOsztaly: undefined, // String\r\n IskolaUtca: undefined, // String\r\n IskolaVaros: undefined, // String\r\n JelenlegiEdzo: undefined, // int\r\n KabatDb: undefined, // String\r\n KabatErtek: undefined, // String\r\n KabatMerete: undefined, // String\r\n KilepesDatuma: undefined, // DateTime\r\n KilepesIndoka: undefined, // String\r\n Korcsoport: undefined, // Int32\r\n LakcimHazszam: undefined, // String\r\n LakcimIrSzam: undefined, // String\r\n LakcimMegye: undefined, // String\r\n LakcimUtca: undefined, // String\r\n LakcimVaros: undefined, // String\r\n LeanykoriNev: undefined, // String\r\n MasodlagosSzakosztaly: undefined, // Int32?\r\n MasodlagosSzakosztalyEdzoId: undefined,\r\n MasodlagosKorcsoport: undefined,\r\n Megjegyzes: undefined, // String\r\n MelegitoDb: undefined, // String\r\n MelegitoErtek: undefined, // String\r\n MelegitoMerete: undefined, // String\r\n Neme: undefined, // String\r\n Nev: undefined, // String\r\n OsztalyFonokNeve: undefined, // String\r\n PancelNadragDb: undefined, // String\r\n PancelNadragErtek: undefined, // String\r\n PancelNadragMerete: undefined, // StringCipo\r\n UszoNadragMerete: undefined, // StringCipo\r\n PapucsDb: undefined, // String\r\n PapucsErte: undefined, // String\r\n PapucsMerete: undefined, // String\r\n CipoDb: undefined, // String\r\n CipoErtek: undefined, // String\r\n CipoMerete: undefined, // String\r\n PoloDb: undefined, // String\r\n PoloErtek: undefined, // String\r\n PoloMerete: undefined, // String\r\n PubertasVege: undefined, // DateTime\r\n RegisztraciosSzam: undefined, // String\r\n SortDb: undefined, // String\r\n SortErtek: undefined, // String\r\n SortMerete: undefined, // String\r\n SportoloiMultAnya: undefined, // String\r\n SportoloiMultApa: undefined, // String\r\n SportolokID: undefined, // Int32\r\n SzakosztalyNev: undefined, // String\r\n SzemIgSzam: undefined, // String\r\n SzuletesiHelyOrszag: undefined,\r\n SzuletesiHelyVaros: undefined, // String\r\n SzuletesiIdo: undefined, // DateTime\r\n Szulo1Elerhetosege: undefined, // String\r\n Szulo2Elerhetosege: undefined, // String\r\n SzulokFoglalkozasa: undefined, // String\r\n SzuloNeve: undefined, // String\r\n SzunideiElfoglaltsag: undefined, // String\r\n Tagdijas: undefined, // Boolean\r\n TAJSzam: undefined, // String\r\n Testmagassag: undefined, // Int32?\r\n TestneveloElerhetosege: undefined, // String\r\n TestneveloNeve: undefined, // String\r\n Testsuly: undefined, // Int32?\r\n UgyesebbKez: undefined, // String\r\n UgyesebbLabT: undefined, // String\r\n UtlevelSzam: undefined, // String\r\n UtolsoFrissites: undefined, // DateTime\r\n ValasztottSportagak: undefined, // String\r\n VersSportKezd: undefined, // DateTime\r\n VisszalepesDatuma: undefined, // DateTime?\r\n };\r\n vm.sportoloId = -1; // for sql quetion\r\n // This value show when start the new Fee of education mode\r\n vm.feeOfEducationDate = undefined;\r\n // Current coach name in text by Id\r\n vm.currentCoachNameInText = undefined;\r\n // Grid's details\r\n vm.schoolGridSelectedRowData = {};\r\n\r\n vm.columnsUsersOfAthlete = [\r\n {field: 'UserName', headerText: gettextCatalog.getString('UserName'), textAlign: 'center', width: 100},\r\n {\r\n field: 'UserTeljesNev',\r\n headerText: gettextCatalog.getString('UserFullName'),\r\n textAlign: 'center',\r\n template: '#atmotemplateDataColumn4',\r\n width: 150\r\n },\r\n {field: 'szerep', headerText: gettextCatalog.getString('Role'), textAlign: 'center', width: 80},\r\n {\r\n headerText: gettextCatalog.getString('unlinkUserFromAthlete'),\r\n textAlign: 'center',\r\n template: '#atmotemplateDataColumn5',\r\n width: 150\r\n }\r\n ];\r\n\r\n vm.columnsSchool = [\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), width: 200, textAlign: 'center'},\r\n {field: 'IskolaIrSzam', headerText: gettextCatalog.getString('SchoolZipCode'), width: 100, textAlign: 'center'},\r\n {field: 'IskolaVaros', headerText: gettextCatalog.getString('SchoolCity'), width: 75, textAlign: 'center'},\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('SchoolStreet'), width: 100, textAlign: 'center'},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('SchoolNumber'), width: 75, textAlign: 'center'},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('SchoolDirectorName'), width: 150, textAlign: 'center'}\r\n ];\r\n // Grid columnsAthleteMoveStory\r\n\r\n vm.columnsAthleteMoveStory = [\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n width: 100,\r\n template: '#atmotemplateDataColumn1'\r\n },\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), width: 100, textAlign: 'center'},\r\n {field: 'Korcsoport', headerText: gettextCatalog.getString('AgeGroup'), width: 100, textAlign: 'center'},\r\n {field: 'Felvitel', headerText: gettextCatalog.getString('StartTime'), width: 100, textAlign: 'center'},\r\n {field: 'IdoszakVege', headerText: gettextCatalog.getString('EndTime'), width: 100, textAlign: 'center'},\r\n {\r\n field: 'Belepes',\r\n headerText: gettextCatalog.getString('Enter'),\r\n textAlign: 'center',\r\n width: 70,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {\r\n field: 'Kilepes',\r\n headerText: gettextCatalog.getString('GoOut'),\r\n textAlign: 'center',\r\n width: 70,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n // Public functions\r\n // AthleteModify functions\r\n // Drop Down List function\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.getSections = getSections;\r\n\r\n // Second\r\n vm.secondSectionSelect = secondSectionSelect;\r\n vm.secondAgeGroupSelect = secondAgeGroupSelect;\r\n vm.secondAgeGroupDataBound = secondAgeGroupDataBound;\r\n vm.changeSecondAgeGroup = changeSecondAgeGroup;\r\n vm.secondCoachDropDownListDataBound = secondCoachDropDownListDataBound;\r\n vm.selectSecondCoachBtn = selectSecondCoachBtn;\r\n vm.exitingSecondSectionBtn = exitingSecondSectionBtn;\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // Top menu buttons functions\r\n vm.anthropometry = anthropometry; // Public\r\n //vm.enteringAthlete = enteringAthlete; // public\r\n vm.generateRegNum = generateRegNum;\r\n\r\n // Image cropper variables\r\n vm.deleteImg = deleteImg; // Public, delete the photo from user profile 999 Hofi\r\n\r\n vm.save = save;\r\n vm.cropper = {}; // Ricsi\r\n vm.cropper.sourceImage = null; // Ricsi\r\n vm.cropper.croppedImage = null; // Ricsi\r\n vm.bounds = {}; // Ricsi\r\n vm.bounds.left = 0; // Ricsi\r\n vm.bounds.right = 0; // Ricsi\r\n vm.bounds.top = 0; // Ricsi\r\n vm.bounds.bottom = 0; // Ricsi\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle'); // Ricsi\r\n\r\n vm.openCropDialog = openCropDialog; // Ricsi\r\n vm.doneCropDialog = doneCropDialog; // Ricsi\r\n vm.closeCropDialog = closeCropDialog; // Ricsi\r\n // Change Age Group\r\n vm.changeAgeGroup = changeAgeGroup;\r\n // sex (gende) dropdown public function\r\n vm.sexSelect = sexSelect;\r\n // Height dropdown public function\r\n vm.changeHeight = changeHeight;\r\n // Weight dropdown public function\r\n vm.changeWeight = changeWeight;\r\n // better Hand dropdown public function\r\n vm.betterHandSelect = betterHandSelect;\r\n // better Foot dropdown public function\r\n vm.betterFootSelect = betterFootSelect;\r\n // Social security number required\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n //\r\n vm.changeFeeOfEducationBtn = changeFeeOfEducationBtn;\r\n // select coach\r\n vm.selectCoachBtn = selectCoachBtn;\r\n // Select Schools\r\n vm.selectSchools = selectSchools;\r\n // Grid selcted row\r\n vm.schoolGridSelectedRow = schoolGridSelectedRow;\r\n vm.coachList = [];\r\n vm.clearSecondSection = clearSecondSection;\r\n vm.clearSecondAgeGroup = clearSecondAgeGroup;\r\n vm.clearSecondCoach = clearSecondCoach;\r\n vm.openCoach = openCoach;\r\n vm.createLoginForAthlete = createLoginForAthlete;\r\n vm.createLoginForParents = createLoginForParents;\r\n vm.createLoginForExistingParent = createLoginForExistingParent;\r\n\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.unlinkUserFromAthlete = unlinkUserFromAthlete;\r\n\r\n // School Grid datasource initial\r\n vm.displayButtons = true;\r\n vm.coachListGridData = [];\r\n vm.tajkeres = true;\r\n vm.ADMIN = false;\r\n vm.UJEDZVALT = false;\r\n vm.MODFELH = false;\r\n vm.SPORTKILEP = false;\r\n vm.SPORTKILEPTET = false;\r\n vm.SPORTBELEPTET = false;\r\n vm.ModFizetesMod = false;\r\n vm.SPORTOLO = false;\r\n vm.SZULO = false;\r\n vm.EGESZSMEGT = false;\r\n vm.aktiv = true;\r\n vm.RUHA = {\r\n CIPO: false,\r\n PAPUCS: false,\r\n MELEGITO: false,\r\n FURDOKOPENY: false,\r\n KABAT: false,\r\n PANCELNADRAG: false,\r\n POLO: false,\r\n SORT: false,\r\n USZONADRAG: false\r\n };\r\n\r\n vm.reportParametersSchoolRequesting = {};\r\n vm.SportoloCsoportok = [];\r\n vm.SzuloCsoportok = [];\r\n\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n vm.schoolNameChanged = schoolNameChanged;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsSchool,\r\n rowSelected: schoolGridSelectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n var gridUsersOfAthlete = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsUsersOfAthlete,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridUsersOfAthlete.appendTo('#GridUsersOfAthlete');\r\n\r\n var grid123 = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthleteMoveStory,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid123.appendTo('#Grid123');\r\n\r\n // Activate page\r\n activate();\r\n $scope.$on('$viewContentLoaded', function () {\r\n // Set checkbox\r\n if (vm.sportoloId <= 0) {\r\n angular.element('#active').ejCheckBox({checked: true});\r\n }\r\n });\r\n\r\n function generateRegNum() {\r\n dataservice.GenerateRegNum().then(function (data) {\r\n vm.athleteData.RegisztraciosSzam = data.data;\r\n });\r\n }\r\n\r\n function getParentUserGroups() {\r\n return dataservice.SzuloCsoportokDropDownList().then(function (data) {\r\n vm.SzuloCsoportok = data.itemsList;\r\n });\r\n }\r\n\r\n function getAthleteUserGroups() {\r\n return dataservice.SportoloCsoportokDropDownList().then(function (data) {\r\n vm.SportoloCsoportok = data.itemsList;\r\n });\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId'], ['athleteModify.sportoloNev', 'selectedSectionId', 'selectedAgeGroupId', 'selectedActiveOrInactive', 'selectedPage', 'selectedRow']),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('ModFizetesMod'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('KMVERSEREDM'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('MEGTANTFELM'),\r\n authenticationService.getRight('MEGTKPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n authenticationService.getRight('PSYCHO'),\r\n authenticationService.getRight('KIKERONYOMT'),\r\n authenticationService.getRight('TESTMERET'),\r\n authenticationService.getRight('MEGTSPORTBEF'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('LOG'),\r\n authenticationService.getRight('DOKLIST'),\r\n authenticationService.getRight('UJFELH'),\r\n getSystemSettings('NINCSOKTDIJ')\r\n ]).then(function (results) {\r\n vm.ADMIN = results[1];\r\n vm.UJEDZVALT = results[2];\r\n vm.MODFELH = results[3];\r\n vm.SPORTKILEP = results[4];\r\n vm.ModFizetesMod = results[5];\r\n vm.MODSPORTOLO = results[6];\r\n vm.SPORTOLO = results[7];\r\n vm.SZULO = results[8];\r\n vm.EGESZSMEGT = results[9];\r\n vm.KMVERSEREDM = results[10];\r\n vm.MEGTHAVIJEL = results[11];\r\n vm.MODTAGDBEALL = results[12];\r\n vm.MEGTANTFELM = results[13];\r\n vm.MEGTKPFELM = results[14];\r\n vm.MEGTSPFELM = results[15];\r\n vm.PSYCHO = results[16];\r\n vm.KIKERONYOMT = results[17];\r\n vm.TESTMERET = results[18];\r\n vm.MEGTSPORTBEF = results[19];\r\n vm.MODKOROKEZ = results[20];\r\n vm.LOG = results[21];\r\n vm.DOKLIST = results[22];\r\n vm.UJFELH = results[23];\r\n vm.NINCSOKTDIJ = results[24];\r\n vm.photoUrl = vm.noImgUrl;\r\n\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n\r\n var promises = [getSystemSettings('TAJKOTELEZO'), getSystemSettings('SNYSZKOTELEZO'), getSystemSettings('SPORTMINKOTELEZO')];\r\n $q.all(promises).then(function (results) {\r\n vm.socialSecurityNumberRequiredValue = results[0];\r\n vm.athleteRegistrationNumberRequiredValue = results[1];\r\n vm.athleteRequiredMinimumDatas = results[2];\r\n });\r\n\r\n dataservice.getAthleteData(vm.sportoloId).then(function (data) {\r\n vm.athleteData = data;\r\n RefreshClothes();\r\n vm.sportoloNev = vm.athleteData.Nev;\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('DataSheet');\r\n init();\r\n });\r\n });\r\n }\r\n\r\n function RefreshClothes() {\r\n $timeout(function () {\r\n dataservice.SzakosztalyRuhai(vm.athleteData.IdSzakosztaly, vm.athleteData.MasodlagosSzakosztaly).then(function (ruhaResponse) {\r\n vm.RUHA = ruhaResponse.data;\r\n });\r\n }, 100);\r\n }\r\n\r\n function init() {\r\n initAthleteDatas();\r\n getParentUserGroups();\r\n getAthleteUserGroups();\r\n getParentsList();\r\n getUsersBelongingToAthlete(vm.athleteData.SportolokID);\r\n getParentNames();\r\n getAthleteMoveStory(vm.athleteData.SportolokID);\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid, szerep) {\r\n var promises = [authenticationService.getRight('MODFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n if (szerep == 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink and delete the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinkedAndDeleted'));\r\n activate();\r\n });\r\n }\r\n });\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinked'));\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n function getParentsList() {\r\n dataservice.athleteAndParentDropDownList('parent')\r\n .then(function (data) {\r\n vm.parentList = data.itemsList;\r\n });\r\n }\r\n\r\n vm.parentDataSwal = undefined;\r\n\r\n function parentSwalDatabound() {\r\n if (vm.parentList.length === 1) {\r\n angular.element('#parentDropDownSwal').ejDropDownList('selectItemByValue', vm.parentList[0].value);\r\n } else {\r\n angular.element('#parentDropDownSwal').ejDropDownList('selectItemByValue', vm.parentDataSwal);\r\n }\r\n }\r\n\r\n function selectParentDropDownSwal(arg) {\r\n vm.parentDataSwal = arg.value;\r\n }\r\n\r\n function createLoginForExistingParent() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '
' +\r\n '' +\r\n '


';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForExistingParent'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.assignAthleteToParentUser(vm.parentDataSwal, vm.athleteData.SportolokID, vm.selectedSzuloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('AthleteAssignedToUserSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#parentDropDownSwal').ejDropDownList({\r\n dataSource: vm.parentList,\r\n select: selectParentDropDownSwal,\r\n value: vm.parentDataSwal,\r\n databound: parentSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.fathermotherDataSwal = undefined;\r\n\r\n function fatherMotherSwalDatabound() {\r\n if (vm.FatherMotherList.length === 1) {\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList('selectItemByValue', vm.FatherMotherList[0].value);\r\n } else {\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList('selectItemByValue', vm.fathermotherDataSwal);\r\n }\r\n }\r\n\r\n function selectFatherMotherDropDownSwal(arg) {\r\n vm.fathermotherDataSwal = arg.value;\r\n }\r\n\r\n vm.selectedSzuloCsoport = undefined;\r\n\r\n function selectParentGroupDropDownSwal(arg) {\r\n vm.selectedSzuloCsoport = arg.value;\r\n }\r\n\r\n function createLoginForParents() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '


' +\r\n '
' +\r\n '


' +\r\n '
' +\r\n '
' +\r\n '
';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForParents'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n var parentUserName = document.getElementById('parentUserName').value;\r\n var parentPassword = document.getElementById('parentPassword').value;\r\n var parentPasswordAgain = document.getElementById('parentPasswordAgain').value;\r\n if (!(vm.fathermotherDataSwal == 'mother' || vm.fathermotherDataSwal == 'father')) {\r\n swal.showValidationError(gettextCatalog.getString('ChooseWhichParentRegisters'));\r\n }\r\n if (!parentPassword || parentPassword.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n }\r\n if (parentPassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtMost10CharactersLong'));\r\n }\r\n if (parentPassword !== parentPasswordAgain) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordFieldsMustMatch'));\r\n }\r\n if (!parentUserName || parentUserName.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtLeast5CharactersLong'));\r\n }\r\n if (parentUserName.length > 30) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtMost10CharactersLong'));\r\n }\r\n if (!(vm.selectedSzuloCsoport > 0)) {\r\n swal.showValidationError(gettextCatalog.getString('SelectParentUserGroup'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n var parentUserName = document.getElementById('parentUserName').value;\r\n var parentPassword = document.getElementById('parentPassword').value;\r\n dataservice.createLoginForParent(parentUserName, parentPassword, vm.fathermotherDataSwal, vm.athleteData.SportolokID, vm.selectedSzuloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('UserCreatedSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#parentGroupsDropDownSwal').ejDropDownList({\r\n dataSource: vm.SzuloCsoportok,\r\n value: vm.selectedSzuloCsoport,\r\n select: selectParentGroupDropDownSwal,\r\n width: '100%'\r\n });\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList({\r\n dataSource: vm.FatherMotherList,\r\n select: selectFatherMotherDropDownSwal,\r\n value: vm.fathermotherDataSwal,\r\n databound: fatherMotherSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.selectedSportoloCsoport = undefined;\r\n\r\n function selectAthleteGroupDropDownSwal(arg) {\r\n vm.selectedSportoloCsoport = arg.value;\r\n }\r\n\r\n function createLoginForAthlete() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext =\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
' +\r\n '
';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForAthlete'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n var athleteUserName = document.getElementById('athleteUserName').value;\r\n var athletePassword = document.getElementById('athletePassword').value;\r\n var athletePasswordAgain = document.getElementById('athletePasswordAgain').value;\r\n var preConfOk = true;\r\n return new Promise(function (resolve) {\r\n if (!athletePassword || athletePassword.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athletePassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtMost10CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athletePassword != athletePasswordAgain) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordFieldsMustMatch'));\r\n preConfOk = false;\r\n }\r\n if (!athleteUserName || athleteUserName.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtLeast5CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athleteUserName.length > 30) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtMost10CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (!vm.selectedSportoloCsoport) {\r\n swal.showValidationError(gettextCatalog.getString('SelectAthleteUserGroup'));\r\n preConfOk = false;\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n var athleteUserName = document.getElementById('athleteUserName').value;\r\n var athletePassword = document.getElementById('athletePassword').value;\r\n dataservice.createLoginForAthlete(athleteUserName, athletePassword, vm.athleteData.SportolokID, vm.selectedSportoloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('UserCreatedSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#athleteGroupsDropDownSwal').ejDropDownList({\r\n dataSource: vm.SportoloCsoportok,\r\n value: vm.selectedSportoloCsoport,\r\n select: selectAthleteGroupDropDownSwal,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.sexDatabound = function () {\r\n $timeout(function () {\r\n $('#gender').ejDropDownList('selectItemByValue', vm.sexNum);\r\n }, 100);\r\n };\r\n\r\n function initAthleteDatas() {\r\n if (!vm.athleteData.currentUserCanModifyAthlete) {\r\n vm.allowEdit = false;\r\n log.successMsg(gettextCatalog.getString('AthleteDatasheetIsReadyOnly'));\r\n } else {\r\n vm.allowEdit = true;\r\n }\r\n if (vm.athleteData.Aktiv) {\r\n vm.SPORTBELEPTET = false;\r\n vm.SPORTKILEPTET = true;\r\n vm.displayButtons = true;\r\n } else {\r\n vm.SPORTBELEPTET = true;\r\n vm.SPORTKILEPTET = false;\r\n vm.displayButtons = false;\r\n }\r\n\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) {\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee');\r\n } else {\r\n vm.feeOfEducationValue = gettextCatalog.getString('EducationFee');\r\n }\r\n\r\n if (vm.athleteData.FerfiB) {\r\n vm.sexNum = 1;\r\n } else {\r\n vm.sexNum = -1;\r\n }\r\n //angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', vm.feeOfEducationValue);\r\n $timeout(function () {\r\n if (vm.athleteData.MasodlagosSzakosztalyEdzoId > 0) {\r\n vm.isSecondCoach = true;\r\n if (vm.UJEDZVALT) {\r\n vm.isSecondCoachChange = true;\r\n }\r\n } else {\r\n vm.isSecondCoach = false;\r\n vm.isSecondCoachChange = false;\r\n getSecondSections(); // show dropDown and get datas\r\n }\r\n if (vm.athleteData.FenykepUt === 'avatar_2x.png') {\r\n vm.photoUrl = vm.noImgUrl;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.athleteData.FenykepUt;\r\n }\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function save() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO || vm.SZULO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.athleteData.UgyesebbLab = vm.athleteData.UgyesebbLabT;\r\n vm.athleteData.UgyesebbKez = vm.athleteData.UgyesebbKezT;\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n angular.element('#accordion').ejAccordion('expandAll');\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n vm.athleteData.TAJSzam = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n modifyAthlete();\r\n }\r\n }\r\n\r\n function modifyAthlete() {\r\n var parameters = {\r\n naptol: vm.feeOfEducationDataStart,\r\n kivSportolo: vm.athleteData.SportolokID,\r\n csakUjak: 0,\r\n fizModValtas: 1\r\n };\r\n\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO || vm.SZULO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.athleteData.FenykepUt = angular.element('#fileName').val();\r\n vm.athleteData.Fenykep = vm.cropper.croppedImage;\r\n } else if (vm.photoUrl === vm.noImg) {\r\n vm.athleteData.fileName = 'avatar_2x.png';\r\n vm.athleteData.Fenykep = null;\r\n } else {\r\n vm.fileName = vm.athleteData.FenykepUt;\r\n }\r\n\r\n var dsiTime = new Date(vm.athleteData.DSITagsagKezdete);\r\n\r\n if (dsiTime.getTime() > new Date()) {\r\n swal({\r\n title: gettextCatalog.getString('DateError'),\r\n text: gettextCatalog.getString('TheMemberOfDSIDateLateThenNow'),\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n if (vm.athleteData.MasodlagosSzakosztaly > 0) {\r\n if (vm.athleteData.MasodlagosKorcsoport > 0) {\r\n if (!(vm.athleteData.MasodlagosSzakosztalyEdzoId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n }\r\n dataservice.modifyAthlete(vm.athleteData)\r\n .then(function (retval) {\r\n if (retval.retValue) {\r\n if (parameters.naptol) {\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n }\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: gettextCatalog.getString('SaveAthleteSuccess'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n if (!(vm.SPORTOLO || vm.SZULO)) {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $rootScope.back();\r\n }\r\n }\r\n });\r\n } else {\r\n var message = gettextCatalog.getString(retval.message) + ' ' + gettextCatalog.getString(retval.error);\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: message,\r\n type: 'error',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.athleteData.Neme == 'Férfi' ? 'male' : 'female';\r\n vm.athleteData.fileName = null;\r\n vm.fileName = null;\r\n vm.athleteData.FenykepUt = 'ath_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.athleteData.FenykepUt;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.athleteData.JelenlegiEdzo)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n }\r\n }\r\n\r\n function sectionSelect() {\r\n getAgeGroups();\r\n }\r\n\r\n function getSecondSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // for (var i = 0; i < data.itemsList.length; i++) {\r\n // if (data.itemsList[i].value === vm.athleteData.IdSzakosztaly) {\r\n // data.itemsList.splice(i, 1);\r\n // }\r\n //\r\n // }\r\n vm.secondSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondSectionSelect(selectedSection) {\r\n vm.athleteData.MasodlagosSzakosztaly = selectedSection.value;\r\n getSecondAgeGroups();\r\n RefreshClothes();\r\n }\r\n\r\n function getSecondCoacheList() {\r\n return dataservice.coachDropDownList(vm.athleteData.MasodlagosSzakosztaly, vm.athleteData.MasodlagosKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondCoachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosSzakosztalyEdzoId);\r\n }\r\n }\r\n\r\n function selectSecondCoachBtn() {\r\n vm.athleteData.ModifyCoach = 2;\r\n paramHelper.setParams([\r\n {'athleteTransfer.athleteData': vm.athleteData},\r\n {'previousState': 'athletes.athletesManagement.athleteModify.dataSheet'}\r\n ]);\r\n $state.go('settings.athleteTransfer');\r\n }\r\n\r\n function changeSecondAgeGroup() {\r\n paramHelper.setParams([{\r\n 'ageGroupChange.athleteData': vm.athleteData,\r\n 'ageGroupChange.which': 2\r\n }]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getSecondAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.MasodlagosSzakosztaly)\r\n .then(function (data) {\r\n vm.secondAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondAgeGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupSelect(args) {\r\n vm.athleteData.MasodlagosKorcsoport = args.value;\r\n getSecondCoacheList();\r\n }\r\n\r\n function changeAgeGroup() {\r\n paramHelper.setParams([{\r\n 'ageGroupChange.athleteData': vm.athleteData,\r\n 'ageGroupChange.which': 1,\r\n 'ageGroupChange.backPath': 'athletesManagement.athleteModify'\r\n }]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.IdSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroupId = args.value;\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.IdSzakosztaly) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n\r\n function selectCoachBtn() {\r\n vm.athleteData.ModifyCoach = 1;\r\n paramHelper.setParams([\r\n {'athleteTransfer.athleteData': vm.athleteData},\r\n {'previousState': 'athletes.athletesManagement.athleteModify.dataSheet'}\r\n ]);\r\n $state.go('settings.athleteTransfer');\r\n }\r\n\r\n function sexSelect(arg) {\r\n vm.athleteData.FerfiB = arg.value === 1;\r\n if (vm.athleteData.FerfiB) {\r\n vm.athleteData.Neme = 'Férfi';\r\n } else {\r\n vm.athleteData.Neme = 'Nő';\r\n }\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.athleteData.Testmagassag = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.athleteData.Testsuly = args.value;\r\n }\r\n\r\n function betterHandSelect(arg) {\r\n vm.athleteData.UgyesebbKezT = arg.value;\r\n vm.athleteData.UgyesebbKez = arg.selectedText;\r\n }\r\n\r\n function betterFootSelect(arg) {\r\n vm.athleteData.UgyesebbLabT = arg.value;\r\n vm.athleteData.UgyesebbLab = arg.selectedText;\r\n }\r\n\r\n function changeFeeOfEducationBtn() {\r\n if (!vm.ModFizetesMod) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.NINCSOKTDIJ && vm.athleteData.Tagdijas) {\r\n log.errorMsg(gettextCatalog.getString('CannotChangeFromSportServiceFeeToEducationFee'));\r\n return;\r\n }\r\n vm.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n var HTMLarr = [];\r\n HTMLarr[1] = '


';\r\n var HTMLtext = HTMLarr.join('');\r\n swal({\r\n title: gettextCatalog.getString('ReallyDoYouchangeThefeeMode'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Change'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function preConfirm() {\r\n vm.feeOfEducationDataStart = angular.element('#datepick').data('ejDatePicker').getValue();\r\n if (!vm.feeOfEducationDateOk) {\r\n swal.showValidationError(gettextCatalog.getString('SelectDateError'));\r\n return false;\r\n }\r\n return true;\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) { // Ha Tagdijas másnéven Sportszolg dijas\r\n vm.athleteData.Tagdijas = false;\r\n vm.feeOfEducationValue = gettextCatalog.getString('EducationFee'); // Csere Okt díjasra\r\n } else { // sportoszolg díjas\r\n vm.athleteData.Tagdijas = true;\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee'); // csere Tagdijasra, Sportszolg dijasasra\r\n }\r\n $scope.$apply();\r\n // The date value modified to valid value, soh info about it\r\n return true; // bind to swal 'Modified'\r\n } else {\r\n swal(gettextCatalog.getString('notChangedPayMode') + ' ' + getTagDijText());\r\n }\r\n }, function () {\r\n });\r\n // Set DatePicker\r\n var now = new Date();\r\n var current;\r\n if (now.getMonth() == 11) {\r\n current = new Date(now.getFullYear() + 1, 0, 1);\r\n } else {\r\n current = new Date(now.getFullYear(), now.getMonth() + 1, 1);\r\n }\r\n vm.feeOfEducationDateOk = true;\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: function (args) {\r\n // Get current date\r\n var currentDate = new Date();\r\n var selectedDate = new Date(args.value);\r\n if (selectedDate.getFullYear() < currentDate.getFullYear()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else if (selectedDate.getMonth() <= currentDate.getMonth()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else if (selectedDate.getDate() > currentDate.getDate()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else {\r\n // Ok, the date is correct\r\n vm.feeOfEducationDateOk = true;\r\n vm.feeOfEducationDate = new Date(args.value);\r\n vm.feeOfEducationDate = vm.feeOfEducationDate.toLocaleDateString().replace(/\\s/g, '').replace(/\\./g, '-').slice(0, -1);\r\n }\r\n },\r\n value: current\r\n });\r\n\r\n // Get the current selected text\r\n function getTagDijText() {\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) {\r\n return gettextCatalog.getString('SportServiceFee');\r\n } else {\r\n return gettextCatalog.getString('EducationFee');\r\n }\r\n }\r\n }\r\n\r\n function selectSchools() {\r\n if (vm.visibleSchooSelectlGrid) {\r\n angular.element('#hidedContent').css('height', '0px');\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '100%');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function schoolGridSelectedRow(args) {\r\n vm.schoolGridSelectedRowData = args.data;\r\n vm.athleteData.IskolaEvfolyam = vm.schoolGridSelectedRowData.IskolaEvfolyam; // String\r\n vm.athleteData.IskolaNeve = vm.schoolGridSelectedRowData.IskolaNeve; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaVaros = vm.schoolGridSelectedRowData.IskolaVaros; // String\r\n vm.athleteData.IskolaUtca = vm.schoolGridSelectedRowData.IskolaUtca; // String\r\n vm.athleteData.IskolaHazszam = vm.schoolGridSelectedRowData.IskolaHazszam; // String\r\n vm.athleteData.IskolaOsztaly = vm.schoolGridSelectedRowData.IskolaOsztaly; // String\r\n vm.athleteData.IskolaIgazgatoNeve = vm.schoolGridSelectedRowData.IskolaIgazgatoNeve; // String\r\n vm.athleteData.TestneveloNeve = '';\r\n vm.athleteData.TestneveloElerhetosege = '';\r\n vm.athleteData.TestneveloEmail = '';\r\n vm.athleteData.OsztalyFonokNeve = '';\r\n vm.athleteData.OfTel = '';\r\n vm.athleteData.OfEmail = '';\r\n $scope.$apply();\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '0px');\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function anthropometry() {\r\n if (!vm.MEGTANTFELM) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([{'anthropometry.sportoloId': vm.athleteData.SportolokID}]);\r\n $state.go('athletes.athletesManagement.anthropometry');\r\n }\r\n }\r\n\r\n function saveExitAthletes(firstSection) {\r\n vm.datas = {};\r\n vm.athletesId = [];\r\n vm.athletesId.push(vm.athleteData.SportolokID);\r\n vm.datas.athletesId = vm.athletesId;\r\n vm.datas.selectedExitDate = vm.selectedExitDate;\r\n if (angular.isUndefined(vm.noteExitText)) {\r\n vm.noteExitText = '----';\r\n }\r\n vm.datas.noteExitText = vm.noteExitText;\r\n vm.datas.firstSection = firstSection;\r\n dataservice.saveExitAthletes(vm.datas)\r\n .then(function (answer) {\r\n // swal() kiírni az eredményt\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok'\r\n });\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n /*\r\n if (answer.value) {\r\n swal(gettextCatalog.getString('SuccesfulExitAthleteResult'), gettextCatalog.getString('SuccesfulExitAthlete'), 'success');\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $state.go('athletes.athletesManagement.athletesList');\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('SuccesfulExitAthleteResult'),\r\n text: gettextCatalog.getString('FinallyExitAthlete') + ': ' + answer.message,\r\n type: 'warning',\r\n confirmButtonText: 'Ok'\r\n });\r\n }\r\n */\r\n $state.reload();\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n return dataservice.getSystemSettings(arg).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function getUsersBelongingToAthlete(sportoloid) {\r\n return dataservice.getUsersBelongingToAthlete(sportoloid).then(function (response) {\r\n gridUsersOfAthlete.dataSource = response.itemsList;\r\n gridUsersOfAthlete.refresh();\r\n });\r\n }\r\n\r\n function getAthleteMoveStory(id) {\r\n return dataservice.getAthleteMoveStory(id).then(function (response) {\r\n vm.coachListGridData = response.itemsList;\r\n vm.coachListGridData = $filter('dateStringFilter')(vm.coachListGridData, 'Felvitel');\r\n vm.coachListGridData = $filter('dateStringFilter')(vm.coachListGridData, 'IdoszakVege');\r\n grid123.dataSource = vm.coachListGridData;\r\n });\r\n }\r\n\r\n function clearSecondSection() {\r\n vm.athleteData.MasodlagosSzakosztaly = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.secondAgeGroupList = [];\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondSectionDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondAgeGroup() {\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondAgeGroupDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondCoach() {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n $('#secondCoachNameDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function exitingSecondSectionBtn() {\r\n if (!vm.allowEdit) {\r\n swal({\r\n title: gettextCatalog.getString('AthleteDatasheetIsReadyOnly'),\r\n type: 'warning',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n });\r\n return;\r\n }\r\n vm.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '


';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: gettextCatalog.getString(vm.athleteData.Nev + ' ' + gettextCatalog.getString('ExitAthleteSecondSection')),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Exiting'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function (Exiting) {\r\n if (Exiting.value) {\r\n var preConfOk = false;\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n vm.noteExitText = angular.element('#noteTextArea').val();\r\n checkExitDate(vm.selectedExitDate).then(function () {\r\n return new Promise(function (resolve) {\r\n if (vm.selectedExitDate === null || !vm.exitAthleteDateOk) {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (vm.noteExitText === null || vm.noteExitText === '') {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n resolve();\r\n });\r\n });\r\n }\r\n },\r\n closeOnCancel: false\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveExitAthletes(false);\r\n swal.close();\r\n return true;\r\n } else {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notExitAthlete'), 'error');\r\n }\r\n });\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: function (args) {\r\n checkDade(args.value);\r\n }\r\n });\r\n }\r\n\r\n function checkExitDate(args) {\r\n return $q(function () {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n });\r\n }\r\n\r\n function checkDade(args) {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n }\r\n\r\n function openCoach(coachId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': coachId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function schoolNameChanged() {\r\n if (vm.athleteData.IskolaNeve && vm.athleteData.IskolaNeve.length > 0) {\r\n dataservice.getGymTeachers(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.gymTeacherDatasource = data.itemsList;\r\n });\r\n dataservice.getClassMasters(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.classMasterDatasource = data.itemsList;\r\n });\r\n } else {\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n }\r\n }\r\n\r\n vm.selectOf = selectOf;\r\n\r\n function selectOf(arg) {\r\n for (var i = 0; i < vm.classMasterDatasource.length; i++) {\r\n if (arg.value == vm.classMasterDatasource[i].value) {\r\n dataservice.getClassMasterContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.OfTel = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.OfEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n vm.selectTesiTanar = selectTesiTanar;\r\n\r\n function selectTesiTanar(arg) {\r\n for (var i = 0; i < vm.gymTeacherDatasource.length; i++) {\r\n if (arg.value == vm.gymTeacherDatasource[i].value) {\r\n dataservice.getGymTeacherContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.TestneveloElerhetosege = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.TestneveloEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n function getParentNames() {\r\n dataservice.getParentNames().then(function (data) {\r\n for (var i = 0; i < data.data.father.length; i++) {\r\n vm.fatherNames.push({value: data.data.father[i], text: data.data.father[i]});\r\n }\r\n for (var i = 0; i < data.data.mother.length; i++) {\r\n vm.motherNames.push({value: data.data.mother[i], text: data.data.mother[i]});\r\n }\r\n });\r\n }\r\n\r\n vm.selectMother = selectMother;\r\n\r\n function selectMother(arg) {\r\n if (arg && arg.value.length > 0) {\r\n var closeidx = arg.value.indexOf(')');\r\n // if (arg.value.length-1 > closeidx){return;}\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1 && !(arg.value.length - 1 > closeidx)) {\r\n getParentData('mother', arg.value, arg.value.substring(0, idx - 1));\r\n // vm.athleteData.AnyjaNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n vm.selectFather = selectFather;\r\n\r\n function selectFather(arg) {\r\n if (arg && arg.value.length > 0) {\r\n var closeidx = arg.value.indexOf(')');\r\n // if (arg.value.length-1 > closeidx){return;}\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1 && !(arg.value.length - 1 > closeidx)) {\r\n getParentData('father', arg.value, arg.value.substring(0, idx - 1));\r\n // vm.athleteData.SzuloNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n function getParentData(parent, arg, szuloNeve) {\r\n dataservice.getParentDataPOST(parent, arg).then(function (data) {\r\n // Szülő kiválasztásakor felajánljuk hogy csatolhatja már meglévő szülő userhez a sportolót\r\n if (data.data.userid > 0) {\r\n swal({\r\n title: gettextCatalog.getString('Do you want to assign the athlete to the selected parent user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.assignAthleteToParentUser(data.data.userid, vm.athleteData.SportolokID).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('AthleteAssignedToUserSuccessfully'));\r\n }\r\n });\r\n }\r\n });\r\n }\r\n if (parent == 'father') {\r\n $('#fatherName').ejAutocomplete('clearText');\r\n $('#fatherName').ejAutocomplete({multiSelectMode: ej.MultiSelectMode.None, value: szuloNeve});\r\n if (data.data) {\r\n vm.athleteData.Szulo2Elerhetosege = '';\r\n vm.athleteData.ApaEmail = '';\r\n vm.athleteData.ApjaTestmagassaga = '';\r\n vm.athleteData.ApjaFoglalkozasa = '';\r\n vm.athleteData.ApaMunkahely = '';\r\n vm.athleteData.SportoloiMultApa = '';\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.ApaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.ApjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.ApjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.ApaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultApa = data.data.sportpast;\r\n }\r\n }\r\n } else if (parent == 'mother') {\r\n $('#motherName').ejAutocomplete('clearText');\r\n $('#motherName').ejAutocomplete({multiSelectMode: ej.MultiSelectMode.None, value: szuloNeve});\r\n if (data.data) {\r\n vm.athleteData.Szulo1Elerhetosege = '';\r\n vm.athleteData.AnyaEmail = '';\r\n vm.athleteData.AnyjaTestmagassaga = '';\r\n vm.athleteData.AnyjaFoglalkozasa = '';\r\n vm.athleteData.AnyaMunkahely = '';\r\n vm.athleteData.SportoloiMultAnya = '';\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.AnyaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.AnyjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.AnyjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.AnyaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultAnya = data.data.sportpast;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.dataSheet')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.dataSheet',\r\n config: {\r\n url: '/dataSheet',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.html',\r\n controller: 'AthleteModifyDataSheetController',\r\n controllerAs: 'vm',\r\n title: 'AthleteModifyDataSheet'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n Files2Controller.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"DOMAIN\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.files')\r\n .controller('Files2Controller', Files2Controller);\r\n\r\n function Files2Controller(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, DOMAIN) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = $rootScope.title + gettextCatalog.getString('Contracts');\r\n vm.title = gettextCatalog.getString('Contracts');\r\n\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#fitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n vm.selectedRow = -1;\r\n vm.deleteFile = deleteFile;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {browse: gettextCatalog.getString('ChooseFile'), upload: gettextCatalog.getString('UploadFile'), cancel: gettextCatalog.getString('CancelUpload')},\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {title: gettextCatalog.getString('UploadedFilesTitle'), name: gettextCatalog.getString('FileName'), size: gettextCatalog.getString('FileSize'), status: gettextCatalog.getString('FileStatus')},\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls,.mp4,.avi',\r\n complete: function () {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles();\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc, .docx, .pdf, .xls, .mp4, .avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '
' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: vm.tipus, tablaId: vm.tablaId};\r\n }\r\n });\r\n\r\n var promises = [paramHelper.getParams([], ['files.tipus', 'files.tablaId', 'weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.trainingPlanId', 'weeklyTrainingPlan.edzoNev', 'weeklyTrainingPlan.szakosztalyNev', 'weeklyTrainingPlan.korosztalyNev'])];\r\n\r\n return $q.all(promises).then(function (results) {\r\n if (results[0]['files.tipus'] !== undefined) {\r\n vm.tipus = results[0]['files.tipus'];\r\n }\r\n if (results[0]['files.tablaId'] !== undefined) {\r\n vm.tablaId = results[0]['files.tablaId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.edzoNev'] !== undefined) {\r\n vm.coachName = results[0]['weeklyTrainingPlan.edzoNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyNev'] !== undefined) {\r\n vm.sectionName = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyNev'] !== undefined) {\r\n vm.ageGroupName = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.ev'] !== undefined) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n }\r\n getFiles();\r\n });\r\n }\r\n\r\n function getFiles() {\r\n dataservice.getFilesList(vm.tipus, vm.tablaId).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.data = data.itemsList;\r\n });\r\n }\r\n\r\n function deleteFile() {\r\n var row = grid.getSelectedRecords()[0];\r\n if (!row) {\r\n vm.selectedRow = -1;\r\n } else {\r\n vm.selectedRow = row.Id;\r\n }\r\n if (vm.selectedRow < 0) {\r\n log.errorMsg('SelectFile');\r\n return;\r\n }\r\n\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected file?'),\r\n text: gettextCatalog.getString('You will not be able to recover it!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this file'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteFiles(vm.selectedRow).then(\r\n function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n getFiles();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.files')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.files',\r\n config: {\r\n url: '/files',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/files/files.html',\r\n controller: 'Files2Controller',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health',\r\n config: {\r\n title: 'Health',\r\n url: '/health',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/health.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n HealthListController.$inject = [\"log\", \"$state\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.healthList')\r\n .controller('HealthListController', HealthListController);\r\n\r\n function HealthListController(log, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('HealthList');\r\n\r\n // Create variables\r\n vm.Id = null;\r\n vm.selectedGridRow = {};\r\n vm.dateFrom = new Date('1900-01-01');\r\n vm.dateTo = new Date();\r\n vm.beginedit = false;\r\n vm.dataTmp = '';\r\n vm.athleteName = '';\r\n vm.athleteId = '';\r\n vm.athleteSocialSecurity = '';\r\n vm.athleteBirthDate = '';\r\n vm.pageSize = 12;\r\n vm.gridHealthDatas = [];\r\n vm.allowAddNew = false;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n visible: false\r\n },\r\n {\r\n field: 'Mettol',\r\n headerText: gettextCatalog.getString('From'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Meddig',\r\n headerText: gettextCatalog.getString('To'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n //databound: typeDataBound,\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'AlTipus',\r\n headerText: gettextCatalog.getString('SubType'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Leiras',\r\n headerText: gettextCatalog.getString('Description'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Kezeles',\r\n headerText: gettextCatalog.getString('Therapy'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Letrehozas',\r\n headerText: gettextCatalog.getString('CreatedDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Modositas',\r\n headerText: gettextCatalog.getString('ModifiedDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szerkesztes',\r\n headerText: gettextCatalog.getString('Edit'),\r\n template: '#healteditcolumnTemplate',\r\n textAlign: 'center',\r\n width: 90\r\n }\r\n ];\r\n vm.editText = gettextCatalog.getString('Edit');\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n\r\n // Public functions\r\n vm.getHealthDatas = getHealthDatas;\r\n vm.goToNewHealthEvent = goToNewHealthEvent;\r\n vm.goToModifyHealthEvent = goToModifyHealthEvent;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.backToDatasheet = backToDatasheet;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['athleteModify.sportoloNev', 'athleteModify.sportoloId', 'athleteModify.sportoloTaj', 'athleteModify.sportoloSzuletesiIdo', 'athleteModify.aktivSportolo']),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n\r\n $timeout(function () {\r\n vm.athleteId = results[0]['athleteModify.sportoloId'];\r\n vm.athleteName = results[0]['athleteModify.sportoloNev'];\r\n vm.athleteSocialSecurity = results[0]['athleteModify.sportoloTaj'];\r\n vm.allowAddNew = results[0]['athleteModify.aktivSportolo'];\r\n vm.athleteBirthDate = results[0]['athleteModify.sportoloSzuletesiIdo'];\r\n vm.athleteBirthDate = $filter('dateStringFilter')(vm.athleteBirthDate);\r\n getHealthDatas();\r\n }, 0);\r\n });\r\n }\r\n\r\n function getHealthDatas(from, to) {\r\n if (from) {\r\n vm.dateFrom = from;\r\n }\r\n if (to) {\r\n vm.dateTo = to;\r\n }\r\n if (vm.dateFrom === null) {\r\n vm.dateFrom = Date();\r\n }\r\n if (vm.dateTo === null) {\r\n vm.dateTo = Date();\r\n }\r\n\r\n dataservice.GetHealth(vm.athleteId, vm.dateFrom, vm.dateTo).then(function (data) {\r\n vm.dataTmp = data.itemsList;\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Letrehozas');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Meddig');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Mettol');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Modositas');\r\n\r\n vm.dataTmp.forEach(function (element) {\r\n element.Tipus = element.Tipus;\r\n });\r\n\r\n vm.gridHealthDatas = vm.dataTmp;\r\n grid.dataSource = vm.dataTmp;\r\n });\r\n }\r\n\r\n function dateToChange(args) {\r\n getHealthDatas(vm.dateFrom, args.value);\r\n }\r\n\r\n function dateFromChange(args) {\r\n getHealthDatas(args.value, vm.dateTo);\r\n }\r\n\r\n function goToNewHealthEvent() {\r\n paramHelper.setParams([{\r\n 'newHealthAthleteId': vm.athleteId,\r\n 'newHealthAthleteName': vm.athleteName,\r\n 'newHealthAthleteSocialSecurity': vm.athleteSocialSecurity,\r\n 'newHealthAthleteBirthDate': vm.athleteBirthDate,\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.newHealthEvent');\r\n }\r\n\r\n function goToModifyHealthEvent(id) {\r\n if (!vm.allowAddNew) {\r\n return;\r\n }\r\n vm.selectedGridRow = ej.DataManager(vm.gridHealthDatas).executeLocal(new ej.Query().where('Id', 'equal', id))[0];\r\n paramHelper.setParams([{\r\n 'mofifyHealthAthleteId': vm.athleteId,\r\n 'mofifyHealthAthleteName': vm.athleteName,\r\n 'mofifyHealthAthleteSocialSecurity': vm.athleteSocialSecurity,\r\n 'mofifyHealthAthleteBirthDate': vm.athleteBirthDate,\r\n 'mofifyHealthId': vm.selectedGridRow.Id,\r\n 'mofifyHealthKezeles': vm.selectedGridRow.Kezeles,\r\n 'mofifyHealthLeiras': vm.selectedGridRow.Leiras,\r\n 'mofifyHealthLetrehozas': vm.selectedGridRow.Letrehozas,\r\n 'mofifyHealthMettol': vm.selectedGridRow.Mettol,\r\n 'mofifyHealthMeddig': vm.selectedGridRow.Meddig,\r\n 'mofifyHealthTipus': vm.selectedGridRow.Tipus,\r\n 'mofifyHealthAlTipus': vm.selectedGridRow.AlTipus,\r\n 'fromState': 'healthList',\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.modifyHealthEvent');\r\n }\r\n\r\n function backToDatasheet() {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.healthList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.healthList',\r\n config: {\r\n url: '/healthList',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/healthList/healthList.html',\r\n controller: 'HealthListController',\r\n controllerAs: 'vm',\r\n title: 'HealthList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ModifyHealthEventController.$inject = [\"log\", \"logger\", \"$state\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$timeout\", \"$scope\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent')\r\n .controller('modifyHealthEventController', ModifyHealthEventController);\r\n\r\n function ModifyHealthEventController(log, logger, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ModifyHealthEvent');\r\n // Create variables\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n vm.documents = '';\r\n vm.params = {\r\n Id: null,\r\n SportoloId: null,\r\n Mettol: null,\r\n Meddig: null,\r\n Tipus: null,\r\n AlTipus: null,\r\n Leiras: null,\r\n Kezeles: null\r\n };\r\n\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.SubType = [];\r\n\r\n // Public functions\r\n vm.saveDatas = saveDatas;\r\n vm.fileUpload = fileUpload;\r\n vm.MainTypeSelected = MainTypeSelected;\r\n\r\n function MainTypeSelected(arg) {\r\n var mainId = 0;\r\n vm.SubType = [];\r\n for (var i = 0; i < vm.healthMainType.length; i++) {\r\n if (vm.healthMainType[i].text === arg.value) {\r\n mainId = vm.healthMainType[i].value;\r\n }\r\n }\r\n dataservice.healthSubTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n if (response.itemsList[i].FotipusId === mainId) {\r\n vm.SubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].FotipusId,\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Activate page\r\n activate();\r\n function activate() {\r\n $q.all([paramHelper.getParams([],\r\n [\r\n 'mofifyHealthId',\r\n 'mofifyHealthAthleteId',\r\n 'mofifyHealthAthleteName',\r\n 'mofifyHealthAthleteSocialSecurity',\r\n 'mofifyHealthAthleteBirthDate',\r\n 'mofifyHealthKezeles',\r\n 'mofifyHealthLeiras',\r\n 'mofifyHealthLetrehozas',\r\n 'mofifyHealthMettol',\r\n 'mofifyHealthMeddig',\r\n 'mofifyHealthTipus',\r\n 'mofifyHealthAlTipus'\r\n ]),\r\n\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n $timeout(function () {\r\n vm.params.Id = results[0]['mofifyHealthId'];\r\n vm.params.SportoloId = results[0]['mofifyHealthAthleteId'];\r\n vm.athleteName = results[0]['mofifyHealthAthleteName'];\r\n vm.athleteSocialSecurity = results[0]['mofifyHealthAthleteSocialSecurity'];\r\n vm.athleteBirthDate = results[0]['mofifyHealthAthleteBirthDate'];\r\n vm.params.Kezeles = results[0]['mofifyHealthKezeles'];\r\n vm.params.Leiras = results[0]['mofifyHealthLeiras'];\r\n vm.params.Mettol = results[0]['mofifyHealthMettol'];\r\n vm.params.Meddig = results[0]['mofifyHealthMeddig'];\r\n $('#MainType').ejAutocomplete({\r\n value: results[0]['mofifyHealthTipus']\r\n });\r\n vm.params.AlTipus = results[0]['mofifyHealthAlTipus'];\r\n }, 1);\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function fileUpload() {\r\n //TablaId = szerkSportolo.SportolokID, TablaNev = \"Sportolok\"\r\n paramHelper.setParams([{'files.tipus': 'HealthEvent'}, {'files.tablaId': vm.params.SportoloId}]);\r\n $state.go('other.files');\r\n }\r\n\r\n function saveDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n dataservice.modifyHealthData(vm.params)\r\n .then(function () {\r\n if (vm.params.Meddig) {\r\n var from = new Date(vm.params.Mettol);\r\n var to = new Date(vm.params.Meddig);\r\n if (from > to) {\r\n log.errorMsg(gettextCatalog.getString('DateToMustNotBeBeforeDateFrom'));\r\n return;\r\n }\r\n }\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n\r\n // meglévő adatlekérés\r\n getHealthMainTypes();\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({\r\n text: response.itemsList[i].Nev,\r\n value: response.itemsList[i].Id\r\n });\r\n }\r\n MainTypeSelected({value: vm.params.Tipus});\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.modifyHealthEvent',\r\n config: {\r\n url: '/modifyHealthEvent',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.html',\r\n controller: 'modifyHealthEventController',\r\n controllerAs: 'vm',\r\n title: 'ModifyHealthEventController'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n NewHealthEventController.$inject = [\"log\", \"logger\", \"$state\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$timeout\", \"$scope\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent')\r\n .controller('newHealthEventController', NewHealthEventController);\r\n\r\n function NewHealthEventController(log, logger, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('newHealthEvent');\r\n\r\n // Create variables\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n vm.documents = '';\r\n vm.params = {\r\n SportoloId: null,\r\n Mettol: null,\r\n Meddig: null,\r\n Tipus: null,\r\n AlTipus: null,\r\n Leiras: null,\r\n Kezeles: null\r\n };\r\n\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.SubType = [];\r\n // Public functions\r\n vm.saveDatas = saveDatas;\r\n vm.fileUpload = fileUpload;\r\n vm.MainTypeSelected = MainTypeSelected;\r\n\r\n function MainTypeSelected(arg) {\r\n var mainId = 0;\r\n vm.SubType = [];\r\n for (var i = 0; i < vm.healthMainType.length; i++) {\r\n if (vm.healthMainType[i].text === arg.value) {\r\n mainId = vm.healthMainType[i].value;\r\n }\r\n }\r\n for (var i = 0; i < vm.healthSubType.length; i++) {\r\n if (vm.healthSubType[i].value === mainId) {\r\n vm.SubType.push(vm.healthSubType[i]);\r\n vm.params.AlTipus = null;\r\n }\r\n }\r\n }\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['newHealthAthleteId', 'newHealthAthleteName', 'newHealthAthleteSocialSecurity', 'newHealthAthleteBirthDate']),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n $timeout(function () {\r\n vm.params.SportoloId = results[0]['newHealthAthleteId'];\r\n vm.athleteName = results[0]['newHealthAthleteName'];\r\n vm.athleteSocialSecurity = results[0]['newHealthAthleteSocialSecurity'];\r\n vm.athleteBirthDate = results[0]['newHealthAthleteBirthDate'];\r\n }, 0);\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function fileUpload() {\r\n paramHelper.setParams([{'files.tipus': 'HealthEvent'}, {'files.tablaId': vm.params.SportoloId}]);\r\n $state.go('other.files');\r\n }\r\n\r\n getHealthMainTypes();\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({\r\n text: response.itemsList[i].Nev,\r\n value: response.itemsList[i].Id\r\n });\r\n }\r\n });\r\n }\r\n\r\n getHealthSubTypes();\r\n function getHealthSubTypes() {\r\n dataservice.healthSubTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthSubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].FotipusId,\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n console.log('vm.params', vm.params);\r\n if (vm.params.Meddig) {\r\n var from = new Date(vm.params.Mettol);\r\n var to = new Date(vm.params.Meddig);\r\n if (from > to) {\r\n log.errorMsg(gettextCatalog.getString('DateToMustNotBeBeforeDateFrom'));\r\n } else {\r\n dataservice.saveHealthData(vm.params)\r\n .then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n } else {\r\n dataservice.saveHealthData(vm.params)\r\n .then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.newHealthEvent',\r\n config: {\r\n url: '/newHealthEvent',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.html',\r\n controller: 'newHealthEventController',\r\n controllerAs: 'vm',\r\n title: 'newHealthEventController'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n PerformanceMotivationTestController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"log\", \"$state\", \"$rootScope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest')\r\n .controller('PerformanceMotivationTestController', PerformanceMotivationTestController);\r\n\r\n function PerformanceMotivationTestController($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('PerformanceMotivationTestQ1'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ2'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ3'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ4'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ5'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ6'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ7'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ8'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ9'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ10'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ11'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ12'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ13'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ14'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ15'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ16'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ17'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ18'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ19'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ20'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ21'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ22'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ23'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ24'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ25'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ26'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ27'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ28'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ29'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ30'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ31'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ32'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ33'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ34'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ35'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ36'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ37'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ38'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ39'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ40'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ41')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PerformanceMotivationTest');\r\n }\r\n });\r\n }\r\n\r\n function saveSurvey() {\r\n var hiba = false;\r\n if (vm.sportoloId) {\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n } else {\r\n hiba = true;\r\n }\r\n if (hiba) {\r\n log.errorMsg('SurveyNotFilled');\r\n } else {\r\n dataservice.savePerformanceMotivationSurvey(vm.sportoloId, vm.answers)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest',\r\n config: {\r\n url: '/performanceMotivationTest',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.html',\r\n controller: 'PerformanceMotivationTestController',\r\n controllerAs: 'vm',\r\n title: 'PerformanceMotivationTest'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\n PerformanceMotivationTestEvaluationController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"log\", \"$rootScope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation')\r\n .controller('PerformanceMotivationTestEvaluationController', PerformanceMotivationTestEvaluationController);\r\n\r\n function PerformanceMotivationTestEvaluationController($q, gettextCatalog, dataservice, paramHelper, log, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('PerformanceMotivationTestQ1'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ2'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ3'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ4'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ5'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ6'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ7'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ8'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ9'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ10'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ11'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ12'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ13'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ14'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ15'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ16'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ17'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ18'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ19'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ20'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ21'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ22'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ23'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ24'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ25'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ26'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ27'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ28'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ29'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ30'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ31'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ32'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ33'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ34'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ35'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ36'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ37'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ38'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ39'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ40'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ41')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId', 'psychology.mode', 'athleteModify.sportoloNev'], ['psychology.surveyPassword']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PerformanceMotivationTestEvaluation');\r\n vm.edit = results[0]['psychology.mode'] === 'edit';\r\n if (vm.edit) {\r\n getSurveyProtected();\r\n } else {\r\n getSurvey();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSurvey() {\r\n return dataservice.getPerformanceMotivationSurvey(vm.surveyId, true)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n });\r\n }\r\n\r\n function getSurveyProtected() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n inputValue: vm.password,\r\n closeOnConfirm: false\r\n\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n return dataservice.getPerformanceMotivationSurvey(vm.surveyId, false)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n }\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.savePerformanceMotivationSurveyEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $rootScope.back();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation',\r\n config: {\r\n url: '/performanceMotivationTestEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.html',\r\n controller: 'PerformanceMotivationTestEvaluationController',\r\n controllerAs: 'vm',\r\n title: 'performanceMotivationTestEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n PieronTestController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"log\", \"$state\", \"$interval\", \"$rootScope\", \"$scope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest')\r\n .controller('PieronTestController', PieronTestController);\r\n\r\n function PieronTestController($q, gettextCatalog, dataservice, paramHelper, log, $state, $interval, $rootScope, $scope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.time = 10;\r\n vm.timeLeftMinutes = 10;\r\n vm.timeLeftSeconds = 0;\r\n vm.lastClicked = {index1: -1, index2: -1, time: Date.Now};\r\n vm.started = false;\r\n vm.finished = false;\r\n vm.questions = [\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 6\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'}\r\n ],\r\n [// 7\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 8\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 9\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 10\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 11\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 12\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 13\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 14\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 15\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 16\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 17\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 18\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 19\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 20\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'}\r\n ]\r\n ];\r\n\r\n vm.answers = [\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 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0, 0],\r\n [0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0],\r\n [0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1],\r\n [1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0],\r\n [0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1],\r\n [1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1],\r\n [1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1],\r\n [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0]\r\n ];\r\n vm.answersByMinutes = [];\r\n\r\n vm.stopInterval = stopInterval;\r\n vm.startInterval = startInterval;\r\n vm.clicked = clicked;\r\n vm.timeChanged = timeChanged;\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PieronTest');\r\n }\r\n });\r\n }\r\n\r\n function saveSurvey() {\r\n dataservice.savePieronTest(vm.sportoloId, vm.answers, vm.seen, vm.tNumber, vm.wrongAnswersNumber)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n\r\n function startInterval() {\r\n angular.element('#testTime').ejNumericTextbox('disable');\r\n vm.started = true;\r\n $scope.$apply();\r\n vm.startTime = Date.now();\r\n vm.stopPromise = $interval(function () {\r\n var temp = new Date(vm.time * 60000 - Date.now() + vm.startTime);\r\n if (vm.time * 60000 - Date.now() + vm.startTime < 0) {\r\n vm.stopInterval();\r\n } else {\r\n vm.timeLeftMinutes = temp.getMinutes();\r\n vm.timeLeftSeconds = temp.getSeconds();\r\n }\r\n }, 1000);\r\n vm.minuteTimer = $interval(function () {\r\n if (vm.time * 60000 - Date.now() + vm.startTime < 0) {\r\n stopMinuteTimer();\r\n } else {\r\n vm.answersByMinutes.push({index1: vm.lastClicked.index1, index2: vm.lastClicked.index2});\r\n }\r\n }, 60000);\r\n }\r\n\r\n function stopMinuteTimer() {\r\n $interval.cancel(vm.minuteTimer);\r\n }\r\n\r\n function stopInterval() {\r\n vm.finished = true;\r\n $scope.$apply();\r\n vm.finishTime = Date.now();\r\n $interval.cancel(vm.stopPromise);\r\n vm.wrongAnswersNumber = 0;\r\n vm.answersByMinutes.push(vm.lastClicked);\r\n vm.seen = vm.lastClicked.index1 * 20 + vm.lastClicked.index2 + 1;\r\n for (var i = 0; i < 20; i++) {\r\n for (var j = 0; j < 20; j++) {\r\n if (vm.lastClicked.index1 > i || vm.lastClicked.index1 === i && vm.lastClicked.index2 >= j) {\r\n if (vm.answers[i][j] === 1 && vm.goodAnswers[i][j] === 1) {\r\n vm.answers[i][j] = 2;\r\n } else if (vm.answers[i][j] === 0 && vm.goodAnswers[i][j] === 1 || vm.answers[i][j] === 1 && vm.goodAnswers[i][j] === 0) {\r\n vm.answers[i][j] = -1;\r\n vm.wrongAnswersNumber++;\r\n }\r\n }\r\n }\r\n }\r\n // 3 jó, 4 rossz, 5 semmi\r\n angular.forEach(vm.answersByMinutes, function (value) {\r\n if (vm.answers[value.index1][value.index2] === 2) {\r\n vm.answers[value.index1][value.index2] = 3;\r\n } else if (vm.answers[value.index1][value.index2] === -1) {\r\n vm.answers[value.index1][value.index2] = 4;\r\n } else {\r\n vm.answers[value.index1][value.index2] = 5;\r\n }\r\n });\r\n vm.tNumber = (vm.seen - vm.wrongAnswersNumber) / vm.seen * 100;\r\n }\r\n\r\n function clicked(index1, index2) {\r\n if ((vm.lastClicked.index1 < index1 || vm.lastClicked.index1 === index1 && vm.lastClicked.index2 < index2) && vm.finished === false && vm.started === true) {\r\n vm.answers[index1][index2] = 1;\r\n vm.lastClicked.index1 = index1;\r\n vm.lastClicked.index2 = index2;\r\n }\r\n }\r\n\r\n function timeChanged() {\r\n if (vm.started === false) {\r\n vm.timeLeftMinutes = vm.time;\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.pieronTest',\r\n config: {\r\n url: '/pieronTest',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.html',\r\n controller: 'PieronTestController',\r\n controllerAs: 'vm',\r\n title: 'PieronTest'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\n PieronTestEvaluation.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"log\", \"$state\", \"$rootScope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation')\r\n .controller('PieronTestEvaluation', PieronTestEvaluation);\r\n\r\n function PieronTestEvaluation($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 6\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'}\r\n ],\r\n [// 7\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 8\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 9\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 10\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 11\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 12\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 13\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 14\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 15\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 16\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 17\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 18\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 19\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 20\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'}\r\n ]\r\n ];\r\n\r\n vm.answers = [\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\n ];\r\n\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId', 'psychology.mode', 'athleteModify.sportoloNev'], ['psychology.surveyPassword']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PieronTestEvaluation');\r\n vm.edit = results[0]['psychology.mode'] === 'edit';\r\n if (vm.edit) {\r\n getSurveyProtected();\r\n } else {\r\n getSurvey();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSurvey() {\r\n dataservice.getPieronTest(vm.surveyId, true)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.seen = data.kiertekelesSzam[1];\r\n vm.age = data.kiertekelesSzam[2];\r\n vm.tNumber = data.kiertekelesSzam[0];\r\n vm.wrongAnswersNumber = data.kiertekelesSzam[3];\r\n if (vm.wrongAnswersNumber === undefined) {\r\n vm.wrongAnswersNumber = 0;\r\n angular.forEach(vm.answers, function (value) {\r\n angular.forEach(value, function (value2) {\r\n if (value2 === -1) {\r\n vm.wrongAnswersNumber++;\r\n }\r\n });\r\n });\r\n }\r\n vm.ertek = [];\r\n if (vm.age < 15) {\r\n if (vm.seen < 159) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 201) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 296) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 376) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen >= 376) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 90.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 95.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.5) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.4) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.4) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 14 && vm.age < 19) {\r\n if (vm.seen < 201) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 256) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 345) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 396) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 395) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 93.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 97.0) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.8) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.6) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.6) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 18) {\r\n if (vm.seen < 178) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 214) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 261) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 323) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 322) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 88.2) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 93.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 96.2) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 97.7) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.7) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n }\r\n\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n });\r\n }\r\n\r\n function getSurveyProtected() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getPieronTest(vm.surveyId, false)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n vm.seen = data.kiertekelesSzam[1];\r\n vm.age = data.kiertekelesSzam[2];\r\n vm.tNumber = data.kiertekelesSzam[0];\r\n vm.wrongAnswersNumber = data.kiertekelesSzam[3];\r\n vm.ertek = [];\r\n if (vm.age < 15) {\r\n if (vm.seen < 159) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 201) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 296) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 376) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen >= 376) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 90.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 95.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.5) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.4) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.4) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 14 && vm.age < 19) {\r\n if (vm.seen < 201) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 256) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 345) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 396) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 395) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 93.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 97.0) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.8) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.6) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.6) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 18) {\r\n if (vm.seen < 178) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 214) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 261) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 323) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 322) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 88.2) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 93.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 96.2) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 97.7) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.7) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n }\r\n\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n }\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.savePerformanceMotivationSurveyEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation',\r\n config: {\r\n url: '/pieronTestEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.html',\r\n controller: 'PieronTestEvaluation',\r\n controllerAs: 'vm',\r\n title: 'PieronTestEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology',\r\n config: {\r\n url: '/psychology',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/psychology.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SummaryController.$inject = [\"$q\", \"log\", \"paramHelper\", \"$state\", \"dataservice\", \"$scope\", \"PSYCHOLOGY\", \"DOMAIN\", \"gettextCatalog\", \"$rootScope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.summary')\r\n .controller('SummaryController', SummaryController);\r\n\r\n function SummaryController($q, log, paramHelper, $state, dataservice, $scope, PSYCHOLOGY, DOMAIN, gettextCatalog, $rootScope, authenticationService) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.warteggUrl = DOMAIN.baseURL + DOMAIN.psychologyDocUrl + '/wartegg.png';\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {field: 'typeId', visible: false},\r\n {field: 'type', headerText: gettextCatalog.getString('TestsType'), textAlign: 'center', width: 100},\r\n {field: 'dateOfSurvey', headerText: gettextCatalog.getString('TestsDate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'documentOfSurvey',\r\n headerText: gettextCatalog.getString('Test'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'dateOfAssessment',\r\n headerText: gettextCatalog.getString('EvaluationsDate'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn2',\r\n width: 125\r\n },\r\n {\r\n field: 'documentOfAssessment',\r\n headerText: gettextCatalog.getString('Evaluation'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn3',\r\n width: 150\r\n }\r\n ];\r\n vm.open = gettextCatalog.getString('Open');\r\n vm.noEvaluationForThisTest = gettextCatalog.getString('NoEvaluationForThisTest');\r\n\r\n // Public functions\r\n vm.goToPerformanceMotivation = goToPerformanceMotivation;\r\n vm.goToPieron = goToPieron;\r\n vm.goToTenessee = goToTenessee;\r\n vm.goToShowFilledTest = goToShowFilledTest;\r\n vm.addWartegTest = addWartegTest;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], [\r\n 'athleteModify.sportoloId',\r\n 'athleteModify.sportoloNev',\r\n 'athleteModify.aktivSportolo']), authenticationService.getRight('PSYCHO')];\r\n return $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.aktiv = results[0]['athleteModify.aktivSportolo'];\r\n if (!vm.aktiv) {\r\n $('#dropdownMenu').addClass('disabled');\r\n }\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology');\r\n getPsychologyTests();\r\n }\r\n });\r\n }\r\n\r\n function getPsychologyTests() {\r\n return dataservice.getPsychologyTests(vm.sportoloId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToShowFilledTest(id, testType, password, documentOfAssessmentBool) {\r\n if (documentOfAssessmentBool) {\r\n return;\r\n }\r\n if (password) {\r\n password = 'edit';\r\n } else {\r\n password = 'open';\r\n }\r\n switch (testType) {\r\n case PSYCHOLOGY.Wartegg:\r\n paramHelper.setParams([{'psychology.psychologyId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.wartegg');\r\n break;\r\n case PSYCHOLOGY.PerformanceMotivation:\r\n paramHelper.setParams([{'psychology.surveyId': id}, {'psychology.mode': password}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation');\r\n break;\r\n case PSYCHOLOGY.Pieron:\r\n paramHelper.setParams([{'psychology.surveyId': id}, {'psychology.mode': password}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation');\r\n break;\r\n case PSYCHOLOGY.Tenessee:\r\n paramHelper.setParams([{'psychology.surveyId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation');\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n function goToPerformanceMotivation() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest');\r\n }\r\n }\r\n\r\n function goToPieron() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.pieronTest');\r\n }\r\n }\r\n\r\n function goToTenessee() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale');\r\n }\r\n }\r\n\r\n function addWartegTest() {\r\n if (!vm.aktiv) {\r\n return dataservice.saveWartegg(vm.sportoloId).then(function (data) {\r\n if (!data) {\r\n log.errorMsg(gettextCatalog.getString('ErrorOccurredWhileCreatingTheTest'));\r\n } else {\r\n getPsychologyTests();\r\n }\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.summary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.summary',\r\n config: {\r\n url: '/summary',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/summary/summary.html',\r\n controller: 'SummaryController',\r\n controllerAs: 'vm',\r\n title: 'Summary'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TenesseeSelfImageScaleController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"log\", \"$state\", \"$rootScope\", \"authenticationService\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale')\r\n .controller('TenesseeSelfImageScaleController', TenesseeSelfImageScaleController);\r\n\r\n function TenesseeSelfImageScaleController($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ1'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ2'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ3'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ4'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ5'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ6'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ7'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ8'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ9'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ10'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ11'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ12'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ13'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ14'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ15'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ16'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ17'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ18'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ19'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ20'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ21'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ22'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ23'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ24'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ25'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ26'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ27'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ28'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ29'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ30'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ31'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ32'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ33'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ34'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ35'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ36'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ37'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ38'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ39'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ40'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ41'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ42'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ43'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ44'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ45'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ46'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ47'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ48'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ49'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ50'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ51'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ52'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ53'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ54'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ55'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ56'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ57'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ58'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ59'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ60'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ61'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ62'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ63'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ64'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ65'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ66'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ67'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ68'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ69'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ70'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ71'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ72'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ73'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ74'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ75'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ76'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ77'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ78'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ79'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ80'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ81'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ82'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ83'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ84'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ85'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ86'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ87'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ88'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ89'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ90'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ91'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ92'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ93'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ94'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ95'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ96'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ97'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ98'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ99'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ100')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n vm.sportoloId = 0;\r\n\r\n // Public functions\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('TenesseeSelfImageScale');\r\n }\r\n })\r\n\r\n ;\r\n }\r\n\r\n function saveSurvey() {\r\n var hiba = false;\r\n if (vm.sportoloId) {\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n } else {\r\n hiba = true;\r\n }\r\n if (hiba) {\r\n log.errorMsg('PleaseAnswerAllQuestion');\r\n } else {\r\n dataservice.saveTenesseeSelfImageScale(vm.sportoloId, vm.answers)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('psychology.summary');\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale',\r\n config: {\r\n url: '/tenesseeSelfImageScale',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.html',\r\n controller: 'TenesseeSelfImageScaleController',\r\n controllerAs: 'vm',\r\n title: 'tenesseeSelfImageScale'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\n TenesseeSelfImageScaleEvaluationController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"$rootScope\", \"authenticationService\", \"log\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation')\r\n .controller('TenesseeSelfImageScaleEvaluationController', TenesseeSelfImageScaleEvaluationController);\r\n\r\n function TenesseeSelfImageScaleEvaluationController($q, gettextCatalog, dataservice, paramHelper, $rootScope, authenticationService, log) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ1'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ2'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ3'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ4'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ5'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ6'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ7'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ8'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ9'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ10'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ11'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ12'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ13'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ14'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ15'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ16'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ17'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ18'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ19'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ20'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ21'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ22'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ23'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ24'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ25'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ26'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ27'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ28'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ29'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ30'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ31'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ32'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ33'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ34'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ35'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ36'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ37'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ38'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ39'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ40'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ41'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ42'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ43'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ44'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ45'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ46'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ47'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ48'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ49'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ50'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ51'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ52'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ53'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ54'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ55'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ56'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ57'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ58'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ59'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ60'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ61'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ62'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ63'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ64'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ65'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ66'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ67'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ68'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ69'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ70'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ71'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ72'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ73'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ74'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ75'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ76'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ77'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ78'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ79'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ80'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ81'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ82'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ83'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ84'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ85'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ86'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ87'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ88'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ89'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ90'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ91'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ92'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ93'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ94'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ95'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ96'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ97'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ98'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ99'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ100')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId'], ['psychology.surveyPassword', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('TenesseeSelfImageScaleEvaluation');\r\n getTSFIS();\r\n }\r\n });\r\n }\r\n\r\n function getTSFIS() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getTenesseeSelfImageScaleById(vm.surveyId).then(function (data) {\r\n if (data.error === '') {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n vm.kiertekelesSzamMagyarazat = data.kiertekelesSzamMagyarazat;\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n }\r\n swal.close();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n var hiba = false;\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n if (hiba) {\r\n log.errorMsg('SurveyNotFilled');\r\n } else {\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.saveTenesseeSelfImageScaleEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation',\r\n config: {\r\n url: '/tenesseeSelfImageScaleEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.html',\r\n controller: 'TenesseeSelfImageScaleEvaluationController',\r\n controllerAs: 'vm',\r\n title: 'TenesseeSelfImageScaleEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\n WarteggController.$inject = [\"$q\", \"gettextCatalog\", \"dataservice\", \"paramHelper\", \"$state\", \"$rootScope\", \"authenticationService\", \"log\", \"$scope\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.wartegg')\r\n .controller('WarteggController', WarteggController);\r\n\r\n function WarteggController($q, gettextCatalog, dataservice, paramHelper, $state, $rootScope, authenticationService, log, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.sportoloId = 0;\r\n vm.psychologyId = 0;\r\n vm.kiertekelt = false;\r\n vm.allowEdit = false;\r\n\r\n // Public functions\r\n vm.upload = upload;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams(['athleteModify.sportoloId', 'psychology.psychologyId', 'athleteModify.sportoloNev'], ['psychology.surveyPassword', 'athleteModify.aktivSportolo']), authenticationService.getRight('PSYCHO')];\r\n return $q.all(promises).then(function (data) {\r\n if (data[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.allowEdit = data[0]['athleteModify.aktivSportolo'];\r\n $scope.$apply();\r\n });\r\n vm.psychologyId = data[0]['psychology.psychologyId'];\r\n vm.password = data[0]['psychology.surveyPassword'];\r\n vm.sportoloId = data[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = data[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('WarteggTest');\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getWarteggTestById(vm.psychologyId)\r\n .then(function (response) {\r\n vm.kiertekelt = response.kiertekelesDatuma !== '';\r\n vm.kepfajl = response.kitoltottKerdoiv;\r\n vm.kiertekelesSzoveg = response.kiertekelesSzoveg;\r\n if (vm.kiertekelesSzoveg !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n }\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function upload() {\r\n if (!vm.allowEdit) {\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n var file = document.getElementById('file').files[0];\r\n var szoveg = angular.element('#rteSample').ejRTE('getHtml');\r\n if (file) {\r\n var r = new FileReader();\r\n if (szoveg !== '') {\r\n szoveg = Aes.Ctr.encrypt(szoveg, inputValue.value, 256);\r\n }\r\n\r\n r.onloadend = function (e) {\r\n var data = {\r\n psychologyId: vm.psychologyId,\r\n fileName: file.name,\r\n fileData: e.target.result,\r\n sportoloId: vm.sportoloId,\r\n psychologySurvey: szoveg\r\n };\r\n dataservice.uploadWartegg(data)\r\n .then(function () {\r\n swal.close();\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n };\r\n r.readAsDataURL(file);\r\n } else {\r\n if (szoveg !== '') {\r\n szoveg = Aes.Ctr.encrypt(szoveg, inputValue.value, 256);\r\n }\r\n var data = {\r\n psychologyId: vm.psychologyId,\r\n fileName: '',\r\n fileData: null,\r\n sportoloId: vm.sportoloId,\r\n psychologySurvey: szoveg\r\n };\r\n dataservice.uploadWartegg(data)\r\n .then(function () {\r\n swal.close();\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.wartegg')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.wartegg',\r\n config: {\r\n url: '/wartegg',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.html',\r\n controller: 'WarteggController',\r\n controllerAs: 'vm',\r\n title: 'Wartegg',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n RaceResultsReport2Controller.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$filter\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.raceResultsReport')\r\n .controller('RaceResultsReport2Controller', RaceResultsReport2Controller);\r\n\r\n function RaceResultsReport2Controller(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n\r\n // For print\r\n vm.printAthleteResult = printAthleteResult;\r\n vm.printTeamResult = printTeamResult;\r\n vm.reportParameters = {};\r\n\r\n // GRID\r\n vm.schoolGridSelectedRowData = {};\r\n vm.columnsAthlete = [\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('ResultText'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('ResultScore'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('ResultTime'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('ResultDistance'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DateFrom'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '90'\r\n },\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), headerTextAlign: 'center', width: '90', textAlign: 'center'},\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Location'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {\r\n field: 'Ertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('Jellege'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), headerTextAlign: 'center', width: '90', textAlign: 'center'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125',\r\n template: '#rareretemplateDataColumn2'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('OpenIt'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn3'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn4'\r\n }\r\n ];\r\n vm.teamsLists = [];\r\n vm.columnsTeam = [\r\n {\r\n field: 'CsapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n width: '150',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn5'\r\n },\r\n {field: 'EredmenySzoveg', headerText: gettextCatalog.getString('ResultText'), width: '200', textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: '100', textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), width: '100', textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('DateFrom'), width: '90', textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), width: '90', textAlign: 'center'},\r\n {field: 'Helyszin', headerText: gettextCatalog.getString('Location'), width: '100', textAlign: 'center'},\r\n {field: 'Helyezes', headerText: gettextCatalog.getString('AthleteRanking'), width: '120', textAlign: 'center'},\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {field: 'Ertekeles', headerText: gettextCatalog.getString('CoachRating'), width: '200', textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('Jellege'), width: '150', textAlign: 'center'},\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), headerTextAlign: 'center', width: '75', textAlign: 'center'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n headerTextAlign: 'center',\r\n width: '200',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: '125',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn6'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('OpenIt'),\r\n width: '100',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn7'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n width: '100',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn8'\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n\r\n vm.openResultReportAthletes = openResultReportAthletes;\r\n vm.openResultReportTeam = openResultReportTeam;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthlete,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var grid2 = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsTeam,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n grid2.appendTo('#Grid2');\r\n grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid2);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('KMVERSEREDM'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[1]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[1]['athleteModify.sportoloNev'];\r\n searchAthlete(vm.sportoloId, vm.sportoloNev);\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('RaceResultsReport');\r\n }\r\n });\r\n }\r\n\r\n function searchAthlete(id, nev) {\r\n dataservice.getResultsReportsAthlete({\r\n SportoloId: id,\r\n SportoloNev: nev\r\n })\r\n .then(function (data) {\r\n vm.athletesLists = data.itemsList;\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'SzuletesiIdo');\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'DatumTol');\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'DatumIg');\r\n vm.athletesLists = $filter('valueChangeFromObject')(vm.athletesLists, 'Eredmeny');\r\n grid.dataSource = vm.athletesLists;\r\n\r\n vm.teamsLists = data.itemsList2;\r\n vm.teamsLists = $filter('dateStringFilter')(vm.teamsLists, 'DatumTol');\r\n vm.teamsLists = $filter('dateStringFilter')(vm.teamsLists, 'DatumIg');\r\n vm.teamsLists = $filter('valueChangeFromObject')(vm.teamsLists, 'Eredmeny');\r\n grid2.dataSource = vm.teamsLists;\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'teams.sectionId': '0'},\r\n {'teams.ageGroupId': '0'},\r\n {'teams.team': id}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openResultReportAthletes(id) {\r\n $q.all([authenticationService.getRight('MEGTEERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportAthletes.Id': id}]);\r\n $state.go('administration.resultReportAthletes');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openResultReportTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportTeam.Id': id}]);\r\n $state.go('administration.resultReportTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function printAthleteResult(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].SportoloNev === null ? '' : data.result[0].SportoloNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n eredmeny: data.result[0].Eredmeny === null ? '' : data.result[0].Eredmeny, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n eIdo: data.result[0].EredmenyIdo === null ? '' : data.result[0].EredmenyIdo,\r\n ePont: data.result[0].EredmenyPont === null ? '' : data.result[0].EredmenyPont,\r\n eSzoveg: data.result[0].EredmenySzoveg === null ? '' : data.result[0].EredmenySzoveg, // Eredmény (szöveg input mező)\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles\r\n };\r\n var dialogObj = angular.element('#printDialogA').data('ejDialog');\r\n dialogObj.open();\r\n }, 100);\r\n });\r\n }\r\n\r\n function printTeamResult(id) {\r\n new ej2.data.DataManager(grid2.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].CsapatNev === null ? '' : data.result[0].CsapatNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles,\r\n id: data.result[0].Id === null ? '' : data.result[0].Id\r\n };\r\n var dialogObj = angular.element('#printDialogT').data('ejDialog');\r\n dialogObj.open();\r\n }, 1000);\r\n });\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.raceResultsReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.raceResultsReport',\r\n config: {\r\n url: '/raceResultsReport',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.html',\r\n controller: 'RaceResultsReport2Controller',\r\n controllerAs: 'vm',\r\n title: 'RaceResultsReport'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingVisitReportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.trainingVisitReport')\r\n .controller('TrainingVisitReportController', TrainingVisitReportController);\r\n\r\n function TrainingVisitReportController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n vm.stackedHeaderRows = [];\r\n\r\n vm.sportoloId = undefined;\r\n vm.korcsoportId = undefined;\r\n vm.szakosztalyId = undefined;\r\n vm.columns = [];\r\n\r\n vm.columns = [\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n }, {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150,\r\n template: '#AthleteColumnTemplate',\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzulEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), columns:\r\n [\r\n {\r\n field: 'AugEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), columns:\r\n [\r\n {\r\n field: 'SzeptEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), columns:\r\n [\r\n {\r\n field: 'OktEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), columns:\r\n [\r\n {\r\n field: 'NovEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), columns:\r\n [\r\n {\r\n field: 'DecEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'), columns:\r\n [\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), columns:\r\n [\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), columns:\r\n [\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), columns:\r\n [\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), columns:\r\n [\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), columns:\r\n [\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), columns:\r\n [\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), columns:\r\n [\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n // Create variables\r\n\r\n // Public functions\r\n vm.reportSelect = reportSelect;\r\n vm.modifyAthletes = modifyAthletes;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('trainingVisitReport');\r\n });\r\n }\r\n\r\n function reportSelect() {\r\n dataservice.getTrainingVisitReport(vm.selectedYear.split('/')[0], vm.sportoloId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Public modifyAthletes(SportolokId)\r\n */\r\n function modifyAthletes(VersenyzoId, SzakosztalyId, KorosztalyId) {\r\n console.log('Versenyzo: ', VersenyzoId, ', SzakosztalyId: ', SzakosztalyId);\r\n //if (vm.MODSPORTOLO || vm.MEGTSPORTLIST) { // check permission\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': SzakosztalyId},\r\n {'athleteList.selectedAgeGroupId': KorosztalyId},\r\n {'athleteModify.sportoloId': VersenyzoId}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n /*} else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }*/\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.trainingVisitReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.trainingVisitReport',\r\n config: {\r\n url: '/trainingVisitReport',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.html',\r\n controller: 'TrainingVisitReportController',\r\n controllerAs: 'vm',\r\n title: 'TrainingVisitReport'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteNewController.$inject = [\"log\", \"dataservice\", \"$q\", \"DOMAIN\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"VIEW_DATA\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteNew')\r\n .controller('AthleteNewController', AthleteNewController);\r\n\r\n function AthleteNewController(log, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, VIEW_DATA, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteNew');\r\n // Create variables\r\n // Default values\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage; // default image\r\n vm.photoUrl = vm.noImgUrl; // User image\r\n\r\n // Opened fields in Accordion\r\n vm.selectedItems = [0, 1];\r\n //Not used at the moment vm.section = ''; // section (szakosztály)\r\n //not used at the moment vm.secondSection = ''; // Second section\r\n vm.thereIsSelectedAthlete = false;\r\n vm.noSelectedAthlete = true;\r\n\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.fatherNames = [];\r\n vm.motherNames = [];\r\n getParentNames();\r\n //gettextCatalog.getString('RequiredFieldsError')\r\n vm.betterHandList = [{\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.betterFootList = [{\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('EducationFee'), value: 0},\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n\r\n // If changed the fee of education, show that the date is correct or not\r\n vm.feeOfEducationDateOk = false;\r\n vm.ageGroupList = []; // recived age group list\r\n vm.secondAgeGroupList = [];\r\n vm.sectionList = []; // recived section list\r\n vm.secondSectionList = [];\r\n vm.selectedAgeGroupId = '';\r\n\r\n // Athlete parameters\r\n vm.selectedAgeGroupText = undefined; // selected age group name\r\n vm.athleteData = {\r\n Id: undefined,\r\n AdoSzam: undefined, // String\r\n Aktiv: undefined, // Boolean\r\n AktTestmagassag: undefined, // Int32?\r\n AktTestsuly: undefined, // Int32?\r\n Allampolgarsag: undefined, // String\r\n AnyjaLeanykoriNeve: undefined, // String\r\n AnyjaNeve: undefined, // String\r\n AnyjaTestmagassaga: undefined, // Int32?\r\n ApjaTestmagassaga: undefined, // Int32\r\n BefOktdij: undefined, // Decimal\r\n BefTagdij: undefined, // Decimal\r\n DSITagsagKezdete: undefined, // DateTime\r\n EddigiEdzoi: undefined, // String\r\n EddigiSpEgyesuletei: undefined, // String\r\n EdzesreJarasKezdete: undefined, // DateTime\r\n Egyenleg: undefined, // Decimal\r\n Elerhetoseg: undefined, // String\r\n EmailCim: undefined, // String\r\n EvzarasOsszege: undefined, // Decimal?\r\n FajiEredet: undefined, // String\r\n Fenykep: undefined, // Byte[]\r\n FenykepUt: undefined, // String\r\n fileData: null,\r\n FurdokopenyDb: undefined, // String\r\n FurdokopenyErtek: undefined, // String\r\n FurdokopenyMerete: undefined, // String\r\n GyermekkoriSport: undefined, // String\r\n IdSzakosztaly: undefined, // Int32\r\n IskolaEvfolyam: undefined, // String\r\n IskolaHazszam: undefined, // String\r\n IskolaIgazgatoNeve: undefined, // String\r\n IskolaIrSzam: undefined, // String\r\n IskolaNeve: undefined, // String\r\n IskolaOsztaly: undefined, // String\r\n IskolaUtca: undefined, // String\r\n IskolaVaros: undefined, // String\r\n JelenlegiEdzo: undefined, // int\r\n KabatDb: undefined, // String\r\n KabatErtek: undefined, // String\r\n KabatMerete: undefined, // String\r\n KilepesDatuma: undefined, // DateTime\r\n KilepesIndoka: undefined, // String\r\n Korcsoport: undefined, // Int32\r\n LakcimHazszam: undefined, // String\r\n LakcimIrSzam: undefined, // String\r\n LakcimMegye: undefined, // String\r\n LakcimUtca: undefined, // String\r\n LakcimVaros: undefined, // String\r\n LeanykoriNev: undefined, // String\r\n MasodlagosSzakosztalyId: undefined, // Int32?\r\n MasodlagosKorcsoport: undefined,\r\n MasodlagosSzakosztalyEdzoId: undefined,\r\n Megjegyzes: undefined, // String\r\n MelegitoDb: undefined, // String\r\n MelegitoErtek: undefined, // String\r\n MelegitoMerete: undefined, // String\r\n Neme: undefined, // String\r\n Nev: undefined, // String\r\n OsztalyFonokNeve: undefined, // String\r\n PancelNadragDb: undefined, // String\r\n PancelNadragErtek: undefined, // String\r\n PancelNadragMerete: undefined, // String\r\n UszoNadragMerete: undefined, // String\r\n PapucsDb: undefined, // String\r\n PapucsErtek: undefined, // String\r\n PapucsMerete: undefined, // String\r\n PoloDb: undefined, // String\r\n PoloErtek: undefined, // String\r\n PoloMerete: undefined, // String\r\n PubertasVege: undefined, // DateTime\r\n RegisztraciosSzam: undefined, // String\r\n SortDb: undefined, // String\r\n SortErtek: undefined, // String\r\n SortMerete: undefined, // String\r\n SportoloiMultAnya: undefined, // String\r\n SportoloiMultApa: undefined, // String\r\n SportolokID: undefined, // Int32\r\n SzakosztalyNev: undefined, // String\r\n SzemIgSzam: undefined, // String\r\n SzuletesiHelyOrszag: undefined,\r\n SzuletesiHelyVaros: undefined, // String\r\n SzuletesiIdo: undefined, // DateTime\r\n Szulo1Elerhetosege: undefined, // String\r\n Szulo2Elerhetosege: undefined, // String\r\n AnyjaFoglalkozasa: undefined, // String\r\n ApjaFoglalkozasa: undefined,\r\n SzuloNeve: undefined, // String\r\n SzunideiElfoglaltsag: undefined, // String\r\n Tagdijas: undefined, // Boolean\r\n TAJSzam: undefined, // String\r\n Testmagassag: undefined, // Int32?\r\n TestneveloElerhetosege: undefined, // String\r\n TestneveloNeve: undefined, // String\r\n Testsuly: undefined, // Int32?\r\n UgyesebbKez: undefined, // String\r\n UgyesebbLab: undefined, // String\r\n UtlevelSzam: undefined, // String\r\n UtolsoFrissites: undefined, // DateTime\r\n ValasztottSportagak: undefined, // String\r\n VersSportKezd: undefined, // DateTime\r\n VisszalepesDatuma: undefined, // DateTime?\r\n dddd: undefined,\r\n JatekEngedelySzama: undefined\r\n };\r\n\r\n vm.RUHA = {\r\n CIPO: false,\r\n PAPUCS: false,\r\n MELEGITO: false,\r\n FURDOKOPENY: false,\r\n KABAT: false,\r\n PANCELNADRAG: false,\r\n POLO: false,\r\n SORT: false,\r\n USZONADRAG: false\r\n };\r\n\r\n vm.athleteId = -1; // for sql quetion\r\n // This value show when start the new Fee of education mode\r\n vm.feeOfEducationDate = undefined;\r\n // Current coach name in text by Id\r\n vm.currentCoachNameInText = undefined;\r\n\r\n // Grid's details\r\n vm.schoolGridSelectedRowData = {};\r\n // Grid columnsSchool\r\n\r\n vm.columnsSchool = [\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', headerTextAlign: 'center', width: 200},\r\n {field: 'IskolaIrSzam', headerText: gettextCatalog.getString('SchoolZipCode'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'IskolaVaros', headerText: gettextCatalog.getString('SchoolCity'), textAlign: 'center', headerTextAlign: 'center', width: 75},\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('SchoolStreet'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('SchoolNumber'), textAlign: 'center', headerTextAlign: 'center', width: 75},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('SchoolDirectorName'), textAlign: 'center', headerTextAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.visibleSchooSelectlGrid = false;\r\n\r\n // Grid columnsAthleteMoveStory\r\n vm.columnsAthleteMoveStory = [\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('StartTime'), textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('EndTime'), textAlign: 'center'},\r\n {field: 'Belepes', headerText: gettextCatalog.getString('Enter'), textAlign: 'center'},\r\n {field: 'Kilepes', headerText: gettextCatalog.getString('GoOut'), textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n // AthleteNew functions\r\n // Drop Down List function\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.getSections = getSections;\r\n\r\n vm.secondSectionDataBound = secondSectionDataBound;\r\n vm.secondSectionSelect = secondSectionSelect;\r\n vm.secondCoachSelect = secondCoachSelect;\r\n\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.secondCoachDropDownListDataBound = secondCoachDropDownListDataBound;\r\n\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.seconAgeGroupDataBound = secondAgeGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.secondAgeGroupSelect = secondAgeGroupSelect;\r\n\r\n // Top menu buttons functions\r\n vm.goToAthleteResults = goToAthleteResults; // Public Athlete's results\r\n\r\n // Image cropper variables\r\n vm.deleteImg = deleteImg; // Public, delete the photo from user profile 999 Hofi\r\n\r\n vm.save = save;\r\n vm.cropper = {}; // Ricsi\r\n vm.cropper.sourceImage = null; // Ricsi\r\n vm.cropper.croppedImage = null; // Ricsi\r\n vm.bounds = {}; // Ricsi\r\n vm.bounds.left = 0; // Ricsi\r\n vm.bounds.right = 0; // Ricsi\r\n vm.bounds.top = 0; // Ricsi\r\n vm.bounds.bottom = 0; // Ricsi\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle'); // Ricsi\r\n\r\n vm.openCropDialog = openCropDialog; // Ricsi\r\n vm.doneCropDialog = doneCropDialog; // Ricsi\r\n vm.closeCropDialog = closeCropDialog; // Ricsi\r\n // Change Age Group\r\n vm.changeAgeGroup = changeAgeGroup;\r\n // sex (gende) dropdown public function\r\n vm.sexSelect = sexSelect;\r\n // Height dropdown public function\r\n vm.changeHeight = changeHeight;\r\n // Weight dropdown public function\r\n vm.changeWeight = changeWeight;\r\n // better Hand dropdown public function\r\n vm.betterHandDataBound = betterHandDataBound;\r\n vm.betterHandSelect = betterHandSelect;\r\n // better Foot dropdown public function\r\n vm.betterFootSelect = betterFootSelect;\r\n vm.feeOfEducationBound = feeOfEducationBound;\r\n // Social security number required\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n\r\n // select coach\r\n //vm.selectCoachBtn = selectCoachBtn;\r\n // Select Schools\r\n vm.selectSchools = selectSchools;\r\n // Public functions for grid databound\r\n vm.schoolList = [];\r\n // Grid selcted row\r\n vm.schoolGridSelectedRow = schoolGridSelectedRow;\r\n // Selected coach\r\n vm.coachSelect = coachSelect;\r\n vm.coachList = [];\r\n vm.secondCoachList = [];\r\n\r\n vm.clearSecondSection = clearSecondSection;\r\n vm.clearSecondAgeGroup = clearSecondAgeGroup;\r\n vm.clearSecondCoach = clearSecondCoach;\r\n\r\n // Active\r\n vm.activeChange = activeChange;\r\n\r\n // School Grid datasource initial\r\n vm.coachListGridData = [];\r\n\r\n vm.ADMIN = false;\r\n vm.TORLCSOPORT = false;\r\n vm.MODCSOPORT = false;\r\n\r\n vm.tajkeres = true;\r\n\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n vm.schoolNameChanged = schoolNameChanged;\r\n vm.generateRegNum = generateRegNum;\r\n\r\n vm.generateAvatar = generateAvatar;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n columns: vm.columnsSchool,\r\n rowSelected: schoolGridSelectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Activate page\r\n activate();\r\n $scope.$on('$viewContentLoaded', function () {\r\n // Set checkbox\r\n angular.element('#active').ejCheckBox({checked: true});\r\n });\r\n\r\n function activate() {\r\n // need paramHelper params (e.g. athleteId)\r\n $q.all([paramHelper.getParams([], ['athleteNew.sportolokId', 'athleteNew.ageGroupList', 'athleteNew.selectedSectionId', 'athleteNew.selectedSectionName', 'athleteNew.selectedAgeGroupName', 'athleteNew.selectedAgeGroupId', 'athleteNew.sectionList']), authenticationService.getRight('ADMIN'), authenticationService.getRight('TORLCSOPORT'), authenticationService.getRight('MODCSOPORT'), getSystemSettings('TAJKOTELEZO'), getSystemSettings('SNYSZKOTELEZO'), getSystemSettings('SPORTMINKOTELEZO'), getSystemSettings('NINCSOKTDIJ')]).then(function (results) {\r\n vm.ADMIN = results[1];\r\n vm.TORLCSOPORT = results[2];\r\n vm.MODCSOPORT = results[3];\r\n vm.NINCSOKTDIJ = results[7];\r\n if (vm.NINCSOKTDIJ) {\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n }\r\n vm.athleteId = results[0]['athleteNew.sportolokId'];\r\n vm.athleteData.IdSzakosztaly = results[0]['athleteNew.selectedSectionId'];\r\n vm.athleteData.SzakosztalyNev = results[0]['athleteNew.selectedSectionName'];\r\n vm.athleteData.Korcsoport = results[0]['athleteNew.selectedAgeGroupId'];\r\n vm.selectedAgeGroupText = results[0]['athleteNew.selectedAgeGroupName'];\r\n vm.athleteData.KorcsoportName = results[0]['athleteNew.selectedAgeGroupName'];\r\n\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.userImage; // User image\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.athleteData.Aktiv = true;\r\n\r\n // Get Coach list for dropDown\r\n vm.socialSecurityNumberRequiredValue = results[4];\r\n vm.athleteRegistrationNumberRequiredValue = results[5];\r\n vm.athleteRequiredMinimumDatas = results[6];\r\n\r\n RefreshClothes();\r\n // This functions runs after thel all datas arrived\r\n // Get section list\r\n getSecondSections();\r\n // set feeOfEducation dropDownList selected value\r\n feeOfEducationSetSelectedValue();\r\n // get schools\r\n //selectSchools();\r\n $timeout(function () {\r\n var t = {\r\n text: results[0]['athleteNew.selectedSectionName'],\r\n value: results[0]['athleteNew.selectedSectionId']\r\n };\r\n vm.sectionList = results[0]['athleteNew.sectionList'];\r\n\r\n vm.ageGroupList = results[0]['athleteNew.ageGroupList'];\r\n\r\n if (vm.ageGroupList != null && vm.ageGroupList.length > 0 && vm.ageGroupList[0].value === 0) {\r\n vm.ageGroupList.splice(0, 1);\r\n }\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n function generateAvatar(nem) {\r\n var ava = 'ath_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n if (ava == vm.photoUrl) {\r\n generateAvatar(nem);\r\n }\r\n return ava;\r\n }\r\n\r\n function RefreshClothes() {\r\n $timeout(function () {\r\n dataservice.SzakosztalyRuhai(vm.athleteData.IdSzakosztaly, vm.athleteData.MasodlagosSzakosztaly).then(function (ruhaResponse) {\r\n vm.RUHA = ruhaResponse.data;\r\n });\r\n }, 100);\r\n }\r\n\r\n function saveAnyway() {\r\n var value = $('#feeOfEducation').ejDropDownList('getSelectedValue');\r\n switch (value) {\r\n case 0:\r\n case '0':\r\n vm.athleteData.Tagdijas = false; // Oktatási díjas\r\n break;\r\n case 1:\r\n case '1':\r\n default:\r\n vm.athleteData.Tagdijas = true;\r\n break;\r\n }\r\n vm.athleteData.TAJSzam = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n\r\n // kép küldése, ha választott\r\n vm.athleteData.FenykepUt = vm.photoUrl;\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.athleteData.FenykepUt = angular.element('#fileName').val();\r\n vm.athleteData.Fenykep = vm.cropper.croppedImage;\r\n }\r\n\r\n if (vm.photoUrl === vm.noImg) {\r\n vm.athleteData.fileName = 'avatar_2x.png';\r\n vm.athleteData.Fenykep = null;\r\n }\r\n var dsiTime = new Date(vm.athleteData.DSITagsagKezdete);\r\n\r\n if (dsiTime.getTime() > new Date()) {\r\n swal({\r\n title: gettextCatalog.getString('DateError'),\r\n text: gettextCatalog.getString('TheMemberOfDSIDateLateThenNow'),\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n if (vm.athleteData.MasodlagosSzakosztaly > 0) {\r\n if (vm.athleteData.MasodlagosKorcsoport > 0) {\r\n if (!(vm.athleteData.MasodlagosSzakosztalyEdzoId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n }\r\n dataservice.saveNewAthlete(vm.athleteData)\r\n .then(\r\n function () {\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: gettextCatalog.getString('SaveAthleteSuccess'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: false,\r\n allowOutsideClick: false\r\n }).then(\r\n function () {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport},\r\n {'athleteList.inactiveTeams': false}\r\n ]);\r\n $state.go('athletes.athletesManagement.athletesList');\r\n });\r\n });\r\n }\r\n }\r\n\r\n function save() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n angular.element('#accordion').ejAccordion('expandAll');\r\n } else {\r\n dataservice.SimilarAthleteExist({\r\n nev: vm.athleteData.Nev,\r\n datum: vm.athleteData.SzuletesiIdo\r\n }).then(function (response) {\r\n if (response.retValue) {\r\n swal({\r\n title: gettextCatalog.getString('SimilarAthlete'),\r\n text: gettextCatalog.getString('WeFoundASimilarAthleteContinueText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveAnyway();\r\n }\r\n });\r\n } else {\r\n saveAnyway();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function generateRegNum() {\r\n dataservice.GenerateRegNum().then(function (data) {\r\n vm.athleteData.RegisztraciosSzam = data.data;\r\n });\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n vm.displayPhoto = vm.photoUrl;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n if (vm.athleteData.FerfiB != null) {\r\n var nem = vm.athleteData.FerfiB ? 'male' : 'female';\r\n vm.cropper.sourceImage = null;\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n } else {\r\n vm.cropper.sourceImage = null;\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.displayPhoto = vm.photoUrl;\r\n }\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.athleteData.JelenlegiEdzo)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n getAgeGroups();\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.athleteData.IdSzakosztaly = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getSecondSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // itt ki kell venni a listából az elsődleges section-t (vm.athleteData.IdSzakosztaly)\r\n // for (var i = 0; i < data.itemsList.length; i++) {\r\n // if ((data.itemsList[i].value + '') === vm.athleteData.IdSzakosztaly) {\r\n // data.itemsList.splice(i, 1);\r\n // }\r\n // }\r\n vm.secondSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondSectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#secondSectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#secondSectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosSzakosztaly);\r\n }\r\n }\r\n\r\n function secondSectionSelect(selectedSection) {\r\n if (selectedSection.value > -1) {\r\n vm.athleteData.MasodlagosSzakosztalyId = selectedSection.value;\r\n getSecondAgeGroups();\r\n RefreshClothes();\r\n } else {\r\n vm.athleteData.MasodlagosSzakosztalyId = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined; // clear list until not selected agegroup\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined; // clear list until not selected agegroup\r\n vm.secondAgeGroupList = [];\r\n vm.secondCoachList = []; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function getSecondAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.MasodlagosSzakosztalyId)\r\n .then(function (data) {\r\n vm.secondAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondAgeGroupDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.secondAgeGroupList[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupSelect(args) {\r\n if (args.value > -1) {\r\n vm.athleteData.MasodlagosKorcsoport = args.value;\r\n getSecondCoachesList();\r\n } else {\r\n vm.athleteData.MasodlagosKorcsoport = undefined, // clear list until not selected agegroup\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined, // clear list until not selected agegroup\r\n vm.secondCoachList = []; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function getSecondCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.MasodlagosSzakosztaly, vm.athleteData.MasodlagosKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondCoachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n //vm.selectedCoach = vm.coachList[0].value;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function secondCoachSelect(args) {\r\n //vm.selectedCoach = args.value;\r\n if (args.value > -1) {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = args.value;\r\n } else {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function changeAgeGroup() {\r\n paramHelper.setParams([{'ageGroupChange.athleteData': vm.athleteData}]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.IdSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n //getActualCoachesList();\r\n // itt kérjük le az edzőt\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.athleteData.Korcsoport = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.IdSzakosztaly, vm.athleteData.Korcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n //vm.selectedCoach = vm.coachList[0].value;\r\n vm.athleteData.JelenlegiEdzo = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.athleteData.JelenlegiEdzo = args.value;\r\n }\r\n\r\n function sexSelect(arg) {\r\n //vm.sexNum\r\n if (vm.cropper.sourceImage == null || vm.photoUrl == vm.noImgUrl) {\r\n var nem = arg.value ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n }\r\n vm.athleteData.FerfiB = arg.value === 1;\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.athleteData.Testmagassag = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.athleteData.Testsuly = args.value;\r\n }\r\n\r\n function betterHandDataBound() {\r\n angular.element('#betterHandDropDown').ejDropDownList('selectItemByText', vm.athleteData.UgyesebbKez);\r\n }\r\n\r\n function betterHandSelect(arg) {\r\n vm.athleteData.UgyesebbKezT = arg.value;\r\n vm.athleteData.UgyesebbKez = arg.selectedText;\r\n }\r\n\r\n function betterFootSelect(arg) {\r\n vm.athleteData.UgyesebbLabT = arg.value;\r\n vm.athleteData.UgyesebbLab = arg.selectedText;\r\n }\r\n\r\n function feeOfEducationBound() {\r\n angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', 1);\r\n }\r\n\r\n function feeOfEducationSetSelectedValue() {\r\n angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', 'Sportszolgáltatási díjas');\r\n }\r\n\r\n function selectSchools() {\r\n if (vm.visibleSchooSelectlGrid) {\r\n angular.element('#hidedContent').css('height', '0px');\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '100%');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function schoolGridSelectedRow(args) {\r\n // Ha megvan a kiválasztott sor, el kell tüntetni a Gridet\r\n vm.schoolGridSelectedRowData = args.data;\r\n vm.athleteData.IskolaEvfolyam = vm.schoolGridSelectedRowData.IskolaEvfolyam; // String\r\n vm.athleteData.IskolaNeve = vm.schoolGridSelectedRowData.IskolaNeve; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaVaros = vm.schoolGridSelectedRowData.IskolaVaros; // String\r\n vm.athleteData.IskolaUtca = vm.schoolGridSelectedRowData.IskolaUtca; // String\r\n vm.athleteData.IskolaHazszam = vm.schoolGridSelectedRowData.IskolaHazszam; // String\r\n vm.athleteData.IskolaOsztaly = vm.schoolGridSelectedRowData.IskolaOsztaly; // String\r\n vm.athleteData.IskolaIgazgatoNeve = vm.schoolGridSelectedRowData.IskolaIgazgatoNeve; // String\r\n $scope.$apply();\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '0px');\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.athleteData.Aktiv = args.value;\r\n }\r\n\r\n function goToAthleteResults() {\r\n var coachItem = angular.element('#coachName').data('ejDropDownList').getSelectedItem()[0];\r\n if (angular.isDefined(coachItem)) {\r\n vm.athleteData.EdzoNev = angular.element('#coachName').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.athleteData.EdzoNev = '';\r\n }\r\n vm.athleteData.KorcsoportNev = vm.selectedAgeGroupText;\r\n paramHelper.setParams([{'raceResultsReport.athleteData': vm.athleteData}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n return dataservice.getSystemSettings(arg).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function clearSecondSection() {\r\n vm.athleteData.MasodlagosSzakosztaly = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.secondAgeGroupList = [];\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondSectionDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondAgeGroup() {\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondAgeGroupDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondCoach() {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n $('#secondCoachNameDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n vm.emptyResultText = gettextCatalog.getString('emptyResultText');\r\n\r\n function schoolNameChanged() {\r\n if (vm.athleteData.IskolaNeve && vm.athleteData.IskolaNeve.length > 0) {\r\n dataservice.getGymTeachers(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.gymTeacherDatasource = data.itemsList;\r\n });\r\n dataservice.getClassMasters(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.classMasterDatasource = data.itemsList;\r\n });\r\n } else {\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n }\r\n }\r\n\r\n vm.selectOf = selectOf;\r\n\r\n function selectOf(arg) {\r\n for (var i = 0; i < vm.classMasterDatasource.length; i++) {\r\n if (arg.value == vm.classMasterDatasource[i].value) {\r\n dataservice.getClassMasterContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.OfTel = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.OfEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n vm.selectTesiTanar = selectTesiTanar;\r\n\r\n function selectTesiTanar(arg) {\r\n for (var i = 0; i < vm.gymTeacherDatasource.length; i++) {\r\n if (arg.value == vm.gymTeacherDatasource[i].value) {\r\n dataservice.getGymTeacherContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.TestneveloElerhetosege = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.TestneveloEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n function getParentNames() {\r\n dataservice.getParentNames().then(function (data) {\r\n for (var i = 0; i < data.data.father.length; i++) {\r\n vm.fatherNames.push({value: data.data.father[i], text: data.data.father[i]});\r\n }\r\n for (var i = 0; i < data.data.mother.length; i++) {\r\n vm.motherNames.push({value: data.data.mother[i], text: data.data.mother[i]});\r\n }\r\n });\r\n }\r\n\r\n vm.selectMother = selectMother;\r\n\r\n function selectMother(arg) {\r\n if (arg && arg.value.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = '';\r\n vm.athleteData.AnyaEmail = '';\r\n vm.athleteData.AnyjaTestmagassaga = '';\r\n vm.athleteData.AnyjaFoglalkozasa = '';\r\n vm.athleteData.AnyaMunkahely = '';\r\n vm.athleteData.SportoloiMultAnya = '';\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1) {\r\n getParentData('mother', arg.value);\r\n vm.athleteData.AnyjaNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n vm.selectFather = selectFather;\r\n\r\n function selectFather(arg) {\r\n if (arg && arg.value.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = '';\r\n vm.athleteData.ApaEmail = '';\r\n vm.athleteData.ApjaTestmagassaga = '';\r\n vm.athleteData.ApjaFoglalkozasa = '';\r\n vm.athleteData.ApaMunkahely = '';\r\n vm.athleteData.SportoloiMultApa = '';\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1) {\r\n getParentData('father', arg.value);\r\n vm.athleteData.SzuloNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n function getParentData(parent, arg) {\r\n dataservice.getParentDataPOST(parent, arg).then(function (data) {\r\n if (parent == 'father') {\r\n if (data.data) {\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.ApaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.ApjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.ApjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.ApaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultApa = data.data.sportpast;\r\n }\r\n }\r\n } else if (parent == 'mother') {\r\n if (data.data) {\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.AnyaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.AnyjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.AnyjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.AnyaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultAnya = data.data.sportpast;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athleteNew')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteNew',\r\n config: {\r\n url: '/athleteNew',\r\n templateUrl: 'app/athletes/athletesManagement/athleteNew/athleteNew.html',\r\n controller: 'AthleteNewController',\r\n controllerAs: 'vm',\r\n title: 'AthleteNew',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n athletesListController.$inject = [\"log\", \"dataservice\", \"$q\", \"$state\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athletesList')\r\n .controller('AthletesListController', athletesListController);\r\n\r\n function athletesListController(log, dataservice, $q, $state, gettextCatalog, $scope, paramHelper, authenticationService, $filter, $rootScope, $timeout) {\r\n let vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n this.params = []; // for parameters sending\r\n\r\n vm.userid = authenticationService.getAuthData().id;\r\n\r\n $rootScope.title = gettextCatalog.getString('AthletesList');\r\n\r\n // Permissions\r\n this.MEGTSPORTLIST = false;\r\n this.MEGTCSOPORT = false;\r\n this.MEGTKOROSZT = false;\r\n this.MODSPORTOLO = false;\r\n this.UJSPORTOLO = false;\r\n this.MEGTSPORTLIST = false;\r\n this.SPORTKILEP = false;\r\n this.MODFELH = false;\r\n this.KMVERSEREDM = false;\r\n this.athleteResultsBtnEnabled = false;\r\n // Dropdownlist's sources\r\n this.sectionList = [];\r\n this.ageGroupList = [];\r\n this.athleteList = [];\r\n // Dropdown values\r\n this.selectedSectionId = '';\r\n this.selectedAgeGroupId = '';\r\n this.selectedAgeGroupName = '';\r\n this.sportoliId = -1;\r\n // Checkbox variables\r\n this.checkboxEnabled = false;\r\n // Grid's details\r\n this.selectedAthleteExitDate = '';\r\n this.exitAthleteDateOk = false;\r\n this.selectedExitDate = undefined;\r\n this.athleteCompetitionResult = false;\r\n this.exitAthletesEnabled = true;\r\n // Grid columns\r\n this.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Athletes'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#templateDataRow1',\r\n width: 150\r\n },\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n template: '#templateDataRow2',\r\n width: 125\r\n },\r\n {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('PayedSportServiceFee'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('PayedEducationalFee'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', headerTextAlign: 'center', width: 100}\r\n ];\r\n\r\n let grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: this.columns,\r\n rowDataBound: (args) => {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: (args) => {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = (args) => {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n let activate = () => {\r\n if (!authenticationService.isAuthenticated()) {\r\n $rootScope.login();\r\n return;\r\n }\r\n Promise.all([paramHelper.getParams([],\r\n [\r\n 'athleteList.selectedSectionId',\r\n 'athleteList.selectedAgeGroupId',\r\n 'athleteList.inactiveAthletes'\r\n ]),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTCSOPORT'),\r\n authenticationService.getRight('MEGTKOROSZT'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('UJSPORTOLO'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('KMVERSEREDM')\r\n ]).then((results) => {\r\n // Nem épül fel a DOM Three, mire érték adódik\r\n $timeout(() => {\r\n this.MEGTSPORTLIST = results[1];\r\n this.MEGTCSOPORT = results[2];\r\n this.MEGTKOROSZT = results[3];\r\n this.MODSPORTOLO = results[4];\r\n this.UJSPORTOLO = results[5];\r\n this.SPORTKILEP = results[6];\r\n this.MODFELH = results[7];\r\n this.KMVERSEREDM = results[8];\r\n\r\n if (!(this.MEGTSPORTLIST)) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n // set selected values for dropDownLists\r\n this.params.sectionId = results[0]['athleteList.selectedSectionId'];\r\n this.params.selectedAgeGroupId = results[0]['athleteList.selectedAgeGroupId'];\r\n // set selected values for checkBox\r\n this.params.inactiveAthletes = results[0]['athleteList.inactiveAthletes'];\r\n // Permission for delete\r\n this.TORLCSOPORT = results[1];\r\n // Permission for modify\r\n this.MODCSOPORT = results[2];\r\n // Set params for checkBox\r\n // if (!this.params.inactiveAthletes) {\r\n // this.inactiveAthletes = false;\r\n // } else {\r\n // this.inactiveAthletes = true;\r\n // }\r\n angular.element('#active').ejCheckBox({checked: this.params.inactiveAthletes});\r\n // Get section list\r\n getSections();\r\n }, 0);\r\n });\r\n };\r\n\r\n let getSections = () => {\r\n dataservice.sectionDropDownList(0)\r\n .then((data) => {\r\n this.sectionList = data.itemsList;\r\n });\r\n };\r\n\r\n this.sectionDataBound = () => {\r\n this.selectedSectionId = this.sectionList.length === 1 ? this.sectionList[0].value : this.params.sectionId;\r\n };\r\n\r\n this.sectionSelect = (args) => {\r\n this.selectedSectionId = args.value;\r\n this.checkboxEnabled = true;\r\n if (angular.isUndefined(this.params.ageGroupId)) {\r\n //getTeams();\r\n getAthletes();\r\n }\r\n getAgeGroups();\r\n paramHelper.setParams([{'athleteList.selectedSectionId': this.selectedSectionId}]);\r\n };\r\n\r\n let getAgeGroups = () => {\r\n dataservice.ageGroupDropDownList(this.selectedSectionId)\r\n .then((data) => {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n this.ageGroupList = data.itemsList;\r\n if (this.ageGroupList.length == 1) {\r\n $timeout(() => {\r\n this.ageGroupId = this.ageGroupList[0].value;\r\n }, 0);\r\n }\r\n });\r\n };\r\n\r\n this.ageGroupDataBound = () => {\r\n if (this.ageGroupList.length === 1) {\r\n this.selectedAgeGroupId = this.ageGroupList[0].value;\r\n } else {\r\n if (this.params.sectionId && this.params.selectedAgeGroupId && parseInt(this.params.sectionId) === parseInt(this.selectedSectionId)) {\r\n this.selectedAgeGroupId = this.params.selectedAgeGroupId;\r\n } else {\r\n this.selectedAgeGroupId = 0;\r\n }\r\n }\r\n };\r\n\r\n this.ageGroupSelect = (args) => {\r\n this.selectedAgeGroupId = args.value;\r\n //getTeams();\r\n getAthletes();\r\n paramHelper.setParams([{'athleteList.selectedAgeGroupId': this.selectedAgeGroupId}]);\r\n };\r\n\r\n let getAthletes = () => {\r\n dataservice.athletesSelect(this.selectedSectionId, this.selectedAgeGroupId, this.inactiveAthletes)\r\n .then((data) => {\r\n this.athleteResultsBtnEnabled = false;\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n };\r\n\r\n this.inactiveChange = (args) => {\r\n this.inactiveAthletes = args.value;\r\n this.exitAthletesEnabled = !args.value;\r\n getAthletes();\r\n paramHelper.setParams([{'athleteList.inactiveAthletes': this.inactiveAthletes}]);\r\n };\r\n\r\n this.goToUser = (EdzoId) => {\r\n if (!this.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n };\r\n\r\n this.goToNewAthlete = () => {\r\n if (this.selectedSectionId > 0) {\r\n // Save data for restore\r\n this.selectedSectionName = angular.element('#sectionDropDown').data('ejDropDownList').selectedTextValue;\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n\r\n paramHelper.setParams([\r\n {'athleteNew.sportolokId': -1},\r\n {'athleteNew.sectionList': this.sectionList},\r\n {'athleteNew.selectedSectionId': this.selectedSectionId},\r\n {'athleteNew.selectedSectionName': this.selectedSectionName},\r\n {'athleteNew.ageGroupList': this.ageGroupList},\r\n {'athleteNew.selectedAgeGroupId': this.selectedAgeGroupId},\r\n {'athleteNew.selectedAgeGroupName': this.selectedAgeGroupName},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteNew');\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('RequiredSection'));\r\n }\r\n };\r\n\r\n this.modifyAthletes = (id) => {\r\n if (this.MODSPORTOLO || this.MEGTSPORTLIST) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': id},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }\r\n };\r\n\r\n this.modifyAthletesButton = () => {\r\n if (this.MODSPORTOLO || this.MEGTSPORTLIST) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': selectedAthletes[0].SportolokId},\r\n {'athleteModify.sportoloNev': selectedAthletes[0].Nev},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }\r\n };\r\n\r\n let saveExitAthletes = () => {\r\n let data = {};\r\n this.athletesId = [];\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n for (let i = 0; i < selectedAthletes.length; i++) {\r\n this.athletesId.push(selectedAthletes[i].SportolokId);\r\n }\r\n data.athletesId = this.athletesId;\r\n data.selectedExitDate = this.selectedExitDate;\r\n data.noteExitText = this.noteExitText;\r\n data.firstSection = true;\r\n if (!this.SPORTKILEP) {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n return;\r\n }\r\n dataservice.saveExitAthletes(data)\r\n .then((answer) => {\r\n console.log('saveExitAthletes answer', answer);\r\n // swal() kiírni az eredményt\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok',\r\n width: '35%'\r\n });\r\n var message = answer.message.replace('
', '\\n').replace(/<[^>]*>/g, '');\r\n dataservice.SendSystemMessage(vm.userid, message);\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n getAthletes();\r\n });\r\n };\r\n\r\n this.goneAthletesBtn = () => {\r\n if ($rootScope.checkRowSelection(grid)) {\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n let exitAthletesNames = '';\r\n for (let i = 0; i < selectedAthletes.length; i++) {\r\n exitAthletesNames += selectedAthletes[i].Nev + '; ';\r\n }\r\n\r\n this.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n\r\n let HTMLtext = `

\r\n

\r\n
\r\n
\r\n
\r\n

\r\n
\r\n

\r\n `;\r\n\r\n swal({\r\n title: gettextCatalog.getString('ExitAthlete'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Exiting'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: () => {\r\n let preConfOk = false;\r\n this.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n this.noteExitText = angular.element('#noteTextArea').val();\r\n return new Promise((resolve) => {\r\n if (this.selectedExitDate === null || !this.exitAthleteDateOk) {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate')); // Válaszd ki a kiléptetés dátumát!\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (this.noteExitText === null || this.noteExitText === '') {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText')); // Írd be a kiléptetés indokát!\r\n } else {\r\n preConfOk = true;\r\n }\r\n resolve();\r\n });\r\n },\r\n closeOnCancel: false\r\n }).then((confirmed) => {\r\n if (confirmed.value) {\r\n saveExitAthletes();\r\n swal.close();\r\n return true;\r\n } else {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notExitAthlete'), 'error');\r\n }\r\n });\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: (args) => {\r\n // Get current date\r\n let currentDate = new Date();\r\n this.selectedExitDate = new Date(args.value);\r\n /*\r\n if (this.selectedExitDate.getFullYear() > currentDate.getFullYear()) {\r\n // Error, no correct date\r\n this.exitAthleteDateOk = false;\r\n } else if (this.selectedExitDate.getMonth() > currentDate.getMonth()) {\r\n // Error, no correct date\r\n this.exitAthleteDateOk = false;\r\n } else {\r\n this.exitAthleteDateOk = this.selectedExitDate.getDate() === getMonthLastDay(args.value);\r\n }\r\n */\r\n this.exitAthleteDateOk = true;\r\n\r\n function getMonthLastDay(selectDate) {\r\n let date = new Date(selectDate);\r\n let y = date.getFullYear();\r\n let m = date.getMonth();\r\n let lastDay = new Date(y, m + 1, 0).getDate();\r\n return date.getDate();\r\n }\r\n }\r\n });\r\n }\r\n };\r\n\r\n this.competitionResult = () => {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'raceResultsReport.athleteData': selectedAthletes[0]}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n };\r\n\r\n // Activate page\r\n activate();\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement.athletesList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athletesList',\r\n config: {\r\n url: '/athletesList',\r\n templateUrl: 'app/athletes/athletesManagement/athletesList/athletesList.html',\r\n controller: 'AthletesListController',\r\n controllerAs: 'vm',\r\n title: 'AthletesList',\r\n settings: {\r\n navId: 211,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Tagnyilvántartás',\r\n orderTitle_en: 'Member register',\r\n parentId: 1,\r\n content: 'AthletesList',\r\n activatorPermission: ['\"MEGTSPORTLIST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.athletesManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement',\r\n config: {\r\n url: '/athletesManagement',\r\n templateUrl: 'app/athletes/athletesManagement/athletesManagement.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SectionsController.$inject = [\"logger\", \"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.athletes.sections')\r\n .controller('SectionsController', SectionsController);\r\n\r\n function SectionsController(logger, log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, paramHelper, $state) {\r\n $rootScope.title = gettextCatalog.getString('Sections');\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.editEnabled = false;\r\n vm.editEnabledPerm = false;\r\n\r\n vm.EditSection = EditSection;\r\n vm.AddSection = AddSection;\r\n\r\n activate();\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: '35px'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {\r\n field: 'SzakosztalyVezeto1',\r\n headerText: gettextCatalog.getString('PrimarySectionLeader'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 200\r\n },\r\n {\r\n field: 'SzakosztalyVezeto2',\r\n headerText: gettextCatalog.getString('SecondarySectionLeader'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 200\r\n },\r\n {\r\n field: 'Egyeni', headerText: gettextCatalog.getString('IndividualSport'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Csapat', headerText: gettextCatalog.getString('TeamSport'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Aktiv', headerText: gettextCatalog.getString('Aktiv'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 75\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n queryCellInfo: querycellinfo,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SZAKOSZTALY')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.userId = authenticationService.getAuthData().id;\r\n vm.editEnabledPerm = result[0];\r\n getSectionData();\r\n }\r\n });\r\n }\r\n\r\n function getSectionData() {\r\n dataservice.getSectionData(0).then(function (response) {\r\n grid.dataSource = response.itemsList;\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n if (arg.column.field == 'SzakosztalyNeve') {\r\n var cell = angular.element(arg.cell);\r\n cell.css('background-color', arg.data.Szin);\r\n cell.css('color', arg.data.SzovegSzin);\r\n }\r\n }\r\n\r\n function AddSection() {\r\n paramHelper.setParams([{'editSection.SectionId': -1}]);\r\n $state.go('settings.editSection');\r\n }\r\n\r\n function EditSection() {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n vm.editSection = selectedRecords[0];\r\n paramHelper.setParams([{'editSection.SectionId': vm.editSection.SzakosztalyID}]);\r\n $state.go('settings.editSection');\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.sections')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.sections',\r\n config: {\r\n url: '/sections',\r\n templateUrl: 'app/athletes/sections/sections.html',\r\n controller: 'SectionsController',\r\n controllerAs: 'vm',\r\n title: 'Sections',\r\n settings: {\r\n navId: 142,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Szakosztályok',\r\n orderTitle_en: 'Sections',\r\n parentId: 1,\r\n content: 'Sections',\r\n activatorPermission: ['\"SZAKOSZTALY\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AddTeamController.$inject = [\"log\", \"$state\", \"dataservice\", \"$q\", \"DOMAIN\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"authenticationService\", \"$rootScope\", \"validatorHelper\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.teams.addTeam')\r\n .controller('AddTeamController', AddTeamController);\r\n\r\n function AddTeamController(log, $state, dataservice, $q, DOMAIN, gettextCatalog, $scope, paramHelper, authenticationService, $rootScope, validatorHelper, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddTeam');\r\n\r\n vm.MEGTCSOPORT = false;\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n // Default values\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.formData = {\r\n FileData: null,\r\n FileName: DOMAIN.userImage,\r\n TeamName: undefined,\r\n Comment: undefined,\r\n SectionId: undefined,\r\n AgeGroupId: undefined,\r\n CoachId: undefined,\r\n ActiveTeam: true\r\n };\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n // Public functions\r\n vm.saveTeam = saveTeam;\r\n vm.saveTeamAndAddMembers = saveTeamAndAddMembers;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.simpleSave = simpleSave;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['teams.sectionId', 'teams.ageGroupId']), authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n vm.formData.SectionId = results[0]['teams.sectionId'];\r\n vm.formData.AgeGroupId = results[0]['teams.ageGroupId'];\r\n $timeout(function () {\r\n vm.MEGTCSOPORT = results[1];\r\n }, 0);\r\n angular.element('#ActiveTeam').ejCheckBox({checked: vm.formData.ActiveTeam});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#SectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#SectionId').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formData.SectionId)\r\n .then(function (data) {\r\n vm.formData.CoachId = undefined;\r\n vm.coachList = [];\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#AgeGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.AgeGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#AgeGroupId').ejDropDownList('selectItemByValue', vm.formData.AgeGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formData.AgeGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formData.SectionId, vm.formData.AgeGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#CoachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.CoachId = vm.coachList[0].value;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formData.CoachId = args.value;\r\n }\r\n\r\n function saveTeam(simpleSave) {\r\n if (angular.element('#FileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.FileData = vm.cropper.croppedImage;\r\n vm.formData.FileName = angular.element('#FileName').val();\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n dataservice.saveTeam(vm.formData)\r\n .then(function (data) {\r\n log.successMsg('TeamSaved');\r\n paramHelper.setParams([{'teams.sectionId': vm.formData.SectionId}, {'teams.ageGroupId': vm.formData.AgeGroupId}]);\r\n if (simpleSave) {\r\n $state.go('athletes.teams.teamList');\r\n } else {\r\n paramHelper.setParams([{'teams.team': data.res}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n }, function (response) {\r\n validatorHelper.validate(response, $scope.form);\r\n });\r\n }\r\n }\r\n\r\n function simpleSave() {\r\n saveTeam(true);\r\n }\r\n\r\n function saveTeamAndAddMembers() {\r\n saveTeam(false);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#FileName').val('');\r\n vm.photoUrl = vm.noImg;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams.addTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.addTeam',\r\n config: {\r\n url: '/addTeam',\r\n templateUrl: 'app/athletes/teams/addTeam/addTeam.html',\r\n controller: 'AddTeamController',\r\n controllerAs: 'vm',\r\n title: 'AddTeams'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AddTeamMember.$inject = [\"log\", \"$state\", \"dataservice\", \"$q\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$rootScope\", \"$filter\"];\r\n angular\r\n .module('app.athletes.teams.addTeamMember')\r\n .controller('AddTeamMemberController', AddTeamMember);\r\n\r\n function AddTeamMember(log, $state, dataservice, $q, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddTeamMember');\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', headerTextAlign: 'center', width: 35},\r\n {\r\n field: 'Name',\r\n headerText: gettextCatalog.getString('Name'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n template: '#adtemetemplateDataColumn1',\r\n width: 150\r\n },\r\n {field: 'BirthDate', headerText: gettextCatalog.getString('BirthDate'), width: 125, headerTextAlign: 'center', textAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n width: '100%',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.addTeamMemberToTeam = addTeamMemberToTeam;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MODCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['teams.sectionId', 'teams.ageGroupId', 'teams.team']), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n vm.csapat = results[0]['teams.team'];\r\n vm.korosztaly = results[0]['teams.ageGroupId'];\r\n vm.szakosztaly = results[0]['teams.sectionId'];\r\n vm.MEGTSPORTLIST = results[1];\r\n getPossibleTeamMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getPossibleTeamMembersList() {\r\n return dataservice.getPossibleTeamMembersList(vm.csapat, vm.szakosztaly, vm.korosztaly)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'BirthDate');\r\n });\r\n }\r\n\r\n function addTeamMemberToTeam() {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length !== 0) {\r\n var out = [];\r\n for (var i = 0; i < selectedRows.length && selectedRows[i]; i++) {\r\n out.push(selectedRows[i].Id);\r\n }\r\n dataservice.addTeamMemberToTeam(out, vm.csapat).then(function (data) {\r\n data = data.retValue;\r\n if (data === true) {\r\n getPossibleTeamMembersList();\r\n log.successMsg('TeamMemberAddedToTeam');\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouHaveToSelectLeastAthlete');\r\n }\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteModify.selectedSectionId': vm.szakosztaly}, {'athleteModify.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams.addTeamMember')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.addTeamMember',\r\n config: {\r\n url: '/addTeamMember',\r\n templateUrl: 'app/athletes/teams/addTeamMember/addTeamMember.html',\r\n controller: 'AddTeamMemberController',\r\n controllerAs: 'vm',\r\n title: 'AddTeamMember'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ModifyTeamController.$inject = [\"log\", \"$state\", \"dataservice\", \"$q\", \"DOMAIN\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"authenticationService\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.teams.modifyTeam')\r\n .controller('ModifyTeamController', ModifyTeamController);\r\n\r\n function ModifyTeamController(log, $state, dataservice, $q, DOMAIN, gettextCatalog, $scope, paramHelper, authenticationService, $rootScope, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyTeam');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n // Default values\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.formData = {\r\n TeamId: 0,\r\n FileData: null,\r\n FileName: 'avatar_2x.png',\r\n TeamName: undefined,\r\n Comment: undefined,\r\n SectionId: undefined,\r\n AgeGroupId: undefined,\r\n CoachId: undefined,\r\n ActiveTeam: true\r\n };\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n // Public functions\r\n vm.modifyTeam = modifyTeam;\r\n vm.modifyTeamAndAddMembers = modifyTeamAndAddMembers;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.simpleModifyTeam = simpleModifyTeam;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n vm.modifyTeamAndAddMembersButtonEnabled = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODCSOPORT'), authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.MODCSOPORT = results[0];\r\n });\r\n paramHelper.getParams(['teams.team']).then(function (results) {\r\n vm.formData.TeamId = results['teams.team'];\r\n getTeam().then(function () {\r\n getSections();\r\n }, function () {\r\n log.errorMsg('CantGetTeam');\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTeam() {\r\n return $q(function (resolve) {\r\n dataservice.getTeam(vm.formData.TeamId).then(function (data) {\r\n vm.team = data;\r\n vm.formData.TeamName = data.csapatNev;\r\n vm.formData.Comment = data.megjegyzes;\r\n vm.formData.SectionId = data.szakosztalyId;\r\n vm.formData.AgeGroupId = data.korosztalyId;\r\n vm.formData.CoachId = data.edzoId;\r\n angular.element('#activeCheckBox').ejCheckBox({checked: data.aktiv});\r\n vm.formData.ActiveTeam = data.aktiv;\r\n if (!data.kep || data.kep == 'avatar_2x.png') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.teamPhotosUrl + data.kep;\r\n }\r\n\r\n vm.formData.FileName = data.kep;\r\n resolve();\r\n });\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formData.SectionId)\r\n .then(function (data) {\r\n vm.coachList = [];\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.AgeGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.formData.AgeGroupId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.formData.AgeGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formData.SectionId, vm.formData.AgeGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.CoachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.formData.CoachId);\r\n }\r\n }\r\n\r\n /**\r\n * Edző kiválasztásakor fut le és lekéri a korosztály edzőit\r\n * @author Richard Keki\r\n */\r\n function coachSelect(args) {\r\n vm.formData.CoachId = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.modifyTeamAndAddMembersButtonEnabled = args.value;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n vm.formData.ActiveTeam = args.value;\r\n }\r\n\r\n function modifyTeam(simpleSave) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n if (angular.element('#FileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.FileData = vm.cropper.croppedImage;\r\n vm.formData.FileName = angular.element('#FileName').val();\r\n }\r\n dataservice.modifyTeam(vm.formData)\r\n .then(function () {\r\n log.successMsg('TeamModified');\r\n paramHelper.setParams([{'teams.sectionId': vm.formData.SectionId}, {'teams.ageGroupId': vm.formData.AgeGroupId}]);\r\n if (simpleSave) {\r\n $state.go('athletes.teams.teamList');\r\n } else {\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n });\r\n }\r\n }\r\n\r\n function simpleModifyTeam() {\r\n modifyTeam(true);\r\n }\r\n\r\n function modifyTeamAndAddMembers() {\r\n modifyTeam(false);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#FileName').val('');\r\n vm.photoUrl = vm.noImg;\r\n vm.formData.FileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams.modifyTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.modifyTeam',\r\n config: {\r\n url: '/modifyTeam',\r\n templateUrl: 'app/athletes/teams/modifyTeam/modifyTeam.html',\r\n controller: 'ModifyTeamController',\r\n controllerAs: 'vm',\r\n title: 'ModifyTeams'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TeamsCtrl.$inject = [\"dataservice\", \"$q\", \"$state\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"authenticationService\", \"log\", \"$timeout\"];\r\n angular\r\n .module('app.athletes.teams.teamList')\r\n .controller('TeamListController', TeamsCtrl);\r\n\r\n function TeamsCtrl(dataservice, $q, $state, $rootScope, gettextCatalog, $scope, paramHelper, authenticationService, log, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = this;\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('TeamList');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n // Checkbox variables\r\n vm.inactiveTeams = false;\r\n vm.checkboxEnabled = false;\r\n // Grid's details\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'csapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 100,\r\n template: '#teamlistcolumnTemplate1'\r\n },\r\n {\r\n field: 'edzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 125,\r\n template: '#teamlistcolumnTemplate2'\r\n },\r\n {\r\n field: 'aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 75,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {field: 'versenyzo', headerText: gettextCatalog.getString('Athletes'), textAlign: 'center', width: 75},\r\n {field: 'versenyzoFiu', headerText: gettextCatalog.getString('Man'), textAlign: 'center', width: 75},\r\n {field: 'versenyzoLany', headerText: gettextCatalog.getString('Woman'), textAlign: 'center', width: 75},\r\n {field: 'megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 200, headerTextAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n grid.dataBound = function () {\r\n if (grid.dataSource.length === 1) {\r\n grid.selectRow(0);\r\n }\r\n };\r\n\r\n // Public functions\r\n vm.inactiveChange = inactiveChange;\r\n vm.deleteTeam = deleteTeam;\r\n vm.goToAddTeam = goToAddTeam;\r\n vm.goToModifyTeam = goToModifyTeam;\r\n vm.goToTeamMembersList = goToTeamMembersList;\r\n vm.openCoach = openCoach;\r\n vm.sectionChange = sectionChange;\r\n vm.ageGroupChange = ageGroupChange;\r\n vm.openTeamResults = openTeamResults;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTCSOPORT = result;\r\n $q.all([paramHelper.getParams([], ['teams.sectionId', 'teams.ageGroupId', 'teams.inactiveTeams']), authenticationService.getRight('TORLCSOPORT'), authenticationService.getRight('MODCSOPORT'), authenticationService.getRight('UJCSOPORT'), authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n vm.defaultSection = results[0]['teams.sectionId'];\r\n vm.defaultAgeGroup = results[0]['teams.ageGroupId'];\r\n vm.inactiveTeams = results[0]['teams.inactiveTeams'];\r\n vm.TORLCSOPORT = results[1];\r\n vm.MODCSOPORT = results[2];\r\n vm.UJCSOPORT = results[3];\r\n vm.MEGTCSERJEL = results[4];\r\n if (!vm.inactiveTeams) {\r\n vm.inactiveTeams = false;\r\n }\r\n angular.element('#active').ejCheckBox({checked: vm.inactiveTeams});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function openTeamResults() {\r\n if (vm.MEGTCSERJEL) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'teamID': selectedRecords[0].csapatId}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (vm.sectionList.length === 1) {\r\n $timeout(function () {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }, 0);\r\n } else {\r\n $timeout(function () {\r\n vm.sectionId = vm.defaultSection;\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionChange(args) {\r\n vm.checkboxEnabled = true;\r\n if (!vm.ageGroupId && !vm.defaultAgeGroup) {\r\n getTeams(args.value, 0, vm.inactiveTeams);\r\n }\r\n getAgeGroups(args.value);\r\n paramHelper.setParams([{'teams.sectionId': args.value}]);\r\n }\r\n\r\n // Get age groups' list\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length === 1) {\r\n $timeout(function () {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n }, 0);\r\n } else {\r\n if (vm.sectionId == vm.defaultSection) {\r\n $timeout(function () {\r\n vm.ageGroupId = vm.defaultAgeGroup;\r\n }, 0);\r\n } else {\r\n $timeout(function () {\r\n vm.ageGroupId = 0;\r\n }, 0);\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupChange(args) {\r\n getTeams(vm.sectionId, args.value, vm.inactiveTeams);\r\n paramHelper.setParams([{'teams.ageGroupId': args.value}]);\r\n }\r\n\r\n // Get teams' list\r\n function getTeams(sectionId, ageGroupId, active) {\r\n return dataservice.teamList(sectionId, ageGroupId, active).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n // when click inactives checkbox\r\n function inactiveChange(args) {\r\n vm.inactiveTeams = args.value;\r\n paramHelper.setParams([{'teams.inactiveTeams': args.value}]);\r\n if (vm.sectionId) {\r\n getTeams(vm.sectionId, vm.ageGroupId, args.value);\r\n }\r\n }\r\n\r\n function deleteTeam() {\r\n if (vm.TORLCSOPORT) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n if (selectedRecords[0].versenyzo > 0) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamWithMembers'),\r\n text: gettextCatalog.getString('TeamHasMembers'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Delete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n deleteTeamById(selectedRecords[0].csapatId);\r\n }\r\n });\r\n } else if (selectedRecords[0].aktiv === true) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeam'),\r\n text: gettextCatalog.getString('MakesTeamPassive'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Delete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n deleteTeamById(selectedRecords[0].csapatId);\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouCantDeleteInactiveTeam');\r\n }\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function deletePlayersFromTeam(id) {\r\n return dataservice.deleteTeamsPlayers(id)\r\n .then(function (data) {\r\n if (data.retValue !== true) {\r\n log.errorMsg('CantDeleted');\r\n } else {\r\n getTeams(vm.sectionId, vm.ageGroupId, vm.inactiveTeams);\r\n }\r\n });\r\n }\r\n\r\n function deleteTeamById(id) {\r\n return dataservice.deleteTeam(id).then(function (data) {\r\n if (data.retValue === true) {\r\n deletePlayersFromTeam(id);\r\n } else {\r\n log.errorMsg('TeamDeletedError', 'CantDeleted');\r\n }\r\n });\r\n }\r\n\r\n function goToAddTeam() {\r\n if (vm.UJCSOPORT) {\r\n paramHelper.setParams([{'teams.sectionId': vm.sectionId}, {'teams.ageGroupId': vm.ageGroupId}, {'teams.inactiveTeams': vm.inactiveTeams}]);\r\n $state.go('athletes.teams.addTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyTeam() {\r\n if (vm.MODCSOPORT || vm.MEGTCSOPORT) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'teams.sectionId': vm.sectionId}, {'teams.ageGroupId': vm.ageGroupId}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': selectedRecords[0].csapatId}]);\r\n $state.go('athletes.teams.modifyTeam');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToTeamMembersList(szakosztaly, korosztaly, csapat, inaktiv) {\r\n if (vm.MODCSOPORT) {\r\n if (szakosztaly && korosztaly && csapat && angular.isDefined(inaktiv)) {\r\n paramHelper.setParams([{'teams.sectionId': szakosztaly}, {'teams.ageGroupId': korosztaly}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': csapat}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n var sectionName;\r\n var ageGroupName;\r\n if (selectedRecords[0].aktiv !== false) {\r\n vm.sectionList.forEach(elem => {\r\n if (elem.value == vm.sectionId) {\r\n sectionName = elem.text;\r\n return;\r\n }\r\n });\r\n vm.ageGroupList.forEach(elem => {\r\n if (elem.value == vm.ageGroupId) {\r\n ageGroupName = elem.text;\r\n return;\r\n }\r\n });\r\n paramHelper.setParams([{'teams.sectionId': selectedRecords[0].szakosztalyId}, {'teams.ageGroupId': selectedRecords[0].korosztalyId}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': selectedRecords[0].csapatId}, {'teams.teamName': selectedRecords[0].csapatNev}, {'teams.sectionName': sectionName}, {'teams.ageGroupName': ageGroupName}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.errorMsg('YouCantViewInactiveTeamsMembers');\r\n }\r\n }\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams.teamList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.teamList',\r\n config: {\r\n url: '/teamList',\r\n templateUrl: 'app/athletes/teams/teamList/teamList.html',\r\n controller: 'TeamListController',\r\n controllerAs: 'vm',\r\n title: 'TeamList',\r\n settings: {\r\n navId: 221,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Csapatok',\r\n orderTitle_en: 'Team list',\r\n parentId: 1,\r\n content: 'TeamList',\r\n activatorPermission: ['\"MEGTCSOPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TeamMembersList.$inject = [\"log\", \"$state\", \"dataservice\", \"$q\", \"$filter\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$rootScope\"];\r\n angular\r\n .module('app.athletes.teams.teamMembersList')\r\n .controller('TeamMembersListController', TeamMembersList);\r\n\r\n function TeamMembersList(log, $state, dataservice, $q, $filter, gettextCatalog, paramHelper, authenticationService, $scope, $rootScope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('TeamMembersTitle');\r\n\r\n vm.now = new Date();\r\n vm.dateValue = vm.now;\r\n // Grid's variable\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'Name',\r\n headerText: gettextCatalog.getString('Name'),\r\n template: '#temelitemplateDataColumn1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'BirthDate', headerText: gettextCatalog.getString('BirthDate'), width: 125, textAlign: 'center', headerTextAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n width: '100%',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.dateChange = dateChange;\r\n vm.deleteTeamMember = deleteTeamMember;\r\n vm.goToAddTeamMember = goToAddTeamMember;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['teams.sectionId', 'teams.ageGroupId', 'teams.team', 'teams.teamName', 'teams.sectionName', 'teams.ageGroupName'], ['teams.date']),\r\n authenticationService.getRight('MEGTSPORTLIST')\r\n ]).then(function (results) {\r\n vm.csapat = results[0]['teams.team'];\r\n vm.korosztaly = results[0]['teams.ageGroupId'];\r\n vm.szakosztaly = results[0]['teams.sectionId'];\r\n vm.teamName = results[0]['teams.teamName'];\r\n vm.sectionName = results[0]['teams.sectionName'];\r\n vm.ageGroupName = results[0]['teams.ageGroupName'];\r\n if (results[0]['teams.date'] != null) {\r\n vm.dateValue = results[0]['teams.date'];\r\n }\r\n vm.MEGTSPORTLIST = results[1];\r\n getTeamMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTeamMembersList() {\r\n dataservice.getTeamMembersList(vm.csapat, vm.dateValue).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'BirthDate');\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n if (args.value !== null) {\r\n vm.dateValue = args.value;\r\n getTeamMembersList();\r\n paramHelper.setParams([{'teams.date': vm.dateValue}]);\r\n }\r\n }\r\n\r\n function deleteTeamMember() {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length !== 0) {\r\n var out = [];\r\n for (var i = 0; i < selectedRows.length; i++) {\r\n out.push(selectedRows[i].Id);\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamMembers'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamMembers'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteTeamMember(vm.csapat, out)\r\n .then(function () {\r\n getTeamMembersList();\r\n log.successMsg('TeamMemberDeletedSuccess');\r\n });\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouHaveToSelectLeastAthlete');\r\n }\r\n }\r\n\r\n function goToAddTeamMember() {\r\n $state.go('athletes.teams.addTeamMember');\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteNew.selectedSectionId': vm.szakosztaly}, {'athleteNew.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams.teamMembersList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.teamMembersList',\r\n config: {\r\n url: '/teamMembersList',\r\n templateUrl: 'app/athletes/teams/teamMembersList/teamMembersList.html',\r\n controller: 'TeamMembersListController',\r\n controllerAs: 'vm',\r\n title: 'TeamMembersList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.athletes.teams')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams',\r\n config: {\r\n url: '/teams',\r\n templateUrl: 'app/athletes/teams/teams.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n config.$inject = [\"$provide\"];\n extendExceptionHandler.$inject = [\"$delegate\", \"exceptionHandler\", \"logger\", \"$injector\"];\r\n angular\r\n .module('blocks.exception')\r\n .provider('exceptionHandler', exceptionHandlerProvider)\r\n .config(config);\r\n\r\n /**\r\n * Must configure the exception handling\r\n */\r\n function exceptionHandlerProvider() {\r\n /* jshint validthis:true */\r\n this.config = {\r\n environment: undefined\r\n };\r\n\r\n this.configure = function (environment) {\r\n this.config.environment = environment;\r\n };\r\n\r\n this.$get = function () {\r\n return {config: this.config};\r\n };\r\n }\r\n\r\n function config($provide) {\r\n $provide.decorator('$exceptionHandler', extendExceptionHandler);\r\n }\r\n\r\n function extendExceptionHandler($delegate, exceptionHandler, logger, $injector) {\r\n return function (exception) {\r\n if (!(exception && typeof exception === 'object')) {\r\n return;\r\n }\r\n var object = {\r\n vm: null,\r\n stateList: null,\r\n actualState: null,\r\n localStorage: null,\r\n ClientSideException: null,\r\n title: null\r\n };\r\n var rootScope = $injector.get('$rootScope');\r\n var LS = $injector.get('localStorageService');\r\n var keys = LS.keys();\r\n var LSItems = [];\r\n keys.forEach(function (element) {\r\n LSItems.push(element + ': ' + LS.get(element));\r\n });\r\n\r\n var ClientSideException = {Message: '', stack: ''};\r\n if (exception.__proto__.hasOwnProperty('toString')) {\r\n ClientSideException.Message = exception.toString();\r\n }\r\n if (exception.hasOwnProperty('stack')) {\r\n ClientSideException.stack = exception.stack.toString();\r\n }\r\n object.localStorage = LSItems;\r\n object.actualState = rootScope.actualState;\r\n object.stateList = rootScope.stateList;\r\n object.title = rootScope.htmlTitle;\r\n object.ClientSideException = ClientSideException;\r\n var cloneVM = $.extend(true, {}, rootScope.vm);\r\n var cloneVMkeys = Object.keys(cloneVM);\r\n cloneVMkeys.forEach(function (vmKey) {\r\n try {\r\n JSON.stringify(cloneVM[vmKey]);\r\n }\r\n catch (err) {\r\n cloneVM[vmKey] = null;\r\n }\r\n });\r\n object.vm = cloneVM;\r\n\r\n if ((ClientSideException.Message.indexOf('LogClientSideException') != -1) || (ClientSideException.stack.indexOf('LogClientSideException') != -1)) {\r\n return;\r\n }\r\n\r\n var jsonObject = JSON.stringify(object);\r\n\r\n if (exceptionHandler.config.environment !== 'development') {\r\n var dataService = $injector.get('dataservice');\r\n if (rootScope.vm.hasOwnProperty('netError') && rootScope.vm.netError == true) {\r\n return;\r\n }\r\n dataService.sendLocalException(jsonObject).then(function () {});\r\n }\r\n\r\n if (exceptionHandler.config.environment === 'development') {\r\n //logger.error(exception);\r\n $delegate(exception);\r\n }\r\n };\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n loggers.$inject = [\"$log\", \"toastr\"];\r\n angular\r\n .module('blocks.logger')\r\n .factory('logger', loggers)\r\n .provider('log', log);\r\n\r\n function loggers($log, toastr) {\r\n return {\r\n error: error,\r\n info: info,\r\n success: success,\r\n warning: warning\r\n };\r\n /////////////////////\r\n\r\n /**\r\n * Logging erros to console and sweetalert and toastr\r\n * @author Richard Keki\r\n * @param {string} message\r\n * @param {string} title\r\n * @param {string} data\r\n */\r\n function error(message, title, data) {\r\n toastr.error(message);\r\n $log.error('Error: ', message, data);\r\n if (angular.isUndefined(title)) {\r\n title = 'Error';\r\n }\r\n swal({title: title, html: message, type: 'error'});\r\n }\r\n\r\n function info(message) {\r\n toastr.info(message);\r\n $log.info('Info: ', message);\r\n }\r\n\r\n function success(message) {\r\n toastr.success(message);\r\n $log.info('Success: ', message);\r\n }\r\n\r\n function warning(message) {\r\n toastr.warning(message);\r\n $log.warn('Warning: ', message);\r\n }\r\n }\r\n\r\n function log() {\r\n this.environment = ''; // jshint ignore: line\r\n\r\n this.setEnvironment = function (env) { // jshint ignore: line\r\n this.environment = env;\r\n };\r\n\r\n this.$get = [\"$injector\", function ($injector) { // jshint ignore: line\r\n var gettextCatalog = $injector.get('gettextCatalog');\r\n var $log = $injector.get('$log');\r\n var toastr = $injector.get('toastr');\r\n var env = this.environment;\r\n var $rootScope = $injector.get('$rootScope');\r\n return {\r\n permissionError: function (back) {\r\n var message = gettextCatalog.getString('YouHaveNoPermissionToThisFunction');\r\n var title = gettextCatalog.getString('PermissionDenied');\r\n swal({title: title, html: message, type: 'error'});\r\n if (env === 'development') {\r\n $log.error(title + ': ', message);\r\n toastr.error(message);\r\n }\r\n if (back === true) {\r\n $rootScope.fromBack = true;\r\n $rootScope.back();\r\n }\r\n },\r\n\r\n errorMsg: function (message, data) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Error');\r\n if (env === 'development') {\r\n toastr.error(message);\r\n $log.error(title + ': ', message, data);\r\n }\r\n swal({title: title, html: message, type: 'error'});\r\n },\r\n\r\n htmlError: function (htmlMessage) {\r\n var title = gettextCatalog.getString('Error');\r\n if (env === 'development') {\r\n toastr.error(htmlMessage);\r\n $log.error(title + ': ' + htmlMessage);\r\n }\r\n swal({title: title, html: htmlMessage, type: 'error'});\r\n },\r\n\r\n infoMsg: function (message) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Info');\r\n toastr.info(message);\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n helpMsg: function (message) {\r\n var title = '';\r\n //var title = gettextCatalog.getString('Help');\r\n swal({title: title, html: gettextCatalog.getString(message), type: 'info'});\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n helpMsgSmall: function (message) {\r\n var title = '';\r\n //var title = gettextCatalog.getString('Help');\r\n swal({title: title, html: '
' + gettextCatalog.getString(message) + '
', type: 'info'});\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n successMsg: function (message) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Success');\r\n toastr.success(message);\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n htmlSuccess: function (htmlMessage) {\r\n // = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Success');\r\n toastr.success(htmlMessage);\r\n if (env === 'development') {\r\n $log.info(title + ': ', htmlMessage);\r\n }\r\n },\r\n\r\n warningMsg: function (message, hideSwal) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Warning');\r\n toastr.warning(message);\r\n if (env === 'development') {\r\n $log.warn(title + ': ', message);\r\n }\r\n if (!(hideSwal === true)) {\r\n swal({title: title, html: message, type: 'warning'});\r\n }\r\n },\r\n\r\n htmlWarning: function (message) {\r\n //message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Warning');\r\n toastr.warning(message);\r\n if (env === 'development') {\r\n $log.warn(title + ': ', message);\r\n }\r\n swal({title: title, html: message, type: 'warning'});\r\n }\r\n };\r\n }];\r\n }\r\n}());\r\n\n/* Help configure the state-base ui.router */\r\n(function () {\r\n 'use strict';\r\n\n routerHelperProvider.$inject = [\"$locationProvider\", \"$stateProvider\", \"$urlRouterProvider\"];\r\n angular\r\n .module('blocks.router')\r\n .provider('routerHelper', routerHelperProvider);\r\n\r\n function routerHelperProvider($locationProvider, $stateProvider, $urlRouterProvider) {\r\n /* jshint validthis:true */\n RouterHelper.$inject = [\"$location\", \"$rootScope\", \"$state\", \"logger\", \"authenticationService\"];\r\n var config = {\r\n docTitle: undefined,\r\n resolveAlways: {}\r\n };\r\n\r\n $locationProvider.html5Mode(false);\r\n\r\n this.configure = function (cfg) {\r\n angular.extend(config, cfg);\r\n };\r\n\r\n this.$get = RouterHelper;\r\n function RouterHelper($location, $rootScope, $state, logger, authenticationService) {\r\n var handlingStateChangeError = false;\r\n var hasOtherwise = false;\r\n var stateCounts = {\r\n errors: 0,\r\n changes: 0\r\n };\r\n\r\n var service = {\r\n configureStates: configureStates,\r\n getStates: getStates,\r\n stateCounts: stateCounts\r\n };\r\n\r\n init();\r\n\r\n return service;\r\n\r\n ///////////////\r\n\r\n function configureStates(states, otherwisePath) {\r\n states.forEach(function (state) {\r\n state.config.resolve =\r\n angular.extend(state.config.resolve || {}, config.resolveAlways);\r\n $stateProvider.state(state.state, state.config);\r\n });\r\n if (otherwisePath && !hasOtherwise) {\r\n hasOtherwise = true;\r\n $urlRouterProvider.otherwise(otherwisePath);\r\n }\r\n }\r\n\r\n function handleRoutingErrors() {\r\n // Route cancellation:\r\n // On routing error, go to the dashboard.\r\n // Provide an exit clause if it tries to do it twice.\r\n $rootScope.$on('$stateChangeError',\r\n function (event, toState, toParams, fromState, fromParams, error) {\r\n if (handlingStateChangeError) {\r\n return;\r\n }\r\n stateCounts.errors++;\r\n handlingStateChangeError = true;\r\n var destination = toState && (toState.title || toState.name || toState.loadedTemplateUrl) || 'unknown target';\r\n var msg = 'Error routing to ' + destination + '. ' +\r\n (error.data || '') + '.
' + (error.statusText || '') +\r\n ': ' + (error.status || '');\r\n logger.warning(msg, [toState]);\r\n $location.path('/');\r\n }\r\n );\r\n }\r\n\r\n function init() {\r\n handleRoutingErrors();\r\n updateDocTitle();\r\n }\r\n\r\n function getStates() {\r\n return $state.get();\r\n }\r\n\r\n function updateDocTitle() {\r\n $rootScope.$on('$stateChangeSuccess',\r\n function () { // paraméterek: event, toState, toParams, fromState, fromParams\r\n if (!authenticationService.isAuthenticated()) {\r\n $state.go('login');\r\n return;\r\n }\r\n stateCounts.changes++;\r\n handlingStateChangeError = false;\r\n //var title = config.docTitle + ' ';\r\n //$rootScope.title = title; // data bind to \r\n }\r\n );\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualEducationalFeeByAthletesController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByAthletes')\r\n .controller('AnnualEducationalFeeByAthletesController', AnnualEducationalFeeByAthletesController);\r\n\r\n function AnnualEducationalFeeByAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByAthletes');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), width: 150,\r\n template: '#annualeducationalfeebyathletecolumnTemplate1',\r\n textAlign: 'center', headerTextAlign: 'center'\r\n },\r\n {\r\n field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150,\r\n template: '#annualeducationalfeebyathletecolumnTemplate2',\r\n textAlign: 'center', headerTextAlign: 'center'\r\n },\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 125, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 100,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 100,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZSP')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByAthletes(vm.year).then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByAthletes',\r\n config: {\r\n url: '/annualEducationalFeeByAthletes',\r\n templateUrl: 'app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.html',\r\n controller: 'AnnualEducationalFeeByAthletesController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByAthletes',\r\n settings: {\r\n navId: 2163,\r\n level: 2,\r\n order: 16,\r\n orderTitle_hu: 'Oktatási díj összesítés sportolónként',\r\n orderTitle_en: 'Annual Educational Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByAthletes',\r\n activatorPermission: ['\"OKTOSSZSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualEducationalFeeByCoachController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByCoach')\r\n .controller('AnnualEducationalFeeByCoachController', AnnualEducationalFeeByCoachController);\r\n\r\n function AnnualEducationalFeeByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByCoach');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center', headerTextAlign: 'center',\r\n template: '#annualeducationalfeebycoachcolumnTemplate'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 130, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('Elvart'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('Tenyleges'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'E1', headerText: gettextCatalog.getString('January') + ' E1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T1', headerText: gettextCatalog.getString('January') + ' T1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E2', headerText: gettextCatalog.getString('February') + ' E2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T2', headerText: gettextCatalog.getString('February') + ' T2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E3', headerText: gettextCatalog.getString('March') + ' E3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T3', headerText: gettextCatalog.getString('March') + ' T3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E4', headerText: gettextCatalog.getString('April') + ' E4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T4', headerText: gettextCatalog.getString('April') + ' T4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E5', headerText: gettextCatalog.getString('May') + ' E5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T5', headerText: gettextCatalog.getString('May') + ' T5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E6', headerText: gettextCatalog.getString('June') + ' E6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T6', headerText: gettextCatalog.getString('June') + ' T6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E7', headerText: gettextCatalog.getString('July') + ' E7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T7', headerText: gettextCatalog.getString('July') + ' T7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E8', headerText: gettextCatalog.getString('August') + ' E8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T8', headerText: gettextCatalog.getString('August') + ' T8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E9', headerText: gettextCatalog.getString('September') + ' E9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T9', headerText: gettextCatalog.getString('September') + ' T9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E10', headerText: gettextCatalog.getString('October') + ' E10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T10', headerText: gettextCatalog.getString('October') + ' T10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E11', headerText: gettextCatalog.getString('November') + ' E11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T11', headerText: gettextCatalog.getString('November') + ' T11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E12', headerText: gettextCatalog.getString('December') + ' E12', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T12', headerText: gettextCatalog.getString('December') + ' T12', textAlign: 'center', width: 115, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZEDZO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByCoach(vm.year).then(function(data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByCoach',\r\n config: {\r\n url: '/annualEducationalFeeByCoach',\r\n templateUrl: 'app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.html',\r\n controller: 'AnnualEducationalFeeByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByCoach',\r\n settings: {\r\n navId: 2153,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Oktatási díj összesítés edzőnként',\r\n orderTitle_en: 'Annual Educational Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByCoach',\r\n activatorPermission: ['\"OKTOSSZEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualEducationalFeeByOneSectionController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByOneSection')\r\n .controller('AnnualEducationalFeeByOneSectionController', AnnualEducationalFeeByOneSectionController);\r\n\r\n function AnnualEducationalFeeByOneSectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByOneSection');\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'EdzoNeve',\r\n groupFooterTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n groupFooterTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n groupFooterTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 125,\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#annualeducationalfeebyonesectioncolumnTemplate'\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n groupFooterTemplate: 'Total freight: ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {field: 'Year', headerText: gettextCatalog.getString('Year'), visible: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n toolbar: $rootScope.toolbarItems,\r\n groupSettings: {showDropArea: false, columns: ['Year']},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.sectionSelect = sectionSelect;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SZAKOKTDIJBEF')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getDatas();\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByOneSection(vm.sectionId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeByOneSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByOneSection',\r\n config: {\r\n url: '/annualEducationalFeeByOneSection',\r\n templateUrl: 'app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.html',\r\n controller: 'AnnualEducationalFeeByOneSectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByOneSection',\r\n settings: {\r\n navId: 2173,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Szakosztályonkénti oktatási díj befizetések',\r\n orderTitle_en: 'Annual Educational Fee by One Section',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByOneSection',\r\n activatorPermission: ['\"SZAKOKTDIJBEF\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualEducationalFeeBySectionController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\"];\r\n angular\r\n .module('app.business.annualEducationalFeeBySection')\r\n .controller('AnnualEducationalFeeBySectionController', AnnualEducationalFeeBySectionController);\r\n\r\n function AnnualEducationalFeeBySectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeBySection');\r\n\r\n // Create variables\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'SzakosztalyNeve',\r\n footerTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 140, headerTextAlign: 'center', textAlign: 'center'},\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('ElvartOssz'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 140,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('TenylegesOssz'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 140,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E1',\r\n headerText: gettextCatalog.getString('January') + ' E1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T1',\r\n headerText: gettextCatalog.getString('January') + ' T1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E2',\r\n headerText: gettextCatalog.getString('February') + ' E2',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T2',\r\n headerText: gettextCatalog.getString('February') + ' T2',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E3',\r\n headerText: gettextCatalog.getString('March') + ' E3',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T3',\r\n headerText: gettextCatalog.getString('March') + ' T3',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E4',\r\n headerText: gettextCatalog.getString('April') + ' E4',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T4',\r\n headerText: gettextCatalog.getString('April') + ' T4',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E5',\r\n headerText: gettextCatalog.getString('May') + ' E5',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T5',\r\n headerText: gettextCatalog.getString('May') + ' T5',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E6',\r\n headerText: gettextCatalog.getString('June') + ' E6',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T6',\r\n headerText: gettextCatalog.getString('June') + ' T6',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E7',\r\n headerText: gettextCatalog.getString('July') + ' E7',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T7',\r\n headerText: gettextCatalog.getString('July') + ' T7',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E8',\r\n headerText: gettextCatalog.getString('August') + ' E8',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T8',\r\n headerText: gettextCatalog.getString('August') + ' T8',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E9',\r\n headerText: gettextCatalog.getString('September') + ' E9',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T9',\r\n headerText: gettextCatalog.getString('September') + ' T9',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E10',\r\n headerText: gettextCatalog.getString('October') + ' E10',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T10',\r\n headerText: gettextCatalog.getString('October') + ' T10',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E11',\r\n headerText: gettextCatalog.getString('November') + ' E11',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T11',\r\n headerText: gettextCatalog.getString('November') + ' T11',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E12',\r\n headerText: gettextCatalog.getString('December') + ' E12',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T12',\r\n headerText: gettextCatalog.getString('December') + ' T12',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n console.log('args', args);\r\n console.log('grid', grid);\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZSZAKO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeBySection(vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualEducationalFeeBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeBySection',\r\n config: {\r\n url: '/annualEducationalFeeBySection',\r\n templateUrl: 'app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.html',\r\n controller: 'AnnualEducationalFeeBySectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeBySection',\r\n settings: {\r\n navId: 2143,\r\n level: 2,\r\n order: 14,\r\n orderTitle_hu: 'Oktatási díj összesítés szakosztályonként',\r\n orderTitle_en: 'Annual Educational Fee by Section',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeBySection',\r\n activatorPermission: ['\"OKTOSSZSZAKO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSportServiceFeeByAthletesController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByAthletes')\r\n .controller('AnnualSportServiceFeeByAthletesController', AnnualSportServiceFeeByAthletesController);\r\n\r\n function AnnualSportServiceFeeByAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByAthletes');\r\n\r\n // Create variables\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), width: 150, headerTextAlign: 'center', textAlign: 'center',\r\n template: '#annualsportservicefeebyathletecolumnTemplate1'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 125, headerTextAlign: 'center', textAlign: 'center',\r\n template: '#annualsportservicefeebyathletecolumnTemplate2'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 120, headerTextAlign: 'center', textAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('Elvart'), headerTextAlign: 'center', textAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('Tenyleges'), headerTextAlign: 'center', textAlign: 'center', width: 100, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDOSP')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeByAthletes(vm.year).then(function(data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByAthletes',\r\n config: {\r\n url: '/annualSportServiceFeeByAthletes',\r\n templateUrl: 'app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.html',\r\n controller: 'AnnualSportServiceFeeByAthletesController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByAthletes',\r\n settings: {\r\n navId: 2123,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Sportszolgáltatási díj összesítés sportolónként',\r\n orderTitle_en: 'Annual Sport Service Fee by Athlets',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByAthletes',\r\n activatorPermission: ['\"MEGTTAGDOSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSportServiceFeeByCoachController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByCoach')\r\n .controller('AnnualSportServiceFeeByCoachController', AnnualSportServiceFeeByCoachController);\r\n\r\n function AnnualSportServiceFeeByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByCoach');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center', headerTextAlign: 'center',\r\n template: '#annualsportservicefeebycoachcolumnTemplate'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 130, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('ElvartOssz'), textAlign: 'center', headerTextAlign: 'center', width: 120, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('TenylegesOssz'), textAlign: 'center', headerTextAlign: 'center', width: 120, format: 'N0'},\r\n {field: 'E1', headerText: gettextCatalog.getString('January') + ' E1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T1', headerText: gettextCatalog.getString('January') + ' T1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E2', headerText: gettextCatalog.getString('February') + ' E2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T2', headerText: gettextCatalog.getString('February') + ' T2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E3', headerText: gettextCatalog.getString('March') + ' E3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T3', headerText: gettextCatalog.getString('March') + ' T3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E4', headerText: gettextCatalog.getString('April') + ' E4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T4', headerText: gettextCatalog.getString('April') + ' T4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E5', headerText: gettextCatalog.getString('May') + ' E5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T5', headerText: gettextCatalog.getString('May') + ' T5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E6', headerText: gettextCatalog.getString('June') + ' E6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T6', headerText: gettextCatalog.getString('June') + ' T6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E7', headerText: gettextCatalog.getString('July') + ' E7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T7', headerText: gettextCatalog.getString('July') + ' T7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E8', headerText: gettextCatalog.getString('August') + ' E8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T8', headerText: gettextCatalog.getString('August') + ' T8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E9', headerText: gettextCatalog.getString('September') + ' E9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T9', headerText: gettextCatalog.getString('September') + ' T9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E10', headerText: gettextCatalog.getString('October') + ' E10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T10', headerText: gettextCatalog.getString('October') + ' T10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E11', headerText: gettextCatalog.getString('November') + ' E11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T11', headerText: gettextCatalog.getString('November') + ' T11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E12', headerText: gettextCatalog.getString('December') + ' E12', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T12', headerText: gettextCatalog.getString('December') + ' T12', textAlign: 'center', width: 115, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDOED')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeByCoach(vm.year).then(function(data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByCoach',\r\n config: {\r\n url: '/annualSportServiceFeeByCoach',\r\n templateUrl: 'app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.html',\r\n controller: 'AnnualSportServiceFeeByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByCoach',\r\n settings: {\r\n navId: 2113,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Sportszoláltatási díj összesítés edzőnként',\r\n orderTitle_en: 'Annual Sport Service Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByCoach',\r\n activatorPermission: ['\"MEGTTAGDOED\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSportServiceFeeByOneSectionController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByOneSection')\r\n .controller('AnnualSportServiceFeeByOneSectionController', AnnualSportServiceFeeByOneSectionController);\r\n\r\n function AnnualSportServiceFeeByOneSectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByOneSection');\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n groupFooterTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n groupFooterTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 125,\r\n template: '#annualsportservicefeebyonesectioncolumnTemplate',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n width: 125,\r\n groupFooterTemplate: 'Total freight: ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n width: 125,\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n },\r\n {field: 'Year', headerText: gettextCatalog.getString('Year'), visible: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n toolbar: $rootScope.toolbarItems,\r\n groupSettings: {showDropArea: false, columns: ['Year']},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SZAKOSPDIJBEF')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getDatas(args.value);\r\n }\r\n\r\n function getDatas(sectionId) {\r\n dataservice.getAnnualSportServiceFeeByOneSection(sectionId).then(function (data) {\r\n console.log('data.itemsList: ' + data.itemsList.length);\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeByOneSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByOneSection',\r\n config: {\r\n url: '/annualSportServiceFeeByOneSection',\r\n templateUrl: 'app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.html',\r\n controller: 'AnnualSportServiceFeeByOneSectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByOneSection',\r\n settings: {\r\n navId: 2133,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Szakosztályonkénti sportszolgáltatási díj összesítés',\r\n orderTitle_en: 'Annual Sport Service Fee by One Section',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByOneSection',\r\n activatorPermission: ['\"SZAKOSPDIJBEF\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualSportServiceFeeBySectionController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeBySection')\r\n .controller('AnnualSportServiceFeeBySectionController', AnnualSportServiceFeeBySectionController);\r\n\r\n function AnnualSportServiceFeeBySectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeBySection');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [{\r\n type: 'Sum',\r\n field: 'SzakosztalyNeve',\r\n footerTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center',\r\n width: 125,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center',\r\n width: 125,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E1',\r\n headerText: gettextCatalog.getString('January') + ' E1',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T1',\r\n headerText: gettextCatalog.getString('January') + ' T1',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E2',\r\n headerText: gettextCatalog.getString('February') + ' E2',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T2',\r\n headerText: gettextCatalog.getString('February') + ' T2',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E3',\r\n headerText: gettextCatalog.getString('March') + ' E3',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T3',\r\n headerText: gettextCatalog.getString('March') + ' T3',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E4',\r\n headerText: gettextCatalog.getString('April') + ' E4',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T4',\r\n headerText: gettextCatalog.getString('April') + ' T4',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E5',\r\n headerText: gettextCatalog.getString('May') + ' E5',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T5',\r\n headerText: gettextCatalog.getString('May') + ' T5',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E6',\r\n headerText: gettextCatalog.getString('June') + ' E6',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T6',\r\n headerText: gettextCatalog.getString('June') + ' T6',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E7',\r\n headerText: gettextCatalog.getString('July') + ' E7',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T7',\r\n headerText: gettextCatalog.getString('July') + ' T7',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E8',\r\n headerText: gettextCatalog.getString('August') + ' E8',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T8',\r\n headerText: gettextCatalog.getString('August') + ' T8',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E9',\r\n headerText: gettextCatalog.getString('September') + ' E9',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T9',\r\n headerText: gettextCatalog.getString('September') + ' T9',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E10',\r\n headerText: gettextCatalog.getString('October') + ' E10',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T10',\r\n headerText: gettextCatalog.getString('October') + ' T10',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E11',\r\n headerText: gettextCatalog.getString('November') + ' E11',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T11',\r\n headerText: gettextCatalog.getString('November') + ' T11',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E12',\r\n headerText: gettextCatalog.getString('December') + ' E12',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T12',\r\n headerText: gettextCatalog.getString('December') + ' T12',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDSZO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeBySection(vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.annualSportServiceFeeBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeBySection',\r\n config: {\r\n url: '/annualSportServiceFeeBySection',\r\n templateUrl: 'app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.html',\r\n controller: 'AnnualSportServiceFeeBySectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeBySection',\r\n settings: {\r\n navId: 2103,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Sportszolgáltatási díj összesítés szakosztályonként',\r\n orderTitle_en: 'Annual Sport Service Fee by Section',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeBySection',\r\n activatorPermission: ['\"MEGTTAGDSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business',\r\n config: {\r\n title: 'Business',\r\n url: '/business',\r\n templateUrl: 'app/business/business.html',\r\n settings: {\r\n navId: 3,\r\n level: 1,\r\n order: 3,\r\n parentId: 0,\r\n content: 'Business',\r\n faIcon: 'fa-euro-sign',\r\n activatorPermission: [\r\n '\"OKTOSSZSP\"',\r\n '\"OKTOSSZEDZO\"',\r\n '\"SZAKOKTDIJBEF\"',\r\n '\"OKTOSSZSZAKO\"',\r\n '\"MEGTTAGDOSP\"',\r\n '\"MEGTTAGDOED\"',\r\n '\"SZAKOSPDIJBEF\"',\r\n '\"MEGTTAGDSZO\"',\r\n '\"CSEKKEXPORT\"',\r\n '\"CSV\"',\r\n '\"MEGTNAPIOKTD\"',\r\n '\"MEGTNAPITAGD\"',\r\n '\"MEGTTAGDNYILV\"',\r\n '\"MEGTTAGDBEALL\"',\r\n '\"MEGTHAVIJELLEM\"',\r\n '\"MEGTTAGDHATR\"',\r\n '\"MEGTTAGDNYILV\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CheckPaymentController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\"];\r\n angular\r\n .module('app.business.checkPayment')\r\n .controller('CheckPaymentController', CheckPaymentController);\r\n\r\n function CheckPaymentController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CheckPayment');\r\n\r\n // Create variables\r\n\r\n vm.data = [];\r\n vm.dataId = [];\r\n vm.payment = '0';\r\n vm.checkNumber = '';\r\n vm.hasCheck = false;\r\n vm.selectedRecords = {};\r\n\r\n // Grid's variables\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Osszeg',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'Versenyzo', headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'Osszeg', headerText: gettextCatalog.getString('PaidAmount'), textAlign: 'center', headerTextAlign: 'center', width: 150, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getCheck = getCheck;\r\n vm.pay = pay;\r\n vm.save = save;\r\n vm.removePayment = removePayment;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n grid.dataSource = vm.data;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('CSEKKEXPORT')];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function getCheck() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getCheck(vm.checkNumber).then(function(data) {\r\n vm.hasCheck = true;\r\n vm.actualPayment = data;\r\n vm.actualPayment.Osszeg = vm.payment;\r\n });\r\n }\r\n\r\n function pay() {\r\n if (vm.dataId.indexOf(vm.actualPayment.Id) === -1) {\r\n vm.data.push(vm.actualPayment);\r\n vm.dataId.push(vm.actualPayment.Id);\r\n grid.refresh();\r\n }\r\n }\r\n\r\n function removePayment() {\r\n var id = grid.getSelectedRecords()[0].Id;\r\n grid.dataSource = $rootScope.deleteRows(grid);\r\n var i = vm.dataId.indexOf(id);\r\n if (i !== -1) {\r\n vm.dataId.splice(i, 1);\r\n }\r\n }\r\n\r\n function save() {\r\n dataservice.checkPaymentsSave(vm.data).then(function() {\r\n log.successMsg('Saved');\r\n vm.data = [];\r\n vm.dataId = [];\r\n vm.actualPayment = {};\r\n vm.hasCheck = false;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.checkPayment')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.checkPayment',\r\n config: {\r\n url: '/checkPayment',\r\n templateUrl: 'app/business/checkPayment/checkPayment.html',\r\n controller: 'CheckPaymentController',\r\n controllerAs: 'vm',\r\n title: 'CheckPayment',\r\n settings: {\r\n navId: 2193,\r\n level: 2,\r\n order: 19,\r\n orderTitle_hu: 'Csekkes befizetés',\r\n orderTitle_en: 'Check Payment',\r\n parentId: 3,\r\n content: 'CheckPayment',\r\n activatorPermission: ['\"CSEKKEXPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CheckPrintingExportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.business.checkPrintingExport')\r\n .controller('CheckPrintingExportController', CheckPrintingExportController);\r\n\r\n function CheckPrintingExportController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CheckPrintingExport');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n\r\n var date = new Date();\r\n var y = date.getFullYear();\r\n var m = date.getMonth();\r\n vm.dateFromValue = new Date(y, m, 1);\r\n vm.dateToValue = new Date(y, m + 1, 0);\r\n\r\n vm.data = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Name'), width: 125,\r\n textAlign: 'center', headerTextAlign: 'center',\r\n template: '#checkprintingexportcolumnTemplate1'\r\n },\r\n {\r\n field: 'NyilvantartasiSzama',\r\n headerText: gettextCatalog.getString('RegistrationNumber'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'CimeIrSzam', headerText: gettextCatalog.getString('ZipCode'), textAlign: 'center', headerTextAlign: 'center', width: 95},\r\n {field: 'CimeVaros', headerText: gettextCatalog.getString('City'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'CimeUtca', headerText: gettextCatalog.getString('Street'), ttextAlign: 'center', headerTextAlign: 'center', textAlign: 'center', width: 125},\r\n {\r\n field: 'BefizetoAzonosito',\r\n headerText: gettextCatalog.getString('BefizetoAzonosito'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', headerTextAlign: 'center', width: 125,\r\n template: '#checkprintingexportcolumnTemplate2'\r\n },\r\n {\r\n field: 'FizetendoOsszeg',\r\n headerText: gettextCatalog.getString('FizetendoOsszeg'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['checkPrintingExport.sectionId',\r\n 'checkPrintingExport.dateFrom',\r\n 'checkPrintingExport.coachId',\r\n 'checkPrintingExport.dateTo']), authenticationService.getRight('CSEKKEXPORT')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['checkPrintingExport.sectionId'];\r\n vm.defaultCoachId = results[0]['checkPrintingExport.coachId'];\r\n vm.dateFromValue = results[0]['checkPrintingExport.dateFrom'];\r\n vm.dateToValue = results[0]['checkPrintingExport.dateTo'];\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getcoaches();\r\n }\r\n\r\n function getDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'checkPrintingExport.sectionId': vm.sectionId},\r\n {'checkPrintingExport.coachId': vm.coachId},\r\n {'checkPrintingExport.dateFrom': vm.dateFromValue},\r\n {'checkPrintingExport.dateTo': vm.dateToValue}\r\n ]);\r\n return dataservice.getCheckExportPrintList(vm.sectionId, vm.coachId, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n vm.athletesList = data.itemsList;\r\n grid.dataSource = vm.athletesList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.checkPrintingExport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.checkPrintingExport',\r\n config: {\r\n url: '/checkPrintingExport',\r\n templateUrl: 'app/business/checkPrintingExport/checkPrintingExport.html',\r\n controller: 'CheckPrintingExportController',\r\n controllerAs: 'vm',\r\n title: 'CheckPrintingExport',\r\n settings: {\r\n navId: 2183,\r\n level: 2,\r\n order: 18,\r\n orderTitle_hu: 'Exportálás csekknyomtatáshoz',\r\n orderTitle_en: 'Export for Check Printing',\r\n parentId: 3,\r\n content: 'CheckPrintingExport',\r\n activatorPermission: ['\"CSEKKEXPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CsvPaymentController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\", \"DOMAIN\", \"$timeout\", \"$state\"];\r\n angular\r\n .module('app.business.csvPayment')\r\n .controller('CsvPaymentController', CsvPaymentController);\r\n\r\n function CsvPaymentController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, DOMAIN, $timeout, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CsvPayment');\r\n var grid = null;\r\n var WGridHeaderSelector = null;\r\n var WGridColumnSelector = null;\r\n var WGridEnc = null;\r\n var validSelections = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n reset();\r\n validSelections = [];\r\n vm.settings.CsvPresetLoaded = false;\r\n vm.step = 0;\r\n vm.columns = [\r\n {field: 'row', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'date',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'name',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'comment',\r\n headerText: gettextCatalog.getString('PaymentComment'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'amount',\r\n headerText: gettextCatalog.getString('amount'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'payments',\r\n headerText: gettextCatalog.getString('payments'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'depositor',\r\n headerText: gettextCatalog.getString('depositor'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'accept',\r\n type: 'checkbox',\r\n headerText: gettextCatalog.getString('Accept'),\r\n textAlign: 'center',\r\n width: 100,\r\n displayAsCheckBox: true,\r\n allowEditing: false,\r\n visible: true\r\n }\r\n ];\r\n vm.csvAll = [];\r\n vm.csv = [];\r\n var promises = [authenticationService.getRight('CSV'), getSystemSettingsValue('CSVSETTINGS')];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.step = 1;\r\n $('#step1').show();\r\n console.log('results', results);\r\n delete vm.settings.filename;\r\n delete vm.settings.mode;\r\n delete vm.settings.AmountColumn;\r\n delete vm.settings.CommentColumn;\r\n delete vm.settings.DateColumn;\r\n delete vm.settings.DepositorColumn;\r\n delete vm.settings.headerRow;\r\n delete vm.settings.encRow;\r\n if (results[1]) {\r\n var savedSettings = JSON.parse(results[1]);\r\n console.log('activate() vm.settings', vm.settings);\r\n if (savedSettings && savedSettings.hasOwnProperty('AmountColumn')) {\r\n console.log('savedSettings', savedSettings);\r\n vm.settings.AmountColumn = savedSettings.AmountColumn;\r\n vm.settings.CommentColumn = savedSettings.CommentColumn;\r\n vm.settings.DateColumn = savedSettings.DateColumn;\r\n vm.settings.DepositorColumn = savedSettings.DepositorColumn;\r\n vm.settings.headerRow = savedSettings.headerRow;\r\n vm.settings.CsvPresetLoaded = true;\r\n }\r\n }\r\n vm.data = [];\r\n vm.alldata = [];\r\n vm.printEnabled = false;\r\n vm.saveEnabled = false;\r\n vm.firstLineIsHeader = true;\r\n createUploadButton();\r\n CreateGrid();\r\n CreateWGridHeaderSelector();\r\n }\r\n });\r\n }\r\n\r\n function reset() {\r\n grid = null;\r\n WGridHeaderSelector = null;\r\n WGridColumnSelector = null;\r\n validSelections = [];\r\n vm.processModes = [\r\n {modeName: gettextCatalog.getString('CSV_JustOneLine'), mode: 'JUSTONELINE'},\r\n {modeName: gettextCatalog.getString('CSV_Merge'), mode: 'MERGE'}\r\n ];\r\n vm.wcolumns = [\r\n {field: 'id', isPrimaryKey: true, visible: false},\r\n {field: 'enc', visible: false}\r\n ];\r\n vm.data = [];\r\n vm.alldata = [];\r\n vm.querycellinfo = querycellinfo;\r\n vm.FilterFailedTransactions = FilterFailedTransactions;\r\n vm.noHeader = noHeader;\r\n vm.noDepositor = noDepositor;\r\n vm.headerSelected = headerSelected;\r\n vm.columnSelected = columnSelected;\r\n vm.StartAgain = StartAgain;\r\n vm.Continue = Continue;\r\n vm.SaveSettings = SaveSettings;\r\n vm.modeSelect = modeSelect;\r\n vm.cellSelected = cellSelected;\r\n vm.save = save;\r\n vm.cancel = activate;\r\n vm.printEnabled = false;\r\n vm.saveEnabled = false;\r\n vm.firstLineIsHeader = true;\r\n vm.red = '#eecdcd';\r\n vm.yellow = '#eeeecd';\r\n vm.green = '#cdeecd';\r\n vm.settings = {};\r\n }\r\n\r\n function CreateWGridHeaderSelector() {\r\n WGridHeaderSelector = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (arg) {\r\n console.log('WGridHeaderSelector rowSelected', arg);\r\n headerSelected(arg);\r\n }\r\n });\r\n }\r\n\r\n function CreateWGridColumnSelector() {\r\n WGridColumnSelector = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n console.log('WGridColumnSelector __ cellSelected', arg);\r\n cellSelected(arg);\r\n }\r\n });\r\n WGridColumnSelector.appendTo('#WGridColumnSelector');\r\n }\r\n\r\n function CreateGrid() {\r\n grid = new ej2.grids.Grid({\r\n dataSource: vm.data,\r\n columns: vm.columns,\r\n queryCellInfo: querycellinfo,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: function (arg) {\r\n RowSelect(arg.rowIndex, true);\r\n },\r\n rowDeselected: function (arg) {\r\n if (arg.rowIndex.length == 1) {\r\n RowSelect(arg.rowIndex[0], false);\r\n } else {\r\n RowSelect(-1, false);\r\n }\r\n },\r\n toolbarClick: function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n }\r\n });\r\n }\r\n\r\n function RowSelect(idx, select) {\r\n //console.log('RowSelect idx=', idx, ' select=', select);\r\n if (select && idx >= 0) {\r\n //console.log('RowSelect IF vm.data[' + idx + ']', vm.data[idx]);\r\n if (vm.data[idx].amountParse == -1) {\r\n grid.clearSelection();\r\n grid.selectRows(validSelections);\r\n } else if (validSelections.indexOf(idx) == -1) {\r\n validSelections.push(idx);\r\n }\r\n } else { // Deselect\r\n var IdxOfDeselected = validSelections.indexOf(idx);\r\n if (IdxOfDeselected != -1) {\r\n //console.log('Deselect idx=', idx, ' IdxOfDeselected=', IdxOfDeselected);\r\n validSelections.splice(IdxOfDeselected, 1);\r\n //console.log('Deselect validSelections', validSelections);\r\n }\r\n }\r\n }\r\n\r\n function modeSelect(arg) {\r\n console.log('modeSelect', arg);\r\n vm.settings.mode = arg.data.mode;\r\n CSVSettings(vm.settings);\r\n vm.step = 10;\r\n }\r\n\r\n function SetCsvGrid(data) {\r\n console.log('SetCsvGrid() data', data);\r\n if (data.warning.length > 0) {\r\n log.errorMsg(data.warning, gettextCatalog.getString('Warning'));\r\n }\r\n vm.settings.filename = data.filename;\r\n vm.csvAll = [];\r\n vm.csv = [];\r\n for (var c = 0; c < data.numberOfColumns; c++) {\r\n if (data.columnWidth[c] == 0) {\r\n vm.wcolumns.push({field: 'c' + c, headerText: '', visible: false});\r\n } else {\r\n vm.wcolumns.push({field: 'c' + c, headerText: '', textAlign: 'center', width: 120});\r\n }\r\n }\r\n vm.csvAll = data.itemsList;\r\n vm.csv = data.itemsList;\r\n\r\n var node = document.getElementById('WGridHeaderSelector');\r\n while (node && node.hasChildNodes()) {\r\n node.removeChild(node.lastChild);\r\n }\r\n WGridHeaderSelector.dataSource = vm.csv;\r\n WGridHeaderSelector.columns = vm.wcolumns;\r\n WGridHeaderSelector.appendTo('#WGridHeaderSelector');\r\n $scope.$apply();\r\n }\r\n\r\n function cellSelected(arg) {\r\n console.log('CELL SELECTED STEP=' + vm.step, arg);\r\n if (vm.step >= 4) {\r\n columnChoosen(arg.cellIndex.cellIndex - 2);\r\n }\r\n if (vm.step == 3) {\r\n log.infoMsg(gettextCatalog.getString('CSV_CharacterEncodingSelected'));\r\n console.log('STEP3 - ENCODING', arg.selectedRowCellIndex[0].rowIndex, arg.data.enc);\r\n dataservice.CSVPreprocessSelectHeader(vm.settings.filename, vm.settings.headerRow, arg.data.enc).then(function (response) {\r\n console.log('CSVPreprocessSelectHeader again', response);\r\n setHeadersAndWidth(response.headerTexts, response.columnWidth);\r\n vm.csv = response.itemsList;\r\n $timeout(function () {\r\n CreateWGridColumnSelector();\r\n vm.step = 4;\r\n }, 700);\r\n });\r\n }\r\n }\r\n\r\n function CreateWGridEnc() {\r\n WGridEnc = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n console.log('WGridENC __ cellSelected', arg);\r\n cellSelected(arg);\r\n }\r\n });\r\n WGridEnc.appendTo('#WGridEnc');\r\n }\r\n\r\n function columnSelected(arg) {\r\n console.log('columnSelected', arg.columnIndex - 2);\r\n if (vm.step >= 4) {\r\n columnChoosen(arg.columnIndex - 2);\r\n }\r\n }\r\n\r\n function noDepositor() {\r\n columnChoosen(-1);\r\n }\r\n\r\n function columnChoosen(columnIndex) {\r\n console.log('step=' + vm.step, ' columnSelected', columnIndex);\r\n $timeout(function () {\r\n switch (vm.step) {\r\n case 4:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentCommentSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.CommentColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 5:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentDateSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.DateColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 6:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentDepositorSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.DepositorColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 7:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentAmountSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.AmountColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n }\r\n WGridColumnSelector.clearSelection();\r\n }, 700);\r\n }\r\n\r\n function CSVSettings(settings) {\r\n console.log('CSVSettings', settings);\r\n if (!(settings.hasOwnProperty('AmountColumn') && settings.hasOwnProperty('CommentColumn') && settings.hasOwnProperty('DateColumn') && settings.hasOwnProperty('DepositorColumn'))) {\r\n return;\r\n }\r\n dataservice.CSVSettings(settings).then(function (response) {\r\n console.log('CSVSettings response', response);\r\n vm.data = response.data.data;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'date');\r\n var node = document.getElementById('GridFinal');\r\n while (node && node.hasChildNodes()) {\r\n node.removeChild(node.lastChild);\r\n }\r\n grid.columns = vm.columns;\r\n grid.dataSource = vm.data;\r\n validSelections = [];\r\n vm.data.forEach(function (row) {\r\n if (row.amountParse > 0) {\r\n validSelections.push(row.row);\r\n }\r\n });\r\n grid.appendTo('#GridFinal');\r\n var upperrChkBox = angular.element('.e-checkbox-wrapper');\r\n upperrChkBox[0].innerHTML = '';\r\n }, function (reject) {\r\n console.log('CSVSettings reject', reject);\r\n StartAgain();\r\n });\r\n }\r\n\r\n function noHeader() {\r\n headerSelected({rowIndex: -1});\r\n vm.settings.headerRow = -1;\r\n }\r\n\r\n function headerSelected(header) {\r\n console.log('headerSelected', header);\r\n if (header.rowIndex >= 0) {\r\n log.infoMsg(gettextCatalog.getString('CSV_HeaderSelected'));\r\n } else {\r\n log.infoMsg(gettextCatalog.getString('CSV_HeaderSelectedNoHeader'));\r\n }\r\n vm.step = 3;\r\n vm.settings.headerRow = header.rowIndex;\r\n dataservice.CSVPreprocessSelectHeader(vm.settings.filename, vm.settings.headerRow, 'HEADERSELECT').then(function (response) {\r\n console.log('CSVPreprocessSelectHeader', response);\r\n if (header.rowIndex >= 0) {\r\n setHeadersAndWidth(vm.csvAll[header.rowIndex], response.columnWidth);\r\n }\r\n $timeout(function () {\r\n vm.csv = [];\r\n var rowCntr = 0;\r\n response.itemsList.forEach(function (row) {\r\n if (rowCntr++ >= header.rowIndex) {\r\n vm.csv.push(row);\r\n }\r\n });\r\n CreateWGridEnc();\r\n }, 50);\r\n });\r\n }\r\n\r\n function setHeadersAndWidth(headerRow, columnWidth) {\r\n console.log('SET HEADERS', headerRow, columnWidth);\r\n var colCntr = 0;\r\n vm.wcolumns.forEach(function (column) {\r\n if (colCntr++ > 1) {\r\n column.headerText = headerRow['c' + (colCntr - 3)];\r\n column.width = columnWidth[colCntr - 3] * 10.5;\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function createUploadButton() {\r\n angular.element('#UploadButton').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'CSVPreprocessSelectHeader',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {\r\n modal: true,\r\n closeOnComplete: true,\r\n resize: false,\r\n drag: false\r\n },\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadingAndProcessingCSV'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.csv',\r\n complete: function (args) {\r\n vm.printEnabled = false;\r\n vm.saveEnabled = true;\r\n vm.data = [];\r\n var idx = args.responseText.indexOf('ExceptionMessage\":');\r\n if (idx > 0) {\r\n idx += 19;\r\n var last = args.responseText.indexOf(',', idx) - 1;\r\n log.htmlError(args.responseText.substring(idx, last));\r\n } else {\r\n $('#step1').hide();\r\n console.log('vm.settings...', vm.settings);\r\n if (vm.settings.CsvPresetLoaded) {\r\n vm.step = 8;\r\n } else {\r\n vm.step = 2;\r\n }\r\n log.infoMsg(gettextCatalog.getString('UploadSuccessed'));\r\n var response = JSON.parse(args.responseText);\r\n SetCsvGrid(response);\r\n }\r\n },\r\n error: function () {\r\n log.htmlError(gettextCatalog.getString('UploadError'));\r\n },\r\n beforeSend: function () {\r\n },\r\n begin: function (args) {\r\n args.data = {file: '', headerRow: 0};\r\n }\r\n });\r\n }\r\n\r\n function FilterFailedTransactions() {\r\n vm.alldata = vm.data;\r\n vm.data = [];\r\n $timeout(function () {\r\n vm.alldata.forEach(function (row) {\r\n if (!row.accept) {\r\n vm.data.push(row);\r\n }\r\n });\r\n grid.dataSource = vm.data;\r\n grid.allowSelection = false;\r\n vm.columns[7].visible = false;\r\n grid.refreshColumns();\r\n grid.refreshHeader();\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n\r\n function save() {\r\n var selectedRecords = grid.getSelectedRecords();\r\n console.log('save selectedRecords', selectedRecords);\r\n vm.data.forEach(function (r) {\r\n r.accept = false;\r\n });\r\n selectedRecords.forEach(function (r) {\r\n vm.data[r.row].accept = true;\r\n });\r\n console.log('save vm.data', vm.data);\r\n vm.saveEnabled = false;\r\n var param = {};\r\n param.NemElfogadottLista = [];\r\n param.ElfogadottLista = [];\r\n vm.data.forEach(function (row) {\r\n if (row.accept) {\r\n param.ElfogadottLista.push(row);\r\n } else {\r\n param.NemElfogadottLista.push(row);\r\n }\r\n });\r\n vm.step++;\r\n swal({\r\n title: gettextCatalog.getString('MailWillBeSentToYouContainingUnprocessedAndProcessedCSVLines'),\r\n type: 'question',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function () {\r\n AcceptCSVPayment(param);\r\n }, function () {\r\n AcceptCSVPayment(param);\r\n });\r\n }\r\n\r\n function AcceptCSVPayment(param) {\r\n param.filename = vm.settings.filename;\r\n console.log('AcceptCSVPayment', param);\r\n dataservice.AcceptCSVPayment(param).then(function () {\r\n console.log('AcceptCSVPayment OK');\r\n vm.printEnabled = true;\r\n FilterFailedTransactions();\r\n }, function (arg) {\r\n vm.printEnabled = false;\r\n vm.saveEnabled = true;\r\n vm.step--;\r\n console.log('AcceptCSVPayment ERR', arg);\r\n });\r\n }\r\n\r\n function SaveSettings() {\r\n var fileNameTemp = vm.settings.filename;\r\n delete vm.settings.filename;\r\n delete vm.settings.mode;\r\n delete vm.settings.CsvPresetLoaded;\r\n var SettingsJSON = JSON.stringify(vm.settings);\r\n console.log('saveSystemSettingsValue', vm.settings, SettingsJSON);\r\n dataservice.saveSystemSettingsValue('CSVSETTINGS', SettingsJSON).then(function () {\r\n log.successMsg(gettextCatalog.getString('CSVSettingsSavedSuccessed'));\r\n });\r\n vm.settings.filename = fileNameTemp;\r\n }\r\n\r\n function Continue() {\r\n vm.step++;\r\n }\r\n\r\n function StartAgain() {\r\n dataservice.saveSystemSettingsValue('CSVSETTINGS', '{}').then(function () {\r\n log.successMsg(gettextCatalog.getString('CSVSettingsSavedSuccessed'));\r\n $state.reload();\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var cell = angular.element(arg.cell);\r\n switch (arg.column.field) {\r\n case 'date':\r\n case 'comment':\r\n case 'name':\r\n switch (arg.data.sportoloParse) {\r\n case -2:\r\n case -1:\r\n cell.css('background-color', vm.red);\r\n break;\r\n case 0:\r\n cell.css('background-color', vm.yellow);\r\n break;\r\n case 1:\r\n cell.css('background-color', vm.green);\r\n break;\r\n }\r\n break;\r\n case 'depositor':\r\n case 'amount':\r\n case 'payments':\r\n switch (arg.data.amountParse) {\r\n case -1:\r\n cell.css('background-color', vm.red);\r\n break;\r\n case 0:\r\n cell.css('background-color', vm.yellow);\r\n break;\r\n case 1:\r\n cell.css('background-color', vm.green);\r\n break;\r\n }\r\n break;\r\n case 'accept':\r\n if (arg.data.sportoloParse == 1 && arg.data.amountParse == 1) {\r\n cell.css('background-color', vm.green);\r\n }\r\n if (arg.data.sportoloParse == 0 || arg.data.amountParse == 0) {\r\n cell.css('background-color', vm.yellow);\r\n }\r\n if (arg.data.sportoloParse == -1 || arg.data.amountParse == -1) {\r\n cell.css('background-color', vm.red);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.csvPayment')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.csvPayment',\r\n config: {\r\n url: '/csvPayment',\r\n templateUrl: 'app/business/csvPayment/csvPayment.html',\r\n controller: 'CsvPaymentController',\r\n controllerAs: 'vm',\r\n title: 'CsvPayment',\r\n settings: {\r\n navId: 2203,\r\n level: 2,\r\n order: 20,\r\n orderTitle_hu: 'Átutalások importálása',\r\n orderTitle_en: 'Paid Fee',\r\n parentId: 3,\r\n content: 'CsvPayment',\r\n activatorPermission: ['\"CSV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DailyEducationalFeePaymentsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.business.dailyEducationalFeePayments')\r\n .controller('DailyEducationalFeePaymentsController', DailyEducationalFeePaymentsController);\r\n\r\n function DailyEducationalFeePaymentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailyEducationalFeePayments');\r\n\r\n var printOpened = false;\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.numberList = [];\r\n vm.dateValue = new Date();\r\n vm.atletesList = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n vm.showAddNumber = false;\r\n vm.dateEnabled = false;\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'AdottNapiSorszamok', headerText: gettextCatalog.getString('Number'), width: 85, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Versenyzo_Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: true, templateID: '#dailyeducationalfeepaymentscolumnTemplate1'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: true, templateID: '#dailyeducationalfeepaymentscolumnTemplate2'},\r\n {field: 'AdottNapiAtveteliElismervenyek', headerText: gettextCatalog.getString('AtveteliElismervenyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiTemaszamok', headerText: gettextCatalog.getString('Temaszam'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiKoltseghelyek', headerText: gettextCatalog.getString('Koltseghelyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiBefizetesHonapok', headerText: gettextCatalog.getString('BefizetesekHonap'), textAlign: 'center', headerTextAlign: 'center', width: 115},\r\n {field: 'AdottNapiBefizdatumok', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'osszesFizetett', headerText: gettextCatalog.getString('Fizetett'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.numberDataBound = numberDataBound;\r\n vm.numberSelect = numberSelect;\r\n vm.addNumbers = addNumbers;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.print = print;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['dailyEducationalFeePayments.sectionId', 'dailyEducationalFeePayments.number', 'dailyEducationalFeePayments.coachId', 'dailyEducationalFeePayments.date']), authenticationService.getRight('MEGTNAPIOKTD')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['dailyEducationalFeePayments.sectionId'];\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailyEducationalFeePayments.number']);\r\n vm.defaultNumber = results[0]['dailyEducationalFeePayments.number'] !== null ? results[0]['dailyEducationalFeePayments.number'] : 0;\r\n vm.defaultCoachId = results[0]['dailyEducationalFeePayments.coachId'] !== null ? results[0]['dailyEducationalFeePayments.coachId'] : 0;\r\n getcoaches();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getServiceFeePaymentsNumbers(args.value);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(sectionId) {\r\n return dataservice.getEducationalFeePaymentsNumbers(sectionId, vm.dateValue).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.numberList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function numberDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.numberList[0].value);\r\n vm.selectedNumber = vm.numberList[0].value;\r\n } else {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.defaultNumber);\r\n vm.selectedNumber = vm.defaultNumber;\r\n }\r\n }\r\n\r\n function numberSelect(args) {\r\n vm.selectedNumber = args.value;\r\n vm.dateEnabled = !(args.value !== 0 && args.value !== '0');\r\n }\r\n\r\n function getAthletes() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'dailyEducationalFeePayments.sectionId': vm.sectionId}, {'dailyEducationalFeePayments.number': vm.selectedNumber}, {'dailyEducationalFeePayments.coachId': vm.coachId}]);\r\n dataservice.getAthletesForDailyPayments2(vm.sectionId, vm.coachId, vm.dateValue, vm.selectedNumber).then(function (data) {\r\n vm.atletesList = data.itemsList;\r\n grid.dataSource = vm.atletesList;\r\n grid.refresh();\r\n vm.showAddNumber = vm.selectedNumber === '-1';\r\n });\r\n }\r\n\r\n function addNumbers() {\r\n return dataservice.updateOktatasiDijfizetesek(vm.atletesList, true).then(function () {\r\n log.successMsg('Saved');\r\n getServiceFeePaymentsNumbers(vm.sectionId);\r\n getAthletes();\r\n return true;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n 'edzoId': vm.coachId,\r\n 'szakosztalyId': vm.sectionId,\r\n 'datum': vm.dateValue,\r\n 'sorszam': vm.selectedNumber,\r\n 'cimszoveg': gettextCatalog.getString('DailyEducationalFeePayments'),\r\n 'fejlec': '',\r\n 'edzokapja': false,\r\n 'sportszolg': false\r\n };\r\n $scope.$apply();\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '1', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.dailyEducationalFeePayments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailyEducationalFeePayments',\r\n config: {\r\n url: '/dailyEducationalFeePayments',\r\n templateUrl: 'app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.html',\r\n controller: 'DailyEducationalFeePaymentsController',\r\n controllerAs: 'vm',\r\n title: 'DailyEducationalFeePayments',\r\n settings: {\r\n navId: 263,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Napi oktatási díj befizetések',\r\n orderTitle_en: 'Daily Educational Fee Payments',\r\n parentId: 3,\r\n content: 'DailyEducationalFeePayments',\r\n activatorPermission: ['\"MEGTNAPIOKTD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n modFeesCtrl.$inject = [\"log\", \"$rootScope\", \"gettextCatalog\", \"dataservice\", \"authenticationService\", \"$q\", \"$scope\", \"$filter\", \"paramHelper\"];\r\n angular\r\n .module('app.business.dailyEducationalFeesPerCoach')\r\n .controller('DailyEducationalFeesPerCoachController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailyEducationalFeesPerCoach');\r\n vm.coachList = '';\r\n vm.selectedCoach = '';\r\n vm.datumIg = new Date();\r\n vm.datumTol = new Date(new Date().setMonth(new Date().getMonth() - 1));\r\n vm.coachDataBound = coachDataBound;\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.columns = [{\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }, {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('PaidAmount'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n }, {\r\n field: 'AtveteliElismervenySorszam',\r\n headerText: gettextCatalog.getString('AcknowledgmentOfReceipt'),\r\n textAlign: 'center',\r\n width: 115,\r\n }\r\n ];\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n // Public functions\r\n vm.getFeeDatas = getFeeDatas;\r\n vm.selectCoach = selectCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTNAPIOKTD')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'defpc.coach',\r\n 'defpc.from',\r\n 'defpc.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.datumTol = results[0]['defpc.from'];\r\n vm.datumIg = results[0]['defpc.to'];\r\n vm.selectedCoach = results[0]['defpc.coach'];\r\n vm.coachIdValue = results[0]['defpc.coach'];\r\n vm.defaultCoachId = results[0]['defpc.coach'];\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function getFeeDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n paramHelper.setParams([\r\n {'defpc.coach': vm.selectedCoach},\r\n {'defpc.from': vm.datumTol},\r\n {'defpc.to': vm.datumIg}\r\n ]);\r\n return dataservice.dailyEducationalFeesPerCoach(vm.selectedCoach, vm.datumTol, vm.datumIg).then(\r\n function (data) {\r\n vm.data = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = vm.data;\r\n }\r\n );\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function selectCoach(arg) {\r\n vm.selectedCoach = arg.value;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.dailyEducationalFeesPerCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailyEducationalFeesPerCoach',\r\n config: {\r\n url: '/dailyEducationalFeesPerCoach',\r\n templateUrl: 'app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.html',\r\n controller: 'DailyEducationalFeesPerCoachController',\r\n controllerAs: 'vm',\r\n title: 'DailyEducationalFeesPerCoach',\r\n settings: {\r\n navId: 283,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Napi oktatási díj befizetések edzőnként',\r\n orderTitle_en: 'Daily Educational Fee Payments Per Coach',\r\n parentId: 3,\r\n content: 'DailyEducationalFeesPerCoach',\r\n activatorPermission: ['\"MEGTNAPIOKTD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DailySportServiceFeePaymentsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.business.dailySportServiceFeePayments')\r\n .controller('DailySportServiceFeePaymentsController', DailySportServiceFeePaymentsController);\r\n\r\n function DailySportServiceFeePaymentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailySportServiceFeePayments');\r\n\r\n var printOpened = false;\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.numberList = [];\r\n vm.dateValue = new Date();\r\n vm.atletesList = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n vm.showAddNumber = false;\r\n vm.reportParameters = {};\r\n vm.dateEnabled = false;\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'AdottNapiSorszamok', headerText: gettextCatalog.getString('Number'), width: 100, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150,\r\n template: '#dailysportservicefeepaymentscolumnTemplate1'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150,\r\n template: '#dailysportservicefeepaymentscolumnTemplate2'\r\n },\r\n {field: 'AdottNapiAtveteliElismervenyek', headerText: gettextCatalog.getString('AtveteliElismervenyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiTemaszamok', headerText: gettextCatalog.getString('Temaszam'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiKoltseghelyek', headerText: gettextCatalog.getString('Koltseghelyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiBefizetesHonapok', headerText: gettextCatalog.getString('BefizetesekHonap'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiBefizdatumok', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'osszesFizetett', headerText: gettextCatalog.getString('Fizetett'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.numberDataBound = numberDataBound;\r\n vm.numberSelect = numberSelect;\r\n vm.addNumbers = addNumbers;\r\n vm.print = print;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['dailySportServiceFeePayments.sectionId', 'dailySportServiceFeePayments.number', 'dailySportServiceFeePayments.coachId', 'dailySportServiceFeePayments.date']), authenticationService.getRight('MEGTNAPITAGD')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['dailySportServiceFeePayments.sectionId'];\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n vm.defaultNumber = results[0]['dailySportServiceFeePayments.number'] !== null ? results[0]['dailySportServiceFeePayments.number'] : 0;\r\n vm.defaultCoachId = results[0]['dailySportServiceFeePayments.coachId'] !== null ? results[0]['dailySportServiceFeePayments.coachId'] : 0;\r\n getcoaches();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getServiceFeePaymentsNumbers(args.value);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(sectionId) {\r\n return dataservice.getServiceFeePaymentsNumbers(sectionId, vm.dateValue).then(function (data) {\r\n vm.numberList = data.itemsList;\r\n vm.numberList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function numberDataBound() {\r\n if (vm.numberList.length === 1) {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.numberList[0].value);\r\n vm.selectedNumber = vm.numberList[0].value;\r\n } else {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.defaultNumber);\r\n vm.selectedNumber = vm.defaultNumber;\r\n }\r\n }\r\n\r\n function numberSelect(args) {\r\n vm.selectedNumber = args.value;\r\n vm.dateEnabled = !(args.value !== 0 && args.value !== '0');\r\n }\r\n\r\n function getAthletes() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'dailySportServiceFeePayments.sectionId': vm.sectionId}, {'dailySportServiceFeePayments.number': vm.selectedNumber}, {'dailySportServiceFeePayments.coachId': vm.coachId}]);\r\n dataservice.getAthletesForDailyPayments(vm.sectionId, vm.coachId, vm.dateValue, vm.selectedNumber).then(function (data) {\r\n vm.atletesList = data.itemsList;\r\n grid.dataSource = vm.atletesList;\r\n grid.refresh();\r\n vm.showAddNumber = vm.selectedNumber === '-1';\r\n });\r\n }\r\n\r\n function addNumbers() {\r\n return dataservice.updateTagdijfizetesek(vm.atletesList, true).then(function () {\r\n log.successMsg('Saved');\r\n getServiceFeePaymentsNumbers(vm.sectionId, true);\r\n getAthletes();\r\n return true;\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n 'edzoId': vm.coachId,\r\n 'szakosztalyId': vm.sectionId,\r\n 'datum': vm.dateValue,\r\n 'sorszam': vm.selectedNumber,\r\n 'cimszoveg': gettextCatalog.getString('DailySportServiceFeePayments'),\r\n 'fejlec': '',\r\n 'edzokapja': false,\r\n 'sportszolg': true\r\n };\r\n $scope.$apply();\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '1', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.dailySportServiceFeePayments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailySportServiceFeePayments',\r\n config: {\r\n url: '/dailySportServiceFeePayments',\r\n templateUrl: 'app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.html',\r\n controller: 'DailySportServiceFeePaymentsController',\r\n controllerAs: 'vm',\r\n title: 'DailySportServiceFeePayments',\r\n settings: {\r\n navId: 253,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Napi sportszolgáltatási díj befizetések',\r\n orderTitle_en: 'Daily Sport Service Fee Payments',\r\n parentId: 3,\r\n content: 'DailySportServiceFeePayments',\r\n activatorPermission: ['\"MEGTNAPITAGD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n modFeesCtrl.$inject = [\"log\", \"$rootScope\", \"gettextCatalog\", \"dataservice\", \"authenticationService\", \"$q\", \"$scope\", \"$filter\", \"paramHelper\"];\r\n angular\r\n .module('app.business.dailySportServiceFeesPerCoach')\r\n .controller('DailySportServiceFeesPerCoachController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.coachDataBound = coachDataBound;\r\n $rootScope.title = gettextCatalog.getString('DailySportServiceFeesPerCoach');\r\n\r\n vm.coachList = '';\r\n vm.selectedCoach = '';\r\n vm.maskObject = {};\r\n\r\n vm.datumIg = new Date();\r\n vm.datumTol = new Date(new Date().setMonth(new Date().getMonth() - 1));\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.nonClosedYears = [];\r\n vm.selectedYear = 0;\r\n vm.columns = [{\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }, {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('PaidAmount'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false,\r\n format: 'N0'\r\n }, {\r\n field: 'AtveteliElismervenySorszam',\r\n headerText: gettextCatalog.getString('AcknowledgmentOfReceipt'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n }\r\n ];\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n // Public functions\r\n vm.getFeeDatas = getFeeDatas;\r\n vm.selectCoach = selectCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTNAPITAGD')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'dssfpc.coach',\r\n 'dssfpc.from',\r\n 'dssfpc.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.datumTol = results[0]['dssfpc.from'];\r\n vm.datumIg = results[0]['dssfpc.to'];\r\n vm.selectedCoach = results[0]['dssfpc.coach'];\r\n vm.coachIdValue = results[0]['dssfpc.coach'];\r\n vm.defaultCoachId = results[0]['dssfpc.coach'];\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function getFeeDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n paramHelper.setParams([\r\n {'dssfpc.coach': vm.selectedCoach},\r\n {'dssfpc.from': vm.datumTol},\r\n {'dssfpc.to': vm.datumIg}\r\n ]);\r\n return dataservice.dailySportServiceFeesPerCoach(vm.selectedCoach, vm.datumTol, vm.datumIg).then(\r\n function (data) {\r\n vm.data = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = vm.data;\r\n }\r\n );\r\n }\r\n }\r\n\r\n function selectCoach(arg) {\r\n vm.selectedCoach = arg.value;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.dailySportServiceFeesPerCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailySportServiceFeesPerCoach',\r\n config: {\r\n url: '/dailySportServiceFeesPerCoach',\r\n templateUrl: 'app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.html',\r\n controller: 'DailySportServiceFeesPerCoachController',\r\n controllerAs: 'vm',\r\n title: 'DailySportServiceFeesPerCoach',\r\n settings: {\r\n navId: 273,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Napi sportszolgáltatási díj befizetések edzőnként',\r\n orderTitle_en: 'Daily Sport Service Fee Payments Per Coach',\r\n parentId: 3,\r\n content: 'DailySportServiceFeesPerCoach',\r\n activatorPermission: ['\"MEGTNAPITAGD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n EducationalFeeRegisterController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\", \"$compile\", \"$timeout\", \"$filter\"];\r\n angular\r\n .module('app.business.educationalFeeRegister')\r\n .controller('EducationalFeeRegisterController', EducationalFeeRegisterController);\r\n\r\n function EducationalFeeRegisterController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $compile, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('EducationalFeeRegister');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.kedvezmenyNevek = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.rowUnderEditing = [];\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'B', value: 'B'}, {text: 'EP', value: 'EP'}];\r\n vm.year = new Date().getFullYear();\r\n vm.modifiedRows = [];\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.dropDownListEditorTemplate =\r\n {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var text = '';\r\n switch (vm.maskObject.value) {\r\n case 'NK':\r\n text = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = false;\r\n break;\r\n case 'K1':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K1';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K1';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K1';\r\n break;\r\n case 'K2':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K2';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K2';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD2;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD2;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K2';\r\n break;\r\n case 'K3':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K3';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K3';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD3;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD3;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K3';\r\n break;\r\n case 'K4':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K4';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K4';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD4;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD4;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K4';\r\n break;\r\n case 'K5':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K5';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K5';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesOD5;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesOD5;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K5';\r\n break;\r\n case 'B':\r\n text = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'EP':\r\n text = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'ODM':\r\n text = 'ODM';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'ODM';\r\n break;\r\n }\r\n // grid.refresh();\r\n return text;\r\n },\r\n destroy: function () {\r\n vm.maskObject.destroy();\r\n },\r\n write: function (args) {\r\n vm.monthUnderEditing = args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '');\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n\r\n var arr = vm.priceType.slice(0);\r\n if (args.rowData.mentessegAdhato === true) {\r\n arr.push({text: 'ODM', value: 'ODM'});\r\n }\r\n vm.maskObject = new ej2.dropdowns.DropDownList({\r\n value: args.rowData[args.column.field.slice(0, -5)],\r\n dataSource: arr,\r\n popupWidth: 150,\r\n fields: {\r\n value: 'value',\r\n text: 'text'\r\n }\r\n });\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.monthList =\r\n [{text: gettextCatalog.getString('All'), value: -1},\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}];\r\n\r\n // Grid's variables\r\n vm.osszesFizetendo = function (args) {\r\n return ej.sum(args, 'osszesFizetendo');\r\n };\r\n vm.osszesFizetett = function (args) {\r\n return ej.sum(args, 'osszesFizetett');\r\n };\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetendo,\r\n columnName: 'osszesFizetendo',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetett,\r\n columnName: 'osszesFizetett',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.fizetveWidth = 80;\r\n vm.columns = [\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#educationalfeeregistercolumnTemplate1',\r\n field: 'Versenyzo_Nev',\r\n width: 150\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 100\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {\r\n field: 'SzakosztalyNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115\r\n },\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#educationalfeeregistercolumnTemplate2',\r\n field: 'EdzoNeve',\r\n width: 150\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'),\r\n columns: [\r\n {\r\n field: 'Honap_1_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay1'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n /*\r\n editType: 'dropdownedit',\r\n edit: { params: { fields: {value: 'value', text: 'text'},\r\n dataSource: vm.priceType,\r\n query : new ej.data.Query()\r\n }\r\n */\r\n },\r\n {\r\n field: 'Honap_1',\r\n headerText: gettextCatalog.getString('Payed1'),\r\n textAlign: 'center',\r\n // editType: 'numericedit',\r\n // edit: { params: { showSpinButton: false } },\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_1_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber1'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_1_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate1'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'),\r\n columns: [\r\n {\r\n field: 'Honap_2_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay2'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_2',\r\n headerText: gettextCatalog.getString('Payed2'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_2_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber2'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_2_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate2'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'),\r\n columns: [\r\n {\r\n field: 'Honap_3_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay3'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_3',\r\n headerText: gettextCatalog.getString('Payed3'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_3_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber3'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_3_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate3'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'),\r\n columns: [\r\n {\r\n field: 'Honap_4_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay4'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_4',\r\n headerText: gettextCatalog.getString('Payed4'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_4_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber4'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_4_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate4'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'),\r\n columns: [\r\n {\r\n field: 'Honap_5_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay5'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_5',\r\n headerText: gettextCatalog.getString('Payed5'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_5_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber5'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_5_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate5'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'),\r\n columns: [\r\n {\r\n field: 'Honap_6_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay6'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_6',\r\n headerText: gettextCatalog.getString('Payed6'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_6_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber6'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_6_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate6'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'),\r\n columns: [\r\n {\r\n field: 'Honap_7_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay7'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_7',\r\n headerText: gettextCatalog.getString('Payed7'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_7_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber7'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_7_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate7'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'),\r\n columns: [\r\n {\r\n field: 'Honap_8_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay8'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_8',\r\n headerText: gettextCatalog.getString('Payed8'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_8_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber8'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_8_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate8'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'),\r\n columns: [\r\n {\r\n field: 'Honap_9_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay9'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_9',\r\n headerText: gettextCatalog.getString('Payed9'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_9_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber9'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_9_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate9'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'),\r\n columns: [\r\n {\r\n field: 'Honap_10_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay10'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_10',\r\n headerText: gettextCatalog.getString('Payed10'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_10_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber10'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_10_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate10'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'),\r\n columns: [\r\n {\r\n field: 'Honap_11_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay11'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_11',\r\n headerText: gettextCatalog.getString('Payed11'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_11_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber11'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_11_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate11'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'),\r\n columns: [\r\n {\r\n field: 'Honap_12_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay12'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_12',\r\n headerText: gettextCatalog.getString('Payed12'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_12_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber12'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_12_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate12'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summaries'),\r\n columns: [\r\n {\r\n field: 'osszesFizetendo',\r\n headerText: gettextCatalog.getString('SumNeedPay'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('SumPayed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n function dataBound() {\r\n setTimeout(function () {\r\n var grid = document.getElementById('Grid').ej2_instances[0];\r\n var el = grid.element.querySelector('.e-frozencontent');\r\n if (el !== null) {\r\n el.style.height = grid.element.querySelector('.e-movablecontent').getBoundingClientRect().height + 'px';\r\n }\r\n }, 100);\r\n }\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n // allowTextWrap: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n // frozenColumns: 3,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n // dataBound: dataBound,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n queryCellInfo: querycellinfo,\r\n cellEdit: cellEdit,\r\n cellSave: cellSave\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var fut = false;\r\n $('#monthDropDownList').ejDropDownList({\r\n dataSource: vm.monthList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n checkChange: function (args) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n if (fut) {\r\n return;\r\n }\r\n fut = true;\r\n if (args.selectedValue < 0) {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', '1,2,3,4,5,6,7,8,9,10,11,12,13');\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n } else {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', 0);\r\n $('#monthDropDownList').ejDropDownList((args.isChecked ? 'selectItemByValue' : 'unselectItemByValue'), args.selectedValue);\r\n }\r\n fut = false;\r\n },\r\n create: function () {\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n },\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n });\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletesClick;\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.saveWithNumbers = saveWithNumbers;\r\n vm.saveWithoutNumbers = saveWithoutNumbers;\r\n vm.goToDailyPayments = goToDailyPayments;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.getReducedPriceTypes = getReducedPriceTypes;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDNYILV'), authenticationService.getRight('MEGTOKTDNYILV'), paramHelper.getParams([], ['educationalFeeRegister.sectionId', 'educationalFeeRegister.year', 'educationalFeeRegister.coachId', 'educationalFeeRegister.ageGroupId']), authenticationService.getRight('UJOKTDNYILV'), authenticationService.getRight('UJOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true || results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getcoaches(), getSections(), getReducedPriceTypes()]).then(function () {\r\n if (results[2]['educationalFeeRegister.sectionId'] && results[2]['educationalFeeRegister.coachId'] && results[2]['educationalFeeRegister.year']) {\r\n $timeout(function () {\r\n if (results[2]['educationalFeeRegister.ageGroupId']) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n DropDownListObj.selectItemByValue(JSON.parse(results[2]['educationalFeeRegister.ageGroupId']));\r\n }\r\n showHideColumns();\r\n getAthletes(results[2]['educationalFeeRegister.sectionId'], results[2]['educationalFeeRegister.coachId'], results[2]['educationalFeeRegister.year']);\r\n }, 0);\r\n }\r\n });\r\n\r\n vm.UJOKTDNYILV = results[3];\r\n vm.UJOKTDNYILV = results[4];\r\n }\r\n });\r\n }\r\n\r\n function getReducedPriceTypes() {\r\n return dataservice.getReducedEducationalFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n vm.priceType = vm.priceType.concat(data.itemsList);\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n vm.kedvezmenyNevek.push(data.itemsList[i].text);\r\n }\r\n });\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas(vm.sectionId).then(function (data) {\r\n vm.sectionFees = data.itemsList;\r\n });\r\n }\r\n\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownListWithFees(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.EducationalFee = vm.sectionList[args.itemId].OktatasiDij !== null ? vm.sectionList[args.itemId].OktatasiDij : 0;\r\n vm.ReducedEducationalFee = vm.sectionList[args.itemId].KedvezmenyesOktatasiDij !== null ? vm.sectionList[args.itemId].KedvezmenyesOktatasiDij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function monthDataBound() {\r\n if (vm.monthList.length === 1) {\r\n angular.element('#monthDropDownList').ejDropDownList('selectItemByValue', vm.monthList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletesClick() {\r\n showHideColumns();\r\n getAthletes();\r\n }\r\n\r\n function showHideColumns() {\r\n $timeout(function () {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var vmi = DropDownListObj.getSelectedValue();\r\n if (vmi.includes(-1)) {\r\n grid.frozenColumns = 3;\r\n } else {\r\n grid.frozenColumns = null;\r\n }\r\n for (var m = 2; m < 14; m++) {\r\n if (vmi.includes(m - 2) || vmi.includes(-1)) {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = true;\r\n }\r\n } else {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = false;\r\n }\r\n }\r\n }\r\n grid.refreshColumns();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (sectionId !== undefined) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n getFeeDatas();\r\n paramHelper.setParams([{'educationalFeeRegister.sectionId': vm.sectionId}, {'educationalFeeRegister.year': vm.year}, {'educationalFeeRegister.coachId': vm.coachId}, {'educationalFeeRegister.ageGroupId': JSON.stringify($('#monthDropDownList').data('ejDropDownList').getSelectedValue())}]);\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var months = DropDownListObj.getSelectedValue();\r\n dataservice.getAthletesForEducationalFeeRegister(vm.sectionId, vm.coachId, vm.year, months).then(function (data) {\r\n $filter('dateStringFilterPromise')(data.itemsList, 'SzuletesiIdo').then(function (result) {\r\n $filter('dateStringFilterPromise')(result, 'Honap_1_FizDatum').then(function (result1) {\r\n $filter('dateStringFilterPromise')(result1, 'Honap_2_FizDatum').then(function (result2) {\r\n $filter('dateStringFilterPromise')(result2, 'Honap_3_FizDatum').then(function (result3) {\r\n $filter('dateStringFilterPromise')(result3, 'Honap_4_FizDatum').then(function (result4) {\r\n $filter('dateStringFilterPromise')(result4, 'Honap_5_FizDatum').then(function (result5) {\r\n $filter('dateStringFilterPromise')(result5, 'Honap_6_FizDatum').then(function (result6) {\r\n $filter('dateStringFilterPromise')(result6, 'Honap_7_FizDatum').then(function (result7) {\r\n $filter('dateStringFilterPromise')(result7, 'Honap_8_FizDatum').then(function (result8) {\r\n $filter('dateStringFilterPromise')(result8, 'Honap_9_FizDatum').then(function (result9) {\r\n $filter('dateStringFilterPromise')(result9, 'Honap_10_FizDatum').then(function (result10) {\r\n $filter('dateStringFilterPromise')(result10, 'Honap_11_FizDatum').then(function (result11) {\r\n $filter('dateStringFilterPromise')(result11, 'Honap_12_FizDatum').then(function (result12) {\r\n vm.data = result12;\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n $scope.$apply();\r\n grid.dataSource = vm.data;\r\n }, 500);\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n // cellák színezése és utolsó két oszlopban az összesítés\r\n function querycellinfo(args) {\r\n var element = angular.element(args.cell);\r\n if (args.column.field.indexOf('Honap_') !== -1) {\r\n switch (args.data['Honap_' + args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '') + '_ReadOnly']) {\r\n case 'MT':\r\n element.css('background-color', '#efdcdc');\r\n break;\r\n case 'O':\r\n element.css('background-color', '#c0c0c0');\r\n break;\r\n case 'P':\r\n element.css('background-color', '#CCC4FF');\r\n break;\r\n }\r\n }\r\n if (args.column.field === 'osszesFizetendo') {\r\n args.data['osszesFizetendo'] = args.data['Honap_1_fizetendo'] + args.data['Honap_2_fizetendo'] + args.data['Honap_3_fizetendo'] + args.data['Honap_4_fizetendo'] + args.data['Honap_5_fizetendo'] + args.data['Honap_6_fizetendo'] + args.data['Honap_7_fizetendo'] + args.data['Honap_8_fizetendo'] + args.data['Honap_9_fizetendo'] + args.data['Honap_10_fizetendo'] + args.data['Honap_11_fizetendo'] + args.data['Honap_12_fizetendo']; //set the datasource value\r\n element.html(args.data['osszesFizetendo']); //set the element values\r\n }\r\n if (args.column.field === 'osszesFizetett') {\r\n args.data['osszesFizetett'] = (args.data['Honap_1'] !== 'null' ? args.data['Honap_1'] * 1 : 0) + (args.data['Honap_2'] !== 'null' ? args.data['Honap_2'] * 1 : 0) + (args.data['Honap_3'] !== 'null' ? args.data['Honap_3'] * 1 : 0) + (args.data['Honap_4'] !== 'null' ? args.data['Honap_4'] * 1 : 0) + (args.data['Honap_5'] !== 'null' ? args.data['Honap_5'] * 1 : 0) + (args.data['Honap_6'] !== 'null' ? args.data['Honap_6'] * 1 : 0) + (args.data['Honap_7'] !== 'null' ? args.data['Honap_7'] * 1 : 0) + (args.data['Honap_8'] !== 'null' ? args.data['Honap_8'] * 1 : 0) + (args.data['Honap_9'] !== 'null' ? args.data['Honap_9'] * 1 : 0) + (args.data['Honap_10'] !== 'null' ? args.data['Honap_10'] * 1 : 0) + (args.data['Honap_11'] !== 'null' ? args.data['Honap_11'] * 1 : 0) + (args.data['Honap_12'] !== 'null' ? args.data['Honap_12'] * 1 : 0);\r\n //set the datasource value\r\n element.html(args.data['osszesFizetett']); //set the element values\r\n }\r\n }\r\n\r\n // szerkesztés letiltása cellánként\r\n function cellEdit(args) {\r\n if (\r\n (args.rowData.Honap_1_kedvezmenyes_Text === 'B' || args.rowData.Honap_1_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_1' || args.columnName === 'Honap_1_kozlemeny' || args.columnName === 'Honap_1_FizDatum') ||\r\n (args.rowData.Honap_2_kedvezmenyes_Text === 'B' || args.rowData.Honap_2_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_2' || args.columnName === 'Honap_2_kozlemeny' || args.columnName === 'Honap_2_FizDatum') ||\r\n (args.rowData.Honap_3_kedvezmenyes_Text === 'B' || args.rowData.Honap_3_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_3' || args.columnName === 'Honap_3_kozlemeny' || args.columnName === 'Honap_3_FizDatum') ||\r\n (args.rowData.Honap_4_kedvezmenyes_Text === 'B' || args.rowData.Honap_4_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_4' || args.columnName === 'Honap_4_kozlemeny' || args.columnName === 'Honap_4_FizDatum') ||\r\n (args.rowData.Honap_5_kedvezmenyes_Text === 'B' || args.rowData.Honap_5_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_5' || args.columnName === 'Honap_5_kozlemeny' || args.columnName === 'Honap_5_FizDatum') ||\r\n (args.rowData.Honap_6_kedvezmenyes_Text === 'B' || args.rowData.Honap_6_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_6' || args.columnName === 'Honap_6_kozlemeny' || args.columnName === 'Honap_6_FizDatum') ||\r\n (args.rowData.Honap_7_kedvezmenyes_Text === 'B' || args.rowData.Honap_7_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_7' || args.columnName === 'Honap_7_kozlemeny' || args.columnName === 'Honap_7_FizDatum') ||\r\n (args.rowData.Honap_8_kedvezmenyes_Text === 'B' || args.rowData.Honap_8_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_8' || args.columnName === 'Honap_8_kozlemeny' || args.columnName === 'Honap_8_FizDatum') ||\r\n (args.rowData.Honap_9_kedvezmenyes_Text === 'B' || args.rowData.Honap_9_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_9' || args.columnName === 'Honap_9_kozlemeny' || args.columnName === 'Honap_9_FizDatum') ||\r\n (args.rowData.Honap_10_kedvezmenyes_Text === 'B' || args.rowData.Honap_10_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_10' || args.columnName === 'Honap_10_kozlemeny' || args.columnName === 'Honap_10_FizDatum') ||\r\n (args.rowData.Honap_11_kedvezmenyes_Text === 'B' || args.rowData.Honap_11_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_11' || args.columnName === 'Honap_11_kozlemeny' || args.columnName === 'Honap_11_FizDatum') ||\r\n (args.rowData.Honap_12_kedvezmenyes_Text === 'B' || args.rowData.Honap_12_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_12' || args.columnName === 'Honap_12_kozlemeny' || args.columnName === 'Honap_12_FizDatum') ||\r\n\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n // Kérésre nem szerkeszthető, ha nem nulla vagy null van benne\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1 !== 0 && args.rowData.Honap_1 !== null) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2 !== 0 && args.rowData.Honap_2 !== null) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3 !== 0 && args.rowData.Honap_3 !== null) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4 !== 0 && args.rowData.Honap_4 !== null) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5 !== 0 && args.rowData.Honap_5 !== null) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6 !== 0 && args.rowData.Honap_6 !== null) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7 !== 0 && args.rowData.Honap_7 !== null) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8 !== 0 && args.rowData.Honap_8 !== null) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9 !== 0 && args.rowData.Honap_9 !== null) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10 !== 0 && args.rowData.Honap_10 !== null) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11 !== 0 && args.rowData.Honap_11 !== null) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12 !== 0 && args.rowData.Honap_12 !== null) ||\r\n\r\n args.columnName === 'Honap_1' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n args.columnName === 'Honap_1_kozlemeny' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_kozlemeny' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_kozlemeny' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_kozlemeny' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_kozlemeny' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_kozlemeny' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_kozlemeny' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_kozlemeny' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_kozlemeny' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_kozlemeny' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_kozlemeny' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_kozlemeny' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true) ||\r\n\r\n args.columnName === 'Honap_1_FizDatum' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === true) ||\r\n args.columnName === 'Honap_2_FizDatum' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === true) ||\r\n args.columnName === 'Honap_3_FizDatum' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === true) ||\r\n args.columnName === 'Honap_4_FizDatum' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === true) ||\r\n args.columnName === 'Honap_5_FizDatum' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === true) ||\r\n args.columnName === 'Honap_6_FizDatum' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === true) ||\r\n args.columnName === 'Honap_7_FizDatum' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === true) ||\r\n args.columnName === 'Honap_8_FizDatum' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === true) ||\r\n args.columnName === 'Honap_9_FizDatum' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === true) ||\r\n args.columnName === 'Honap_10_FizDatum' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === true) ||\r\n args.columnName === 'Honap_11_FizDatum' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === true) ||\r\n args.columnName === 'Honap_12_FizDatum' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === true)\r\n ) {\r\n args.cancel = true;\r\n } else {\r\n $timeout(function () {\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n vm.AthleteUnderEditing = args.rowData.Versenyzo_Nev;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function saveWithoutNumbers() {\r\n return save(false);\r\n }\r\n\r\n function saveWithNumbers() {\r\n return save(true);\r\n }\r\n\r\n function save(withNumbers) {\r\n if (vm.UJOKTDNYILV || vm.UJOKTDNYILV) {\r\n // batchSave();\r\n return dataservice.updateOktatasiDijfizetesek(vm.modifiedRows, withNumbers).then(function () {\r\n log.successMsg('Saved');\r\n vm.modifiedRows = [];\r\n return true;\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function batchSave() {\r\n grid.editModule.batchSave();\r\n }\r\n\r\n function goToDailyPayments() {\r\n paramHelper.setParams([{'dailyEducationalFeePayments.sectionId': vm.sectionId}, {'dailyEducationalFeePayments.coachId': vm.coachId}, {'dailyEducationalFeePayments.year': vm.year}]);\r\n saveWithoutNumbers().then(function () {\r\n $state.go('business.dailyEducationalFeePayments');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.value != null && args.value !== vm.rowUnderEditing[args.columnName]) {\r\n $timeout(function () {\r\n vm.modifiedRows.push(vm.rowUnderEditing);\r\n $scope.$apply();\r\n }, 500);\r\n }\r\n vm.AthleteUnderEditing = '';\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.educationalFeeRegister')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.educationalFeeRegister',\r\n config: {\r\n url: '/educationalFeeRegister',\r\n templateUrl: 'app/business/educationalFeeRegister/educationalFeeRegister.html',\r\n controller: 'EducationalFeeRegisterController',\r\n controllerAs: 'vm',\r\n title: 'EducationalFeeRegister',\r\n settings: {\r\n navId: 233,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Oktatási díj nyilvántartás',\r\n orderTitle_en: 'Educational Fee Register',\r\n parentId: 3,\r\n content: 'EducationalFeeRegister',\r\n activatorPermission: ['\"MEGTTAGDNYILV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n modFeesCtrl.$inject = [\"log\", \"$rootScope\", \"gettextCatalog\", \"dataservice\", \"authenticationService\", \"$q\", \"$scope\"];\r\n angular\r\n .module('app.business.modifyFees')\r\n .controller('modifyFeesController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('ModifyFees');\r\n\r\n var elem;\r\n var checkBoxObj;\r\n var checkBoxEditorTemplate =\r\n {\r\n create: function () {\r\n elem = document.createElement('input');\r\n return elem;\r\n },\r\n read: function () {\r\n return checkBoxObj.checked.toString();\r\n },\r\n destroy: function () {\r\n if (checkBoxObj != null) {\r\n checkBoxObj.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n checkBoxObj = new ej2.buttons.CheckBox({\r\n checked: args.rowData[s],\r\n value: args.rowData[s]\r\n });\r\n checkBoxObj.appendTo(elem);\r\n }\r\n };\r\n\r\n // Grid's details\r\n vm.toleranceDays = 10;\r\n vm.ddlYearValue = 0;\r\n vm.fromDate = new Date((new Date()).getFullYear(), 0, 1);\r\n vm.onlyNew = false;\r\n vm.saveData = saveData;\r\n vm.closeYear = closeYear;\r\n vm.meteOut = meteOut;\r\n vm.nonClosedYears = [];\r\n vm.selectedYear = 0;\r\n vm.closeYearEnabled = false;\r\n vm.yearclosed = false;\r\n vm.yearSelect = yearSelect;\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n }, {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }, {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('Fee'),\r\n textAlign: 'center',\r\n width: 100,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD',\r\n headerText: gettextCatalog.getString('ReducedFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD2',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 2',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD3',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 3',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD4',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 4',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD5',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 5',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'TDMentessegAdhato',\r\n headerText: gettextCatalog.getString('FeeFree'),\r\n textAlign: 'center',\r\n width: 140,\r\n type: 'boolean',\r\n edit: checkBoxEditorTemplate,\r\n displayAsCheckBox: true,\r\n allowEditing: true\r\n }, {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('EducationalFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD2',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 2',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD3',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 3',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD4',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 4',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD5',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 5',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'ODMentessegAdhato',\r\n headerText: gettextCatalog.getString('EducationalFeeFree'),\r\n textAlign: 'center',\r\n width: 140,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n edit: checkBoxEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'Temaszam',\r\n headerText: gettextCatalog.getString('ThemeNumber'),\r\n textAlign: 'center',\r\n width: 140,\r\n allowEditing: true\r\n }, {\r\n field: 'KoltsegHely',\r\n headerText: gettextCatalog.getString('FeePlace'),\r\n textAlign: 'center',\r\n width: 140,\r\n allowEditing: true\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n frozenColumns: 2,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.tableNumericEditorTemplate = {\r\n create: function () {\r\n return '<input>';\r\n },\r\n read: function (args) {\r\n return args.ejMaskEdit('get_StrippedValue');\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n args.element.ejMaskEdit({\r\n width: '100%',\r\n maskFormat: 'NNN',\r\n //customCharacter: 'bBvVsS0123-',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: vm.readOnlyAttendance\r\n });\r\n }\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODTAGDBEALL'), authenticationService.getRight('MEGTTAGDBEALL')]).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODTAGDBEALL = results[1];\r\n getFeeDatas();\r\n getLastClosedYear();\r\n getReducedEducationalFeeTypes();\r\n getReducedSportServiceFeeTypes();\r\n }\r\n });\r\n }\r\n\r\n function getReducedEducationalFeeTypes() {\r\n return dataservice.getReducedEducationalFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n if (data.itemsList.length >= 5) {\r\n vm.columns[10].headerText = data.itemsList[0].text;\r\n vm.columns[11].headerText = data.itemsList[1].text;\r\n vm.columns[12].headerText = data.itemsList[2].text;\r\n vm.columns[13].headerText = data.itemsList[3].text;\r\n vm.columns[14].headerText = data.itemsList[4].text;\r\n grid.refreshColumns();\r\n }\r\n });\r\n }\r\n\r\n function getReducedSportServiceFeeTypes() {\r\n return dataservice.getReducedSportServiceFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n if (data.itemsList.length >= 5) {\r\n vm.columns[3].headerText = data.itemsList[0].text;\r\n vm.columns[4].headerText = data.itemsList[1].text;\r\n vm.columns[5].headerText = data.itemsList[2].text;\r\n vm.columns[6].headerText = data.itemsList[3].text;\r\n vm.columns[7].headerText = data.itemsList[4].text;\r\n grid.refreshColumns();\r\n }\r\n });\r\n }\r\n\r\n function yearSelect(arg) {\r\n if (arg.value) {\r\n vm.closeYearEnabled = true;\r\n }\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas()\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.toleranceDays = data.TurelmiIdo;\r\n });\r\n }\r\n\r\n function getLastClosedYear() {\r\n return dataservice.getLastClosedYear().then(function (data) {\r\n if (data.retValue === 0 || data.retValue === '0') {\r\n data.retValue = new Date().getFullYear() - 1;\r\n }\r\n var maxYear = new Date().getFullYear() + 1;\r\n for (var i = data.retValue + 1; i < maxYear; i++) {\r\n vm.nonClosedYears.push(i);\r\n }\r\n vm.yearclosed = vm.nonClosedYears.length == 0;\r\n });\r\n }\r\n\r\n function saveDataReal() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n }\r\n grid.editModule.batchSave();\r\n // itt kell mindent elmenteni\r\n var functionData = {\r\n itemsList: grid.dataSource,\r\n TurelmiIdo: vm.toleranceDays\r\n };\r\n return dataservice.saveFeeDatas(functionData);\r\n }\r\n\r\n function saveData() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n saveDataReal().then(function () {\r\n log.successMsg('SaveFeeDataOK');\r\n });\r\n }\r\n }\r\n\r\n function closeYear() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n var functionData = {\r\n datum: vm.selectedYear,\r\n };\r\n dataservice.closeYear(functionData).then(function () {\r\n getLastClosedYear();\r\n });\r\n }\r\n }\r\n\r\n function meteOut() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n // ment és kiró\r\n if (vm.onlyNew) {\r\n // csak új sportolóknak\r\n dataservice.getAthletesForMeteOut(vm.fromDate).then(function (athletes) {\r\n var athleteNames = '';\r\n for (var i = 0; i < athletes.itemsList.length; i++) {\r\n athleteNames += athletes.itemsList[i] + '<br>';\r\n }\r\n\r\n var HTMLarr = [];\r\n HTMLarr[0] = gettextCatalog.getString('');\r\n HTMLarr[1] = '<br><label>';\r\n HTMLarr[2] = gettextCatalog.getString('AthletesAffectedByMeteOut');\r\n HTMLarr[3] = '</label><br>';\r\n HTMLarr[4] = '<p style=\"text-align: left;\">';\r\n HTMLarr[5] = athleteNames;\r\n HTMLarr[6] = '</p><br>';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: gettextCatalog.getString('MeteOutOnlyNewAthletesTitle'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveDataReal().then(function () {\r\n var parameters = {\r\n naptol: vm.fromDate,\r\n kivSportolo: '',\r\n csakUjak: 1,\r\n fizModValtas: 0\r\n };\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n });\r\n }\r\n });\r\n });\r\n } else {\r\n // mindenkinek\r\n swal({\r\n title: gettextCatalog.getString('MeteOutAllAthletesTitle'),\r\n text: gettextCatalog.getString('MeteOutAllAthletesText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveDataReal().then(function () {\r\n var parameters = {\r\n naptol: vm.fromDate,\r\n kivSportolo: '',\r\n csakUjak: 0,\r\n fizModValtas: 0\r\n };\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n });\r\n }\r\n }, function () {\r\n });\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.modifyFees')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.modifyFees',\r\n config: {\r\n url: '/modifyFees',\r\n templateUrl: 'app/business/modifyFees/modifyFees.html',\r\n controller: 'modifyFeesController',\r\n controllerAs: 'vm',\r\n title: 'ModifyFees',\r\n settings: {\r\n navId: 213,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Díjak beállítása',\r\n orderTitle_en: 'Set Fees',\r\n parentId: 3,\r\n content: 'ModifyFees',\r\n activatorPermission: ['\"MEGTTAGDBEALL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyAttendanceArrearsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$filter\", \"$state\", \"$scope\", \"paramHelper\"];\r\n angular\r\n .module('app.business.monthlyAttendanceArrears')\r\n .controller('MonthlyAttendanceArrearsController', MonthlyAttendanceArrearsController);\r\n\r\n function MonthlyAttendanceArrearsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $state, $scope, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceReportArrears');\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 125, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: '#monthlyattendancearrearscolumnTemplate'},\r\n {field: 'Datum2', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'CsoportLetszam', headerText: gettextCatalog.getString('groupStaffNumbers'), textAlign: 'center', width: 115},\r\n {field: 'Erkezett', headerText: gettextCatalog.getString('Arrived'), textAlign: 'center', width: 60},\r\n {field: 'Tavozott', headerText: gettextCatalog.getString('Departed'), textAlign: 'center', width: 60},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', headerTextAlign: 'center', width: 200},\r\n {field: 'Edzo_Alairta', headerText: gettextCatalog.getString('CoachSigned'), textAlign: 'center', headerTextAlign: 'center', width: 100, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'Szakosztalyvezeto_Alairta', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', headerTextAlign: 'center', width: 130, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'utolsoKitoltottDatum', headerText: gettextCatalog.getString('ModifiedDate'), textAlign: 'center', headerTextAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.openCoach = openCoach;\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTHAVIJELLEM')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSeasonPlanArrears().then(function(data) {\r\n data.itemsList = $filter('dateYearMonthStringFilter')(data.itemsList, 'Datum2');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.monthlyAttendanceArrears')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.monthlyAttendanceArrears',\r\n config: {\r\n url: '/monthlyAttendanceArrears',\r\n templateUrl: 'app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.html',\r\n controller: 'MonthlyAttendanceArrearsController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceReportArrears',\r\n settings: {\r\n navId: 293,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Havi jelenléti összesítő lemaradások',\r\n orderTitle_en: 'Monthly Attendance Report Arrears',\r\n parentId: 3,\r\n content: 'MonthlyAttendanceReportArrears',\r\n activatorPermission: ['\"MEGTHAVIJELLEM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SportServiceFeeArrearsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$scope\", \"authenticationService\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.business.sportServiceFeeArrears')\r\n .controller('SportServiceFeeArrearsController', SportServiceFeeArrearsController);\r\n\r\n function SportServiceFeeArrearsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, $scope, authenticationService, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('FeeArrears');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'K', value: 'K'}, {text: 'B', value: 'B'}, {\r\n text: 'EP',\r\n value: 'EP'\r\n }, {text: 'MT', value: 'MT'}];\r\n\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'OsszesHatralek',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n headerText: gettextCatalog.getString('General'), columns: [\r\n {field: 'Ev', headerText: gettextCatalog.getString('Year'), width: 80, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n template: '#feearrearscolumnTemplate2'\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n template: '#feearrearscolumnTemplate1'\r\n },\r\n {\r\n field: 'Dsi_Igazolas',\r\n headerText: gettextCatalog.getString('Regisztracios'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 165\r\n },\r\n ], textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summary'), columns: [\r\n {\r\n field: 'OsszesHatralek',\r\n headerText: gettextCatalog.getString('SumArrears'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n format: 'N0'\r\n },\r\n ], textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Month'), columns: [\r\n {field: 'Honap_1', headerText: gettextCatalog.getString('January'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_2', headerText: gettextCatalog.getString('February'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_3', headerText: gettextCatalog.getString('March'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_4', headerText: gettextCatalog.getString('April'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_5', headerText: gettextCatalog.getString('May'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_6', headerText: gettextCatalog.getString('June'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_7', headerText: gettextCatalog.getString('July'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_8', headerText: gettextCatalog.getString('August'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_9', headerText: gettextCatalog.getString('September'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_10', headerText: gettextCatalog.getString('October'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_11', headerText: gettextCatalog.getString('November'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_12', headerText: gettextCatalog.getString('December'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'}\r\n ], textAlign: 'center'\r\n }\r\n ];\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n groupSettings: {columns: ['SzakosztalyNeve', 'EdzoNeve']},\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: {pageCount: 5, pageSize: 2000, pageSizes: [4, 8, 20, 100, 2000]},\r\n editSettings: {allowEditing: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.yearDataBound = yearDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['sportServiceFeeArrears.sectionId', 'sportServiceFeeArrears.year', 'sportServiceFeeArrears.coachId']), authenticationService.getRight('MEGTTAGDHATR')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['sportServiceFeeArrears.sectionId'];\r\n vm.defaultYear = results[0]['sportServiceFeeArrears.year'];\r\n // angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', results[0]['sportServiceFeeArrears.year']);\r\n vm.year = vm.selectedYear = results[0]['sportServiceFeeArrears.year'];\r\n vm.defaultCoachId = results[0]['sportServiceFeeArrears.coachId'];\r\n if (vm.defaultsectionId != null && vm.defaultCoachId != null && vm.year != null) {\r\n $timeout(function () {\r\n getAthletes(results[0]['sportServiceFeeArrears.sectionId'], results[0]['sportServiceFeeArrears.coachId'], results[0]['sportServiceFeeArrears.year']);\r\n }, 100);\r\n }\r\n getcoaches();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.coachId, true).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.selectedSection = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.ReducedSportServiceFee = vm.sectionList[args.itemId].Tagdij !== null ? vm.sectionList[args.itemId].Tagdij : 0;\r\n vm.SportServiceFee = vm.sectionList[args.itemId].KedvezmenyesTagdij !== null ? vm.sectionList[args.itemId].KedvezmenyesTagdij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n vm.year = new Date().getFullYear();\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (arguments.length == 3) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n paramHelper.setParams([{'sportServiceFeeArrears.sectionId': vm.sectionId}, {'sportServiceFeeArrears.year': vm.year}, {'sportServiceFeeArrears.coachId': vm.coachId}]);\r\n dataservice.getAthletesForFeeArrears(vm.sectionId, vm.coachId, vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.sportServiceFeeArrears')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.sportServiceFeeArrears',\r\n config: {\r\n url: '/sportServiceFeeArrears',\r\n templateUrl: 'app/business/sportServiceFeeArrears/sportServiceFeeArrears.html',\r\n controller: 'SportServiceFeeArrearsController',\r\n controllerAs: 'vm',\r\n title: 'FeeArrears',\r\n settings: {\r\n navId: 243,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Díj hátralékosok',\r\n orderTitle_en: 'Fee Arrears',\r\n parentId: 3,\r\n content: 'FeeArrears',\r\n activatorPermission: ['\"MEGTTAGDHATR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SportServiceFeeRegisterController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\", \"$compile\", \"$timeout\", \"$filter\"];\r\n angular\r\n .module('app.business.sportServiceFeeRegister')\r\n .controller('SportServiceFeeRegisterController', SportServiceFeeRegisterController);\r\n\r\n function SportServiceFeeRegisterController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $compile, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SportServiceFeeRegister');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.kedvezmenyNevek = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.rowUnderEditing = [];\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'B', value: 'B'}, {text: 'EP', value: 'EP'}];\r\n vm.year = new Date().getFullYear();\r\n vm.modifiedRows = [];\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.dropDownListEditorTemplate =\r\n {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var text = '';\r\n switch (vm.maskObject.value) {\r\n case 'NK':\r\n text = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'NK';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.rowUnderEditing['KirottTeljesAr' + vm.monthUnderEditing];\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = false;\r\n break;\r\n case 'K1':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K1';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K1';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K1';\r\n break;\r\n case 'K2':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K2';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K2';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD2;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD2;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K2';\r\n break;\r\n case 'K3':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K3';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K3';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD3;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD3;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K3';\r\n break;\r\n case 'K4':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K4';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K4';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD4;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD4;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K4';\r\n break;\r\n case 'K5':\r\n text = vm.priceType.find(function (value) {\r\n return value.value === 'K5';\r\n }).text;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'K5';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = vm.sectionFees[0].KedvezmenyesTD5;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = vm.sectionFees[0].KedvezmenyesTD5;\r\n vm.rowUnderEditing['Kedvezmenyes' + vm.monthUnderEditing] = true;\r\n vm.rowUnderEditing['KedvezmenyTipus' + vm.monthUnderEditing] = 'K5';\r\n break;\r\n case 'B':\r\n text = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'B';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'EP':\r\n text = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'EP';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n break;\r\n case 'SDM':\r\n text = 'SDM';\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_fizetendo'] = 0;\r\n vm.rowUnderEditing['Honap_' + vm.monthUnderEditing + '_kedvezmenyes'] = 'SDM';\r\n break;\r\n }\r\n\r\n return text;\r\n },\r\n\r\n destroy: function () {\r\n vm.maskObject.destroy();\r\n },\r\n write: function (args) {\r\n vm.monthUnderEditing = args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '');\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n\r\n var arr = vm.priceType.slice(0);\r\n if (args.rowData.mentessegAdhato === true) {\r\n arr.push({text: 'SDM', value: 'SDM'});\r\n }\r\n vm.maskObject = new ej2.dropdowns.DropDownList({\r\n value: args.rowData[args.column.field.slice(0, -5)],\r\n popupWidth: 150,\r\n dataSource: arr,\r\n fields: {\r\n value: 'value',\r\n text: 'text'\r\n }\r\n });\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.monthList =\r\n [{text: gettextCatalog.getString('All'), value: -1},\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}];\r\n\r\n // Grid's variables\r\n vm.osszesFizetendo = function (args) {\r\n return ej.sum(args, 'osszesFizetendo');\r\n };\r\n vm.osszesFizetett = function (args) {\r\n return ej.sum(args, 'osszesFizetett');\r\n };\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Sum}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetendo,\r\n columnName: 'osszesFizetendo',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n },\r\n {\r\n type: 'Custom',\r\n customAggregate: vm.osszesFizetett,\r\n columnName: 'osszesFizetett',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.fizetveWidth = 80;\r\n vm.columns = [\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#sportservicefeeregistercolumnTemplate1',\r\n field: 'Versenyzo_Nev',\r\n width: 175\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 100\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {\r\n field: 'SzakosztalyNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 125,\r\n visible: true\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n allowEditing: false,\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n template: '#sportservicefeeregistercolumnTemplate2',\r\n width: 150,\r\n visible: true\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'),\r\n columns: [\r\n {\r\n field: 'Honap_1_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay1'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n /*\r\n editType: 'dropdownedit',\r\n edit: { params: { fields: {value: 'value', text: 'text'},\r\n dataSource: vm.priceType,\r\n query : new ej.data.Query()\r\n }\r\n */\r\n },\r\n {\r\n field: 'Honap_1',\r\n headerText: gettextCatalog.getString('Payed1'),\r\n textAlign: 'center',\r\n // editType: 'numericedit',\r\n // edit: { params: { showSpinButton: false } },\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_1_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber1'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_1_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate1'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'),\r\n columns: [\r\n {\r\n field: 'Honap_2_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay2'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_2',\r\n headerText: gettextCatalog.getString('Payed2'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_2_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber2'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_2_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate2'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'),\r\n columns: [\r\n {\r\n field: 'Honap_3_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay3'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_3',\r\n headerText: gettextCatalog.getString('Payed3'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_3_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber3'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_3_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate3'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'),\r\n columns: [\r\n {\r\n field: 'Honap_4_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay4'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_4',\r\n headerText: gettextCatalog.getString('Payed4'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_4_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber4'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_4_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate4'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'),\r\n columns: [\r\n {\r\n field: 'Honap_5_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay5'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_5',\r\n headerText: gettextCatalog.getString('Payed5'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_5_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber5'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_5_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate5'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'),\r\n columns: [\r\n {\r\n field: 'Honap_6_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay6'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_6',\r\n headerText: gettextCatalog.getString('Payed6'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_6_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber6'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_6_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate6'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'),\r\n columns: [\r\n {\r\n field: 'Honap_7_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay7'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_7',\r\n headerText: gettextCatalog.getString('Payed7'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_7_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber7'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_7_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate7'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'),\r\n columns: [\r\n {\r\n field: 'Honap_8_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay8'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_8',\r\n headerText: gettextCatalog.getString('Payed8'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_8_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber8'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_8_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate8'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'),\r\n columns: [\r\n {\r\n field: 'Honap_9_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay9'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_9',\r\n headerText: gettextCatalog.getString('Payed9'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_9_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber9'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_9_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate9'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'),\r\n columns: [\r\n {\r\n field: 'Honap_10_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay10'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_10',\r\n headerText: gettextCatalog.getString('Payed10'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_10_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber10'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_10_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate10'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'),\r\n columns: [\r\n {\r\n field: 'Honap_11_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay11'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_11',\r\n headerText: gettextCatalog.getString('Payed11'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_11_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber11'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_11_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate11'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'),\r\n columns: [\r\n {\r\n field: 'Honap_12_kedvezmenyes_Text',\r\n headerText: gettextCatalog.getString('NeedPay12'),\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dropDownListEditorTemplate\r\n },\r\n {\r\n field: 'Honap_12',\r\n headerText: gettextCatalog.getString('Payed12'),\r\n textAlign: 'center',\r\n type: 'number',\r\n width: vm.fizetveWidth\r\n },\r\n {\r\n field: 'Honap_12_kozlemeny',\r\n headerText: gettextCatalog.getString('ReceiptNumber12'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Honap_12_FizDatum',\r\n headerText: gettextCatalog.getString('PaymentDate12'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Date,\r\n allowEditing: true,\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summaries'),\r\n columns: [\r\n {\r\n field: 'osszesFizetendo',\r\n headerText: gettextCatalog.getString('SumNeedPay'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('SumPayed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n function dataBound() {\r\n setTimeout(function () {\r\n var grid = document.getElementById('Grid').ej2_instances[0];\r\n var el = grid.element.querySelector('.e-frozencontent');\r\n if (el !== null) {\r\n el.style.height = grid.element.querySelector('.e-movablecontent').getBoundingClientRect().height + 'px';\r\n }\r\n }, 100);\r\n }\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n // allowTextWrap: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n // dataBound: dataBound,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n queryCellInfo: querycellinfo,\r\n cellEdit: cellEdit,\r\n cellSave: cellSave\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var fut = false;\r\n $('#monthDropDownList').ejDropDownList({\r\n dataSource: vm.monthList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n checkChange: function (args) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n if (fut) {\r\n return;\r\n }\r\n fut = true;\r\n if (args.selectedValue < 0) {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', '1,2,3,4,5,6,7,8,9,10,11,12,13');\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n } else {\r\n $('#monthDropDownList').ejDropDownList('unselectItemsByIndices', 0);\r\n $('#monthDropDownList').ejDropDownList((args.isChecked ? 'selectItemByValue' : 'unselectItemByValue'), args.selectedValue);\r\n }\r\n fut = false;\r\n },\r\n create: function () {\r\n $('#monthDropDownList').ejDropDownList('selectItemByValue', -1);\r\n },\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n });\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletesClick;\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.saveWithNumbers = saveWithNumbers;\r\n vm.saveWithoutNumbers = saveWithoutNumbers;\r\n vm.goToDailyPayments = goToDailyPayments;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.getReducedPriceTypes = getReducedPriceTypes;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('UJTAGDNYILV'),\r\n paramHelper.getParams([], ['sportServiceFeeRegister.sectionId', 'sportServiceFeeRegister.year', 'sportServiceFeeRegister.coachId', 'sportServiceFeeRegister.ageGroupId']),\r\n authenticationService.getRight('MEGTTAGDNYILV'),\r\n authenticationService.getRight('MEGTOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[3] !== true || results[4] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getcoaches(), getSections(), getReducedPriceTypes()]).then(function () {\r\n if (results[2]['sportServiceFeeRegister.sectionId'] && results[2]['sportServiceFeeRegister.coachId'] && results[2]['sportServiceFeeRegister.year']) {\r\n $timeout(function () {\r\n if (results[2]['sportServiceFeeRegister.ageGroupId']) {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n DropDownListObj.selectItemByValue(JSON.parse(results[2]['sportServiceFeeRegister.ageGroupId']));\r\n }\r\n showHideColumns();\r\n getAthletes(results[2]['sportServiceFeeRegister.sectionId'], results[2]['sportServiceFeeRegister.coachId'], results[2]['sportServiceFeeRegister.year']);\r\n }, 0);\r\n }\r\n });\r\n vm.MODTAGDBEALL = results[0];\r\n vm.UJTAGDNYILV = results[1];\r\n }\r\n });\r\n }\r\n\r\n function getReducedPriceTypes() {\r\n return dataservice.getReducedSportServiceFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n vm.priceType = vm.priceType.concat(data.itemsList);\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n vm.kedvezmenyNevek.push(data.itemsList[i].text);\r\n }\r\n });\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas(vm.sectionId).then(function (data) {\r\n vm.sectionFees = data.itemsList;\r\n });\r\n }\r\n\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownListWithFees(vm.coachId).then(function (data) {\r\n //data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.SportServiceFee = vm.sectionList[args.itemId].Tagdij !== null ? vm.sectionList[args.itemId].Tagdij : 0;\r\n vm.ReducedSportServiceFee = vm.sectionList[args.itemId].KedvezmenyesTagdij !== null ? vm.sectionList[args.itemId].KedvezmenyesTagdij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function monthDataBound() {\r\n if (vm.monthList.length === 1) {\r\n angular.element('#monthDropDownList').ejDropDownList('selectItemByValue', vm.monthList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletesClick() {\r\n showHideColumns();\r\n getAthletes();\r\n }\r\n\r\n function showHideColumns() {\r\n $timeout(function () {\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var vmi = DropDownListObj.getSelectedValue();\r\n if (vmi.includes(-1)) {\r\n grid.frozenColumns = 3;\r\n } else {\r\n grid.frozenColumns = null;\r\n }\r\n for (var m = 2; m < 14; m++) {\r\n if (vmi.includes(m - 2) || vmi.includes(-1)) {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = true;\r\n }\r\n } else {\r\n for (var j = 0; j < 4; j++) {\r\n vm.columns[m].columns[j].visible = false;\r\n }\r\n }\r\n }\r\n grid.refreshColumns();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (sectionId) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n getFeeDatas();\r\n paramHelper.setParams([{'sportServiceFeeRegister.sectionId': vm.sectionId}, {'sportServiceFeeRegister.year': vm.year}, {'sportServiceFeeRegister.coachId': vm.coachId}, {'sportServiceFeeRegister.ageGroupId': JSON.stringify($('#monthDropDownList').data('ejDropDownList').getSelectedValue())}]);\r\n\r\n var DropDownListObj = $('#monthDropDownList').data('ejDropDownList');\r\n var months = DropDownListObj.getSelectedValue();\r\n dataservice.getAthletesFromFeeRegister(vm.sectionId, vm.coachId, vm.year, months).then(function (data) {\r\n $filter('dateStringFilterPromise')(data.itemsList, 'SzuletesiIdo').then(function (result) {\r\n $filter('dateStringFilterPromise')(result, 'Honap_1_FizDatum').then(function (result1) {\r\n $filter('dateStringFilterPromise')(result1, 'Honap_2_FizDatum').then(function (result2) {\r\n $filter('dateStringFilterPromise')(result2, 'Honap_3_FizDatum').then(function (result3) {\r\n $filter('dateStringFilterPromise')(result3, 'Honap_4_FizDatum').then(function (result4) {\r\n $filter('dateStringFilterPromise')(result4, 'Honap_5_FizDatum').then(function (result5) {\r\n $filter('dateStringFilterPromise')(result5, 'Honap_6_FizDatum').then(function (result6) {\r\n $filter('dateStringFilterPromise')(result6, 'Honap_7_FizDatum').then(function (result7) {\r\n $filter('dateStringFilterPromise')(result7, 'Honap_8_FizDatum').then(function (result8) {\r\n $filter('dateStringFilterPromise')(result8, 'Honap_9_FizDatum').then(function (result9) {\r\n $filter('dateStringFilterPromise')(result9, 'Honap_10_FizDatum').then(function (result10) {\r\n $filter('dateStringFilterPromise')(result10, 'Honap_11_FizDatum').then(function (result11) {\r\n $filter('dateStringFilterPromise')(result11, 'Honap_12_FizDatum').then(function (result12) {\r\n vm.data = result12;\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n $scope.$apply();\r\n grid.dataSource = vm.data;\r\n }, 500);\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n });\r\n }\r\n\r\n // cellák színezése és utolsó két oszlopban az összesítés\r\n function querycellinfo(args) {\r\n var element = angular.element(args.cell);\r\n if (args.column.field.indexOf('Honap_') !== -1) {\r\n switch (args.data['Honap_' + args.column.field[6] + (args.column.field[7] && args.column.field[7] !== '_' ? args.column.field[7] : '') + '_ReadOnly']) {\r\n case 'MT':\r\n element.css('background-color', '#efdcdc');\r\n break;\r\n case 'O':\r\n element.css('background-color', '#c0c0c0');\r\n break;\r\n case 'P':\r\n element.css('background-color', '#CCC4FF');\r\n break;\r\n }\r\n }\r\n if (args.column.field === 'osszesFizetendo') {\r\n args.data['osszesFizetendo'] = args.data['Honap_1_fizetendo'] + args.data['Honap_2_fizetendo'] + args.data['Honap_3_fizetendo'] + args.data['Honap_4_fizetendo'] + args.data['Honap_5_fizetendo'] + args.data['Honap_6_fizetendo'] + args.data['Honap_7_fizetendo'] + args.data['Honap_8_fizetendo'] + args.data['Honap_9_fizetendo'] + args.data['Honap_10_fizetendo'] + args.data['Honap_11_fizetendo'] + args.data['Honap_12_fizetendo']; //set the datasource value\r\n element.html(args.data['osszesFizetendo']); //set the element values\r\n }\r\n if (args.column.field === 'osszesFizetett') {\r\n args.data['osszesFizetett'] = (args.data['Honap_1'] !== 'null' ? args.data['Honap_1'] * 1 : 0) + (args.data['Honap_2'] !== 'null' ? args.data['Honap_2'] * 1 : 0) + (args.data['Honap_3'] !== 'null' ? args.data['Honap_3'] * 1 : 0) + (args.data['Honap_4'] !== 'null' ? args.data['Honap_4'] * 1 : 0) + (args.data['Honap_5'] !== 'null' ? args.data['Honap_5'] * 1 : 0) + (args.data['Honap_6'] !== 'null' ? args.data['Honap_6'] * 1 : 0) + (args.data['Honap_7'] !== 'null' ? args.data['Honap_7'] * 1 : 0) + (args.data['Honap_8'] !== 'null' ? args.data['Honap_8'] * 1 : 0) + (args.data['Honap_9'] !== 'null' ? args.data['Honap_9'] * 1 : 0) + (args.data['Honap_10'] !== 'null' ? args.data['Honap_10'] * 1 : 0) + (args.data['Honap_11'] !== 'null' ? args.data['Honap_11'] * 1 : 0) + (args.data['Honap_12'] !== 'null' ? args.data['Honap_12'] * 1 : 0);\r\n //set the datasource value\r\n element.html(args.data['osszesFizetett']); //set the element values\r\n }\r\n }\r\n\r\n // szerkesztés letiltása cellánként\r\n function cellEdit(args) {\r\n if (\r\n (args.rowData.Honap_1_kedvezmenyes_Text === 'B' || args.rowData.Honap_1_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_1' || args.columnName === 'Honap_1_kozlemeny' || args.columnName === 'Honap_1_FizDatum') ||\r\n (args.rowData.Honap_2_kedvezmenyes_Text === 'B' || args.rowData.Honap_2_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_2' || args.columnName === 'Honap_2_kozlemeny' || args.columnName === 'Honap_2_FizDatum') ||\r\n (args.rowData.Honap_3_kedvezmenyes_Text === 'B' || args.rowData.Honap_3_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_3' || args.columnName === 'Honap_3_kozlemeny' || args.columnName === 'Honap_3_FizDatum') ||\r\n (args.rowData.Honap_4_kedvezmenyes_Text === 'B' || args.rowData.Honap_4_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_4' || args.columnName === 'Honap_4_kozlemeny' || args.columnName === 'Honap_4_FizDatum') ||\r\n (args.rowData.Honap_5_kedvezmenyes_Text === 'B' || args.rowData.Honap_5_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_5' || args.columnName === 'Honap_5_kozlemeny' || args.columnName === 'Honap_5_FizDatum') ||\r\n (args.rowData.Honap_6_kedvezmenyes_Text === 'B' || args.rowData.Honap_6_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_6' || args.columnName === 'Honap_6_kozlemeny' || args.columnName === 'Honap_6_FizDatum') ||\r\n (args.rowData.Honap_7_kedvezmenyes_Text === 'B' || args.rowData.Honap_7_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_7' || args.columnName === 'Honap_7_kozlemeny' || args.columnName === 'Honap_7_FizDatum') ||\r\n (args.rowData.Honap_8_kedvezmenyes_Text === 'B' || args.rowData.Honap_8_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_8' || args.columnName === 'Honap_8_kozlemeny' || args.columnName === 'Honap_8_FizDatum') ||\r\n (args.rowData.Honap_9_kedvezmenyes_Text === 'B' || args.rowData.Honap_9_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_9' || args.columnName === 'Honap_9_kozlemeny' || args.columnName === 'Honap_9_FizDatum') ||\r\n (args.rowData.Honap_10_kedvezmenyes_Text === 'B' || args.rowData.Honap_10_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_10' || args.columnName === 'Honap_10_kozlemeny' || args.columnName === 'Honap_10_FizDatum') ||\r\n (args.rowData.Honap_11_kedvezmenyes_Text === 'B' || args.rowData.Honap_11_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_11' || args.columnName === 'Honap_11_kozlemeny' || args.columnName === 'Honap_11_FizDatum') ||\r\n (args.rowData.Honap_12_kedvezmenyes_Text === 'B' || args.rowData.Honap_12_kedvezmenyes_Text === 'EP') && (args.columnName === 'Honap_12' || args.columnName === 'Honap_12_kozlemeny' || args.columnName === 'Honap_12_FizDatum') ||\r\n\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n // Kérésre nem szerkeszthető, ha nem nulla vagy null van benne\r\n args.columnName === 'Honap_1_kedvezmenyes_Text' && (args.rowData.Honap_1 !== 0 && args.rowData.Honap_1 !== null) ||\r\n args.columnName === 'Honap_2_kedvezmenyes_Text' && (args.rowData.Honap_2 !== 0 && args.rowData.Honap_2 !== null) ||\r\n args.columnName === 'Honap_3_kedvezmenyes_Text' && (args.rowData.Honap_3 !== 0 && args.rowData.Honap_3 !== null) ||\r\n args.columnName === 'Honap_4_kedvezmenyes_Text' && (args.rowData.Honap_4 !== 0 && args.rowData.Honap_4 !== null) ||\r\n args.columnName === 'Honap_5_kedvezmenyes_Text' && (args.rowData.Honap_5 !== 0 && args.rowData.Honap_5 !== null) ||\r\n args.columnName === 'Honap_6_kedvezmenyes_Text' && (args.rowData.Honap_6 !== 0 && args.rowData.Honap_6 !== null) ||\r\n args.columnName === 'Honap_7_kedvezmenyes_Text' && (args.rowData.Honap_7 !== 0 && args.rowData.Honap_7 !== null) ||\r\n args.columnName === 'Honap_8_kedvezmenyes_Text' && (args.rowData.Honap_8 !== 0 && args.rowData.Honap_8 !== null) ||\r\n args.columnName === 'Honap_9_kedvezmenyes_Text' && (args.rowData.Honap_9 !== 0 && args.rowData.Honap_9 !== null) ||\r\n args.columnName === 'Honap_10_kedvezmenyes_Text' && (args.rowData.Honap_10 !== 0 && args.rowData.Honap_10 !== null) ||\r\n args.columnName === 'Honap_11_kedvezmenyes_Text' && (args.rowData.Honap_11 !== 0 && args.rowData.Honap_11 !== null) ||\r\n args.columnName === 'Honap_12_kedvezmenyes_Text' && (args.rowData.Honap_12 !== 0 && args.rowData.Honap_12 !== null) ||\r\n\r\n args.columnName === 'Honap_1' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n args.columnName === 'Honap_1_kozlemeny' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_kozlemeny' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_kozlemeny' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_kozlemeny' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_kozlemeny' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_kozlemeny' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_kozlemeny' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_kozlemeny' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_kozlemeny' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_kozlemeny' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_kozlemeny' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_kozlemeny' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false) ||\r\n\r\n args.columnName === 'Honap_1_FizDatum' && (args.rowData.Honap_1_ReadOnly !== 'A' || args.rowData.Tagdijas_1 === false) ||\r\n args.columnName === 'Honap_2_FizDatum' && (args.rowData.Honap_2_ReadOnly !== 'A' || args.rowData.Tagdijas_2 === false) ||\r\n args.columnName === 'Honap_3_FizDatum' && (args.rowData.Honap_3_ReadOnly !== 'A' || args.rowData.Tagdijas_3 === false) ||\r\n args.columnName === 'Honap_4_FizDatum' && (args.rowData.Honap_4_ReadOnly !== 'A' || args.rowData.Tagdijas_4 === false) ||\r\n args.columnName === 'Honap_5_FizDatum' && (args.rowData.Honap_5_ReadOnly !== 'A' || args.rowData.Tagdijas_5 === false) ||\r\n args.columnName === 'Honap_6_FizDatum' && (args.rowData.Honap_6_ReadOnly !== 'A' || args.rowData.Tagdijas_6 === false) ||\r\n args.columnName === 'Honap_7_FizDatum' && (args.rowData.Honap_7_ReadOnly !== 'A' || args.rowData.Tagdijas_7 === false) ||\r\n args.columnName === 'Honap_8_FizDatum' && (args.rowData.Honap_8_ReadOnly !== 'A' || args.rowData.Tagdijas_8 === false) ||\r\n args.columnName === 'Honap_9_FizDatum' && (args.rowData.Honap_9_ReadOnly !== 'A' || args.rowData.Tagdijas_9 === false) ||\r\n args.columnName === 'Honap_10_FizDatum' && (args.rowData.Honap_10_ReadOnly !== 'A' || args.rowData.Tagdijas_10 === false) ||\r\n args.columnName === 'Honap_11_FizDatum' && (args.rowData.Honap_11_ReadOnly !== 'A' || args.rowData.Tagdijas_11 === false) ||\r\n args.columnName === 'Honap_12_FizDatum' && (args.rowData.Honap_12_ReadOnly !== 'A' || args.rowData.Tagdijas_12 === false)\r\n ) {\r\n args.cancel = true;\r\n } else {\r\n $timeout(function () {\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n vm.rowUnderEditing = result.result[0];\r\n });\r\n vm.AthleteUnderEditing = args.rowData.Versenyzo_Nev;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function saveWithoutNumbers() {\r\n return save(false);\r\n }\r\n\r\n function saveWithNumbers() {\r\n return save(true);\r\n }\r\n\r\n function save(withNumbers) {\r\n if (vm.MODTAGDBEALL || vm.UJTAGDNYILV) {\r\n // batchSave();\r\n return dataservice.updateTagdijfizetesek(vm.modifiedRows, withNumbers).then(function () {\r\n log.successMsg('Saved');\r\n vm.modifiedRows = [];\r\n return true;\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function batchSave() {\r\n grid.editModule.batchSave();\r\n }\r\n\r\n function goToDailyPayments() {\r\n paramHelper.setParams([{'dailySportServiceFeePayments.sectionId': vm.sectionId}, {'dailySportServiceFeePayments.coachId': vm.coachId}, {'dailySportServiceFeePayments.year': vm.year}]);\r\n saveWithoutNumbers().then(function () {\r\n $state.go('business.dailySportServiceFeePayments');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.value != null && args.value !== vm.rowUnderEditing[args.columnName]) {\r\n $timeout(function () {\r\n $scope.$apply();\r\n vm.modifiedRows.push(vm.rowUnderEditing);\r\n }, 500);\r\n }\r\n vm.AthleteUnderEditing = '';\r\n new ej2.data.DataManager(vm.data).executeQuery(new ej2.data.Query().where('Id', 'equal', args.rowData.Id)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.business.sportServiceFeeRegister')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.sportServiceFeeRegister',\r\n config: {\r\n url: '/sportServiceFeeRegister',\r\n templateUrl: 'app/business/sportServiceFeeRegister/sportServiceFeeRegister.html',\r\n controller: 'SportServiceFeeRegisterController',\r\n controllerAs: 'vm',\r\n title: 'SportServiceFeeRegister',\r\n settings: {\r\n navId: 223,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Sportszolgáltatási díj nyilvántartás',\r\n orderTitle_en: 'Sport Service Fee Register',\r\n parentId: 3,\r\n content: 'SportServiceFeeRegister',\r\n activatorPermission: ['\"MEGTTAGDNYILV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n authenticationService.$inject = [\"localStorageService\", \"moment\", \"dataservice\", \"$rootScope\", \"AUTH_EVENTS\", \"$q\"];\r\n angular\r\n .module('app.core')\r\n .factory('authenticationService', authenticationService);\r\n\r\n function authenticationService(localStorageService, moment, dataservice, $rootScope, AUTH_EVENTS, $q) {\r\n return {\r\n isAuthenticated: isAuthenticated,\r\n getPermission: getPermission,\r\n noEducationalFee: noEducationalFee,\r\n getAuthData: getAuthData,\r\n logout: logout,\r\n login: login,\r\n setSessionTimeOut: setSessionTimeOut,\r\n isSessionTimeOut: isSessionTimeOut,\r\n getSessionData: getSessionData,\r\n getLanguage: getLanguage,\r\n getRights: getRights,\r\n getRight: getRight,\r\n getAccessToken: getAccessToken\r\n };\r\n\r\n function isAuthenticated() {\r\n var authData = localStorageService.get('_authData');\r\n return !authData ? false : true;\r\n }\r\n\r\n function getAccessToken() {\r\n return localStorageService.get('_authData').access_token;\r\n }\r\n\r\n function getPermission() {\r\n if (localStorageService.get('_authData') && localStorageService.get('_authData').permission) {\r\n return localStorageService.get('_authData').permission;\r\n } else {\r\n return -1;\r\n }\r\n }\r\n\r\n function getRights(data) {\r\n return $q(function (resolve) {\r\n var accessRights = [];\r\n for (var i = 0; i < data.length; i++) {\r\n accessRights.push({RightName: data[i], Allowed: false});\r\n }\r\n if (isAuthenticated()) {\r\n for (var r = 0; r < accessRights.length; r++) {\r\n for (var j = 0; j < getAuthData().accessRights.length; j++) {\r\n if (data[r].indexOf(getAuthData().accessRights[j]) >= 0 && isAuthenticated()) {\r\n accessRights[r].Allowed = true;\r\n }\r\n }\r\n }\r\n }\r\n resolve(accessRights);\r\n });\r\n }\r\n\r\n function noEducationalFee() {\r\n dataservice.noEducationalFee().then(function (result) {\r\n localStorageService.set('noEducationalFee', result.retValue);\r\n });\r\n }\r\n\r\n function getRight(data) {\r\n return $q(function (resolve) {\r\n if (!isAuthenticated()) {\r\n resolve(false);\r\n } else {\r\n data = '\"' + data + '\"';\r\n if (getAuthData().accessRights && getAuthData().accessRights.indexOf(data) >= 0) {\r\n resolve(true);\r\n }\r\n resolve(false);\r\n }\r\n });\r\n }\r\n\r\n function getLanguage() {\r\n if (isAuthenticated()) {\r\n return localStorageService.get('_authData').language;\r\n } else if (isSessionTimeOut()) {\r\n return localStorageService.get('_sessionData').language;\r\n } else {\r\n return navigator.language || navigator.userLanguage;\r\n }\r\n }\r\n\r\n function pSetAuthData(user) {\r\n if (!user) {\r\n return false;\r\n }\r\n // át kell írni a szervert, hogy adja vissza ezeket is\r\n // valamint az access_token-t is menteni kell\r\n return localStorageService.set('_authData', {\r\n id: user.id,\r\n loginName: user.loginName,\r\n userFullName: user.userFullName,\r\n picture: user.picture,\r\n language: user.language,\r\n gridRecordPerPage: user.gridRecordPerPage,\r\n pwdExpiration: moment.utc(user.expiration).format(),\r\n accessRights: user.accessRights,\r\n permission: user.permission,\r\n access_token: user.access_token\r\n });\r\n }\r\n\r\n function login(loginName, password, language) {\r\n return dataservice.login(loginName, password, language)\r\n .then(function (data) {\r\n var subscribeToTopic = data.data.school;\r\n switch (data.data.szerepkor){\r\n case '-1':\r\n subscribeToTopic += 'coach';\r\n break;\r\n case '0':\r\n subscribeToTopic += 'athlete';\r\n break;\r\n case '1':\r\n case '2':\r\n subscribeToTopic += 'parent';\r\n break;\r\n }\r\n subscribeToTopic += data.data.id;\r\n localStorage.setItem('sikertopic', subscribeToTopic);\r\n if (angular.isDefined(data.data.access_token)) {\r\n data.data.loginName = loginName;\r\n data.data.language = language;\r\n localStorageService.set(data.data.id + '.' + 'gridRecordPerPage', data.data.gridRecordPerPage);\r\n if (pSetAuthData(data.data)) {\r\n if (isSessionTimeOut() && loginName === getSessionData().loginName) {\r\n $rootScope.$broadcast(AUTH_EVENTS.login, getSessionData().url, data.data.permission);\r\n } else {\r\n $rootScope.$broadcast(AUTH_EVENTS.login, '', data.data.permission);\r\n }\r\n pClearSessionData();\r\n return true;\r\n }\r\n }\r\n return false;\r\n }).catch(function () {\r\n return false;\r\n });\r\n }\r\n\r\n function logout() {\r\n var sikertopic = localStorage.getItem('sikertopic');\r\n var firebasetoken = localStorage.getItem('firebasetoken');\r\n if (sikertopic && firebasetoken && sikertopic.length > 0 && firebasetoken.length > 0) {\r\n console.log('UNSUBSCRIBE TOPIC:', sikertopic);\r\n console.log('UNSUBSCRIBE TOKEN:', firebasetoken);\r\n dataservice.FirebaseUnsubscribeFromTopic({topic: sikertopic, token: firebasetoken}).then(function (resp) {\r\n console.log('FirebaseUnsubscribeFromTopic', resp);\r\n });\r\n }\r\n return dataservice.logout().then(function (data) {\r\n if (angular.isDefined(data) && data.retValue) {\r\n pClearAuthData();\r\n $rootScope.$broadcast(AUTH_EVENTS.logout);\r\n return true;\r\n }\r\n return false;\r\n }\r\n ).catch(function () {\r\n return false;\r\n });\r\n }\r\n\r\n function setSessionTimeOut(url) {\r\n if (isAuthenticated()) {\r\n var userInfo = getAuthData();\r\n localStorageService.set('_sessionData', {\r\n loginName: userInfo.loginName,\r\n picture: userInfo.picture,\r\n language: userInfo.language,\r\n url: url\r\n });\r\n logout();\r\n }\r\n }\r\n\r\n function isSessionTimeOut() {\r\n var sessionData = localStorageService.get('_sessionData');\r\n return !sessionData ? false : true;\r\n }\r\n\r\n function getSessionData() {\r\n return localStorageService.get('_sessionData');\r\n }\r\n\r\n function getAuthData() {\r\n return localStorageService.get('_authData');\r\n }\r\n\r\n function pClearSessionData() {\r\n return localStorageService.remove('_sessionData');\r\n }\r\n\r\n function pClearAuthData() {\r\n return localStorageService.remove('_authData', 'marMegnezte');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n toastrConfig.$inject = [\"toastr\"];\n configure.$inject = [\"routerHelperProvider\", \"exceptionHandlerProvider\", \"$httpProvider\", \"logProvider\"];\r\n var core = angular.module('app.core');\r\n\r\n core.config(toastrConfig);\r\n\r\n function toastrConfig(toastr) {\r\n toastr.options.timeOut = 4000;\r\n toastr.options.positionClass = 'toast-bottom-right';\r\n }\r\n\r\n var config = {\r\n appTitle: 'Siker2',\r\n environment: 'development', // 'development' vagy 'production'\r\n partnerLogo: 'images/partnerlogo2.png'\r\n };\r\n\r\n core.value('config', config);\r\n\r\n core.config(configure);\r\n\r\n function configure(routerHelperProvider, exceptionHandlerProvider, $httpProvider, logProvider) {\r\n if (config.environment) {\r\n logProvider.setEnvironment(config.environment);\r\n }\r\n // $compileProvider.debugInfoEnabled(false);\r\n // $httpProvider.defaults.withCredentials = true;\r\n exceptionHandlerProvider.configure(config.environment);\r\n routerHelperProvider.configure({docTitle: config.appTitle + ': '});\r\n $httpProvider.interceptors.push('httpInterceptor');\r\n }\r\n})();\r\n\n/* global toastr:false, moment:false */\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .constant('toastr', toastr)\r\n .constant('moment', moment)\r\n .constant('DOMAIN', {\r\n baseURL: clientConfig.url,\r\n //baseURL: 'http://deac.sikerszoftver.hu/',\r\n //baseURL: 'http://egrivizilabda.sikerszoftver.hu/',\r\n imgBaseUrl: 'api/Photos/',\r\n webService: 'api/',\r\n noImage: 'api/Photos/noImg.jpg',\r\n userImage: 'api/Photos/avatar_2x.png',\r\n profileImgBaseUrl: 'api/Photos/Profile/',\r\n psychologyDocUrl: 'api/PsychologyDocuments/',\r\n resultReportImgBaseUrl: 'api/Photos/Versenyeredmeny/',\r\n resultReportTeamImgBaseUrl: 'api/Photos/VersenyeredmenyCsapat/',\r\n anthropometryPhotosUrl: 'api/Photos/Antropometria/',\r\n youtubeIcon: 'api/Photos/youtube.png',\r\n teamPhotosUrl: 'api/Photos/Csapat/',\r\n exerciseBaseUrl: 'api/Photos/Gyakorlatok/',\r\n messageImagesUrl: 'api/MessageImages/',\r\n justPsycho: 0\r\n }\r\n /*\r\n .constant('DOMAIN', {\r\n webService: 'http://pszicho.unideb.cts.hu/app/api/',\r\n noImage: 'http://pszicho.unideb.cts.hu/Photos/noImage.jpg',\r\n userImage: 'http://pszicho.unideb.cts.hu/Photos/avatar_2x.png',\r\n imgBaseUrl: 'http://pszicho.unideb.cts.hu/app/api/Photos/',\r\n profileImgBaseUrl: 'http://pszicho.unideb.cts.hu/app/api/Photos/Profile/',\r\n psychologyDocUrl: 'http://pszicho.unideb.cts.hu/app/api/PsychologyDocuments/',\r\n justPsycho: 1\r\n }*/\r\n )\r\n .constant('timeout', 20000) // Http request timeout 20 seconds\r\n .constant('keepalive', 7200000) // Session time keepalive 2 hours\r\n .constant('AUTH_EVENTS', {\r\n login: 'auth-login',\r\n logout: 'auth-logout',\r\n sessionTimeout: 'auth-session-timeout',\r\n notAuthorized: 'auth-not-authorized',\r\n refreshProfilePic: 'refresh-profile-picture'\r\n })\r\n .constant('LANG_EVENTS', {\r\n changeLanguage: 'change-language'\r\n })\r\n .constant('PSYCHOLOGY', {\r\n Wartegg: 1,\r\n PerformanceMotivation: 2,\r\n Pieron: 3,\r\n Tenessee: 4\r\n })\r\n .constant('VIEW_DATA', {\r\n dropDownList: {\r\n weight: {\r\n downThreshold: 20,\r\n upThreshold: 150\r\n },\r\n centimetre: {\r\n downThreshold: 100,\r\n upThreshold: 250\r\n },\r\n sex: ['Nő', 'Férfi'],\r\n hand: ['Jobb', 'Bal'],\r\n foot: ['Jobb', 'Bal'],\r\n feeOfEducation: ['Oktatási díjas', 'Sportszolgáltatási díjas'],\r\n counties: ['Bács-Kiskun', 'Baranya', 'Békés', 'Borsod-Abaúj-Zemplén', 'Csongrád', 'Fejér', 'Győr-Moson-Sopron', 'Hajdú-Bihar', 'Heves', 'Jász-Nagykun-Szolnok', 'Komárom-Esztergom', 'Nógrád', 'Pest', 'Somogy', 'Szabolcs-Szatmár-Bereg', 'Tolna', 'Vas', 'Veszprém', 'Zala', 'Budapest'],\r\n course: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'],\r\n class: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'V', 'X', 'Y', 'Z']\r\n\r\n }\r\n })\r\n .constant('LAYOUT_EVENTS', {\r\n passwordChange: 'layout-password-change'\r\n });\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.core')\r\n .run(appRun);\r\n\r\n /* @ngInject */\r\n function appRun(routerHelper) {\r\n // var otherwise = '/404';\r\n var otherwise = '/';\r\n routerHelper.configureStates(getStates(), otherwise);\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: '404',\r\n config: {\r\n url: '/404',\r\n templateUrl: 'app/core/404.html',\r\n title: '404'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n dataservice.$inject = [\"$http\", \"DOMAIN\"];\r\n angular\r\n .module('app.core').config(function (/*$httpProvider*/) {\r\n // delete $httpProvider.defaults.headers.common['X-Requested-With'];\r\n })\r\n .factory('dataservice', dataservice);\r\n\r\n function dataservice($http, DOMAIN) {\r\n var service = {\r\n range: range,\r\n getURL: getURL,\r\n changePassword: changePassword,\r\n login: login,\r\n getHaveToPay: getHaveToPay,\r\n logout: logout,\r\n parentsAthletes: parentsAthletes,\r\n quickCompetitionResult: quickCompetitionResult,\r\n getPieronTest: getPieronTest,\r\n getAvailableLanguages: getAvailableLanguages,\r\n sectionDropDownList: sectionDropDownList,\r\n ageGroupDropDownList: ageGroupDropDownList,\r\n teamsDropDownList: teamsDropDownList,\r\n getAthletesForEducationalFeeRegister: getAthletesForEducationalFeeRegister,\r\n teamList: teamList,\r\n savePieronTest: savePieronTest,\r\n getUserGroupList: getUserGroupList,\r\n updateTagdijfizetesek: updateTagdijfizetesek,\r\n ageGroupDropDownListForSearch: ageGroupDropDownListForSearch,\r\n modifyEvent: modifyEvent,\r\n usersListSelect: usersListSelect,\r\n getCheck: getCheck,\r\n coachDropDownList: coachDropDownList,\r\n getCheckExportPrintList: getCheckExportPrintList,\r\n KoltsegtervOsszesitoExcelExport: KoltsegtervOsszesitoExcelExport,\r\n addUserGroup: addUserGroup,\r\n getUpAndDownPlayers: getUpAndDownPlayers,\r\n HealthReport: HealthReport,\r\n getAthletesFromFeeRegister: getAthletesFromFeeRegister,\r\n getAnnualSportServiceFeeByCoach: getAnnualSportServiceFeeByCoach,\r\n getOldCompetitivePlanByUserId: getOldCompetitivePlanByUserId,\r\n athletesSelect2: athletesSelect2,\r\n getDuplicatedAthletes: getDuplicatedAthletes,\r\n deleteMonthlyTrainingPlan: deleteMonthlyTrainingPlan,\r\n saveAnthropometry: saveAnthropometry,\r\n getAthletesForFeeArrears: getAthletesForFeeArrears,\r\n checkPaymentsSave: checkPaymentsSave,\r\n deleteHealthMainType: deleteHealthMainType,\r\n deleteHealthSubType: deleteHealthSubType,\r\n HealthMainTypeManager: HealthMainTypeManager,\r\n HealthSubTypeManager: HealthSubTypeManager,\r\n healthMainTypesList: healthMainTypesList,\r\n healthSubTypesList: healthSubTypesList,\r\n sectionDropDownListAll: sectionDropDownListAll,\r\n getSectionLeaderListBox: getSectionLeaderListBox,\r\n getEducationalFeePaymentsNumbers: getEducationalFeePaymentsNumbers,\r\n sectionDropDownListWithFees: sectionDropDownListWithFees,\r\n sectionDropDownListWithGroupStatus: sectionDropDownListWithGroupStatus,\r\n getAgeGroupTreeView: getAgeGroupTreeView,\r\n getAnnualSeasonPlanArrears: getAnnualSeasonPlanArrears,\r\n removeEvent: removeEvent,\r\n savePerformanceMotivationSurveyEval: savePerformanceMotivationSurveyEval,\r\n editUserGroup: editUserGroup,\r\n getOldAnthropometryTest: getOldAnthropometryTest,\r\n saveTeam: saveTeam,\r\n getAthletesEV: getAthletesEV,\r\n updateOktatasiDijfizetesek: updateOktatasiDijfizetesek,\r\n savePerformanceMotivationSurvey: savePerformanceMotivationSurvey,\r\n getPerformanceMotivationSurvey: getPerformanceMotivationSurvey,\r\n selectSchools: selectSchools,\r\n getOldWeeklyPlanByUserId: getOldWeeklyPlanByUserId,\r\n getWeeklyTrainingPlans: getWeeklyTrainingPlans,\r\n getAnnualCompetitiveReports: getAnnualCompetitiveReports,\r\n getClassMasters: getClassMasters,\r\n getClassMasterContact: getClassMasterContact,\r\n getMonthlyAttendanceReports: getMonthlyAttendanceReports,\r\n getTrainingAttendances: getTrainingAttendances,\r\n getMonthlyCompetitivePlans: getMonthlyCompetitivePlans,\r\n parentsAthleteAttendanceList: parentsAthleteAttendanceList,\r\n getGymTeachers: getGymTeachers,\r\n getGymTeacherContact: getGymTeacherContact,\r\n getMonthlyTrainingPlanList: getMonthlyTrainingPlanList,\r\n addSchool: addSchool,\r\n getSectionResources: getSectionResources,\r\n getAnnualSportServiceFeeByOneSection: getAnnualSportServiceFeeByOneSection,\r\n getAgeGroupResources: getAgeGroupResources,\r\n editSchool: editSchool,\r\n getAnnualEducationalFeeBySection: getAnnualEducationalFeeBySection,\r\n getAnnualEducationalFeeByOneSection: getAnnualEducationalFeeByOneSection,\r\n searchAthlete: searchAthlete,\r\n searchUser: searchUser,\r\n deleteSchool: deleteSchool,\r\n addUser: addUser,\r\n getAthleteForAnthropometry: getAthleteForAnthropometry,\r\n saveEvent: saveEvent,\r\n modifyUser: modifyUser,\r\n modifyUserMin: modifyUserMin,\r\n getTeamMembersList: getTeamMembersList,\r\n modifyTeam: modifyTeam,\r\n getPossibleTeamMembersList: getPossibleTeamMembersList,\r\n addTeamMemberToTeam: addTeamMemberToTeam,\r\n getUserGroupDropDownList: getUserGroupDropDownList,\r\n getFullUserGroupList: getFullUserGroupList,\r\n deleteTeamMember: deleteTeamMember,\r\n getAnnualSportServiceFeeBySection: getAnnualSportServiceFeeBySection,\r\n getAnnualEducationalFeeByCoach: getAnnualEducationalFeeByCoach,\r\n deleteTeam: deleteTeam,\r\n deleteTeamsPlayers: deleteTeamsPlayers,\r\n getTeam: getTeam,\r\n getAnnualEducationalFeeByAthletes: getAnnualEducationalFeeByAthletes,\r\n ageGroupList: ageGroupList,\r\n saveDailyAttendance: saveDailyAttendance,\r\n sendLocalException: sendLocalException,\r\n getResultsReportsAthlete: getResultsReportsAthlete,\r\n DeleteExercise: DeleteExercise,\r\n SimilarAthleteExist: SimilarAthleteExist,\r\n getExerciseList: getExerciseList,\r\n getExercise: getExercise,\r\n HetiEdzesTervJovahagyas: HetiEdzesTervJovahagyas,\r\n GetPaints: GetPaints,\r\n HaviEdzesTervJovahagyas: HaviEdzesTervJovahagyas,\r\n getServiceFeePaymentsNumbers: getServiceFeePaymentsNumbers,\r\n getAgeGroupMembersList: getAgeGroupMembersList,\r\n getAwayBudgetPlanList: getAwayBudgetPlanList,\r\n KoltsegtervOsszesitoKimutatas: KoltsegtervOsszesitoKimutatas,\r\n getAgeGroup: getAgeGroup,\r\n saveExercise: saveExercise,\r\n saveAgeGroup: saveAgeGroup,\r\n modifyAgeGroup: modifyAgeGroup,\r\n modifyPaint: modifyPaint,\r\n copyAllAgeGroup: copyAllAgeGroup,\r\n athletesSelect: athletesSelect,\r\n parentsAthleteAttendance: parentsAthleteAttendance,\r\n savePaint: savePaint,\r\n getPaint: getPaint,\r\n getAthletesForDailyPayments2: getAthletesForDailyPayments2,\r\n getUserData: getUserData,\r\n getUserDataMin: getUserDataMin,\r\n coachSelect: coachSelect,\r\n ageGroupSelect: ageGroupSelect,\r\n monthlyAttendanceSelect: monthlyAttendanceSelect,\r\n getAccessRights: getAccessRights,\r\n saveMonthlyAttendance: saveMonthlyAttendance,\r\n getNewAthletesInSelectedYearMonth: getNewAthletesInSelectedYearMonth,\r\n messageSave: messageSave,\r\n getUserGroupTypes: getUserGroupTypes,\r\n monthlyAttendanceAcceptByLeader: monthlyAttendanceAcceptByLeader,\r\n getAthleteData: getAthleteData,\r\n getAthleteDataMin: getAthleteDataMin,\r\n getAthletesForDailyPayments: getAthletesForDailyPayments,\r\n transferAthletes: transferAthletes,\r\n getEvents: getEvents,\r\n getAnnualSportServiceFeeByAthletes: getAnnualSportServiceFeeByAthletes,\r\n getLastMonthlyAttendanceTrainingLocationAndTime: getLastMonthlyAttendanceTrainingLocationAndTime,\r\n getAthletesForMonthlyAttendance: getAthletesForMonthlyAttendance,\r\n monthlyAttendanceSelectById: monthlyAttendanceSelectById,\r\n getAthletesCountForMonthlyAttendance: getAthletesCountForMonthlyAttendance,\r\n getMonthlyAttendanceList: getMonthlyAttendanceList,\r\n getUserUnreadedMessages: getUserUnreadedMessages,\r\n messageDelete: messageDelete,\r\n messageDeleteSent: messageDeleteSent,\r\n getUnAcceptedMonthlyAttendance: getUnAcceptedMonthlyAttendance,\r\n getUnAcceptedMonthlyCompetitionPlan: getUnAcceptedMonthlyCompetitionPlan,\r\n getUnAcceptedWeeklyCompetitionPlan: getUnAcceptedWeeklyCompetitionPlan,\r\n getUnAcceptedYearlyCompetitionPlan: getUnAcceptedYearlyCompetitionPlan,\r\n saveTenesseeSelfImageScale: saveTenesseeSelfImageScale,\r\n getPsychologyTests: getPsychologyTests,\r\n uploadWartegg: uploadWartegg,\r\n saveWartegg: saveWartegg,\r\n getTenesseeSelfImageScaleById: getTenesseeSelfImageScaleById,\r\n saveTenesseeSelfImageScaleEval: saveTenesseeSelfImageScaleEval,\r\n getMonthlyCompetitiveReports: getMonthlyCompetitiveReports,\r\n getWarteggTestById: getWarteggTestById,\r\n getWeeklyTrainingPlanList: getWeeklyTrainingPlanList,\r\n SaveAwayBudgetPlan: SaveAwayBudgetPlan,\r\n getIdegenbeliKoltsegvetesiTervEdzoList: getIdegenbeliKoltsegvetesiTervEdzoList,\r\n getIdegenbeliKoltsegvetesiTervSportoloList: getIdegenbeliKoltsegvetesiTervSportoloList,\r\n getWeeklyTravelList: getWeeklyTravelList,\r\n getWeeklyTrainingList: getWeeklyTrainingList,\r\n getAthletes: getAthletes,\r\n saveExitAthletes: saveExitAthletes,\r\n saveNewAthlete: saveNewAthlete,\r\n getAnthropometryListForPrinting: getAnthropometryListForPrinting,\r\n modifyAthlete: modifyAthlete,\r\n getSystemSettings: getSystemSettings,\r\n saveSystemSettings: saveSystemSettings,\r\n getUserGroupRights: getUserGroupRights,\r\n setUserGroupRight: setUserGroupRight,\r\n weeklyTrainingPlanSelectByIdNew: weeklyTrainingPlanSelectByIdNew,\r\n saveWeeklyTrainingPlanNew: saveWeeklyTrainingPlanNew,\r\n getFilesList: getFilesList,\r\n getResultsReports: getResultsReports,\r\n deleteFiles: deleteFiles,\r\n getCompetitiveMonthlyPlanList: getCompetitiveMonthlyPlanList,\r\n monthlyPlanSelectById: monthlyPlanSelectById,\r\n saveMonthlyCompetitionPlan: saveMonthlyCompetitionPlan,\r\n monthlyCompetitionPlanAcceptByLeader: monthlyCompetitionPlanAcceptByLeader,\r\n getCompetitiveMonthlyPlanItems: getCompetitiveMonthlyPlanItems,\r\n sectionIndividualOrTeam: sectionIndividualOrTeam,\r\n getFeeDatas: getFeeDatas,\r\n saveFeeDatas: saveFeeDatas,\r\n getAthletesForMeteOut: getAthletesForMeteOut,\r\n meteOutFee: meteOutFee,\r\n closeYear: closeYear,\r\n getLastClosedYear: getLastClosedYear,\r\n getLinks: getLinks,\r\n saveLink: saveLink,\r\n deleteLink: deleteLink,\r\n athletesBySection: athletesBySection,\r\n getUnPaidFees: getUnPaidFees,\r\n getUnPaidFeesTrainer: getUnPaidFeesTrainer,\r\n getMessages: getMessages,\r\n GetMessageGroups: GetMessageGroups,\r\n sendMessage: sendMessage,\r\n SikerMobileFreeSendNewMessage: SikerMobileFreeSendNewMessage,\r\n SikerMobileFreeSendMessage: SikerMobileFreeSendMessage,\r\n annualSeasonPlanReportSelectById: annualSeasonPlanReportSelectById,\r\n annualSeasonPlanReportSelect: annualSeasonPlanReportSelect,\r\n getTrainerEmailContact: getTrainerEmailContact,\r\n annualSeasonPlanReportMembersDataByIdSelect: annualSeasonPlanReportMembersDataByIdSelect,\r\n coachAthletesByAgeGroupForAnnualSeasonPlan: coachAthletesByAgeGroupForAnnualSeasonPlan,\r\n annualSeasonPlanDeleteMembers: annualSeasonPlanDeleteMembers,\r\n saveAnnualSeasonPlanMembers: saveAnnualSeasonPlanMembers,\r\n saveAnnualSeasonPlanHead: saveAnnualSeasonPlanHead,\r\n annualSeasonPlanReportMembersPastSelect: annualSeasonPlanReportMembersPastSelect,\r\n annualSeasonPlanReportMembersPastDelete: annualSeasonPlanReportMembersPastDelete,\r\n annualSeasonPlanReportMembersPastRefresh: annualSeasonPlanReportMembersPastRefresh,\r\n saveAnnualSeasonPlanMembersPast: saveAnnualSeasonPlanMembersPast,\r\n annualSeasonPlanReportBestResultsList: annualSeasonPlanReportBestResultsList,\r\n saveAnnualSeasonPlanBestResults: saveAnnualSeasonPlanBestResults,\r\n annualSeasonPlanReportBestResultsSelect: annualSeasonPlanReportBestResultsSelect,\r\n annualSeasonPlanReportObjectivesSelect: annualSeasonPlanReportObjectivesSelect,\r\n saveAnnualSeasonPlanCapitalObjectives: saveAnnualSeasonPlanCapitalObjectives,\r\n deleteFileAnnualSeasonPlan: deleteFileAnnualSeasonPlan,\r\n getAnnualSeasonPlanListByTrainer: getAnnualSeasonPlanListByTrainer,\r\n annualSeasonPlanCompetitionPlansAndObjectivesSelect: annualSeasonPlanCompetitionPlansAndObjectivesSelect,\r\n saveAnnualSeasonPlanCompetitionPlansAndObjectives: saveAnnualSeasonPlanCompetitionPlansAndObjectives,\r\n deleteAnnualSeasonPlanCompetitionPlansAndObjectives: deleteAnnualSeasonPlanCompetitionPlansAndObjectives,\r\n deleteAnnualSeasonPlanCompetitionPlansAndObjective: deleteAnnualSeasonPlanCompetitionPlansAndObjective,\r\n annualSeasonPlanList: annualSeasonPlanList,\r\n dailyEducationalFeesPerCoach: dailyEducationalFeesPerCoach,\r\n dailySportServiceFeesPerCoach: dailySportServiceFeesPerCoach,\r\n annualSeasponPlanTableListSelect: annualSeasponPlanTableListSelect,\r\n annualSeasponPlanTableListSelect2: annualSeasponPlanTableListSelect2,\r\n saveAnnualSeasonPlanTable: saveAnnualSeasonPlanTable,\r\n getAthleteTransferList: getAthleteTransferList,\r\n getFelmerokDatumaiDropDownList: getFelmerokDatumaiDropDownList,\r\n leavingAthletesBySection: leavingAthletesBySection,\r\n joinedAthletesBySection: joinedAthletesBySection,\r\n listAthletes: listAthletes,\r\n athletesByCoach: athletesByCoach,\r\n leavingAthletesByCoach: leavingAthletesByCoach,\r\n joinedAthletesByCoach: joinedAthletesByCoach,\r\n activeAthletesByAge: activeAthletesByAge,\r\n activeAthletesBornAtSpecificYear: activeAthletesBornAtSpecificYear,\r\n activeAthletesByMonth: activeAthletesByMonth,\r\n activeAthletesInSectionByMonth: activeAthletesInSectionByMonth,\r\n athletesNotPresentOnMonthlyAttendance: athletesNotPresentOnMonthlyAttendance,\r\n ActiveAthletesInASpecificMonth: ActiveAthletesInASpecificMonth,\r\n LeavingAthletesInASpecificMonth: LeavingAthletesInASpecificMonth,\r\n JoinedAthletesInASpecificMonth: JoinedAthletesInASpecificMonth,\r\n leavingAthletesFromASpecificCoach: leavingAthletesFromASpecificCoach,\r\n joinedAthletesToASpecificCoach: joinedAthletesToASpecificCoach,\r\n getAnnualPresenceReportByTrainersReport: getAnnualPresenceReportByTrainersReport,\r\n getAnnualPresenceReportBySectionsReport: getAnnualPresenceReportBySectionsReport,\r\n getAnnualPresenceReportBySportSchoolReport: getAnnualPresenceReportBySportSchoolReport,\r\n activeAthletesByCoach: activeAthletesByCoach,\r\n deleteWeeklyTrainingPlan: deleteWeeklyTrainingPlan,\r\n getAthleteMoveStory: getAthleteMoveStory,\r\n athleteDropDownListSelect: athleteDropDownListSelect,\r\n getCharacterOfACompetitionList: getCharacterOfACompetitionList,\r\n saveResultReportAthletes: saveResultReportAthletes,\r\n resultReportAthletesSelectById: resultReportAthletesSelectById,\r\n deleteResultsReport: deleteResultsReport,\r\n searchMemberList: searchMemberList,\r\n resultReportAthletesOlderReports: resultReportAthletesOlderReports,\r\n teamDropDownListSelect: teamDropDownListSelect,\r\n teamAthletesListSelect: teamAthletesListSelect,\r\n getCoachUsers: getCoachUsers,\r\n getEdzoKorcsoportjai: getEdzoKorcsoportjai,\r\n getTeamResultAthleteData: getTeamResultAthleteData,\r\n EredmenyJelentoAtjatszoSportoloi: EredmenyJelentoAtjatszoSportoloi,\r\n saveResultReportTeams: saveResultReportTeams,\r\n resultReportTeamSelectById: resultReportTeamSelectById,\r\n saveNewLink: saveNewLink,\r\n activeAthletesByBirthYear: activeAthletesByBirthYear,\r\n VersenyTervHaviDeleteById: VersenyTervHaviDeleteById,\r\n monthlyPlanSelectByDate: monthlyPlanSelectByDate,\r\n ujHaviVersenyeztetesiTerv: ujHaviVersenyeztetesiTerv,\r\n saveReEnteringAthletes: saveReEnteringAthletes,\r\n getAthletesForWeeklyTrainingPlan: getAthletesForWeeklyTrainingPlan,\r\n GetAwayBudgetPlan: GetAwayBudgetPlan,\r\n deleteUserGroup: deleteUserGroup,\r\n userGroupList: userGroupList,\r\n getTrainingVisitReport: getTrainingVisitReport,\r\n getSentMessages: getSentMessages,\r\n getExpiringDocuments: getExpiringDocuments,\r\n getAbsenceReport: getAbsenceReport,\r\n saveFelmeroElemFej: saveFelmeroElemFej,\r\n saveFelmeroElem: saveFelmeroElem,\r\n getSystemSettingsValue: getSystemSettingsValue,\r\n getFelmeroElemFejList: getFelmeroElemFejList,\r\n getFelmeroElemList: getFelmeroElemList,\r\n felmeroElemFejDropDownList: felmeroElemFejDropDownList,\r\n felmeroFejLista: felmeroFejLista,\r\n FelmeroMentes: FelmeroMentes,\r\n FelmeroLetrehozasa: FelmeroLetrehozasa,\r\n getFelmeroById: getFelmeroById,\r\n getSportagSpecReport: getSportagSpecReport,\r\n deleteFelmeroElemFej: deleteFelmeroElemFej,\r\n deleteFelmero: deleteFelmero,\r\n FelmeroTipusMasolas: FelmeroTipusMasolas,\r\n getSectionHasSectionLeaderRight: getSectionHasSectionLeaderRight,\r\n getSectionHasCoachRight: getSectionHasCoachRight,\r\n getOldMonthlyPlanByUserId: getOldMonthlyPlanByUserId,\r\n monthlyTrainingPlanSelectById: monthlyTrainingPlanSelectById,\r\n createLoginForAthlete: createLoginForAthlete,\r\n createLoginForParent: createLoginForParent,\r\n getAthleteidBelongsToAthleteUser: getAthleteidBelongsToAthleteUser,\r\n getUsersBelongingToAthlete: getUsersBelongingToAthlete,\r\n athleteAndParentDropDownList: athleteAndParentDropDownList,\r\n assignAthleteToParentUser: assignAthleteToParentUser,\r\n unlinkUserFromAthlete: unlinkUserFromAthlete,\r\n getParentAndAthleteUsers: getParentAndAthleteUsers,\r\n UsersUserGroup: UsersUserGroup,\r\n getUserIdsOfGroup: getUserIdsOfGroup,\r\n getUserId: getUserId,\r\n getAthletesBodyStat: getAthletesBodyStat,\r\n getAthletesOfUser: getAthletesOfUser,\r\n saveMonthlyTrainingPlan: saveMonthlyTrainingPlan,\r\n saveHealthData: saveHealthData,\r\n GetHealth: GetHealth,\r\n resultChartSectionDropDown: resultChartSectionDropDown,\r\n resultChartAgeGroupDropDown: resultChartAgeGroupDropDown,\r\n resultChartVersenyszamDropDown: resultChartVersenyszamDropDown,\r\n resultDateChart: resultDateChart,\r\n resultChart1: resultChart1,\r\n resultChart2: resultChart2,\r\n resultChart3: resultChart3,\r\n SzuloCsoportokDropDownList: SzuloCsoportokDropDownList,\r\n SportoloCsoportokDropDownList: SportoloCsoportokDropDownList,\r\n getNamesByIds: getNamesByIds,\r\n Cimjegyzek: Cimjegyzek,\r\n CimjegyzekMobil: CimjegyzekMobil,\r\n KedvezmenyNevek: KedvezmenyNevek,\r\n OktatasiKedvezmenyNevek: OktatasiKedvezmenyNevek,\r\n KedvezmenyNevekMentes: KedvezmenyNevekMentes,\r\n modifyHealthData: modifyHealthData,\r\n getReducedSportServiceFeeTypes: getReducedSportServiceFeeTypes,\r\n getReducedEducationalFeeTypes: getReducedEducationalFeeTypes,\r\n getAthleteFees: getAthleteFees,\r\n getParentNames: getParentNames,\r\n loadTrainingDiaryByMonthlyAttendanceId: loadTrainingDiaryByMonthlyAttendanceId,\r\n saveTrainingDiary: saveTrainingDiary,\r\n getTrainingDiaryReports: getTrainingDiaryReports,\r\n monthlyAttendanceRefreshAthleteData: monthlyAttendanceRefreshAthleteData,\r\n getLog: getLog,\r\n getImageOfUser: getImageOfUser,\r\n saveSystemSettingsValue: saveSystemSettingsValue,\r\n EsemenyekAttolteseHetiEdzestervre: EsemenyekAttolteseHetiEdzestervre,\r\n AtjatszoSportoloLista: AtjatszoSportoloLista,\r\n GetPaintList: GetPaintList,\r\n getParentNotifications: getParentNotifications,\r\n getParentNotifications2: getParentNotifications2,\r\n ErtesitestLatta: ErtesitestLatta,\r\n AcceptCSVPayment: AcceptCSVPayment,\r\n KoltesegvetesiTervExcelExport: KoltesegvetesiTervExcelExport,\r\n KoltesegvetesiTervVeglegesites: KoltesegvetesiTervVeglegesites,\r\n KoltesegvetesiTervLezaras: KoltesegvetesiTervLezaras,\r\n KoltesegvetesiTervJovahagyas: KoltesegvetesiTervJovahagyas,\r\n WeeklyTrainingPlaces: WeeklyTrainingPlaces,\r\n GenerateRegNum: GenerateRegNum,\r\n assetTypeList: assetTypeList,\r\n AssetManager: AssetManager,\r\n AssetsByType: AssetsByType,\r\n assetInventoryByType: assetInventoryByType,\r\n assetInventoryByPerson: assetInventoryByPerson,\r\n DeleteUndeleteAssets: DeleteUndeleteAssets,\r\n AthletesInSection: AthletesInSection,\r\n UsersInGroup: UsersInGroup,\r\n AssetIssue: AssetIssue,\r\n AssetTakeBack: AssetTakeBack,\r\n IssuedAssets: IssuedAssets,\r\n getSectionData: getSectionData,\r\n editSection: editSection,\r\n getSectionLeaders: getSectionLeaders,\r\n CSVSettings: CSVSettings,\r\n CSVPreprocessSelectHeader: CSVPreprocessSelectHeader,\r\n EdzesFejLista: EdzesFejLista,\r\n EdzesSablon: EdzesSablon,\r\n ExpiringDocuments: ExpiringDocuments,\r\n getTrainingPracticeAutoComplete: getTrainingPracticeAutoComplete,\r\n getExercises: getExercises,\r\n IdegenKoltsegTervBuszTulaj: IdegenKoltsegTervBuszTulaj,\r\n IdegenKoltsegTervBusz: IdegenKoltsegTervBusz,\r\n saveTrainingPlan: saveTrainingPlan,\r\n getParentDataPOST: getParentDataPOST,\r\n getTrainingPlanList: getTrainingPlanList,\r\n EszkozIgenyLista: EszkozIgenyLista,\r\n GetTrainingPlanById: GetTrainingPlanById,\r\n ageGroupSelectYear: ageGroupSelectYear,\r\n ageGroupSelectBetweenDates: ageGroupSelectBetweenDates,\r\n getCoachContant: getCoachContant,\r\n deleteAwayBudgetPlan: deleteAwayBudgetPlan,\r\n SzakosztalyRuhai: SzakosztalyRuhai,\r\n DeleteTrainingPlan: DeleteTrainingPlan,\r\n noEducationalFee: noEducationalFee,\r\n getMonthlyAttendanceAutoSave: getMonthlyAttendanceAutoSave,\r\n setMonthlyAttendanceAutoSave: setMonthlyAttendanceAutoSave,\r\n CopyTimeAndPlaceFromWeeklyPlan: CopyTimeAndPlaceFromWeeklyPlan,\r\n SetPushNotificationSettings: SetPushNotificationSettings,\r\n SetPushNotificationFromWeb: SetPushNotificationFromWeb,\r\n HetiEdzestervLegregebbiHet: HetiEdzestervLegregebbiHet,\r\n getCompetitionPlaces: getCompetitionPlaces,\r\n GDPRExitAthlete: GDPRExitAthlete,\r\n GetUnreadMessageCount: GetUnreadMessageCount,\r\n FirebaseSubscribeToTopic: FirebaseSubscribeToTopic,\r\n FirebaseUnsubscribeFromTopic: FirebaseUnsubscribeFromTopic,\r\n GetRecipientsBySubjectId: GetRecipientsBySubjectId,\r\n SikerMobileFreeDeleteMessages: SikerMobileFreeDeleteMessages,\r\n SikerMobileFreeLeaveConversation: SikerMobileFreeLeaveConversation,\r\n SendSystemMessage: SendSystemMessage,\r\n deletePaint: deletePaint,\r\n AthletesDataMobileList: AthletesDataMobileList,\r\n DeleteMessageImage: DeleteMessageImage\r\n };\r\n\r\n var ds = this; // jshint ignore: line\r\n\r\n return service;\r\n\r\n function SikerMobileFreeLeaveConversation(targyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeLeaveConversation',\r\n params: {\r\n targyId: targyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteMessageImage(imgPath) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileDeleteImage',\r\n data: imgPath\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deletePaint(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeletePaint',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SendSystemMessage(recipientID, messageBody) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SystemMessage',\r\n params: {\r\n recipient: recipientID,\r\n message: messageBody\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FirebaseSubscribeToTopic(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FirebaseSubscribeToTopic',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FirebaseUnsubscribeFromTopic(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FirebaseUnsubscribeFromTopic',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetRecipientsBySubjectId(subjectId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimjegyzekBySubjectId',\r\n params: {\r\n subjectId: subjectId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetUnreadMessageCount() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetUnreadMessageCount'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GDPRExitAthlete(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GDPRExitAthlete',\r\n params: {\r\n sportoloId: sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HetiEdzestervLegregebbiHet() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervLegregebbiHet'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SetPushNotificationSettings(data) {\r\n console.log(data);\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SetPushNotificationSettings',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SetPushNotificationFromWeb(data) {\r\n console.log('SetPushNotificationFromWeb', data);\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SetPushNotificationFromWeb',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CopyTimeAndPlaceFromWeeklyPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CopyTimeAndPlaceFromWeeklyPlan',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAwayBudgetPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'deleteAwayBudgetPlan',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCoachContant(edzoid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getCoachContant',\r\n params: {\r\n edzoid: edzoid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function noEducationalFee() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NoEducationalFee'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EszkozIgenyLista(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozIgenyLista',\r\n params: {\r\n EdzesFejId: EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentDataPOST(parent, arg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloAdatok',\r\n data: {\r\n parent: parent,\r\n arg: arg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IdegenKoltsegTervBuszTulaj() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenKoltsegTervBuszTulaj'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IdegenKoltsegTervBusz() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenKoltsegTervBusz'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EdzesSablon(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzesSablon',\r\n params: {\r\n EdzesFejId: EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EdzesFejLista(szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzesFejLista',\r\n params: {\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CSVPreprocessSelectHeader(file, headerRow, enc) {\r\n if (!enc) {\r\n enc = 'NULL';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CSVPreprocessSelectHeader',\r\n params: {\r\n file: file,\r\n headerRow: headerRow,\r\n enc: enc\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CSVSettings(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CSVSettings',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionLeaders() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSectionLeaders'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editSection(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'editSection',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionData(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSectionData',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IssuedAssets(sportolo, edzo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IssuedAssets',\r\n params: {\r\n sportolo: sportolo,\r\n edzo: edzo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetTakeBack(assets, megjegyzes) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetTakeBack',\r\n data: {\r\n assets: assets,\r\n megjegyzes: megjegyzes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetIssue(assets, edzo, sportolo, megjegyzes) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetIssue',\r\n data: {\r\n assets: assets,\r\n edzo: edzo,\r\n sportolo: sportolo,\r\n megjegyzes: megjegyzes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AthletesInSection(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AthletesInSection',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function UsersInGroup(usergroup) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UsersInGroup',\r\n params: {\r\n usergroup: usergroup\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetsByType(assetType, filter) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetsByType',\r\n params: {\r\n assetType: assetType,\r\n filter: filter\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteUndeleteAssets(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteUndeleteAssets',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetManager(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetManager',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetTypeList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'assetTypeList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GenerateRegNum() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GenerateRegNum'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function WeeklyTrainingPlaces() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTrainingPlaces'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervLezaras(tervid, close) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervLezaras',\r\n params: {\r\n tervid: tervid,\r\n close: close\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervVeglegesites(tervid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervVeglegesites',\r\n params: {\r\n tervid: tervid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervJovahagyas(tervid, szint) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervJovahagyas',\r\n params: {\r\n tervid: tervid,\r\n szint: szint\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervExcelExport(tervid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervExcelExport',\r\n params: {\r\n tervid: tervid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltsegtervOsszesitoExcelExport(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltsegtervOsszesitoExcelExport',\r\n params: {\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n edzoId: edzoId,\r\n dateFrom: dateFrom,\r\n dateTo: dateTo,\r\n onlyStartDate: onlyStartDate,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AcceptCSVPayment(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AcceptCSVPayment',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SaveAwayBudgetPlan(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveAwayBudgetPlan',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ErtesitestLatta(ertesitesid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ErtesitestLatta',\r\n params: {\r\n ertesitesid: ertesitesid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetAwayBudgetPlan(tervId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAwayBudgetPlan',\r\n params: {\r\n tervId: tervId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNotifications(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getParentNotifications',\r\n params: {\r\n fromDate: fromDate,\r\n toDate: toDate,\r\n currentListSize: currentListSize,\r\n moreNewer: moreNewer,\r\n moreOlder: moreOlder,\r\n load: load,\r\n size: size\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNotifications2(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getParentNotifications2',\r\n params: {\r\n fromDate: fromDate,\r\n toDate: toDate,\r\n currentListSize: currentListSize,\r\n moreNewer: moreNewer,\r\n moreOlder: moreOlder,\r\n load: load,\r\n size: size\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetPaintList(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaintList',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetPaints(sectionId, ageGroupId, coachId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaints',\r\n params: {\r\n sectionId: sectionId,\r\n ageGroupId: ageGroupId,\r\n coachId: coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getImageOfUser(userid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getImageOfUser',\r\n params: {\r\n userid: userid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLog(table, pk, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getLog',\r\n params: {\r\n table: table,\r\n pk: pk,\r\n tol: tol,\r\n ig: ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function loadTrainingDiaryByMonthlyAttendanceId(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KepzesiNaploBetoltesIdAlapjan',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EsemenyekAttolteseHetiEdzestervre(edzo, korosztaly, hetfo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EsemenyekAttolteseHetiEdzestervre',\r\n params: {\r\n edzo: edzo,\r\n korosztaly: korosztaly,\r\n hetfo: hetfo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNames() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloNevek',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KedvezmenyNevekMentes(language, k1, k2, k3, k4, k5, ok1, ok2, ok3, ok4, ok5) {\r\n if (!k1) {\r\n k1 = '';\r\n }\r\n if (!k2) {\r\n k2 = '';\r\n }\r\n if (!k3) {\r\n k3 = '';\r\n }\r\n if (!k4) {\r\n k4 = '';\r\n }\r\n if (!k5) {\r\n k5 = '';\r\n }\r\n if (!ok1) {\r\n ok1 = '';\r\n }\r\n if (!ok2) {\r\n ok2 = '';\r\n }\r\n if (!ok3) {\r\n ok3 = '';\r\n }\r\n if (!ok4) {\r\n ok4 = '';\r\n }\r\n if (!ok5) {\r\n ok5 = '';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KedvezmenyNevekMentes',\r\n params: {\r\n language: language,\r\n k1: k1,\r\n k2: k2,\r\n k3: k3,\r\n k4: k4,\r\n k5: k5,\r\n ok1: ok1,\r\n ok2: ok2,\r\n ok3: ok3,\r\n ok4: ok4,\r\n ok5: ok5\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function OktatasiKedvezmenyNevek(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiKedvezmenyNevek',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getReducedSportServiceFeeTypes(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetReducedSportServiceFeeTypes',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getReducedEducationalFeeTypes(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetReducedEducationalFeeTypes',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KedvezmenyNevek(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KedvezmenyNevek',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SportoloCsoportokDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloCsoportokDropDownList',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SzuloCsoportokDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloCsoportokDropDownList',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart3(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart3',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart2(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart2',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart1(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart1',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultDateChart(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultDateChart',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartVersenyszamDropDown(sportolo, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartVersenyszamDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartAgeGroupDropDown(sportolo, szakosztaly, versenyszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartAgeGroupDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n szakosztaly: szakosztaly,\r\n versenyszam: versenyszam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartSectionDropDown(sportolo, korosztaly, versenyszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartSectionDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n korosztaly: korosztaly,\r\n versenyszam: versenyszam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesBodyStat(sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloTestmeretStatisztika',\r\n params: {sportoloid: sportoloid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserId() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUserId',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function UsersUserGroup(userid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportTagja',\r\n params: {userid: userid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentAndAthleteUsers(section, agegroup) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokhozKapcsolodoFelhasznalokOsszes',\r\n params: {\r\n section: section,\r\n agegroup: agegroup\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UnlinkUserFromAthlete',\r\n params: {\r\n userid: userid,\r\n sportoloid: sportoloid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athleteAndParentDropDownList(role) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloEsSportoloUserDropDownList',\r\n params: {role: role}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUsersBelongingToAthlete(sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolohozKapcsolodoFelhasznalok',\r\n params: {sportoloid: sportoloid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesOfUser() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletesOfUser'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteidBelongsToAthleteUser() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthleteidBelongsToAthleteUser'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assignAthleteToParentUser(parentuserid, sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssignAthleteToParentUser',\r\n params: {\r\n parentuserid: parentuserid,\r\n sportoloid: sportoloid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function createLoginForParent(parentUserName, parentPassword, parent, athleteId, group) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CreateLoginForParent',\r\n params: {\r\n parentUserName: parentUserName,\r\n parentPassword: parentPassword,\r\n parent: parent,\r\n athleteId: athleteId,\r\n group: group\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function createLoginForAthlete(athleteUserName, athletePassword, athleteId, group) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CreateLoginForAthlete',\r\n params: {\r\n athleteUserName: athleteUserName,\r\n athletePassword: athletePassword,\r\n athleteId: athleteId,\r\n group: group\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroTipusMasolas(fefid, targetsection, name) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroTipusMasolas',\r\n params: {\r\n fefid: fefid,\r\n targetsection: targetsection,\r\n name: name\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroMentes(arr, ffid, fefid, section, agegroup, coach, edzoertekeles, date) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroMentes',\r\n data: {\r\n 'data': arr,\r\n 'ffid': ffid,\r\n 'fefid': fefid,\r\n 'section': section,\r\n 'agegroup': agegroup,\r\n 'coach': coach,\r\n 'edzoertekeles': edzoertekeles,\r\n 'date': date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroLetrehozasa(coach, agegroup, fefid, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroLetrehozasa',\r\n params: {\r\n coach: coach,\r\n agegroup: agegroup,\r\n fefid: fefid,\r\n date: date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSportagSpecReport(fefid, agegroup, section, fromdate, todate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportagSpecReport',\r\n params: {\r\n fefid: fefid,\r\n agegroup: agegroup,\r\n section: section,\r\n fromdate: fromdate,\r\n todate: todate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroById(FFID) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroBetoltese',\r\n params: {\r\n FFID: FFID\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFelmeroElemFej(fefid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejTorles',\r\n params: {\r\n fefid: fefid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFelmero(ffid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroTorles',\r\n params: {\r\n ffid: ffid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFelmeroElemFej(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejLetrehozasa',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroElemFejList(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejLista',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFelmeroElem(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemLetrehozasa',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroElemList(fefid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemLista',\r\n params: {\r\n fefid: fefid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAbsenceReport(section, agegroup, coach, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Hianyzasok',\r\n params: {\r\n section: section,\r\n agegroup: agegroup,\r\n coach: coach,\r\n tol: tol,\r\n ig: ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExpiringDocuments(section, agegroup, coach, to, spc, pp, pid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'LejaroDokumentumok',\r\n params: {\r\n section: section,\r\n agegroup: agegroup,\r\n coach: coach,\r\n to: to,\r\n spc: spc,\r\n pp: pp,\r\n pid: pid,\r\n sportoloid: 0\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function userGroupList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokDropDown',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteUserGroup(userGroupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportTorlese',\r\n params: {\r\n userGroupId: userGroupId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyPlanSelectByDate(dateyear, datemonth, szakosztalyId, edzoId, newplan, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviByDate',\r\n params: {\r\n dateyear: dateyear,\r\n datemonth: datemonth,\r\n szakosztalyId: szakosztalyId,\r\n edzoId: edzoId,\r\n newplan: newplan, // Ha uj tervet akarok létrehozni akkor nem dob hibaüzenetet ha az adott hónapra nincs még versenyterv\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ujHaviVersenyeztetesiTerv(date, szakosztalyId, edzoId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UjHaviVersenyeztetesiTerv',\r\n params: {\r\n date: date,\r\n szakosztalyId: szakosztalyId,\r\n edzoId: edzoId,\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByBirthYear(sectionId, year, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AktivSportolokSzuletesievEsSzakosztalySzerint',\r\n params: {\r\n 'sectionId': sectionId,\r\n 'year': year,\r\n 'gender': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteMoveStory(SportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloMozgasa',\r\n params: {\r\n 'SportoloId': SportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function VersenyTervHaviDeleteById(id, SzakosztalyId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviDeleteById',\r\n params: {\r\n 'id': id,\r\n 'SzakosztalyId': SzakosztalyId,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByCoach(coachId, sectionId, dateFrom, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoAktivakSzama_Sportolok',\r\n params: {\r\n 'edzoId': coachId,\r\n 'szakosztalyId': sectionId,\r\n 'datumTol': dateFrom,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesToASpecificCoach(edzoId, datumTol, datumIg, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoBelepokSzama_Sportolok',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesFromASpecificCoach(edzoId, datumTol, datumIg, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKilepokSzama_Sportolok',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function JoinedAthletesInASpecificMonth(honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa_BelepettSportolok',\r\n params: {\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function LeavingAthletesInASpecificMonth(honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa_KilepettSportolok',\r\n params: {\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ActiveAthletesInASpecificMonth(honap, datumig, szakosztalyId, neme) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasaSzakosztalyonkent_sportolok',\r\n params: {\r\n 'honap': honap,\r\n 'datumig': datumig,\r\n 'szakosztalyId': szakosztalyId,\r\n 'gender': neme\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesNotPresentOnMonthlyAttendance(datumTol, datumIg, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletinNemSzereploSportolok',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'tol': datumTol,\r\n 'ig': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesInSectionByMonth(datumTol, datumIg, SzakosztalyNeve, sectionId) {\r\n if (!sectionId) {\r\n sectionId = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasaSzakosztalyonkent',\r\n params: {\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'sectionId': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByMonth(datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa',\r\n params: {\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesBornAtSpecificYear(year, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokEvszamSzerint',\r\n params: {\r\n 'ev': year,\r\n 'szakosztalyId': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByAge(date, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzuletesiIdoAlapjan',\r\n params: {\r\n 'datum': date,\r\n 'szakosztaly': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesByCoach(dateFrom, dateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'BelepoSportolokSzamaEdzonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesByCoach(dateFrom, dateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KilepoSportolokSzamaEdzonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesByCoach(date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamaEdzonkent',\r\n params: {\r\n 'datum': date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function listAthletes(dateFrom, dateTo, state, sectionId, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokListaSzakosztalyonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'state': state,\r\n 'sectionId': sectionId,\r\n 'gender': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesBySection(queryDateFrom, queryDateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyKilepokSzama',\r\n params: {\r\n 'datum': queryDateFrom,\r\n 'datum2': queryDateTo,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesBySection(queryDateFrom, queryDateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyBelepokSzama',\r\n params: {\r\n 'datum': queryDateFrom,\r\n 'datum2': queryDateTo,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function range(start, stop, step) {\r\n if (stop == null) {\r\n stop = start || 0;\r\n start = 0;\r\n }\r\n step = step || 1;\r\n\r\n if (start <= stop) {\r\n var length = Math.max(Math.ceil((stop - start) / step), 0);\r\n var range = Array(length);\r\n\r\n for (var idx = 0; idx <= length; idx++, start += step) {\r\n range[idx] = start;\r\n }\r\n } else {\r\n var length = Math.max(Math.ceil((start - stop) / step), 0);\r\n var range = Array(length);\r\n\r\n for (var idx = 0; idx <= length; idx++, start -= step) {\r\n range[idx] = start;\r\n }\r\n }\r\n\r\n return range;\r\n }\r\n\r\n function getURL() {\r\n return DOMAIN.baseURL + DOMAIN.webService;\r\n }\r\n\r\n function changePassword(oldPwd, newPwd) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ChangePassword',\r\n data: {\r\n 'oldPassword': oldPwd,\r\n 'newPassword': newPwd\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function login(loginName, password, language) {\r\n ds.req = {\r\n type: 'apiTOKEN',\r\n url: DOMAIN.baseURL + 'Token',\r\n data: $.param({\r\n grant_type: 'password',\r\n username: loginName,\r\n password: password,\r\n language: language,\r\n })\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function logout() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Logout'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getHaveToPay() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaveToPay'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAvailableLanguages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AvailableLanguages'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownList(edzoId, osszesSzakosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownList',\r\n params: {edzoId: edzoId, osszesSzakosztaly: osszesSzakosztaly}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListWithGroupStatus(edzoId, osszesSzakosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownListWithGroupStatus',\r\n params: {edzoId: edzoId, osszesSzakosztaly: osszesSzakosztaly}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListAll() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownListAll'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListWithFees(edzoId) {\r\n if (!edzoId) {\r\n edzoId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijDropDownLista',\r\n params: {edzoId: edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getDuplicatedAthletes(inactivesToo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DuplikaltFelhasznalokSelect',\r\n params: {inactivesToo: inactivesToo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesFromFeeRegister(sectionId, coachId, year, months) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForFeeRegister',\r\n params: {sectionId: sectionId, year: year, coachId: coachId, months: months}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForEducationalFeeRegister(sectionId, coachId, year, months) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForEducationalFeeRegister',\r\n params: {sectionId: sectionId, year: year, coachId: coachId, months: months}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupDropDownList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokDropDownList',\r\n params: {'szakosztalyId': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getIdegenbeliKoltsegvetesiTervEdzoList(szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetIdegenbeliKoltsegvetesiTervEdzoList',\r\n params: {szakosztalyId: szakosztalyId, korosztalyId: korosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAwayBudgetPlanList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate, type, versenyHely) {\r\n if (!onlyStartDate) {\r\n onlyStartDate = false;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenbeliKoltsegvetesiTervLista',\r\n params: {\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n edzoId: edzoId,\r\n dateFrom: dateFrom,\r\n dateTo: dateTo,\r\n onlyStartDate: onlyStartDate,\r\n type: type,\r\n versenyHely: versenyHely\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupDropDownListForSearch(sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokDropDownListForSearch',\r\n params: {'sectionId': sectionId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthReport(dateFrom, dateTo, szakosztalyId, korcsoportId, edzoId, fotipus, altipus) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthReport',\r\n params: {\r\n 'fotipus': fotipus,\r\n 'altipus': altipus,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUpAndDownPlayers(szakosztalyId, korcsoportId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AtjatszoSportolokSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'korcsoportId': korcsoportId, 'edzoId': edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyCompetitivePlans(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviVersenyeztetesiTervLeadasokSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHaviJelenletikSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingDiaryReports(tol, ig, szakosztalyId, edzoId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviKepzesiNaplokSelect',\r\n params: {\r\n 'tol': tol,\r\n 'ig': ig,\r\n 'szakosztalyId': szakosztalyId,\r\n 'edzoId': edzoId,\r\n 'korosztalyId': korosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualCompetitiveReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiEvesVersenyeztetesiTervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyCompetitiveReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHaviVersenyeztetesiTervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingPlans(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHetiEdzestervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingAttendances(tol, ig, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzeslatogatasListaSelect',\r\n params: {'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupTypes() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetUserGroupTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamsDropDownList(sectionId, ageGroupId, coachId) {\r\n if (sectionId === undefined) {\r\n sectionId = 0;\r\n }\r\n if (ageGroupId === undefined) {\r\n ageGroupId = 0;\r\n }\r\n if (coachId === undefined) {\r\n coachId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TeamsDropDownList',\r\n params: {\r\n 'sectionId': sectionId,\r\n 'ageGroupId': ageGroupId,\r\n 'coachId': coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamImg(csapatId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteTeamImg',\r\n params: {'csapatId': csapatId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokList',\r\n params: {'szakosztalyId': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupMembersList(szakosztaly, korcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalySportoloi',\r\n params: {\r\n 'szakosztaly': szakosztaly,\r\n 'korcsoport': korcsoport\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiTagdijfizetesekSorszamok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'datum': datum\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEducationalFeePaymentsNumbers(szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktatasiDijFizetesekSorszamok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'datum': datum\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCheck(checkNumber) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkBefizetesBetolt',\r\n params: {'azonosito': checkNumber}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCheckExportPrintList(sectionId, coachId, dateFromValue, dateToValue) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkNyomtatasLista',\r\n params: {\r\n 'SzakosztalyId': sectionId,\r\n 'EdzoId': coachId,\r\n 'datumTol': dateFromValue,\r\n 'datumIg': dateToValue\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroup(korcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyLekerese',\r\n params: {'id': korcsoport}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachDropDownList(szakosztalyId, korosztalyId, datumtol, datumig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoDropDownList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korosztalyId,\r\n datumtol: datumtol,\r\n datumig: datumig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnthropometryListForPrinting(from, to) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TomegesAntropometriaNyomtatas',\r\n params: {\r\n 'from': from,\r\n 'to': to\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamList(szakosztalyId, korosztalyId, inactive) {\r\n if (angular.isUndefined(korosztalyId) || korosztalyId === '') {\r\n korosztalyId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatList',\r\n params: {'szakosztalyId': szakosztalyId, 'korosztalyId': korosztalyId, 'inactive': inactive}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTeam(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTeam',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getIdegenbeliKoltsegvetesiTervSportoloList(szakosztalyId, AgeGroups) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetIdegenbeliKoltsegvetesiTervSportoloList',\r\n data: {szakosztalyId: szakosztalyId, AgeGroups: AgeGroups}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveExercise(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveExercise',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAgeGroup(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnthropometry(ant, fileData, fileName) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AntropometriaMentes',\r\n data: {\r\n ant: ant,\r\n fileData: fileData,\r\n fileName: fileName\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePerformanceMotivationSurvey(athleteId, answers) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePerformanceMotivationSurvey',\r\n data: {\r\n answers: answers,\r\n sportoloId: athleteId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePieronTest(sportoloId, answers, seen, tNumber, wrongAnswersNumber) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePieronTest',\r\n data: {\r\n sportoloId: sportoloId,\r\n answers: answers,\r\n n: seen,\r\n tNumber: tNumber,\r\n wrongAnswersNumber: wrongAnswersNumber\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePerformanceMotivationSurveyEval(surveyId, szoveg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePerformanceMotivationSurveyEval',\r\n data: {\r\n surveyId: surveyId,\r\n szoveg: szoveg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPerformanceMotivationSurvey(surveyId, noText) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPerformanceMotivationSurvey',\r\n params: {surveyId: surveyId, noText: noText}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPieronTest(surveyId, noText) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPieronTest',\r\n params: {surveyId: surveyId, noText: noText}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForDailyPayments(szakosztalyId, edzoId, datum, sorszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiTagdijFizetok',\r\n params: {datum: datum, szakosztalyId: szakosztalyId, edzoId: edzoId, sorszam: sorszam}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForDailyPayments2(szakosztalyId, edzoId, datum, sorszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktatasiDijFizetok',\r\n params: {szakosztalyId: szakosztalyId, datum: datum, edzoId: edzoId, sorszam: sorszam}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyAgeGroup(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportModositasa',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchAthlete(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloKereses/Kereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloKereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchMemberList(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TaglistaKereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloModositas',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyUserMin(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloModositasMin',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokKorosztalyokTreeViewLekeres'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSystemSettings',\r\n params: {valtozo: valtozo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSystemSettingsValue',\r\n params: {valtozo: valtozo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SzakosztalyRuhai(section, section2) {\r\n if (!section2) {\r\n section2 = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyRuhai',\r\n params: {section: section, section2: section2}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveSystemSettings(valtozo, ertek) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveSystemSettings',\r\n data: {valtozo: valtozo, ertek: ertek}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveSystemSettingsValue(valtozo, ertek) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveSystemSettingsValue',\r\n data: {valtozo: valtozo, ertek: ertek}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokVezetovelLekeres'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function copyAllAgeGroup(forrasSzakosztalyId, celSzakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportMasolas',\r\n params: {'forrasSzakosztalyId': forrasSzakosztalyId, 'celSzakosztalyId': celSzakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeBySection(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijBySzakosztalySelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeBySection(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijBySzakosztalySelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByOneSection(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijByEgySzakosztaly',\r\n params: {'szakosztaly': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByOneSection(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijByEgySzakosztaly',\r\n params: {'szakosztaly': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByCoach(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijByEdzoSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByCoach(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijByEdzoSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByAthletes(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijBySportoloSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByAthletes(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijBySportoloSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyTeam(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyTeam',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokDropDownList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFullUserGroupList(group) {\r\n if (!group) {\r\n group = 'all';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokList',\r\n params: {'group': group}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeamMembersList(teamId, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloi',\r\n params: {csapatId: teamId, date: date}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPossibleTeamMembersList(teamId, szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'csapatLehetsegesSportoloi',\r\n params: {csapatId: teamId, korcsoportId: korosztalyId, szakosztalyId: szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addTeamMemberToTeam(sportoloId, csapatId) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloOsszerendeles',\r\n data: {\r\n CsapatId: csapatId,\r\n SportoloId: sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamMember(teamId, sportoloIds) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloTorles',\r\n data: {\r\n CsapatId: teamId,\r\n SportoloIdk: sportoloIds\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeam(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportTorlese',\r\n params: {Id: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamsPlayers(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatOsszesSportoloTorles',\r\n params: {csapatId: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeam(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatLekerese',\r\n params: {csapatId: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function usersListSelect() {\r\n ds.req = {\r\n type: 'apiGET',\r\n withCredentials: true,\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'felhasznalokListaSelect',\r\n data: {}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addUserGroup(csoport) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportHozzaadas',\r\n data: csoport\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editUserGroup(csoport) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportModositas',\r\n data: csoport\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function selectSchools() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolakSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletes(szakosztalyId, edzoId, sportoloId) {\r\n if (sportoloId === null || sportoloId === undefined) {\r\n sportoloId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletes',\r\n params: {szakosztalyId: szakosztalyId, edzoId: edzoId, sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesEV(szakosztalyId, edzoId, sportoloId, csakAktiv) {\r\n if (sportoloId === null || sportoloId === undefined) {\r\n sportoloId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletes',\r\n params: {szakosztalyId: szakosztalyId, edzoId: edzoId, sportoloId: sportoloId, csakAktiv: csakAktiv}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesSelect(szakosztalyId, korcsoportId, onlyInactives) {\r\n if (!szakosztalyId) {\r\n szakosztalyId = 0;\r\n }\r\n if (!korcsoportId || korcsoportId == 'Összes') {\r\n korcsoportId = 0;\r\n }\r\n onlyInactives = (onlyInactives === true);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'szakosztalySportoloi2',\r\n dataFilter: function (data) {\r\n return data.replace(/\"\\\\\\/(Date\\([0-9-]+\\))\\\\\\/\"/gi, 'new $1');\r\n },\r\n params: {'szakosztaly': szakosztalyId, 'inactive': onlyInactives, 'korcsoport': korcsoportId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesSelect2(szakosztalyId, korcsoportId) {\r\n if (!korcsoportId || korcsoportId == 'Összes') {\r\n korcsoportId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GyorsEredmenyjelentoSportoloSelect',\r\n params: {'szakosztaly': szakosztalyId, 'korcsoport': korcsoportId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addSchool(school) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaHozzaadas',\r\n data: school\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editSchool(newSchool) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaModositas',\r\n data: newSchool\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function transferAthletes(sportolok, edzoId, szakosztalyId, korosztalyId, datum, korcsoportValtasKell) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TransferAthletes',\r\n data: {\r\n sportolok: sportolok,\r\n edzoId: edzoId,\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n datum: datum,\r\n korcsoportValtasKell: korcsoportValtasKell\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function quickCompetitionResult(sportolok) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GyorsEredmenyjelentoSportoloMentes',\r\n data: {\r\n sportolok: sportolok\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteSchool(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaTorles',\r\n params: {id: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserData(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloSelect',\r\n params: {userId: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserDataMin(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloSelectMin',\r\n params: {userId: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteForAnthropometry(id, felmeres) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthleteForAnthropometry',\r\n params: {id: id, felmeres: felmeres}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldCompetitivePlanByUserId(edzoId, vtId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorabbiHaviVersTervei',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'vtId': vtId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldAnthropometryTest(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'RegiAntropometriaFelmeresekSelect',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachSelect() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoFelhasznalokDropDownSelect',\r\n data: {}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelect(edzoId, szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelect',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'dt': datum}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelectYear(edzoId, szakosztalyId, year) {\r\n if (!szakosztalyId) {\r\n szakosztalyId = 0;\r\n }\r\n if (!edzoId) {\r\n edzoId = 0;\r\n }\r\n if (!year) {\r\n year = moment().year;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelectYear',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelectBetweenDates(edzoId, szakosztalyId, from, to) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelectBetweenDates',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'from': from, 'to': to}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteFees(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthleteFees',\r\n params: {'sportoloId': sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForFeeArrears(szakosztalyId, edzoId, ev) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForFeeArrears',\r\n params: {'year': ev, 'sectionId': szakosztalyId, 'coachId': edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceSelect(edzoId, szakosztalyId, korosztalyId, ev, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeres',\r\n params: {\r\n 'kivEdzo': edzoId,\r\n 'kivSzakosztaly': szakosztalyId,\r\n 'kivKorcsoport': korosztalyId,\r\n 'kivEv': ev,\r\n 'kivHonap': honap\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getGymTeachers(IskolaNeve) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TestneveloAutoComple',\r\n params: {'IskolaNeve': IskolaNeve}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getGymTeacherContact(testnevelo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TestneveloElerhetosege',\r\n params: {'testnevelo': testnevelo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getClassMasters(IskolaNeve) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OsztalyfonokAutoComplete',\r\n params: {'IskolaNeve': IskolaNeve}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getClassMasterContact(classmaster) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OsztalyfonokElerhetosege',\r\n params: {'classmaster': classmaster}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeresById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveDailyAttendance(attendance) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiJelenletiMentes',\r\n data: attendance\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyAttendance(attendance) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiMentes',\r\n data: attendance\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTrainingDiary(tetelek, jelenletiid, keszult) {\r\n var data = {};\r\n data.edzesmunka = tetelek;\r\n data.JelenletiFejId = jelenletiid;\r\n data.keszult = keszult;\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KepzesiNaploMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteData(athleteId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'sportoloSelect',\r\n params: {'sportoloId': athleteId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteDataMin(athleteId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloSelectMin',\r\n params: {'sportoloId': athleteId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceRefreshAthleteData(fejid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSportoloAdatokFrissites',\r\n params: {'fejid': fejid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getNewAthletesInSelectedYearMonth(hj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UjJatekosokKivHonapbanSelect',\r\n data: hj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceAcceptByLeader(idMA) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'haviJelenletiJovahagyas',\r\n data: idMA\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HaviEdzesTervJovahagyas(id) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzesTervJovahagyas',\r\n data: id\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HetiEdzesTervJovahagyas(id) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzesTervJovahagyas',\r\n data: id\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageSave(uzenet, cimzettekId, sectionId) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetMentes',\r\n data: {\r\n uzenet: uzenet,\r\n cimzettekId: cimzettekId,\r\n sectionId: sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSeasonPlanArrears() {\r\n //Datum=JSON.stringify(Datum);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLemaradasok'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLastMonthlyAttendanceTrainingLocationAndTime(edzoId, kivSzakosztaly, kivKorcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiUtolsoEdzesAdatok',\r\n params: {'edzoId': edzoId, 'kivSzakosztaly': kivSzakosztaly, 'kivKorcsoport': kivKorcsoport}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForMonthlyAttendance(edzoId, kivSzakosztaly, kivKorcsoport, kivHonap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiEdzoJatekosaiKivHonapban',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'kivSzakosztaly': kivSzakosztaly,\r\n 'kivKorosztaly': kivKorcsoport,\r\n 'kivHonap': kivHonap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesCountForMonthlyAttendance(edzoId, szakosztalyId, korcsoportId, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSzakosztalySportoloi',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'tol': tol,\r\n 'ig': ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceList(edzoId, tol, ig, lezart) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletikLista',\r\n params: {'kivEdzo': edzoId, 'tol': tol, 'ig': ig, 'lezart': lezart}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserUnreadedMessages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'felhasznaloOlvasatlanUzenetei'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageDelete(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetTorlese',\r\n params: {'uzenetId': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageDeleteSent(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetTorleseElkuldottekbol',\r\n params: {'uzenetId': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedMonthlyAttendance() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSzakvezAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedMonthlyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedWeeklyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHetiAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedYearlyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervEvesAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLinks() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkek'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkekMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveNewLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkekUj',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkTorles',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEvents(datum, nezet, sectionId, training, ageGroupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetEvents',\r\n params: {training: training, datum: datum, nezet: nezet, sectionId: sectionId, ageGroupId: ageGroupId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveEvent(appointment) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveEvent',\r\n data: appointment\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyEvent(appointment) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyEvent',\r\n data: appointment\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function removeEvent(Id, year, month, day) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'RemoveEvent',\r\n data: {\r\n Id: Id,\r\n year: year,\r\n month: month,\r\n day: day\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionResources() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSectionResources'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupResources() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAgeGroupResources'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTenesseeSelfImageScale(athleteId, answers) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTenesseeSelfImageScale',\r\n data: {\r\n answers: answers,\r\n sportoloId: athleteId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTenesseeSelfImageScaleById(surveyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getTenesseeSelfImageScaleById',\r\n params: {surveyId: surveyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTenesseeSelfImageScaleEval(surveyId, szoveg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTenesseeSelfImageScaleEval',\r\n data: {surveyId: surveyId, szoveg: szoveg}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveWartegg(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveWartegg',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function uploadWartegg(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UploadWartegg',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPsychologyTests(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getPsychologyTests',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWarteggTestById(testId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getWarteggTestById',\r\n params: {surveyId: testId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingPlanList(edzoId, szakosztalyId, korosztalyId, ev, text) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervekLista',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'ev': ev,\r\n 'text': text\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyTrainingPlanList(edzoId, szakosztalyId, korosztalyId, ev, text) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervekLista',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'ev': ev,\r\n 'text': text\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveExitAthletes(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveExitAthletes',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveNewAthlete(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveNewAthlete',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyAthlete(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyAthlete',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAccessRights() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JogosultsagokSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForWeeklyTrainingPlan(edzoId, korosztalyId, datumIg) {\r\n console.log('qweqwqew', datumIg);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForWeeklyTrainingPlan',\r\n params: {edzoId: edzoId, korosztalyId: korosztalyId, datumIg: datumIg}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupRights(groupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportJogosultsagokSelect',\r\n params: {'csoportId': groupId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function setUserGroupRight(groupId, rightId, value) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportJogosultsagokSelect',\r\n data: {\r\n csoportId: groupId,\r\n jogId: rightId,\r\n ertek: value\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function weeklyTrainingPlanSelectByIdNew(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getHetiEdzestervByIdNew',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveWeeklyTrainingPlanNew(formData, gridData, createEvents, mindenki, checkedItems) {\r\n formData.gridData = gridData;\r\n formData.createEvents = createEvents;\r\n formData.mindenki = mindenki;\r\n formData.checkedItems = checkedItems;\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervMentesNew',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFilesList(table, tableId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getFilesList',\r\n params: {\r\n table: table,\r\n tableId: tableId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFiles(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitiveMonthlyPlanList(coachId, sectionId, selectedYear) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviLista',\r\n params: {\r\n edzoId: coachId,\r\n szakosztalyId: sectionId,\r\n ev: selectedYear\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyPlanSelectById(id, szakosztalyId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviById',\r\n params: {\r\n id: id,\r\n szakosztalyId: szakosztalyId,\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyCompetitionPlan(cplan) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviMentes',\r\n data: cplan\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function updateTagdijfizetesek(tabla, sorszamadassal) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UpdateTagdijfizetesek',\r\n data: {tabla: tabla, sorszamadassal: sorszamadassal}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function checkPaymentsSave(tabla) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkBefizetesMentes',\r\n data: {tabla: tabla}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function updateOktatasiDijfizetesek(tabla, sorszamadassal) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UpdateOktatasiDijfizetesek',\r\n data: {tabla: tabla, sorszamadassal: sorszamadassal}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyCompetitionPlanAcceptByLeader(id, idSzakosztaly, tipus) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviJovahagyas',\r\n params: {\r\n idVt: id,\r\n idSzakosztaly: idSzakosztaly,\r\n tipus: tipus\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitiveMonthlyPlanItems(coachId, sectionId, date, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviTetelekLista',\r\n params: {\r\n edzoId: coachId,\r\n szakosztalyId: sectionId,\r\n datum: date,\r\n tipus: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getResultsReports(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokLista',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getResultsReportsAthlete(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokListaAthlete',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePaint(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePaint',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyPaint(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyPaint',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPaint(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaint',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteResultsReport(resultReportID, csapatEredmeny) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyEredmenyTorlese',\r\n params: {\r\n 'Id': resultReportID,\r\n 'csapatEredmeny': csapatEredmeny\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionIndividualOrTeam(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyEgyeniVagyCsapat',\r\n params: {\r\n szakosztalyId: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFeeDatas(sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijak',\r\n params: {sectionId: sectionId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFeeDatas(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijak/Save',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function meteOutFee(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijKiszabas',\r\n data: formData,\r\n timeout: 1800000\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForMeteOut(fromDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijUjSportolok',\r\n params: {\r\n 'naptol': fromDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function closeYear(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Evzaras',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLastClosedYear() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUtolsoEvzaras'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesBySection(queryDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalySportolokSzama',\r\n params: {\r\n 'datum': queryDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnPaidFees() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSzakosztalyEdzoHatralekosai'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnPaidFeesTrainer() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getEdzoTagdijHatralekosai'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMessages(subjectId, pageNumber, itemsPerPage) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeGetMessages',\r\n params: {\r\n subjectId: subjectId,\r\n pageNumber: pageNumber,\r\n itemsPerPage: itemsPerPage\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSentMessages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getFelhasznaloElkuldottUzenetei'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetMessageGroups(pageNumber, itemsPerPage, onlyUnread) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeGetMessageGroups',\r\n params: {\r\n pageNumber: pageNumber,\r\n itemsPerPage: itemsPerPage,\r\n onlyUnread: onlyUnread\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sendMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetKuldes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeSendMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeSendMessage',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeSendNewMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeSendNewMessageDesktop',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getNamesByIds(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimzettLista',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthletes() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloSportoloiSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthleteAttendance(sportoloId, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HianyzasIgazolasa',\r\n params: {\r\n sportoloId: sportoloId,\r\n date: date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthleteAttendanceList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HianyzasokSzulo'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejSelectById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportSelect(szakosztalyId, korosztalyId, edzoId, ev, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejSelect',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'ev': ev,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainerEmailContact(edzo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloElerhetosegeiSelect',\r\n params: {userId: edzo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersDataByIdSelect(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejTagokAdataiById',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachAthletesByAgeGroupForAnnualSeasonPlan(edzoId, szakosztalyId, korcsoportId, versenyeztetesiTervFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoSportoloiKorcsoportSelect',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'versenyeztetesiTervFejId': versenyeztetesiTervFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanDeleteMembers(versenyeztetesiTervFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokTorles',\r\n params: {\r\n 'fejId': versenyeztetesiTervFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanMembers(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokAdataiMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanHead(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokMultjaSelectById',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastDelete(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokMultTorles',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastRefresh(id, szakosztalyId, korcsoportId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokMultLekeres',\r\n params: {\r\n 'fejId': id,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanMembersPast(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokMultjaMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportBestResultsList(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervErdemenyekSelect',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanBestResults(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervKiemelkedoEredmenyekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportBestResultsSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KiemelkEredmSelect',\r\n params: {\r\n 'versFejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function dailyEducationalFeesPerCoach(edzoId, datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktDijBefizetesekEdzonkent',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function dailySportServiceFeesPerCoach(edzoId, datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiSportSzolgDijBefizetesekEdzonkent',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportObjectivesSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCelkituzesek',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanCapitalObjectives(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCelkituzesekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFileAnnualSeasonPlan(file, host) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCsatoltFileTorles',\r\n params: {\r\n 'file': file,\r\n 'host': host\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSeasonPlanListByTrainer(edzoId, vtId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorabbiEvesVersenyeztetesiTervei',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'vtId': vtId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanCompetitionPlansAndObjectivesSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekSelect',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanCompetitionPlansAndObjectives(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAnnualSeasonPlanCompetitionPlansAndObjectives(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekTorles',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAnnualSeasonPlanCompetitionPlansAndObjective(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersenyTervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanList(ev) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervListSelect',\r\n params: {\r\n 'ev': ev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasponPlanTableListSelect(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatSelect',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasponPlanTableListSelect2(edzo, korcsoport, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatSelect2',\r\n params: {\r\n 'edzo': edzo,\r\n 'korcsoport': korcsoport,\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanTable(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteTransferList(szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KimutatasAtigazolasLista',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmerokDatumaiDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmerokDatumaiDropDownList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportByTrainersReport(ev, honap, szakosztalyId, korosztalyId, korosztalyNev, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasEdzonkent',\r\n params: {\r\n 'ev': ev,\r\n honap: honap,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'korosztalyNev': korosztalyNev,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportBySectionsReport(ev, honap, szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasSzakosztalyonkent',\r\n params: {\r\n 'ev': ev,\r\n honap: honap,\r\n 'szakosztalyId': szakosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportBySportSchoolReport(ev, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasSportiskolankent',\r\n params: {\r\n ev: ev,\r\n honap: honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteWeeklyTrainingPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteMonthlyTrainingPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athleteDropDownListSelect(szakosztalyId, korosztalyId, sportolo1, sportolo2) {\r\n if (sportolo1 === undefined) {\r\n sportolo1 = 0;\r\n }\r\n if (sportolo2 === undefined) {\r\n sportolo2 = 0;\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloDropDownList',\r\n params: {\r\n 'szakosztaly': szakosztalyId,\r\n 'korcsoport': korosztalyId,\r\n 'sportoloId1': sportolo1,\r\n 'sportoloId2': sportolo2\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCharacterOfACompetitionList(csapat, szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokJellegeiList',\r\n params: {\r\n 'csapat': csapat,\r\n 'szakosztalyId': szakosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveResultReportAthletes(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloEredmenyJelentoMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportAthletesSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloEredmenyJelentoById',\r\n params: {\r\n 'eredmenyId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportAthletesOlderReports(szakosztalyId, korcsoportId, egyeni) {\r\n if (!szakosztalyId) {\r\n return;\r\n }\r\n if (!korcsoportId) {\r\n korcsoportId = -1;\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorabbiEredmenyJelentok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamDropDownListSelect(szakosztalyId, korosztalyId, csapat) {\r\n if (!csapat) {\r\n csapat = 0;\r\n }\r\n if (!korosztalyId) {\r\n korosztalyId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatDropDownList',\r\n params: {\r\n 'szakosztaly': szakosztalyId,\r\n 'korcsoport': korosztalyId,\r\n 'csapat': csapat\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingVisitReport(year, sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KSportoloEdzeslatogatas',\r\n params: {\r\n 'ev': year,\r\n 'sportoloId': sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamAthletesListSelect(csapatId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'csapatSportoloiLista',\r\n params: {\r\n 'csapatId': csapatId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCoachUsers(szakosztalyIdk) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloEdzok',\r\n params: {\r\n 'szakId': szakosztalyIdk\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEdzoKorcsoportjai(edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorcsoportjaiDropDownSelect',\r\n params: {\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AtjatszoSportoloLista(szakosztalyId, korcsoportId, edzoId, exceptTeam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AtjatszoSportoloLista',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId,\r\n 'exceptTeam': exceptTeam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeamResultAthleteData(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenySportoloAdatai',\r\n params: {\r\n 'sportoloId': sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EredmenyJelentoAtjatszoSportoloi(csapatId, userId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentoAtjatszoSportoloi',\r\n params: {\r\n 'csapatId': csapatId,\r\n 'userId': userId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveResultReportTeams(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenyJelentoMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportTeamSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenyJelentoById',\r\n params: {\r\n 'eredmenyId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveReEnteringAthletes(sportolo) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveReEnteringAthletes',\r\n data: sportolo\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function felmeroElemFejDropDownList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejDropDownList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function felmeroFejLista(szakosztalyId, korosztalyId, edzoId, felmeroId, sportoloid, datefrom, dateto) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroFejLista',\r\n params: {\r\n 'section': szakosztalyId,\r\n 'ageGroup': korosztalyId,\r\n 'coach': edzoId,\r\n 'test': felmeroId,\r\n 'sportoloid': sportoloid,\r\n 'datefrom': datefrom,\r\n 'dateto': dateto\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionHasSectionLeaderRight(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportSzakosztalyVezetoe',\r\n params: {\r\n 'felhCsopId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionHasCoachRight(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportEdzoje',\r\n params: {\r\n 'felhCsopId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldWeeklyPlanByUserId(idEdzo, id) {\r\n if (id == undefined) {\r\n id = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getOldWeeklyPlanByUserId',\r\n params: {\r\n 'IdEdzo': idEdzo,\r\n 'Id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldMonthlyPlanByUserId(idEdzo, id) {\r\n if (id == undefined) {\r\n id = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getOldMonthlyPlanByUserId',\r\n params: {\r\n 'IdEdzo': idEdzo,\r\n 'Id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyTrainingPlanSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getHaviEdzestervById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyTrainingPlan(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function Cimjegyzek(usersof) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Cimjegyzek',\r\n params: {\r\n 'usersof': usersof\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CimjegyzekMobil() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimjegyzekMobil'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserIdsOfGroup(usersof, ids) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUserIdsOfGroup',\r\n data: {\r\n 'usersof': usersof,\r\n 'ids': ids\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetHealth(id, dateFrom, dateTo) {\r\n if (dateFrom === null || dateFrom === '' || dateFrom === undefined) {\r\n dateFrom = '1900-01-01';\r\n }\r\n if (dateTo === null || dateTo === '' || dateTo === undefined) {\r\n dateTo = '1900-01-01';\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetHealth',\r\n params: {\r\n 'athleteId': id,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveHealthData(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveHealthData',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteHealthMainType(datas) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteHealthTypes',\r\n params: {\r\n 'mainTypeId': datas.mainTypeId,\r\n 'subTypeId': null\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteHealthSubType(datas) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteHealthTypes',\r\n params: {\r\n 'mainTypeId': null,\r\n 'subTypeId': datas.subTypeId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SimilarAthleteExist(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SimilarAthleteExist',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthMainTypeManager(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthTypeManager',\r\n data: {\r\n 'foTipusId': datas.Id,\r\n 'foTipus': datas.Nev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthSubTypeManager(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthTypeManager',\r\n data: {\r\n 'foTipusId': datas.FotipusId,\r\n 'alTipusId': datas.Id,\r\n 'alTipus': datas.AltipusNev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyHealthData(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyHealthData',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function healthMainTypesList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthMainTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function healthSubTypesList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthSubTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceActualDaySelect(szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeresAktualisNap',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ExpiringDocuments() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ExpiringDocuments'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteExercise(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteExercise',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTravelList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate, showOrder, busOwner) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTravelList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'onlyStartDate': onlyStartDate,\r\n 'showOrder': showOrder,\r\n 'busOwner': busOwner\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, showWeeks, helyszin) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTrainingList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'showWeeks': showWeeks,\r\n 'helyszin': helyszin\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltsegtervOsszesitoKimutatas(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltsegtervOsszesitoKimutatas',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'onlyStartDate': onlyStartDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetInventoryByType(eszkTipusId, szabad, aktiv, osszes) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozNyilvantartas',\r\n params: {\r\n 'eszkTipusId': eszkTipusId,\r\n 'szabad': szabad,\r\n 'aktiv': aktiv,\r\n 'all': osszes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetInventoryByPerson(user, athlete, sectionsId, ageGropu) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozNyilvantartasSzemely',\r\n params: {\r\n 'felhasznalo': user,\r\n 'sportolo': athlete,\r\n 'szakosztalyId': sectionsId,\r\n 'korosztalyId': ageGropu\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingPracticeAutoComplete() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TrainingPracticeAutoComplete',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExercise(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetExercise',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExerciseList(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetExerciseList',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExercises(sectionId, ageGroupId, coachId, bodyPart, exercisesType, nature, outfit, difficulty, necessaryArea, video, pattern, designer, time, nyilvanos) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getExercises',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'korosztalyId': ageGroupId,\r\n 'edzoId': coachId,\r\n 'testresz': bodyPart,\r\n 'tipus': exercisesType,\r\n 'jellege': nature,\r\n 'felszereles': outfit,\r\n 'nehezseg': difficulty,\r\n 'szuksegesTerulet': necessaryArea,\r\n 'video': video,\r\n 'mintaKep': pattern,\r\n 'kifesto': designer,\r\n 'time': time,\r\n 'nyilvanos': nyilvanos\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTrainingPlan(obj) {\r\n //CoachId, TrainingName, SectionId, AgeGroupId, Location, Public, Data\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'saveTrainingPlan',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingPlanList(sectionId, ageGroupId, coachId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getTrainingPlanList',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'korosztalyId': ageGroupId,\r\n 'edzoId': coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetTrainingPlanById(Id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetTrainingPlanById',\r\n params: {\r\n 'Id': Id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteTrainingPlan(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteTrainingPlan',\r\n params: {\r\n 'EdzesFejId': EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sendLocalException(error) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'LogClientSideException',\r\n data: {\r\n error: error\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceAutoSave() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'MonthlyAttendanceAutoSave'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function setMonthlyAttendanceAutoSave(autoSave) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'MonthlyAttendanceAutoSave',\r\n data: autoSave\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitionPlaces() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetCompetitionPlaces'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeDeleteMessages(targyId) {\r\n console.log('targyId', targyId);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeDeleteMessages',\r\n params: {\r\n 'targyId': targyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AthletesDataMobileList(szakosztaly, korcsoport) {\r\n console.log('AthletesDataMobileList');\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AthletesDataMobileList',\r\n params: {\r\n 'szakosztaly': szakosztaly,\r\n 'korcsoport': korcsoport,\r\n 'inactive': false\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n }\r\n})();\r\n\n/* global XRegExp */\r\n(function () {\r\n 'use strict';\r\n\n ctsDropdownList.$inject = [\"gettextCatalog\"];\n ctsAutoComplete.$inject = [\"$timeout\"];\n report.$inject = [\"localStorageService\", \"DOMAIN\"];\n fileDropzone.$inject = [\"fileReader\", \"log\", \"gettextCatalog\"];\n ngFileSelect.$inject = [\"fileReader\"];\n htWidgetHeader.$inject = [\"log\", \"gettextCatalog\"];\r\n angular\r\n .module('app.core')\r\n .directive('ctsDropdownList', ctsDropdownList)\r\n .directive('ctsAutoComplete', ctsAutoComplete)\r\n .directive('ctsColorPicker', ctsColorPicker)\r\n .directive('ctsDatePicker', ctsDatePicker)\r\n .directive('ctsDateTimePicker', ctsDateTimePicker)\r\n .directive('ctsMaskBox', ctsMaskBox)\r\n .directive('ctsCheckBox', ctsCheckBox)\r\n .directive('ctsHorizontalCheckBox', ctsHorizontalCheckBox)\r\n .directive('ctsTextBox', ctsTextBox)\r\n .directive('ctsTextBoxTajSzam', ctsTextBoxTajSzam)\r\n .directive('ctsTextArea', ctsTextArea)\r\n .directive('ctsTextBoxPhoneNumber', ctsTextBoxPhoneNumber)\r\n .directive('ctsTextBoxEmail', ctsTextBoxEmail)\r\n .directive('ctsTextBoxTaxId', ctsTextBoxTaxId)\r\n .directive('ctsTextBoxPassportNumber', ctsTextBoxPassportNumber)\r\n .directive('ctsListBox', ctsListBox)\r\n .directive('ctsNumericTextBox', ctsNumericTextBox)\r\n .directive('ctsRating', ctsRating)\r\n .directive('report', report)\r\n .directive('preventEnterSubmit', preventEnterSubmit)\r\n .directive('fileDropzone', fileDropzone)\r\n .directive('ngFileSelect', ngFileSelect)\r\n .directive('htWidgetHeader', htWidgetHeader);\r\n\r\n function htWidgetHeader(log, gettextCatalog) {\r\n //Usage:\r\n //<div ht-widget-header title=\"vm.map.title\"></div>\r\n // Creates:\r\n // <div ht-widget-header=\"\"\r\n // title=\"Movie\"\r\n // allow-collapse=\"true\" </div>\r\n function link($scope) {\r\n $scope.helpText = gettextCatalog.getString('Help');\r\n $scope.openHelp = function () {\r\n log.helpMsgSmall($scope.textId);\r\n };\r\n }\r\n\r\n return {\r\n link: link,\r\n scope: {\r\n 'title': '@',\r\n 'textId': '@'\r\n },\r\n template: '<div class=\"widget-head\">' +\r\n '<h2 class=\"page-title\">{{title|translate}}' +\r\n '<a class=\"pull-right helpText\" ng-click=\"openHelp()\"> <span class=\"glyphicon glyphicon-info-sign\"></span> </a>' +\r\n '</h2></div>',\r\n restrict: 'EA'\r\n };\r\n }\r\n\r\n function ctsDropdownList(gettextCatalog) {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.create() !== undefined) {\r\n $scope.create2 = function (data) {\r\n $scope.create()({value: data.value});\r\n };\r\n }\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n } else if ($scope.open() !== undefined) {\r\n $scope.open2 = function () {\r\n $scope.open()();\r\n };\r\n }\r\n if ($scope.databound() !== undefined) {\r\n $scope.databound2 = function (data) {\r\n $scope.databound()(data);\r\n };\r\n }\r\n if ($scope.select() !== undefined) {\r\n $scope.select2 = function (data) {\r\n $scope.select()(data);\r\n };\r\n }\r\n //if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = 'PleaseChoose';\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDropDownList({\r\n enabled: newValue,\r\n locale: $scope.locale,\r\n fields: {\r\n text: $scope.fieldText,\r\n value: $scope.fieldValue\r\n },\r\n value: $scope.value,\r\n dataSource: $scope.datasource,\r\n width: '100%',\r\n watermarkText: gettextCatalog.getString($scope.ctsPlaceholder),\r\n create: $scope.create2,\r\n change: $scope.change2,\r\n dataBound: $scope.databound2,\r\n select: $scope.select2,\r\n selectedIndex: $scope.selectedindex\r\n });\r\n });\r\n }\r\n if (!$scope.fieldValue) {\r\n $scope.fieldValue = 'value';\r\n }\r\n if (!$scope.fieldText) {\r\n $scope.fieldText = 'text';\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n create: '&',\r\n clear: '&',\r\n open: '&',\r\n databound: '&',\r\n datasource: '=',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n postfix: '@',\r\n select: '&',\r\n validationRules: '=?',\r\n value: '=?',\r\n selectedindex: '=?',\r\n fieldValue: '@?',\r\n fieldText: '@?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-dropdownlist e-locale=\"locale\" e-fields-value=\"fieldValue\" e-fields-text=\"fieldText\" e-value=\"value\" e-datasource=\"datasource\" e-width=\"100%\" e-watermarktext=\"{{ctsPlaceholder|translate}}\" e-create=\"create2\" e-change=\"change2\" e-enabled=\"enabled\" e-dataBound=\"databound2\" e-select=\"select2\" e-selectedIndex=\"selectedindex\">' +\r\n '<span data-ng-if=\"clear2 !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear2()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"open2 !== undefined\" class=\"input-group-addon\" data-ng-click=\"open2()\"><i' +\r\n ' class=\"glyphicon glyphicon-eye-open\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function autocompleteWatch($timeout, newValue, oldValue, required, maxlength, $scope) {\r\n if (angular.isDefined(newValue)) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (required) {\r\n if (newValue === '') {\r\n $timeout(function () {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n $scope.$apply();\r\n }, 100);\r\n } else {\r\n $timeout(function () {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n if (maxlength && newValue) {\r\n if (newValue.length < maxlength) {\r\n $scope.form[$scope.name].$setValidity('maxlength', true);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('maxlength', false);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n function ctsAutoComplete($timeout) {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if (!$scope.showPopupButton) {\r\n $scope.showPopupButton = false;\r\n }\r\n if (!$scope.delaySuggestionTimeout) {\r\n $scope.delaySuggestionTimeout = '0';\r\n }\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.multiSelect === 'true') {\r\n $scope.multiSelectMode = ej.MultiSelectMode.VisualMode;\r\n } else {\r\n $scope.multiSelect = false;\r\n $scope.multiSelectMode = ej.MultiSelectMode.None;\r\n }\r\n if (!$scope.allowAddNew) {\r\n $scope.allowAddNew = false;\r\n } else {\r\n $scope.allowAddNew = true;\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejAutocomplete({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n autocompleteWatch($timeout, newValue, oldValue, $scope.validationRules.required, $scope.validationRules.maxlength, $scope);\r\n });\r\n $scope.$on('submitted', function () {\r\n $scope.value = angular.element('#' + $scope.name).ejAutocomplete('getValue');\r\n autocompleteWatch($scope.value, undefined, $scope.validationRules.required, $scope.validationRules.maxlength, $scope);\r\n // $scope.$apply();\r\n });\r\n\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n clear: '&',\r\n datasource: '=',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n emptyResultText: '@?',\r\n postfix: '@',\r\n select: '&',\r\n validationRules: '=?',\r\n value: '=?',\r\n addnewtext: '=?',\r\n showPopupButton: '=?',\r\n delaySuggestionTimeout: '@',\r\n multiSelect: '@?',\r\n allowAddNew: '=?',\r\n owndisabled: '=?',\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" type=\"text\" name=\"{{name}}\" ej-autocomplete e-delaySuggestionTimeout=\"delaySuggestionTimeout\" e-emptyResultText=\"{{\\'emptyResultText\\'|translate}}\" e-change=\"change2\" e-locale=\"locale\" e-showPopupButton=\"showPopupButton\" e-addnewtext=\"addnewtext\" e-value=\"value\" e-datasource=\"datasource\" e-width=\"100%\" e-watermarktext=\"{{ctsPlaceholder|translate}}\" e-enabled=\"enabled\" data-ng-disabled=\"owndisabled\" e-multiSelectMode=\"multiSelectMode\" e-allowAddNew=\"true\" e-enableDistinct=\"true\" data-ng-required=\"required\"' +\r\n ' e-autoFocus=\"true\" >' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsColorPicker() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.select() !== undefined) {\r\n $scope.select2 = function (data) {\r\n $scope.select()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDropDownList({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n select: '&',\r\n label: '@',\r\n enabled: '=?',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid, }\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-ColorPicker e-locale=\"locale\" e-value=\"value\" e-width=\"100%\" placeholder=\"{{ctsPlaceholder|translate}}\" e-select=\"select2\" e-change=\"change2\" e-enabled=\"enabled\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsDatePicker() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n }\r\n $scope.refresh = function(data) {\r\n $scope.value = data.value;\r\n };\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDatePicker({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue && newValue != '') {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n // $scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n };\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n clear: '&',\r\n label: '@',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?',\r\n locale: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-DatePicker e-enableStrictMode=\"true\" e-startDay=\"1\" e-value=\"value\" e-locale=\"locale\" e-width=\"100%\" e-showtooltip=\"true\" e-change=\"change2\" e-focusOut=\"refresh\" e-enabled=\"enabled\">' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsDateTimePicker() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n }\r\n $scope.refresh = function(data) {\r\n $scope.value = data.value;\r\n };\r\n }\r\n\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDateTimePicker({enabled: newValue});\r\n });\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue && newValue != '') {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n $scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n clear: '&',\r\n label: '@',\r\n name: '@',\r\n interval: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-DateTimePicker e-value=\"value\" e-locale=\"locale\" e-width=\"100%\" e-datetimeformat=\"yyyy-MM-dd HH:mm\" e-watermarktext=\"éééé-hh-nn hh:mm\" e-change=\"change2\" e-focusOut=\"refresh\" e-enabled=\"enabled\" e-interval=\"interval\">' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsMaskBox() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n label: '@',\r\n name: '@',\r\n maskFormat: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-MaskEdit e-value=\"value\" e-locale=\"locale\" e-maskFormat=\"maskFormat\" e-width=\"100%\" placeholder=\"{{ctsPlaceholder|translate}}\" e-change=\"change2\" e-enabled=\"enabled\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBox() {\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n $scope.classes = '';\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n if ($scope.type === undefined) {\r\n $scope.type = 'text';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n },\r\n post: function ($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.$watch(function () {\r\n return $scope.ngModel;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.change()();\r\n }\r\n });\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n change: '&', //\r\n //clear: '&', //\r\n //enabled: '=?', //\r\n owndisabled: '=?',\r\n inputonly: '=?',\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n type: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n //'<input class=\"form-control addId\" name=\"{{name}}\" type=\"{{type}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"disabled\">' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"{{type}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"owndisabled\" autocomplete=\"new-password\">' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxTajSzam() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n\r\n if ($scope.validationRules.required === true) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n $scope.$watch(function () {\r\n return $scope.ngModel;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (XRegExp('([0-9]{3}-?){3}').test($scope.ngModel) === true) {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.ngModel || XRegExp('([0-9]{3}-?){3}').test($scope.ngModel) === false) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if (angular.isUndefined($scope.ctsPlaceholder)) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" e-value=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-maskFormat=\"999-999-999\" e-width=\"100%\" e-locale=\"locale\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextArea() {\r\n function link($scope) {\r\n $scope.form = $scope.$parent.form;\r\n $scope.classes = '';\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if (angular.isDefined($scope.validationRules)) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if (angular.isDefined($scope.validationRules.minlength)) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if (angular.isDefined($scope.validationRules.maxlength)) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if (angular.isUndefined($scope.type)) {\r\n $scope.type = 'text';\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.css === undefined) {\r\n $scope.css = '';\r\n }\r\n if ($scope.rows === undefined) {\r\n $scope.rows = 5;\r\n }\r\n\r\n angular.element('.test').attr('id', $scope.name);\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n css: '@',\r\n owndisabled: '=?',\r\n inputonly: '=?',\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n rows: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\" style=\"{{css}}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<textarea rows=\"{{rows}}\" style=\"resize:none\" class=\"form-control addId textarea\" name=\"{{name}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"owndisabled\"> </textarea>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsHorizontalCheckBox() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.isChecked});\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n checked: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group chkbox\">' +\r\n '<form action=\"\">' +\r\n '<input class=\"addId\" ej-checkBox e-locale=\"locale\" e-checked=\"checked\" e-enabled=\"enabled\" e-change=\"change2\">  {{label|translate}}<br></form>' +\r\n '</div>',\r\n\r\n link: link\r\n };\r\n }\r\n\r\n function ctsCheckBox() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.isChecked});\r\n };\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n if (newValue) {\r\n angular.element('#' + $scope.name).ejCheckBox('enable');\r\n } else {\r\n angular.element('#' + $scope.name).ejCheckBox('disable');\r\n }\r\n });\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n checked: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group chkbox\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" ej-checkBox e-locale=\"locale\" e-checked=\"checked\" e-enabled=\"enabled\" e-change=\"change2\">' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxPhoneNumber() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-locale=\"locale\" e-maskFormat=\"99-999-9999\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxEmail() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n if ($scope.type === undefined) {\r\n $scope.type = 'text';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n type: '@',\r\n enabled: '=?',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" data-ng-disabled=\"!enabled\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxTaxId() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxPassportNumber() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-locale=\"locale\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsListBox() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.checkChange() !== undefined) {\r\n $scope.checkChange2 = function (data) {\r\n $scope.checkChange()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.cssClass === undefined) {\r\n $scope.cssClass = '';\r\n }\r\n $scope.showCheckbox = $scope.showCheckbox === 'true' || $scope.showCheckbox === true;\r\n if ($scope.height === undefined) {\r\n $scope.height = 300;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n checkChange: '&',\r\n cssClass: '@',\r\n datasource: '=',\r\n enabled: '=?',\r\n height: '@',\r\n label: '@',\r\n name: '@',\r\n checkedIndices: '=',\r\n ctsPlaceholder: '@',\r\n showCheckbox: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<ul class=\"addId\" name=\"{{name}}\" ej-listbox e-locale=\"locale\" e-cssClass=\"cssClass\" e-checkedIndices=\"checkedIndices\" e-datasource=\"datasource\" e-showCheckbox=\"showCheckbox\" e-width=\"100%\" e-height=\"height\" placeholder=\"{{ctsPlaceholder|translate}}\" e-enabled=\"enabled\" e-checkChange=\"checkChange2\" e-enableIncrementalSearch=\"true\"></ul>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsNumericTextBox() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()(data);\r\n };\r\n }\r\n if ($scope.focusout() !== undefined) {\r\n $scope.focusout2 = function (data) {\r\n $scope.focusout()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n $scope.classes = '';\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if (!$scope.decimalplaces) {\r\n $scope.decimalplaces = 0;\r\n } else {\r\n $scope.decimalplaces = parseInt($scope.decimalplaces);\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (oldValue !== undefined && newValue !== oldValue) {\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value && $scope.value !== 0) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 1000000;\r\n }\r\n } else {\r\n $scope.required = false;\r\n $scope.minlength = 0;\r\n $scope.maxlength = Number.MAX_VALUE;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n focusout: '&',\r\n decimalplaces: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n inputonly: '=?',\r\n name: '@',\r\n value: '=?',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n tabIndex: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" ej-numerictextbox e-locale=\"locale\" e-enableStrictMode=\"true\" e-watermarkText=\"{{ctsPlaceholder|translate}}\" min=\"{{minlength}}\" max=\"{{maxlength}}\" e-value=\"value\" e-minValue=\"minlength\" e-maxValue=\"maxlength\" e-enabled=\"enabled\" e-width=\"100%\" e-decimalPlaces=\"decimalplaces\" placeholder=\"{{ctsPlaceholder|translate}}\" e-change=\"change2\" e-focusout=\"focusout2\" tabIndex=\"{{tabIndex}}\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsRating() {\n controller.$inject = [\"$scope\"];\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (oldValue !== undefined && newValue !== oldValue) {\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 1000000;\r\n }\r\n } else {\r\n $scope.required = false;\r\n $scope.minlength = 0;\r\n $scope.maxlength = Number.MAX_VALUE;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n value: '=?',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<div class=\"form-control addId\" name=\"{{name}}\" ej-rating e-locale=\"locale\" e-value=\"value\" e-minValue=\"0\" e-maxValue=\"5\" e-enabled=\"enabled\" e-change=\"change2\"></div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function report(localStorageService, DOMAIN) {\r\n function Link(scope, element) {\r\n var report = null;\r\n\r\n function createReportOptions() {\r\n var authData = localStorageService.get('_authData');\r\n var authToken = '';\r\n if (authData) {\r\n authToken = authData.access_token;\r\n }\r\n return {\r\n reportSource: {\r\n report: 'Siker2MVC.' + scope.reportName + ', Siker2MVC',\r\n parameters: scope.reportParameters\r\n },\r\n serviceUrl: DOMAIN.baseURL + 'api/reports/',\r\n persistSession: true,\r\n authenticationToken: authToken,\r\n ready: function () {\r\n this.refreshReport();\r\n }\r\n };\r\n }\r\n\r\n function createReport() {\r\n report = element.telerik_ReportViewer(createReportOptions()).data('telerik_ReportViewer');\r\n }\r\n\r\n //createReport();\r\n\r\n //var reportNameWatcher = scope.$watch(\"reportName\", updateReport);\r\n var reportParametersWatcher = scope.$watch('reportParameters', updateReport);\r\n\r\n function updateReport(newVal, oldVal) {\r\n if (newVal !== oldVal) {\r\n createReport();\r\n report.reportSource({\r\n report: 'Siker2MVC.' + scope.reportName + ', Siker2MVC',\r\n parameters: scope.reportParameters\r\n });\r\n report.refreshReport();\r\n }\r\n }\r\n\r\n element.on('$destroy', function () {\r\n reportParametersWatcher();\r\n });\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n scope: {\r\n reportName: '@',\r\n reportParameters: '='\r\n },\r\n link: Link\r\n };\r\n }\r\n\r\n function preventEnterSubmit() {\r\n return function (scope, el) {\r\n el.bind('keydown', function (event) {\r\n if (13 == event.which) {\r\n event.preventDefault(); // Doesn't work at all\r\n window.stop(); // Works in all browsers but IE...\r\n document.execCommand('Stop'); // Works in IE\r\n return false; // Don't even know why it's here. Does nothing.\r\n }\r\n });\r\n };\r\n }\r\n\r\n function ngFileSelect(fileReader) {\r\n return {\r\n link: function ($scope, el) {\r\n $scope.getFile = function (file) {\r\n $scope.progress = 0;\r\n fileReader.readAsDataURL(file, $scope).then(function (result) {\r\n if ($scope.$parent.$$childHead.imageDatas !== undefined) {\r\n $scope.$parent.$$childHead.imageDatas.push(result);\r\n } else {\r\n $scope.imageDatas.push(result);\r\n }\r\n });\r\n };\r\n\r\n el.bind('change', function (e) {\r\n var items = (e.srcElement || e.target).files;\r\n angular.forEach(items, function (file) {\r\n if ($scope.$parent.$$childHead.files !== undefined) {\r\n $scope.$parent.$$childHead.files.push(file);\r\n } else {\r\n $scope.files.push(file);\r\n }\r\n $scope.getFile(file);\r\n });\r\n });\r\n }\r\n\r\n };\r\n }\r\n\r\n function fileDropzone(fileReader, log, gettextCatalog) {\r\n return {\r\n restrict: 'A',\r\n link: function (scope, element) {\r\n function processDragOverOrEnter(event) {\r\n if (event != null) {\r\n event.preventDefault();\r\n }\r\n if (event.originalEvent.dataTransfer) {\r\n event.originalEvent.dataTransfer.effectAllowed = 'all';\r\n }\r\n return false;\r\n }\r\n element.bind('dragover', processDragOverOrEnter);\r\n element.bind('dragenter', processDragOverOrEnter);\r\n\r\n scope.getFile = function (file) {\r\n $scope.progress = 0;\r\n fileReader.readAsDataURL(file, $scope).then(function (result) {\r\n $scope.$parent.$$childHead.imageDatas.push(result);\r\n });\r\n };\r\n\r\n return element.bind('drop', function (event) {\r\n if (event) {\r\n event.preventDefault();\r\n }\r\n\r\n if (event.originalEvent.dataTransfer) {\r\n var items = event.originalEvent.dataTransfer.files;\r\n var largeError = '';\r\n var typeError = '';\r\n angular.forEach(items, function (file) {\r\n if (file.size <= 4194304) {\r\n if (file.type === 'image/png' || file.type === 'image/jpeg' || file.type === 'image/bmp' || file.type === 'image/gif') {\r\n scope.$parent.$$childHead.files.push(file);\r\n scope.getFile(file);\r\n } else {\r\n typeError += file.name + '<br>';\r\n }\r\n } else {\r\n largeError += file.name + '<br>';\r\n }\r\n });\r\n if (largeError) {\r\n log.errorMsg(gettextCatalog.getString('FileTooLarge') + '<br><br>' + largeError);\r\n }\r\n if (typeError) {\r\n log.errorMsg(gettextCatalog.getString('FileTypeError') + '<br><br>' + typeError);\r\n }\r\n }\r\n return false;\r\n });\r\n }\r\n };\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n fileReader.$inject = [\"$q\"];\r\n angular\r\n .module('app.core')\r\n .factory('fileReader', fileReader);\r\n\r\n function fileReader($q) {\r\n return {\r\n onLoad: onLoad,\r\n onError: onError,\r\n onProgress: onProgress,\r\n readAsDataURL: readAsDataURL,\r\n getReader: getReader\r\n };\r\n\r\n function onLoad(reader, deferred, scope) {\r\n return function () {\r\n scope.$apply(function () {\r\n deferred.resolve(reader.result);\r\n });\r\n };\r\n }\r\n\r\n function onError(reader, deferred, scope) {\r\n return function () {\r\n scope.$apply(function () {\r\n deferred.reject(reader.result);\r\n });\r\n };\r\n }\r\n\r\n function onProgress(reader, scope) {\r\n return function (event) {\r\n scope.$broadcast('fileProgress',\r\n {\r\n total: event.total,\r\n loaded: event.loaded\r\n });\r\n };\r\n }\r\n\r\n function getReader(deferred, scope) {\r\n var reader = new FileReader();\r\n reader.onload = onLoad(reader, deferred, scope);\r\n reader.onerror = onError(reader, deferred, scope);\r\n reader.onprogress = onProgress(reader, scope);\r\n return reader;\r\n }\r\n\r\n function readAsDataURL(file, scope) {\r\n var deferred = $q.defer();\r\n\r\n var reader = getReader(deferred, scope);\r\n reader.readAsDataURL(file);\r\n\r\n return deferred.promise;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n startOfWeek.$inject = [\"authenticationService\"];\n endOfWeek.$inject = [\"authenticationService\"];\n addDays.$inject = [\"authenticationService\"];\n stringToMoment.$inject = [\"authenticationService\"];\n dateStringFilter.$inject = [\"authenticationService\"];\n dateStringFilterPromise.$inject = [\"authenticationService\", \"$q\"];\n dateYearMonthStringFilter.$inject = [\"authenticationService\"];\n dateTimeStringFilter.$inject = [\"authenticationService\"];\n datetimeFilter.$inject = [\"authenticationService\"];\n dateYearMonthLongStrFilter.$inject = [\"gettextCatalog\"];\r\n angular\r\n .module('app.core')\r\n .filter('getIndex', getIndex)\r\n .filter('startOfWeek', startOfWeek)\r\n .filter('endOfWeek', endOfWeek)\r\n .filter('addDays', addDays)\r\n .filter('stringToMoment', stringToMoment)\r\n .filter('momentToString', momentToString)\r\n .filter('dateStringFilter', dateStringFilter)\r\n .filter('dateStringFilterPromise', dateStringFilterPromise)\r\n .filter('dateStringFilter2', dateStringFilter2)\r\n .filter('dateYearMonthStringFilter', dateYearMonthStringFilter)\r\n .filter('dateTimeStringFilter', dateTimeStringFilter)\r\n .filter('dateEventFilter', dateEventFilter)\r\n .filter('datetimeFilter', datetimeFilter)\r\n .filter('textByValueFromObjFilter', textByValueFromObjFilter)\r\n .filter('valueChangeFromObject', valueChangeFromObject)\r\n .filter('dateYearMonthFilter', dateYearMonthFilter)\r\n .filter('dateYearFilter', dateYearFilter)\r\n .filter('dateMonthFilter', dateMonthFilter)\r\n .filter('dateYearMonthLongStrFilter', dateYearMonthLongStrFilter)\r\n .filter('dateToISOFilter', dateToISOFilter)\r\n .filter('addImagePathToObject', addImagePathToObject);\r\n\r\n function addDays(authenticationService) {\r\n return function (sDate, addDays) {\r\n var lang = authenticationService.getAuthData().language;\r\n var mDate = null;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mOffset = mDate.add(addDays, 'days');\r\n return mOffset.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function startOfWeek(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mMonday = moment(mDate.startOf('isoweek'));\r\n return mMonday.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function endOfWeek(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mMonday = moment(mDate.endOf('isoweek'));\r\n return mMonday.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function stringToMoment(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n return mDate;\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function momentToString() {\r\n return function (mDate) {\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n return mDate.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function getIndex() {\r\n return function (list, property, findThis) {\r\n for (var i = 0; i < list.length; i++) {\r\n if (list[i][property] == findThis) {\r\n return i;\r\n }\r\n }\r\n return false;\r\n };\r\n }\r\n\r\n function dateStringFilterPromise(authenticationService, $q) {\r\n return function (input, propertyTime) {\r\n return $q(function (resolve) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n resolve('');\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('L');\r\n }\r\n });\r\n resolve(input);\r\n }\r\n });\r\n };\r\n }\r\n\r\n function dateStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('L');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateYearMonthStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('YYYY. MMMM');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateTimeStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('LLL');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime]).format('LLL');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateStringFilter2() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n var temp = moment(input[key][propertyTime]);\r\n if (temp.isValid()) {\r\n input[key][propertyTime] = new Date(temp.format('YYYY'), temp.format('M') - 1, temp.format('D'), temp.format('h'), temp.format('m'), temp.format('s'));\r\n } else {\r\n input[key][propertyTime] = '';\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateEventFilter() {\r\n return function (input) {\r\n angular.forEach(input, function (value, key) {\r\n if (input[key]['Recurrence'] === 'False' || input[key]['Recurrence'] === 'false') {\r\n input[key]['Recurrence'] = false;\r\n } else if (input[key]['Recurrence'] === 'True' || input[key]['Recurrence'] === 'true') {\r\n input[key]['Recurrence'] = true;\r\n } else if (input[key]['Recurrence'] === '1') {\r\n input[key]['Recurrence'] = 1;\r\n }\r\n if (!input[key]['StartTime']) {\r\n input[key]['StartTime'] = '';\r\n } else {\r\n input[key]['StartTime'] = new Date(moment(input[key]['StartTimeString']).format('YYYY'), moment(input[key]['StartTimeString']).format('M') - 1, moment(input[key]['StartTimeString']).format('D'), moment(input[key]['StartTimeString']).format('H'), moment(input[key]['StartTimeString']).format('m'));\r\n }\r\n if (!input[key]['EndTime']) {\r\n input[key]['EndTime'] = '';\r\n } else {\r\n input[key]['EndTime'] = new Date(moment(input[key]['EndTimeString']).format('YYYY'), moment(input[key]['EndTimeString']).format('M') - 1, moment(input[key]['EndTimeString']).format('D'), moment(input[key]['EndTimeString']).format('H'), moment(input[key]['EndTimeString']).format('m'));\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function datetimeFilter(authenticationService) {\r\n return function (input) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (input) {\r\n input = moment(input.slice(0, -9)).format('L');\r\n }\r\n return input;\r\n };\r\n }\r\n\r\n /**\r\n * textByValueFromObjFilter()\r\n *\r\n * This function find first objet if object's value equal the input value\r\n * and return the object's text value\r\n */\r\n function textByValueFromObjFilter() {\r\n return function (input, input2) {\r\n var result = '';\r\n angular.forEach(input, function (value) {\r\n if (value.value === input2) {\r\n result = value.text;\r\n }\r\n });\r\n return result;\r\n };\r\n }\r\n\r\n /**\r\n * Sportolo result modify\r\n * Comment\r\n */\r\n function valueChangeFromObject() {\r\n return function (input, input2) {\r\n var output = [];\r\n angular.forEach(input, function (value, key) {\r\n input[key] [input2] = input[key] [input2] + 3;\r\n output.push(input[key]);\r\n });\r\n return output;\r\n };\r\n }\r\n\r\n function addImagePathToObject() {\r\n return function (input, input2, input3) {\r\n var output = [];\r\n angular.forEach(input, function (value, key) {\r\n if (input[key] [input2] != null) {\r\n input[key] [input2] = input3 + input[key] [input2];\r\n } else {\r\n input[key] [input2] = input3 + 'default.png';\r\n }\r\n output.push(input[key]);\r\n });\r\n return output;\r\n };\r\n }\r\n\r\n function dateYearMonthFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('YYYY-MM');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateYearFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('YYYY');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateMonthFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('MM');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateYearMonthLongStrFilter(gettextCatalog) {\r\n return function (input) {\r\n if (arguments.length == 1) { // TODO new Date v moment\r\n var d = moment(input);\r\n var year = d.format('YYYY');\r\n var month = d.format('M');\r\n var monthStr = '';\r\n switch (month) {\r\n case '1':\r\n monthStr = gettextCatalog.getString('January');\r\n break;\r\n case '2':\r\n monthStr = gettextCatalog.getString('February');\r\n break;\r\n case '3':\r\n monthStr = gettextCatalog.getString('March');\r\n break;\r\n case '4':\r\n monthStr = gettextCatalog.getString('April');\r\n break;\r\n case '5':\r\n monthStr = gettextCatalog.getString('May');\r\n break;\r\n case '6':\r\n monthStr = gettextCatalog.getString('June');\r\n break;\r\n case '7':\r\n monthStr = gettextCatalog.getString('July');\r\n break;\r\n case '8':\r\n monthStr = gettextCatalog.getString('August');\r\n break;\r\n case '9':\r\n monthStr = gettextCatalog.getString('September');\r\n break;\r\n case '10':\r\n monthStr = gettextCatalog.getString('October');\r\n break;\r\n case '11':\r\n monthStr = gettextCatalog.getString('November');\r\n break;\r\n case '12':\r\n monthStr = gettextCatalog.getString('December');\r\n break;\r\n default:\r\n monthStr = '';\r\n break;\r\n }\r\n input = year + ' ' + monthStr;\r\n return input;\r\n }\r\n return input;\r\n };\r\n }\r\n\r\n function dateToISOFilter() {\r\n return function (input) {\r\n return moment(input, ['YYYY.MM.DD.', 'MM/DD/YYYY']).format('YYYY-MM-DD');\r\n };\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n httpInterceptor.$inject = [\"logger\", \"$q\", \"$rootScope\", \"AUTH_EVENTS\", \"DOMAIN\", \"idleService\", \"loader\", \"localStorageService\", \"$injector\"];\r\n angular\r\n .module('app.core')\r\n .factory('httpInterceptor', httpInterceptor);\r\n\r\n function httpInterceptor(logger, $q, $rootScope, AUTH_EVENTS, DOMAIN, idleService, loader, localStorageService, $injector) {\r\n function Check(r, type) {\r\n // console.log('Check',r,type);\r\n switch (type){\r\n case 'request':\r\n if (r && r.url && r.url.indexOf('LogClientSideException') === -1) {\r\n return true;\r\n }\r\n break;\r\n case 'response':\r\n return true;\r\n break;\r\n case 'responseError':\r\n return true;\r\n break;\r\n }\r\n return false;\r\n }\r\n\r\n // Szerver oldali hibánál elküldi a kliens oldalon lévő adatokat is\r\n function LogServerSideException(ServerSideException, $injector) {\r\n if (!ServerSideException || ServerSideException == null || (ServerSideException && ServerSideException.toString().indexOf('LogClientSideException') !== -1)) {\r\n return;\r\n }\r\n var object = {\r\n ServerSideException: ServerSideException,\r\n vm: null,\r\n stateList: null,\r\n actualState: null,\r\n localStorage: null,\r\n title: null\r\n };\r\n var rootScope = $injector.get('$rootScope');\r\n var LS = $injector.get('localStorageService');\r\n var keys = LS.keys();\r\n var LSItems = [];\r\n keys.forEach(function (element) {\r\n LSItems.push(element + ': ' + LS.get(element));\r\n });\r\n object.localStorage = LSItems;\r\n object.actualState = rootScope.actualState;\r\n object.stateList = rootScope.stateList;\r\n object.title = rootScope.htmlTitle;\r\n object.ClientSideException = false;\r\n var cloneVM = $.extend(true, {}, rootScope.vm);\r\n var cloneVMkeys = Object.keys(cloneVM);\r\n cloneVMkeys.forEach(function (vmKey) {\r\n try {\r\n JSON.stringify(cloneVM[vmKey]);\r\n }\r\n catch (err) {\r\n cloneVM[vmKey] = null;\r\n }\r\n });\r\n object.vm = cloneVM;\r\n var jsonObject = JSON.stringify(object);\r\n var dataService = $injector.get('dataservice');\r\n if (rootScope.vm.hasOwnProperty('netError') && rootScope.vm.netError == true) {\r\n return;\r\n }\r\n dataService.sendLocalException(jsonObject).then(function () {});\r\n }\r\n\r\n function processRequest() {\r\n loader.delayedStart();\r\n }\r\n\r\n function processResponse() {\r\n loader.end();\r\n }\r\n\r\n return {\r\n request: function (config) {\r\n if (Check(config, 'request')) {\r\n processRequest();\r\n }\r\n if (config.type === 'apiGET') {\r\n config.method = 'GET';\r\n config.headers['Content-Type'] = 'application/json; charset-utf-8';\r\n var authData = localStorageService.get('_authData');\r\n if (authData) {\r\n config.headers.Authorization = 'Bearer ' + authData.access_token;\r\n }\r\n //config.timeout = 20000;\r\n } else if (config.type === 'apiPOST') {\r\n config.method = 'POST';\r\n config.headers['Content-Type'] = 'application/json; charset-utf-8';\r\n var authData = localStorageService.get('_authData');\r\n if (authData) {\r\n config.headers.Authorization = 'Bearer ' + authData.access_token;\r\n }\r\n //config.timeout = 20000;\r\n } else if (config.type === 'apiTOKEN') {\r\n config.method = 'POST';\r\n config.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n //config.timeout = 20000;\r\n }\r\n if (config.timeout === 'undefined') {\r\n config.timeout = 20000;\r\n }\r\n return config;\r\n },\r\n requestError: function () {\r\n processResponse();\r\n },\r\n response: function (response) {\r\n // console.log('=== response response ===',response);\r\n if (response.config.url.indexOf(DOMAIN.webService) >= 0) {\r\n idleService.resetTimer();\r\n }\r\n if (response.data && response.data.error !== undefined) {\r\n if (response.data.message) {\r\n logger.info(response.data.message);\r\n }\r\n if (response.data.validationErrors) {\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.reject(response);\r\n // return $q.resolve(response);\r\n }\r\n if (response.data.error !== '') {\r\n if (response.data.error) {\r\n response.data.error = response.data.error === '' ? 'Unexpected error occurred. Please try again, later.' : response.data.error;\r\n logger.error(response.data.error, 'Error', response);\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', response);\r\n }\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.reject(response);\r\n // return $q.resolve(response);\r\n } else {\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.resolve(response.data);\r\n }\r\n }\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return response || $q.when(response);\r\n },\r\n responseError: function (rejection) {\r\n // console.log('=== responseError rejection ===',rejection);\r\n if (rejection.config && rejection.config.url.indexOf(DOMAIN.webService) >= 0) {\r\n idleService.resetTimer();\r\n }\r\n if (rejection.status === 401) {\r\n $rootScope.$broadcast(AUTH_EVENTS.notAuthorized);\r\n } else if (rejection.status === 404) {\r\n $rootScope.$broadcast();\r\n } else if (rejection.data) {\r\n if (rejection.data.error) {\r\n rejection.data.error = rejection.data.error === '' ? 'Unexpected error occurred. Please try again, later.' : rejection.data.error;\r\n logger.error(rejection.data.error, 'Error', rejection);\r\n } else if (rejection.data.ExceptionMessage) {\r\n logger.error(angular.isDefined(rejection.data.ExceptionMessage) ? rejection.data.ExceptionMessage : '', 'Error', rejection);\r\n } else if (rejection.data.Message) {\r\n logger.error((angular.isDefined(rejection.data.Message) ? rejection.data.Message : '') + ' ' + (angular.isDefined(rejection.data.MessageDetail) ? rejection.data.MessageDetail : ''), 'Error', rejection);\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', rejection);\r\n }\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', rejection);\r\n }\r\n\r\n if (Check(rejection, 'responseError')) {\r\n processResponse();\r\n }\r\n\r\n if (rejection.status != -1 && (rejection && rejection.data && rejection.data.ExceptionType != 'System.Exception')) {\r\n LogServerSideException(rejection.data.ExceptionMessage, $injector);\r\n }\r\n\r\n return $q.reject(rejection);\r\n // return $q.resolve(rejection); // Angular > 1.5.8\r\n }\r\n };\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n idleService.$inject = [\"$rootScope\", \"$timeout\", \"keepalive\", \"AUTH_EVENTS\"];\r\n angular\r\n .module('app.core')\r\n .factory('idleService', idleService);\r\n\r\n function idleService($rootScope, $timeout, keepalive, AUTH_EVENTS) {\r\n var idleTimer = null;\r\n\r\n function stopTimer() {\r\n if (idleTimer) {\r\n $timeout.cancel(idleTimer);\r\n }\r\n }\r\n\r\n function timerExpiring() {\r\n stopTimer();\r\n $rootScope.$broadcast(AUTH_EVENTS.sessionTimeout);\r\n }\r\n\r\n function startTimer() {\r\n idleTimer = $timeout(timerExpiring, keepalive);\r\n }\r\n\r\n function resetTimer() {\r\n stopTimer();\r\n startTimer();\r\n }\r\n\r\n startTimer();\r\n return {\r\n startTimer: startTimer,\r\n stopTimer: stopTimer,\r\n resetTimer: resetTimer\r\n };\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n loader.$inject = [\"$timeout\", \"$rootScope\"];\r\n angular\r\n .module('app.core')\r\n .factory('loader', loader);\r\n\r\n function loader($timeout, $rootScope) {\r\n var delayIn = 500;\r\n var delayOut = 250;\r\n var queue = [];\r\n var timerPromise = null;\r\n var timerPromiseHide = null;\r\n\r\n return {\r\n delayedStart: function () {\r\n queue.push({});\r\n if (queue.length === 1) {\r\n timerPromise = $timeout(function () {\r\n if (queue.length) {\r\n showLoader();\r\n }\r\n }, delayIn);\r\n }\r\n },\r\n start: function () {\r\n queue.push({});\r\n if (queue.length === 1) {\r\n showLoader();\r\n }\r\n },\r\n end: function () {\r\n queue.pop();\r\n if (queue.length === 0) {\r\n timerPromiseHide = $timeout(function () {\r\n if (queue.length === 0) {\r\n hideLoader();\r\n if (timerPromiseHide) {\r\n $timeout.cancel(timerPromiseHide);\r\n }\r\n }\r\n }, delayOut);\r\n }\r\n }\r\n };\r\n\r\n function showLoader() {\r\n $rootScope.loader = true;\r\n }\r\n\r\n function hideLoader() {\r\n if (timerPromise) {\r\n $timeout.cancel(timerPromise);\r\n }\r\n $rootScope.loader = false;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n paramHelper.$inject = [\"$q\", \"localStorageService\", \"log\", \"gettextCatalog\", \"authenticationService\"];\r\n angular\r\n .module('app.core')\r\n .factory('paramHelper', paramHelper);\r\n\r\n function paramHelper($q, localStorageService, log, gettextCatalog, authenticationService) {\r\n return {\r\n setParams: setParams,\r\n getParams: getParams,\r\n removeParam: removeParam,\r\n removeAll: removeAll,\r\n setUserNameParams: setUserNameParams,\r\n getUserNameParams: getUserNameParams\r\n };\r\n\r\n // [{key: value}, {key: value}, ...]\r\n function setParams(params) {\r\n return $q(function (resolve) {\r\n angular.forEach(params, function (value) {\r\n angular.forEach(value, function (value, key) {\r\n //console.log(key + ': ' + value);\r\n localStorageService.set(authenticationService.getAuthData().id + '.' + key, value);\r\n });\r\n });\r\n resolve(true);\r\n });\r\n }\r\n\r\n // [{key: value}, {key: value}, ...]\r\n function setUserNameParams(userName, params) {\r\n return $q(function (resolve) {\r\n angular.forEach(params, function (value) {\r\n angular.forEach(value, function (value, key) {\r\n localStorageService.set(userName + '.' + key, value);\r\n });\r\n });\r\n resolve(true);\r\n });\r\n }\r\n\r\n // [key, key, ...]\r\n function getUserNameParams(userName, params, optionalParams) {\r\n return $q(function (resolve, reject) {\r\n var result = [];\r\n angular.forEach(params, function (value) {\r\n var temp = localStorageService.get(userName + '.' + value);\r\n if (!temp) {\r\n var noParam = gettextCatalog.getString('NoParam');\r\n log.htmlError(noParam + ': ' + value);\r\n reject();\r\n } else {\r\n result[value] = temp;\r\n }\r\n });\r\n angular.forEach(optionalParams, function (value) {\r\n result[value] = localStorageService.get(userName + '.' + value);\r\n });\r\n resolve(result);\r\n });\r\n }\r\n\r\n // [key, key, ...]\r\n function getParams(params, optionalParams) {\r\n return $q(function (resolve, reject) {\r\n var result = [];\r\n if (authenticationService.getAuthData() && authenticationService.getAuthData().id) {\r\n angular.forEach(params, function (value) {\r\n var temp = localStorageService.get(authenticationService.getAuthData().id + '.' + value);\r\n if (!temp) {\r\n var noParam = gettextCatalog.getString('NoParam');\r\n log.htmlError(noParam + ': ' + value);\r\n reject();\r\n } else {\r\n result[value] = temp;\r\n //removeParam(value)\r\n }\r\n });\r\n angular.forEach(optionalParams, function (value) {\r\n result[value] = localStorageService.get(authenticationService.getAuthData().id + '.' + value);\r\n //removeParam(value);\r\n });\r\n }\r\n resolve(result);\r\n });\r\n }\r\n\r\n function removeParam(param) {\r\n localStorageService.remove(authenticationService.getAuthData().id + '.' + param);\r\n }\r\n\r\n function removeAll() {\r\n return localStorageService.clearAll();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n validatorHelper.$inject = [\"$q\"];\r\n angular\r\n .module('app.core')\r\n .factory('validatorHelper', validatorHelper);\r\n\r\n function validatorHelper($q) {\r\n return {\r\n validate: validate\r\n };\r\n\r\n function validate(response, form) {\r\n return $q(function (resolve) {\r\n if (response.data.validationErrors) {\r\n angular.forEach(response.data.validationErrors, function (value, key) {\r\n var fieldName = key.substring(key.indexOf('.') + 1, key.length + 1);\r\n if (form[fieldName]) {\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'required') {\r\n form[fieldName].$setValidity('required', false);\r\n }\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'maxlength') {\r\n form[fieldName].$setValidity('maxlength', false);\r\n }\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'minlength') {\r\n form[fieldName].$setValidity('minlength', false);\r\n }\r\n }\r\n });\r\n return $q.reject(response);\r\n }\r\n resolve(true);\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DashboardController.$inject = [\"$q\", \"dataservice\", \"log\", \"DOMAIN\", \"$location\", \"localStorageService\", \"paramHelper\", \"$state\", \"$scope\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.dashboard')\r\n .controller('DashboardController', DashboardController);\r\n\r\n function DashboardController($q, dataservice, log, DOMAIN, $location, localStorageService, paramHelper, $state, $scope, authenticationService, gettextCatalog, $rootScope, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MainPage');\r\n\r\n vm.messageCount = 0;\r\n //Grid nyomtatás, exportálás nyomógomb\r\n vm.datagridExpiringDocuments = [];\r\n vm.dataMonthlyAttendance = [];\r\n vm.columnsMonthlyAttendance = [];\r\n vm.dataMonthlyCompetitionPlan = [];\r\n vm.dataWeeklyCompetitionPlan = [];\r\n vm.columnsMonthlyCompetitionPlan = [];\r\n vm.dataYearlyCompetitionPlan = [];\r\n vm.columnsYearlyCompetitionPlan = [];\r\n vm.dataGridLinks = [];\r\n vm.columnsGridLinks = [];\r\n vm.dataUnpaidFees = [];\r\n vm.columnsUnpaidFees = [];\r\n vm.dataUnpaidFeesTrainer = [];\r\n vm.columnsUnpaidFeesTrainer = [];\r\n vm.HETIEDZESTERVJOVAHAGY = false;\r\n\r\n //grid permissions\r\n vm.allowGetUnAcceptedMonthlyAttendance = false;\r\n vm.allowGetUnAcceptedMonthlyCompetitionPlan = false;\r\n vm.allowGetUnAcceptedWeeklyCompetitionPlan = false;\r\n vm.allowGetUnAcceptedYearlyCompetitionPlan = false;\r\n vm.allowGetUnPaidFees = false;\r\n vm.allowGetUnPaidFeesTrainer = false;\r\n vm.allowFOLAPLINKEK = false;\r\n\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAthletes = goToNewAthletes;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.goToMonthlyCompetitonPlan = goToMonthlyCompetitonPlan;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n vm.openSportServiceFeeRegister = openSportServiceFeeRegister;\r\n vm.openSportServiceFeeArrears = openSportServiceFeeArrears;\r\n vm.openWeeklyPlan = openWeeklyPlan;\r\n vm.addNewLink = addNewLink;\r\n\r\n vm.editLink = editLink;\r\n vm.editLinkSave = editLinkSave;\r\n vm.deleteLink = deleteLink;\r\n vm.closeeditLinksWindow = closeeditLinksWindow;\r\n vm.closenewLinksWindow = closenewLinksWindow;\r\n vm.newLinkSave = newLinkSave;\r\n\r\n vm.LinkData = gettextCatalog.getString('LinkData');\r\n\r\n vm.reportParameters = [];\r\n vm.printOptions = {\r\n messages: false,\r\n mthAttendance: false,\r\n mthCmptPlan: false,\r\n yrCmptPlan: false,\r\n unpayedFee: false,\r\n stat: false,\r\n };\r\n\r\n if (DOMAIN.justPsycho === 1) {\r\n $location.path('/athletesManagement/athletesList');\r\n }\r\n\r\n // gridek generálása\r\n // 1.\r\n vm.columnsgridExpiringDocuments = [];\r\n vm.columnsgridExpiringDocuments = [\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 120,\r\n template: '#datemplateDataColumn1'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 120,\r\n template: '#datemplateDataColumn2'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ];\r\n var gridExpiringDocuments = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsgridExpiringDocuments,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridExpiringDocuments'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridExpiringDocuments.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridExpiringDocuments);\r\n };\r\n\r\n // 2.\r\n vm.columnsMonthlyAttendance = [];\r\n vm.columnsMonthlyAttendance = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n template: '#datemplateDataColumn4'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n template: '#datemplateDataColumn3',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'CsoportLetszam',\r\n headerText: gettextCatalog.getString('groupStaffNumbers'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Erkezett',\r\n headerText: gettextCatalog.getString('Arrived'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Tavozott',\r\n headerText: gettextCatalog.getString('Departed'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridMonthlyAttendance = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMonthlyAttendance,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridMonthlyAttendance'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridMonthlyAttendance.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridMonthlyAttendance);\r\n };\r\n\r\n //3.\r\n vm.columnsMonthlyCompetitionPlan = [];\r\n vm.columnsMonthlyCompetitionPlan = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn6'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#datemplateDataColumn5',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n vm.selectedRow = [];\r\n var gridMonthlyMonthlyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMonthlyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridMonthlyMonthlyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridMonthlyMonthlyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridMonthlyMonthlyCompetitionPlan);\r\n };\r\n\r\n //4.\r\n\r\n vm.columnsWeeklyCompetitionPlan = [];\r\n vm.columnsWeeklyCompetitionPlan = [\r\n {field: 'tervid', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center', width: 60, allowEditing: false,\r\n template: '#templateColumnETHetiLink'\r\n },\r\n {\r\n field: 'szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'korcsoport',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#templateColumnETHetiEdzo',\r\n width: 125\r\n },\r\n {\r\n field: 'hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'vasarnap',\r\n headerText: gettextCatalog.getString('Sunday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridWeeklyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsWeeklyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridWeeklyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridWeeklyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridWeeklyCompetitionPlan);\r\n };\r\n\r\n //5.\r\n\r\n vm.columnsYearlyCompetitionPlan = [];\r\n vm.columnsYearlyCompetitionPlan = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn8'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#datemplateDataColumn7',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridYearlyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsYearlyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridYearlyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridYearlyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridYearlyCompetitionPlan);\r\n };\r\n\r\n //6.\r\n vm.columnsUnpaidFees = [];\r\n vm.columnsUnpaidFees = [\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn11'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#datemplateDataColumn9'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Link1',\r\n headerText: gettextCatalog.getString('PayIn'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#datemplateDataColumn10'\r\n }\r\n ];\r\n\r\n var gridUnpaidFees = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsUnpaidFees,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Link1']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Link1']);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridUnpaidFees'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridUnpaidFees.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridUnpaidFees);\r\n };\r\n\r\n //6.1.\r\n\r\n vm.columnsUnpaidFeesTrainer = [];\r\n vm.columnsUnpaidFeesTrainer = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn12'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn13'\r\n },\r\n {\r\n field: 'Befizetett',\r\n headerText: gettextCatalog.getString('PayIn'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktDijak',\r\n headerText: gettextCatalog.getString('Fee'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridUnpaidFeesTrainer = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsUnpaidFeesTrainer,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridUnpaidFeesTrainer'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridUnpaidFeesTrainer.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridUnpaidFeesTrainer);\r\n };\r\n\r\n //7.\r\n vm.columnsGridLinks = [];\r\n vm.columnsGridLinks = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Hivatkozas',\r\n headerText: gettextCatalog.getString('Link'),\r\n textAlign: 'center',\r\n width: 170,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn14'\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Link',\r\n headerText: gettextCatalog.getString('LinkDesc'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edit'), textAlign: 'center', width: 120, allowEditing: false,\r\n template: '#datemplateDataColumn15'\r\n }\r\n ];\r\n\r\n var gridLinks = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsGridLinks,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridLinks'), $scope);\r\n }\r\n }\r\n });\r\n gridLinks.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridLinks);\r\n };\r\n\r\n activate();\r\n function activate() {\r\n if (!localStorageService.get('_authData')) {\r\n return;\r\n }\r\n\r\n $q.all([\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('HJALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('MEGTEVVERST'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPOLVASATLANOK'),\r\n getSystemSettings('FOLAPNYOMTATAS'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROJELENLETIK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHAVITERVEK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROEVESTERVEK'),\r\n getSystemSettings('FOLAPKIFIZETETLENTAGDIJAK'),\r\n getSystemSettings('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPLEJARO'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHETITERV'),\r\n authenticationService.getRight('HETIEDZESTERVJOVAHAGY'),\r\n authenticationService.getRight('GAZDASAGI'),\r\n ]).then(function (results) {\r\n vm.EDZO = results[0];\r\n vm.ADMIN = results[1];\r\n vm.SZAKOSZTVEZ = results[2];\r\n vm.TECHIGAZGATO = results[3];\r\n vm.HJALAIR1 = results[4];\r\n vm.HAVIVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR1 = results[6];\r\n vm.MEGTFELH = results[7];\r\n vm.MODSPORTOLO = results[8];\r\n vm.MODKOROKEZ = results[9];\r\n vm.MEGTHAVIJEL = results[10];\r\n vm.MEGTHAVIVERST = results[11];\r\n vm.MEGTEVVERST = results[12];\r\n vm.MODSPORTOLO = results[13];\r\n vm.FOLAPLINKEK = results[14];\r\n vm.FOLAPOLVASATLANOK = results[15];\r\n vm.FOLAPNYOMTATAS = results[16];\r\n vm.FOLAPELFOGADASRAVAROJELENLETIK = results[17];\r\n vm.FOLAPELFOGADASRAVAROHAVITERVEK = results[18];\r\n vm.FOLAPELFOGADASRAVAROEVESTERVEK = results[19];\r\n vm.FOLAPKIFIZETETLENTAGDIJAK = results[20];\r\n vm.allowFOLAPLINKEK = results[21];\r\n vm.FOLAPLEJARO = results[22];\r\n vm.FOLAPELFOGADASRAVAROHETITERV = results[23];\r\n vm.HETIEDZESTERVJOVAHAGY = results[24];\r\n vm.GAZDASAGI = results[25];\r\n\r\n //[ szakosztalyvezeto, ADMIN, EDZO ] - HaviJelenletiSzakvezAlairniController\r\n // FOLAPELFOGADASRAVAROJELENLETIK - Elfogadásra váró havi jelenlétik megjelenítése\r\n vm.allowGetUnAcceptedMonthlyAttendance = vm.FOLAPELFOGADASRAVAROJELENLETIK && (vm.SZAKOSZTVEZ || vm.ADMIN || vm.EDZO);\r\n if (vm.allowGetUnAcceptedMonthlyAttendance) {\r\n dataservice.getUnAcceptedMonthlyAttendance().then(function (data) {\r\n vm.dataMonthlyAttendance = data.itemsList;\r\n gridMonthlyAttendance.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridMonthlyAttendance.appendTo('#gridMonthlyAttendance');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [ gazdaságis, adminisztrátor, szakosztályvezető ] - VersenyTervHaviAlairniController\r\n // FOLAPELFOGADASRAVAROHAVITERVEK - Elfogadásra váró havi versenyeztetési tervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedMonthlyCompetitionPlan = vm.FOLAPELFOGADASRAVAROHAVITERVEK && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedMonthlyCompetitionPlan) {\r\n dataservice.getUnAcceptedMonthlyCompetitionPlan().then(function (data) {\r\n vm.dataMonthlyCompetitionPlan = data.itemsList;\r\n gridMonthlyMonthlyCompetitionPlan.dataSource = vm.dataMonthlyCompetitionPlan;\r\n $timeout(function () {\r\n gridMonthlyMonthlyCompetitionPlan.appendTo('#gridMonthlyMonthlyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [vm.HETIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HETIEDZESTERVJOVAHAGY; ] - VersenyTervHetiAlairni\r\n // FOLAPELFOGADASRAVAROHETITERV - Elfogadásra váró heti edzéstervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedWeeklyCompetitionPlan = vm.FOLAPELFOGADASRAVAROHETITERV && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedWeeklyCompetitionPlan) {\r\n dataservice.getUnAcceptedWeeklyCompetitionPlan().then(function (data) {\r\n vm.FOLAPELFOGADASRAVAROHETITERV = data.isAdmin || data.isSectionLeader;\r\n var dataList = data.itemsList;\r\n dataList = $filter('dateStringFilter')(dataList, 'hetfo');\r\n dataList = $filter('dateStringFilter')(dataList, 'vasarnap');\r\n gridWeeklyCompetitionPlan.dataSource = dataList;\r\n vm.dataWeeklyCompetitionPlan = dataList;\r\n $timeout(function () {\r\n gridWeeklyCompetitionPlan.appendTo('#gridWeeklyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [IsAdminUser, IsSzakosztalyVezetoUser, IsEdzoUser, - EVVERSTALAIR1 ] - VersenyTervEvesAlairni\r\n // FOLAPELFOGADASRAVAROEVESTERVEK - Elfogadásra váró éves versenyeztetési tervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedYearlyCompetitionPlan = vm.FOLAPELFOGADASRAVAROEVESTERVEK && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedYearlyCompetitionPlan) {\r\n dataservice.getUnAcceptedYearlyCompetitionPlan().then(function (data) {\r\n vm.dataYearlyCompetitionPlan = data.itemsList;\r\n gridYearlyCompetitionPlan.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridYearlyCompetitionPlan.appendTo('#gridYearlyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n if (vm.allowFOLAPLINKEK) {\r\n $timeout(function () {\r\n gridLinks.appendTo('#gridLinks');\r\n getLinks();\r\n }, 100);\r\n }\r\n\r\n // [IsSzakosztalyVezetoUser, Edző, MEGTTAGDHATR ]\r\n // FOLAPKIFIZETETLENTAGDIJAK - Rendezetlen tagdíjlista megjelenítése a nyitólapon\r\n\r\n vm.allowGetUnPaidFees = vm.FOLAPKIFIZETETLENTAGDIJAK && (vm.ADMIN || vm.SZAKOSZTVEZ || vm.TECHIGAZGATO);\r\n vm.allowGetUnPaidFeesTrainer = vm.EDZO;\r\n if (vm.allowGetUnPaidFees) {// getSzakosztalyEdzoHatralekosai\r\n dataservice.getUnPaidFees().then(function (data) {\r\n vm.dataUnpaidFees = data.itemsList;\r\n gridUnpaidFees.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridUnpaidFees.appendTo('#gridUnpaidFees');\r\n }, 100);\r\n });\r\n } else if (vm.FOLAPKIFIZETETLENTAGDIJAK && vm.allowGetUnPaidFeesTrainer) {// [Edző] getEdzoTagdijHatralekosai ??? Egyenleg ????\r\n dataservice.getUnPaidFeesTrainer().then(function (data) {\r\n vm.dataUnpaidFeesTrainer = data.itemsList;\r\n gridUnpaidFeesTrainer.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridUnpaidFeesTrainer.appendTo('#gridUnpaidFeesTrainer');\r\n }, 100);\r\n });\r\n }\r\n // LEJARODOCERTESITESTKAPNAK - ExpiringDocuments\r\n if (vm.FOLAPLEJARO) {\r\n dataservice.ExpiringDocuments().then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n gridExpiringDocuments.dataSource = data.itemsList;\r\n vm.datagridExpiringDocuments = data.itemsList;\r\n //generálás csak a div létrehozása után lehet ami csak az ng-if után futhat le\r\n $timeout(function () {\r\n gridExpiringDocuments.appendTo('#gridExpiringDocuments');\r\n }, 100);\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n $scope.$apply();\r\n });\r\n });\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function openSportServiceFeeRegister(sectionId, coachId) {\r\n var currentYear = new Date().getFullYear();\r\n paramHelper.setParams([\r\n {'sportServiceFeeRegister.sectionId': sectionId},\r\n {'sportServiceFeeRegister.coachId': coachId},\r\n {'sportServiceFeeRegister.year': currentYear}\r\n ]);\r\n $state.go('business.sportServiceFeeRegister');\r\n }\r\n\r\n function openSportServiceFeeArrears(sectionId, coachId) {\r\n var currentYear = new Date().getFullYear();\r\n paramHelper.setParams([\r\n {'sportServiceFeeArrears.sectionId': sectionId},\r\n {'sportServiceFeeArrears.coachId': coachId},\r\n {'sportServiceFeeArrears.year': currentYear}\r\n ]);\r\n $state.go('business.sportServiceFeeArrears');\r\n }\r\n\r\n function openWeeklyPlan(tervid) {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.trainingPlanId': tervid}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthletes(athleteId) {\r\n if (!vm.MODSPORTOLO) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'athleteModify.sportoloId': athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n\r\n function goToMonthlyAttendance(maId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyAttendance.id': maId}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function goToAnnualSeasonPlan(asId) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': asId}]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function goToMonthlyCompetitonPlan(mcpId, edzoId, szakosztalyId) {\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n var result = gridMonthlyMonthlyCompetitionPlan.dataSource.filter(function (v) {\r\n if (v.Id === mcpId) {\r\n return v;\r\n }\r\n });\r\n paramHelper.setParams([{'competitiveMonthlyPlan.edzoId': edzoId},\r\n {'competitiveMonthlyPlan.edzoNev': result[0].Edzo},\r\n {'competitiveMonthlyPlan.szakosztalyNev': result[0].Szakosztaly},\r\n {'competitiveMonthlyPlan.szakosztalyId': szakosztalyId}, {'competitiveMonthlyPlan.competitivePlanId': mcpId}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function addNewLink() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function closenewLinksWindow() {\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function newLinkSave() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.close();\r\n if (vm.newLink && vm.newLink.Hivatkozas && vm.newLink.Hivatkozas.length > 0) {\r\n dataservice.saveNewLink(vm.newLink).then(function () {\r\n getLinks();\r\n log.successMsg('NewLinkSaved');\r\n vm.newLink.Hivatkozas = '';\r\n vm.newLink.Link = '';\r\n vm.newLink.Megjegyzes = '';\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('EmptyLinkAddressCannotBeSaved'));\r\n }\r\n }\r\n\r\n function editLink(args) {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var db = gridLinks.dataSource.length;\r\n\r\n for (var rec = 0; rec < db; rec++) {\r\n if (gridLinks.dataSource[rec].Id === args) {\r\n vm.editedLink = gridLinks.dataSource[rec];\r\n break;\r\n }\r\n }\r\n var dialogObj = angular.element('#editLinks').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function editLinkSave() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n dataservice.saveLink(vm.editedLink).then(function () {\r\n getLinks();\r\n //TODO kell?????\r\n // var db = gridLinks.dataSource.length;\r\n // for (var rec = 0; rec < db; rec++) {\r\n // if (gridLinks.dataSource[rec].Id === vm.editedLink.Id) {\r\n // gridLinks.dataSource[rec] = vm.editedLink;\r\n // vm.dataGridLinks[rec] = vm.editedLink;\r\n //\r\n // console.log('save', gridLinks.dataSource);\r\n // gridLinks.appendTo('#gridLinks');\r\n // }\r\n // }\r\n closeeditLinksWindow();\r\n\r\n log.successMsg('LinkSaved');\r\n });\r\n }\r\n\r\n function deleteLink(arg) {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected link?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this link'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var p = {};\r\n p.Id = arg;\r\n dataservice.deleteLink(p).then(function () {\r\n log.successMsg('LinkDeleted');\r\n getLinks();\r\n });\r\n }\r\n });\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closeeditLinksWindow() {\r\n var dialogObj = angular.element('#editLinks').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function getLinks() {\r\n dataservice.getLinks().then(function (data) {\r\n gridLinks.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.dashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'dashboard',\r\n config: {\r\n url: '/',\r\n templateUrl: 'app/dashboard/dashboard.html',\r\n controller: 'DashboardController',\r\n controllerAs: 'vm',\r\n title: 'Dashboard',\r\n settings: {\r\n navId: 8,\r\n level: 1,\r\n order: 8,\r\n parentId: 0,\r\n content: 'Dashboard',\r\n faIcon: 'fa-play',\r\n permission: ['0', '1', '2', '3', '4', '7', '8']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.layout')\r\n .directive('htSidebar', htSidebar);\r\n\r\n /* @ngInject */\r\n function htSidebar() {\r\n // Opens and closes the sidebar menu.\r\n // Usage:\r\n // <div ht-sidebar\">\r\n // <div ht-sidebar whenDoneAnimating=\"vm.sidebarReady()\">\r\n // Creates:\r\n // <div ht-sidebar class=\"sidebar\">\r\n return {\r\n link: link,\r\n restrict: 'EA',\r\n scope: {\r\n whenDoneAnimating: '&?'\r\n }\r\n };\r\n\r\n function link(scope, element) {\r\n var dropClass = 'dropy';\r\n var openMobile = 'open';\r\n var $sidebarInner = element.find('.sidebar-inner');\r\n var $dropdownElement = element.find('.sidebar-dropdown a');\r\n\r\n element.addClass('sidebar');\r\n $dropdownElement.click(dropdown);\r\n scope.$on('autoCloseSideBar', closeSideBar);\r\n\r\n function openSideBar() {\r\n $sidebarInner.addClass(openMobile);\r\n $sidebarInner.slideDown(350, scope.whenDoneAnimating);\r\n $dropdownElement.addClass(dropClass);\r\n }\r\n\r\n function closeSideBar() {\r\n $sidebarInner.removeClass(openMobile);\r\n $sidebarInner.slideUp(350, scope.whenDoneAnimating);\r\n $dropdownElement.removeClass(dropClass);\r\n }\r\n\r\n function dropdown(e) {\r\n e.preventDefault();\r\n if (!$dropdownElement.hasClass(dropClass)) {\r\n openSideBar();\r\n } else if ($dropdownElement.hasClass(dropClass)) {\r\n closeSideBar();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ShellController.$inject = [\"$rootScope\", \"$q\", \"config\", \"logger\", \"authenticationService\", \"$state\", \"AUTH_EVENTS\", \"LAYOUT_EVENTS\", \"gettextCatalog\", \"LANG_EVENTS\", \"$scope\", \"routerHelper\", \"DOMAIN\", \"loader\", \"$compile\", \"$window\", \"paramHelper\", \"dataservice\", \"$timeout\", \"localStorageService\", \"log\", \"$interval\"];\r\n angular\r\n .module('app.layout')\r\n .run([\"$trace\", \"$transitions\", \"authenticationService\", \"localStorageService\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"routerHelper\", \"DOMAIN\", function ($trace, $transitions, authenticationService, localStorageService, $q, $rootScope, gettextCatalog, routerHelper, DOMAIN) {\r\n $rootScope.availableLanguages = ['hu', 'en', 'ro', 'fr'];\r\n $transitions.onBefore({}, function () {\r\n return $q(function (resolve) {\r\n var states = routerHelper.getStates();\r\n\r\n function getNavRoutes() {\r\n return $q(function (resolve) {\r\n var authData = authenticationService.getAuthData();\r\n\r\n var lang = $rootScope.availableLanguages[0];\r\n if (authData) {\r\n lang = authenticationService.getAuthData().language;\r\n }\r\n\r\n $rootScope.navRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 1 && !r.settings.parentId && r.settings.navId && r.settings.navId === 1;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 1 && !r.settings.parentId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n return r1.settings.order - r2.settings.order;\r\n });\r\n angular.forEach($rootScope.navRoutes, function (value) {\r\n if (value.settings) {\r\n value.settings.childRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 2 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId && r.settings.navId === 24;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 2 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n if (r1.settings['orderTitle_' + lang]) {\r\n return r1.settings['orderTitle_' + lang].localeCompare(r2.settings['orderTitle_' + lang]);\r\n } else {\r\n return r1.settings.order - r2.settings.order;\r\n }\r\n });\r\n angular.forEach(value.settings.childRoutes, function (value) {\r\n if (value.settings) {\r\n value.settings.childRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 3 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId && r.settings.navId === 24;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 3 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n if (r1.settings['orderTitle_' + lang]) {\r\n return r1.settings['orderTitle_' + lang].localeCompare(r2.settings['orderTitle_' + lang]);\r\n } else {\r\n return r1.settings.order - r2.settings.order;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n });\r\n resolve();\r\n });\r\n }\r\n\r\n $rootScope.setLanguage = function setLanguage(language) {\r\n return $q(function (resolve) {\r\n var defaultLang = true;\r\n for (var i = 0; i < $rootScope.availableLanguages.length; i++) {\r\n if (language.toLowerCase().indexOf($rootScope.availableLanguages[i]) >= 0) {\r\n language = $rootScope.availableLanguages[i];\r\n defaultLang = false;\r\n }\r\n }\r\n\r\n if (defaultLang) {\r\n language = $rootScope.availableLanguages[0];\r\n }\r\n\r\n if (language.value) {\r\n language = language.value;\r\n }\r\n $rootScope.language = language;\r\n\r\n var a1 = gettextCatalog.getString('Item');\r\n var a2 = gettextCatalog.getString('Items');\r\n\r\n gettextCatalog.loadRemote('/languages/' + language + '.json').then(function () {\r\n gettextCatalog.setCurrentLanguage(language);\r\n\r\n ej2.base.L10n.load({\r\n 'hu-HU': {\r\n 'grid': {\r\n // 'EmptyRecord': 'Nincs megjeleníthető adat!',\r\n EmptyRecord: gettextCatalog.getString('EmptyRecord'),\r\n BatchSaveConfirm: gettextCatalog.getString('BatchSaveConfirm'),\r\n SaveButton: gettextCatalog.getString('Save'),\r\n OkButton: 'Rendben',\r\n CancelButton: gettextCatalog.getString('Cancel'),\r\n ConfirmDelete: gettextCatalog.getString('ChangesAutomaticallySaved'),\r\n BatchSaveLostChanges: gettextCatalog.getString('Unsaved changes will be lost. Are you sure you want to continue?'),\r\n Item: gettextCatalog.getString('Item'),\r\n Items: gettextCatalog.getString('Item'),\r\n GroupDropArea: gettextCatalog.getString('GroupDropArea'),\r\n Print: gettextCatalog.getString('Print'),\r\n Add: gettextCatalog.getString('Add'),\r\n Edit: gettextCatalog.getString('Edit'),\r\n Update: gettextCatalog.getString('Change'),\r\n Cancel: gettextCatalog.getString('Cancel'),\r\n Delete: gettextCatalog.getString('Delete'),\r\n ExcelExport: 'Excel Export',\r\n Search: gettextCatalog.getString('Search'),\r\n DatePickerWaterMark: gettextCatalog.getString('SelectTheDate'),\r\n },\r\n 'pager': {\r\n currentPageInfo: '{0}. ' + gettextCatalog.getString('gridPage') + ': {1} ' + gettextCatalog.getString('gridPages'),\r\n totalItemsInfo: '(' + gettextCatalog.getString('allItems') + ': {0})',\r\n pagerDropDown: gettextCatalog.getString('RecordPerPage'),\r\n pagerInfo: gettextCatalog.getString('pagerInfo'), // \"{0} {1} lapok ({2} elem)\",\r\n firstPageTooltip: gettextCatalog.getString('firstPageTooltip'), // \"Ugrás az első oldalra\",\r\n lastPageTooltip: gettextCatalog.getString('lastPageTooltip'), //\"Ugrás az utolsó oldalra\",\r\n nextPageTooltip: gettextCatalog.getString('nextPageTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPageTooltip: gettextCatalog.getString('previousPageTooltip'), //\"Ugrás az előző oldalra\",\r\n nextPagerTooltip: gettextCatalog.getString('nextPagerTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPagerTooltip: gettextCatalog.getString('previousPagerTooltip'), //\"Ugrás az előző oldalra\"\r\n }\r\n }\r\n });\r\n\r\n ej.Pager.Locale['hu-HU'] = {\r\n pagerInfo: '{0}/{1} ' + gettextCatalog.getString('Page') + ' (' + gettextCatalog.getString('ResultsNumber') + ': {2})'\r\n };\r\n ej.DatePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('ChooseDate'),\r\n buttonText: gettextCatalog.getString('Today')\r\n };\r\n ej.Autocomplete.Locale['hu-HU'] = {\r\n addNewText: gettextCatalog.getString('addNewText'),// \"Új hozzáadása\",\r\n emptyResultText: gettextCatalog.getString('emptyResultText') // \"Nincs javaslat\",\r\n };\r\n ej.CurrencyTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText') // \"Írja be az értéket\",\r\n };\r\n ej.DatePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('datePickerWatermarkText'), //\"Válassza ki a dátumot\",\r\n buttonText: 'Ma',\r\n };\r\n ej.DateTimePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('dateTimePickerWatermarkText'),// \"Válassza ki a dátumot és időt\",\r\n buttonText: {\r\n today: gettextCatalog.getString('today'), // \"Ma\",\r\n timeNow: gettextCatalog.getString('timeNow'),// \"Most\",\r\n done: gettextCatalog.getString('done'),//\"Kész\",\r\n timeTitle: gettextCatalog.getString('timeTitle')//\"Idő\"\r\n },\r\n };\r\n ej.Dialog.Locale['hu-HU'] = {\r\n tooltip: {\r\n close: gettextCatalog.getString('close'), //\"Bezárás\",\r\n collapse: gettextCatalog.getString('collapse'), //\"Összecsuk\",\r\n restore: gettextCatalog.getString('restore'), // \"Kinyit\",\r\n maximize: gettextCatalog.getString('maximize'), // \"Teljes méret\",\r\n minimize: gettextCatalog.getString('minimize'), //\"Kis méret\",\r\n expand: gettextCatalog.getString('expand'), //\"Kinagyít\",\r\n },\r\n closeIconTooltip: gettextCatalog.getString('closeIconTooltip'), //\"Bezárás\",\r\n };\r\n ej.DropDownList.Locale['hu-HU'] = {\r\n emptyResultText: gettextCatalog.getString('emptyResultText'), //\"Nincsenek elemek\",\r\n watermarkText: ' ',\r\n };\r\n ej.NumericTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText'),\r\n };\r\n ej.Pager.Locale['hu-HU'] = {\r\n pagerInfo: gettextCatalog.getString('pagerInfo'), // \"{0} {1} lapok ({2} elem)\",\r\n firstPageTooltip: gettextCatalog.getString('firstPageTooltip'), // \"Ugrás az első oldalra\",\r\n lastPageTooltip: gettextCatalog.getString('lastPageTooltip'), //\"Ugrás az utolsó oldalra\",\r\n nextPageTooltip: gettextCatalog.getString('nextPageTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPageTooltip: gettextCatalog.getString('previousPageTooltip'), //\"Ugrás az előző oldalra\",\r\n nextPagerTooltip: gettextCatalog.getString('nextPagerTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPagerTooltip: gettextCatalog.getString('previousPagerTooltip'), //\"Ugrás az előző oldalra\",\r\n };\r\n ej.PercentageTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText') // \"Írja be az értéket\",\r\n };\r\n ej.Schedule.Locale['hu'] = {\r\n Priority: gettextCatalog.getString('AlertUsers'), // 'Felhasználók értesítése'\r\n CreateAppointmentTitle: gettextCatalog.getString('CreateAppointmentTitle'), // 'Esemény létrehozása',\r\n RecurrenceEditTitle: gettextCatalog.getString('RecurrenceEditTitle'), // 'Ismétlődő esemény szerkesztése',\r\n RecurrenceEditMessage: gettextCatalog.getString('RecurrenceEditMessage'), //'Hogyan szeretné módosítani az eseményt?',\r\n RecurrenceEditOnly: gettextCatalog.getString('RecurrenceEditOnly'), //'Ezt az egyet',\r\n RecurrenceEditSeries: gettextCatalog.getString('RecurrenceEditSeries'), //'Összeset',\r\n PreviousAppointment: gettextCatalog.getString('PreviousAppointment'), //'Előző esemény',\r\n NextAppointment: gettextCatalog.getString('NextAppointment'), //'Következő esemény',\r\n AppointmentSubject: gettextCatalog.getString('AppointmentSubject'), //'Esemény neve',\r\n StartTime: gettextCatalog.getString('StartTime'), //'Esemény kezdete',\r\n EndTime: gettextCatalog.getString('EndTime'), //'Esemény vége',\r\n AllDay: gettextCatalog.getString('AllDay'), //'Egész napos',\r\n Today: gettextCatalog.getString('Today'), //'Mai nap',\r\n Recurrence: gettextCatalog.getString('Recurrence'), //'Ismétlődés gyakorisága',\r\n Done: gettextCatalog.getString('Done'), //'Kész',\r\n Cancel: gettextCatalog.getString('Cancel'), //'Mégse',\r\n Ok: gettextCatalog.getString('Ok'), //'Ok',\r\n RepeatBy: gettextCatalog.getString('RepeatBy'), //'Ismétlés',\r\n RepeatEvery: gettextCatalog.getString('RepeatEvery'), //'Ismétlés gyakorisága',\r\n Repeat: gettextCatalog.getString('Repeat'), //'Ismétlés',\r\n RepeatOn: gettextCatalog.getString('RepeatOn'), //'Ismétlés ezeken a napokon',\r\n StartsOn: gettextCatalog.getString('StartsOn'), //'Ismétlődés ettől',\r\n Ends: gettextCatalog.getString('Ends'), //'Ismétlődés vége',\r\n Summary: gettextCatalog.getString('Summary'), //'Ismétlődés',\r\n Daily: gettextCatalog.getString('Daily'), //'Naponta',\r\n Weekly: gettextCatalog.getString('Weekly'), //'Hetente',\r\n Monthly: gettextCatalog.getString('Monthly'), //'Havonta',\r\n Yearly: gettextCatalog.getString('Yearly'), //'Évente',\r\n Every: gettextCatalog.getString('Every'), //'Minden',\r\n EveryWeekDay: gettextCatalog.getString('EveryWeekDay'), //'Munkanapokon',\r\n Never: gettextCatalog.getString('Never'), //'Soha',\r\n After: gettextCatalog.getString('After'), //'A(z)',\r\n Occurrence: gettextCatalog.getString('Occurrence'), //'alkalom után',\r\n On: gettextCatalog.getString('On'), //'A következő napig',\r\n Edit: gettextCatalog.getString('Edit'), //'Módosítás',\r\n RecurrenceDay: gettextCatalog.getString('RecurrenceDay'), //'napon',\r\n RecurrenceWeek: gettextCatalog.getString('RecurrenceWeek'), //'héten',\r\n RecurrenceMonth: gettextCatalog.getString('RecurrenceMonth'), //'hónapban',\r\n RecurrenceYear: gettextCatalog.getString('RecurrenceYear'), //'évben',\r\n The: '',\r\n OfEvery: '',\r\n First: gettextCatalog.getString('First'), //'első',\r\n Second: gettextCatalog.getString('Second'), //'második',\r\n Third: gettextCatalog.getString('Third'), //'harmadik',\r\n Fourth: gettextCatalog.getString('Fourth'), //'negyedik',\r\n Last: gettextCatalog.getString('Last'), //'utolsó',\r\n WeekDay: gettextCatalog.getString('WeekDay'), //'munkanap',\r\n Subject: gettextCatalog.getString('Subject'), //'Tárgy',\r\n Categorize: gettextCatalog.getString('Categorize'), //'Kategória',\r\n OpenItem: gettextCatalog.getString('OpenItem'), //'Megtekintés',\r\n Day: gettextCatalog.getString('Day'), //'Napi',\r\n Week: gettextCatalog.getString('Week'), //'Heti',\r\n WorkWeek: gettextCatalog.getString('WorkWeek'), //'Munkahét',\r\n Month: gettextCatalog.getString('Month'), //'Havi',\r\n AddEvent: gettextCatalog.getString('AddEvent'), //'Esemény hozzáadása',\r\n Agenda: gettextCatalog.getString('Agenda'), //'Lista',\r\n Detailed: gettextCatalog.getString('Detailed'), //'Részletek',\r\n EventBeginsin: gettextCatalog.getString('EventBeginsin'), //'Az esemény kezdete',\r\n Editevent: gettextCatalog.getString('Editevent'), //'Esemény szerkesztése',\r\n Editseries: gettextCatalog.getString('Editseries'), //'Sorozat szerkesztése',\r\n Times: gettextCatalog.getString('Times'), //'alkalom',\r\n Until: gettextCatalog.getString('Until'), //'Eddig',\r\n Hours: gettextCatalog.getString('Hours'), //'óra',\r\n Minutes: gettextCatalog.getString('Minutes'), //'perc',\r\n Overdue: gettextCatalog.getString('Overdue'), //'Lejárt',\r\n Days: gettextCatalog.getString('Days'), //'nap',\r\n Event: gettextCatalog.getString('Event'), //'Esemény',\r\n Select: gettextCatalog.getString('Select'), //'Kiválaszt',\r\n Previous: gettextCatalog.getString('Previous'), //'Előző',\r\n Next: gettextCatalog.getString('Next'), //'Következő',\r\n Close: gettextCatalog.getString('Close'), //'Bezár',\r\n Delete: gettextCatalog.getString('Delete'), //'Törlés',\r\n Date: gettextCatalog.getString('Date'), //'Dátum',\r\n Gotodate: gettextCatalog.getString('Gotodate'), //'Dátumra ugrás',\r\n RecurrenceDeleteTitle: gettextCatalog.getString('RecurrenceDeleteTitle'), //'Esemény törlése',\r\n Location: gettextCatalog.getString('Location'), //'Helyszín',\r\n CreateError: gettextCatalog.getString('CreateError'), // 'Az esemény hossza nem lehet nagyobb, mint az ismétlődés gyakorisága. Állítsd rövidebbre az eseményt idejét vagy változtasd meg az ismétlődést.',\r\n StartEndError: gettextCatalog.getString('StartEndError'), //'A kezdés ideje hamarabb kell legyen, mint a befejezésé.',\r\n MouseOverDeleteTitle: gettextCatalog.getString('MouseOverDeleteTitle'), //'Esemény törlése',\r\n DeleteConfirmation: gettextCatalog.getString('DeleteConfirmation'), //'Biztosan törli az eseményt?',\r\n Time: gettextCatalog.getString('Time'), //'Időpont',\r\n NoTitle: gettextCatalog.getString('NoTitle'), //'Névtelen esemény',\r\n OverFlowAppCount: gettextCatalog.getString('OverFlowAppCount'), //'további esemény',\r\n EmptyResultText: gettextCatalog.getString('EmptyResultText'), //'Nincs ilyen a listában'\r\n };\r\n ej.Uploadbox.Locale['hu-HU'] = {\r\n buttonText: {\r\n upload: gettextCatalog.getString('upload'), //\"Feltöltés\",\r\n browse: gettextCatalog.getString('browse'), //\"Tallózás\",\r\n cancel: gettextCatalog.getString('cancel'), //\"Törlés\",\r\n close: gettextCatalog.getString('close'), //\"Bezárás\"\r\n },\r\n dialogText: {\r\n title: gettextCatalog.getString('title'), //\"Feltöltés\",\r\n name: gettextCatalog.getString('name'), //\"Név\",\r\n size: gettextCatalog.getString('size'), //\"Méret\",\r\n status: gettextCatalog.getString('status'), //\"Állapot\"\r\n },\r\n dropAreaText: gettextCatalog.getString('dropAreaText'), //\"Dobja ide a fájlokat vagy kattintson a feltöltéshez!\",\r\n filedetail: gettextCatalog.getString('filedetail'), //\"A kiválasztott fájl mérete túl ndoneagy. Kérjük, válasszon kisebb méretű fájlt.\",\r\n denyError: gettextCatalog.getString('denyError'), //\"Fájlok #Extension kiterjesztésekkel nem megengedettek.\",\r\n allowError: gettextCatalog.getString('allowError'), //\"Csak #Extension kiterjesztésű fájlok engedélyezettek.\",\r\n cancelToolTip: gettextCatalog.getString('cancelToolTip'), //\"Mégsem\",\r\n removeToolTip: gettextCatalog.getString('removeToolTip'), //\"Törlés\",\r\n retryToolTip: gettextCatalog.getString('retryToolTip'), //\"Próbálja újra\",\r\n completedToolTip: gettextCatalog.getString('completedToolTip'), //\"Befejezés\",\r\n failedToolTip: gettextCatalog.getString('failedToolTip'), //\"nem sikerült\",\r\n closeToolTip: gettextCatalog.getString('closeToolTip'), //\"Bezárás\",\r\n };\r\n\r\n $rootScope.navSubTitles = {\r\n 'Athletes': gettextCatalog.getString('Athletes')\r\n };\r\n $rootScope.validationTranslate = {\r\n required: gettextCatalog.getString('Required'),\r\n minlength: gettextCatalog.getString('Minlength'),\r\n maxlength: gettextCatalog.getString('Maxlength')\r\n };\r\n $rootScope.headTitles = {\r\n 'AddAgeGroup': gettextCatalog.getString('AddAgeGroup'),\r\n 'AddTeamMember': gettextCatalog.getString('AddTeamMember'),\r\n 'AddTeams': gettextCatalog.getString('AddTeams'),\r\n 'Administration': gettextCatalog.getString('Administration'),\r\n 'AgeGroupMembersList': gettextCatalog.getString('AgeGroupMembersList'),\r\n 'AgeGroupsList': gettextCatalog.getString('AgeGroupsList'),\r\n 'Athletes': gettextCatalog.getString('Athletes'),\r\n 'AthletesList': gettextCatalog.getString('AthletesList'),\r\n 'AthletesManagement': gettextCatalog.getString('AthletesManagement'),\r\n 'Business': gettextCatalog.getString('Business'),\r\n 'CentralReport': gettextCatalog.getString('CentralReport'),\r\n 'CentralReportAllIn': gettextCatalog.getString('CentralReportAllIn'),\r\n 'CentralReportByRating': gettextCatalog.getString('CentralReportByRating'),\r\n 'Dashboard': gettextCatalog.getString('Dashboard'),\r\n 'DuplicatedAthletes': gettextCatalog.getString('DuplicatedAthletes'),\r\n 'EditHealthType': gettextCatalog.getString('EditHealthType'),\r\n 'LogIn': gettextCatalog.getString('LogIn'),\r\n 'ModifyAgeGroup': gettextCatalog.getString('ModifyAgeGroup'),\r\n 'ModifyTeams': gettextCatalog.getString('ModifyTeams'),\r\n 'MonthlyAttendance': gettextCatalog.getString('MonthlyAttendance'),\r\n 'MonthlyAttendanceList': gettextCatalog.getString('MonthlyAttendanceList'),\r\n 'NewAthlete': gettextCatalog.getString('NewAthlete'),\r\n 'NewUser': gettextCatalog.getString('NewUser'),\r\n 'Reports': gettextCatalog.getString('Reports'),\r\n 'SchoolManagement': gettextCatalog.getString('SchoolManagement'),\r\n 'Search': gettextCatalog.getString('Search'),\r\n 'Settings': gettextCatalog.getString('Settings'),\r\n 'SportSpecificReportLists': gettextCatalog.getString('SportSpecificReportLists'),\r\n 'SportSpecificTestList': gettextCatalog.getString('SportSpecificTestList'),\r\n 'StatisticalReports': gettextCatalog.getString('StatisticalReports'),\r\n 'TeamList': gettextCatalog.getString('TeamList'),\r\n 'TeamMembersList': gettextCatalog.getString('TeamMembersList'),\r\n 'TestResultsFootball': gettextCatalog.getString('TestResultsFootball'),\r\n 'TestResultsHockey': gettextCatalog.getString('TestResultsHockey'),\r\n 'UserGroupsManagement': gettextCatalog.getString('UserGroupsManagement'),\r\n 'UserManagement': gettextCatalog.getString('UserManagement'),\r\n 'AgeGroupManagement': gettextCatalog.getString('AgeGroupManagement'),\r\n 'AnnualPresenceReports': gettextCatalog.getString('AnnualPresenceReports'),\r\n 'EventsCalendar': gettextCatalog.getString('EventsCalendar'),\r\n 'ManagementReports': gettextCatalog.getString('ManagementReports'),\r\n 'SearchType': gettextCatalog.getString('SearchType'),\r\n 'MessageCenter': gettextCatalog.getString('MessageCenter')\r\n };\r\n\r\n $rootScope.busyMessage = gettextCatalog.getString('Loading');\r\n getNavRoutes().then(function () {\r\n if (!$rootScope.$$phase) {\r\n $rootScope.$apply();\r\n }\r\n resolve();\r\n });\r\n });\r\n });\r\n };\r\n var lang = null;\r\n if (authenticationService.isAuthenticated()) {\r\n lang = localStorageService.get('_authData').language;\r\n } else if (authenticationService.isSessionTimeOut()) {\r\n lang = localStorageService.get('_sessionData').language;\r\n } else {\r\n lang = navigator.language || navigator.userLanguage;\r\n }\r\n $rootScope.setLanguage(lang).then(function () {\r\n resolve();\r\n });\r\n });\r\n });\r\n }])\r\n .controller('ShellController', ShellController);\r\n\r\n function ShellController($rootScope, $q, config, logger, authenticationService, $state, AUTH_EVENTS, LAYOUT_EVENTS, gettextCatalog, LANG_EVENTS, $scope, routerHelper, DOMAIN, loader, $compile, $window, paramHelper, dataservice, $timeout, localStorageService, log, $interval) {\r\n // Declaration variables\r\n var vm = this;\r\n vm.intId = -1;\r\n vm.busyMessage = 'Please wait...';\r\n vm.isBusy = true;\r\n vm.password = {oldPassword: '', newPassword: '', confirmPassword: '', expiried: false};\r\n vm.expiresLabel = '';\r\n vm.authData = {};\r\n vm.isAuthenticated = false;\r\n vm.pictureBasePath = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + '/';\r\n vm.userPermission = authenticationService.getPermission();\r\n vm.logout = logout;\r\n vm.openPasswordDialog = openPasswordDialog2;\r\n vm.goToProfile = goToProfile;\r\n vm.goToDashboard = goToDashboard;\r\n vm.athleteidOfAthleteUser = -1;\r\n vm.partnerLogo = '';\r\n $rootScope.sideMenuOpened = true;\r\n $rootScope.gridPage = 5;\r\n $rootScope.gridPageSizes = [4, 8, 20, 100];\r\n\r\n // SYNCFUSION 2 SETTINGS\r\n $rootScope.toolbarItems = ['ExcelExport', /*'pdfexport',*/ 'Print'];\r\n $rootScope.toolbarItemsWithDelete = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Delete'];\r\n $rootScope.toolbarItemsWithSearch = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Search'];\r\n $rootScope.toolbarItemsWithSearchAndDelete = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Delete', 'Search'];\r\n $rootScope.toolbarClick = function (args, grid) {\r\n if (args.item.id === (grid.element.id + '_excelexport')) {\r\n var origColumns = $.extend(true, [], grid.properties.columns);\r\n grid.properties.columns.forEach(function (c) {\r\n c.headerText = c.headerText.replace('<br>', ' ');\r\n });\r\n if (grid.columns[0].type === 'checkbox') {\r\n grid.columns[0].visible = false;\r\n grid.excelExport().then(function () {\r\n grid.columns[0].visible = true;\r\n });\r\n } else {\r\n grid.excelExport();\r\n }\r\n grid.properties.columns = $.extend(true, [], origColumns);\r\n }\r\n // if (args.item.id === (grid.element.id + '_pdfexport')) {\r\n // grid.pdfExport();\r\n // }\r\n if (args.item.id === (grid.element.id + '_print')) {\r\n grid.print({pageOrientation: 'Landscape'});\r\n }\r\n };\r\n $rootScope.compile = function compile(args, scope) {\r\n $timeout(function () {\r\n $compile(args)(scope);\r\n }, 100);\r\n };\r\n // checkBoxChange event\r\n $rootScope.checkBoxChangeOnlyOne = function (args, grid) {\r\n if (args.selectedRowIndexes.length > 1) {\r\n var el = $(grid.element).find('.e-checkselectall').next();\r\n el.addClass('e-uncheck');\r\n el.removeClass('e-check');\r\n grid.clearSelection();\r\n log.errorMsg('YouHaveToSelectOnlyOneRow');\r\n }\r\n };\r\n $rootScope.getSelectedItems = function (grid) {\r\n var selectedRowIndexes = grid.getSelectedRowIndexes();\r\n var items = [];\r\n selectedRowIndexes.forEach(function (element) {\r\n items.push(grid.selectionModule.contentRenderer.rows[element].data);\r\n });\r\n return items;\r\n };\r\n\r\n $rootScope.deleteRows = function (grid) {\r\n var selectedRowIndexes = grid.getSelectedRowIndexes();\r\n var indexes = selectedRowIndexes.sort(function (a, b) {\r\n return b - a;\r\n });\r\n indexes.forEach(function (i) {\r\n grid.dataSource.splice(i, 1);\r\n });\r\n grid.refresh();\r\n return grid.dataSource;\r\n };\r\n\r\n $rootScope.gridSelectedRowIndex = function (grid) {\r\n var indexes = [];\r\n var selectedIndexes = grid.getSelectedRowIndexes();\r\n selectedIndexes.forEach(function (indexId) {\r\n indexes.push((grid.pageSettings.currentPage - 1) * grid.pageSettings.pageSize + indexId);\r\n });\r\n return indexes;\r\n };\r\n $rootScope.checkRowSelection = function (grid, onlyOne) {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length === 0) {\r\n log.errorMsg('NoSelectedRow');\r\n return false;\r\n }\r\n if (onlyOne && selectedRows.length > 1) {\r\n log.errorMsg('YouHaveToSelectOnlyOneRow');\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n $rootScope.beforePrintGrid = function (args, gridColumns) {\r\n var gridObj = args.element.ej2_instances[0]; // instance for printing Grid\r\n if (gridColumns) {\r\n gridObj.hideColumns(gridColumns, 'field');\r\n gridObj.refresh();\r\n } else {\r\n gridObj.hideColumns('Link', 'field');\r\n gridObj.refresh();\r\n }\r\n };\r\n $rootScope.printCompleteGrid = function (args, gridColumns) {\r\n var gridObj = args.element.ej2_instances[0]; // instance for printing Grid\r\n if (gridColumns) {\r\n gridObj.showColumns(gridColumns, 'field');\r\n gridObj.refresh();\r\n } else {\r\n gridObj.showColumn('Link', 'field');\r\n gridObj.refresh();\r\n }\r\n };\r\n // VÉGE\r\n\r\n $rootScope.sideMenuOpen = function () {\r\n $rootScope.sideMenuOpened = true;\r\n };\r\n\r\n $rootScope.sideMenuClose = function () {\r\n $rootScope.sideMenuOpened = false;\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.intId = setInterval(TryRefreshToken, 1000);\r\n console.log('setInterval vm.intId', vm.intId);\r\n return $q(function (resolve) {\r\n vm.partnerLogoSmall = clientConfig.partnerLogoSmall;\r\n vm.partnerLogo = config.partnerLogo;\r\n logger.success(config.appTitle + ' loaded!', null);\r\n if (authenticationService.isAuthenticated()) {\r\n if (localStorageService.get('_authData').gridRecordPerPage) {\r\n $rootScope.gridPage = parseInt(localStorageService.get('gridRecordPerPage') || 10);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n pageSettings();\r\n haveToPay();\r\n resolve(true);\r\n } else {\r\n resolve(false);\r\n }\r\n });\r\n }\r\n\r\n function TryRefreshToken() {\r\n console.log('TryRefreshToken', vm.intId);\r\n if (!authenticationService.isAuthenticated()) {\r\n return;\r\n }\r\n var sikertopic = localStorage.getItem('sikertopic');\r\n var firebasetoken = localStorage.getItem('firebasetoken');\r\n var lang = authenticationService.getAuthData().language;\r\n if (authenticationService.isAuthenticated() && sikertopic && firebasetoken && sikertopic.length > 0 && firebasetoken.length > 0) {\r\n console.log('TOPIC:', sikertopic);\r\n console.log('TOKEN:', firebasetoken);\r\n console.log('LANG:', lang);\r\n dataservice.FirebaseSubscribeToTopic({topic: sikertopic, token: firebasetoken, lang: lang}).then(function (resp) {\r\n console.log('FirebaseSubscribeToTopic', resp);\r\n });\r\n clearInterval(vm.intId);\r\n }\r\n }\r\n\r\n var pageSize = 4;\r\n\r\n function pageSettings() {\r\n paramHelper.getParams([], ['gridRecordPerPage']).then(function (result) {\r\n if (result['gridRecordPerPage']) {\r\n pageSize = parseInt(result['gridRecordPerPage']);\r\n }\r\n $rootScope.pageSettings = {pageCount: 5, pageSize: pageSize, pageSizes: $rootScope.gridPageSizes};\r\n });\r\n }\r\n\r\n $scope.$watch('title', function () {\r\n $rootScope.htmlTitle = 'Siker 2.0 2019 - ' + $rootScope.title;\r\n });\r\n\r\n $scope.previousState;\r\n\r\n $scope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams, options) {\r\n pageSettings();\r\n if ($rootScope.monthlyAttendanceSaveInterval) {\r\n $interval.cancel($rootScope.monthlyAttendanceSaveInterval);\r\n $rootScope.monthlyAttendanceSaveInterval = undefined;\r\n }\r\n if (options.location === false && (fromState.url === '/eventsCalendar' || fromState.url === '/schedule')) {\r\n event.preventDefault();\r\n }\r\n $rootScope.actualState = toState;\r\n /*\r\n else {\r\n loader.start();\r\n }*/\r\n });\r\n\r\n $rootScope.stateList = [];\r\n\r\n $rootScope.fromBack = false;\r\n $scope.$on('$stateChangeSuccess', function (ev, to, toParams, from) {\r\n if (!$rootScope.fromBack) {\r\n $rootScope.stateList.push(from.name);\r\n }\r\n $scope.actual = to.name;\r\n //$log.log($rootScope.stateList);\r\n $rootScope.fromBack = false;\r\n // loader.end();\r\n });\r\n $scope.$on('$stateNotFound', function () {\r\n // loader.end();\r\n });\r\n $scope.$on('stateChangeError', function () {\r\n // loader.end();\r\n });\r\n\r\n $rootScope.back = function () {\r\n $rootScope.fromBack = true;\r\n var state = $rootScope.stateList.pop();\r\n if (state === angular.isUndefined || state === '') {\r\n state = 'dashboard';\r\n }\r\n $state.go(state);\r\n };\r\n\r\n $rootScope.home = function () {\r\n $state.go('dashboard');\r\n };\r\n\r\n $rootScope.login = function () {\r\n $state.go('login');\r\n loader.end();\r\n };\r\n\r\n // //\r\n // $rootScope.$watch(function () {\r\n // return authenticationService.isAuthenticated();\r\n // }, function (value) {\r\n // vm.isAuthenticated = value;\r\n // vm.authData = authenticationService.getAuthData();\r\n // });\r\n\r\n //Refres profile image broadcast handler\r\n $rootScope.$on(AUTH_EVENTS.refreshProfilePic, function (events, args) {\r\n vm.authData.picture = args;\r\n });\r\n\r\n function logout() {\r\n $rootScope.title = '';\r\n authenticationService.logout().then(function (result) {\r\n if (!result) {\r\n logger.error(gettextCatalog.getString('SignOutWasUnsucessful'));\r\n }\r\n });\r\n }\r\n\r\n function openPasswordDialog2() {\r\n $rootScope.$broadcast(LAYOUT_EVENTS.passwordChange);\r\n }\r\n\r\n // Watching variables change\r\n $rootScope.$watch(function () {\r\n return authenticationService.isAuthenticated();\r\n }, function (value) {\r\n vm.isAuthenticated = value;\r\n vm.authData = authenticationService.getAuthData();\r\n passwordDialogConf();\r\n });\r\n\r\n //\r\n function haveToPay() {\r\n dataservice.getHaveToPay().then(function (haveToPayResult) {\r\n if (haveToPayResult.retValue == true) {\r\n if (!localStorageService.get('marMegnezte')) {\r\n swal({\r\n title: gettextCatalog.getString('Message'),\r\n text: gettextCatalog.getString('AttenzioneDebitBalance'),\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n onOpen: function () {\r\n swal.showLoading();\r\n $timeout(function () {\r\n swal.hideLoading();\r\n swal.enableButtons();\r\n }, 3000);\r\n }\r\n }).then(function () {\r\n localStorageService.set('marMegnezte', {\r\n value: true,\r\n });\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Boradcast or emitt handlers\r\n $rootScope.$on(AUTH_EVENTS.login, function (events, args, permission) {\r\n haveToPay();\r\n if (args === '' || args === 'login') {\r\n switch (permission) {\r\n case '5':\r\n $state.go('parentDashboard');\r\n break;\r\n case '6':\r\n $state.go('athleteDashboard');\r\n break;\r\n default:\r\n $state.go('dashboard');\r\n break;\r\n }\r\n } else {\r\n $state.go(args);\r\n }\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.logout, function () {\r\n $state.go('login');\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.notAuthorized, function () {\r\n authenticationService.logout();\r\n });\r\n\r\n $rootScope.$on(LAYOUT_EVENTS.passwordChange, function () {\r\n passwordDialogConf();\r\n openPasswordDialog();\r\n });\r\n\r\n $rootScope.$on(LANG_EVENTS.changeLanguage, function (events, args) {\r\n $rootScope.setLanguage(args);\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.sessionTimeout, function () {\r\n if (!vm.isAuthenticated) {\r\n return;\r\n }\r\n authenticationService.setSessionTimeOut($state.current.name);\r\n });\r\n $(document).click(function(e) {\r\n if ($(e.target).is('#mainContent *') && window.innerWidth < 768) {\r\n $rootScope.$broadcast('autoCloseSideBar');\r\n }\r\n });\r\n\r\n function passwordDialogConf() {\r\n if (vm.authData) {\r\n var today = new Date();\r\n today.setHours(0, 0, 0, 0);\r\n var expiration = new Date(moment(vm.authData.pwdExpiration));\r\n expiration.setHours(0, 0, 0, 0);\r\n var diffDays = moment(vm.authData.pwdExpiration).diff(today, 'days');\r\n\r\n if (diffDays === 1) {\r\n var message = gettextCatalog.getString('YourPasswordIsAboutToExpire1') + ' ' + moment(vm.authData.pwdExpiration).format('YYYY-MM-DD');\r\n logger.info(message);\r\n vm.expiresLabel = message;\r\n openPasswordDialog();\r\n } else if (expiration <= today) {\r\n vm.password.expiried = true;\r\n var message = gettextCatalog.getString('YourPasswordExpired');\r\n vm.expiresLabel = message;\r\n openPasswordDialog();\r\n }\r\n }\r\n }\r\n\r\n function openPasswordDialog() {\r\n swal({\r\n title: gettextCatalog.getString('ChangePassword'),\r\n html: '<div id=\"passwordChangeModal\"><p ng-show=\"vm.expiresLabel.length !== 0\" style=\"color: red;\" id=\"expiresLabel\">{{vm.expiresLabel}}</p>' +\r\n '<form method=\"post\">' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Régi jelszó\" name=\"oldPassword\" id=\"oldPassword\" autofocus data-ng-model=\"vm.password.oldPassword\" type=\"password\" required tabindex=\"1\">' +\r\n '</div>' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Új jelszó\" name=\"newPassword\" id=\"newPassword\" data-ng-model=\"vm.password.newPassword\" type=\"password\" tabindex=\"2\">' +\r\n '</div>' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Új jelszó mégegyszer\" name=\"confirmPassword\" id=\"confirmPassword\" data-ng-model=\"vm.password.confirmPassword\" type=\"password\" tabindex=\"3\">' +\r\n '</div>' +\r\n '</form>' +\r\n '</div>',\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n vm.password.newPassword = document.getElementById('newPassword').value;\r\n vm.password.oldPassword = document.getElementById('oldPassword').value;\r\n vm.password.confirmPassword = document.getElementById('confirmPassword').value;\r\n\r\n if (!vm.password.newPassword || vm.password.newPassword.length < 4 || vm.password.newPassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n }\r\n if (vm.password.oldPassword.length === 0 || vm.password.newPassword.length === 0 || vm.password.confirmPassword.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('FellInAllElement'));\r\n }\r\n if (vm.password.newPassword !== vm.password.confirmPassword) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordsDontMatch'));\r\n }\r\n resolve();\r\n });\r\n },\r\n showCancelButton: !vm.password.expiried,\r\n allowEscapeKey: false,\r\n allowOutsideClick: false,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n $window.onkeydown = null;\r\n $window.onfocus = null;\r\n if (confirmed) {\r\n vm.error = '';\r\n dataservice.changePassword(vm.password.oldPassword, vm.password.newPassword)\r\n .then(function (data) {\r\n if (data.retValue === true && data.error.length === 0) {\r\n var expiration = new Date();\r\n vm.authData.expiration = expiration.setFullYear(expiration.getFullYear() + 1);\r\n logger.success(gettextCatalog.getString('PasswordChanged'));\r\n vm.password = {\r\n oldPassword: '',\r\n newPassword: '',\r\n confirmPassword: '',\r\n expiried: false\r\n };\r\n vm.expiresLabel = '';\r\n swal.close();\r\n logout();\r\n }\r\n }).catch(function () {\r\n logger.error(gettextCatalog.getString('SaveUnsuccessful'));\r\n openPasswordDialog();\r\n });\r\n } else {\r\n vm.password = {oldPassword: '', newPassword: '', confirmPassword: '', expiried: false};\r\n vm.expiresLabel = '';\r\n }\r\n }\r\n });\r\n\r\n $compile(angular.element('#passwordChangeModal'))($scope);\r\n angular.element('.confirm').removeAttr('tabindex');\r\n angular.element('#oldPassword').attr('tabindex', 1);\r\n angular.element('#newPassword').attr('tabindex', 2);\r\n angular.element('#confirmPassword').attr('tabindex', 3);\r\n }\r\n\r\n function openAthleteModify() {\r\n dataservice.getAthleteidBelongsToAthleteUser()\r\n .then(function (data) {\r\n vm.athleteidOfAthleteUser = data.data;\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': vm.athleteidOfAthleteUser},\r\n {'athleteModify.sportoloNev': vm.authData.loginName}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n });\r\n }\r\n\r\n function goToProfile() {\r\n $q.all([authenticationService.getRight('SPORTOLO')])\r\n .then(() => {\r\n $state.go('settings.userManagement.userSettings');\r\n });\r\n }\r\n\r\n function goToDashboard() {\r\n var permission = authenticationService.getPermission();\r\n switch (permission) {\r\n case '5':\r\n $state.go('parentDashboard');\r\n break;\r\n case '6':\r\n $state.go('athleteDashboard');\r\n break;\r\n default:\r\n $state.go('dashboard');\r\n break;\r\n }\r\n }\r\n\r\n loader.end();\r\n }\r\n})();\r\n\n/*jshint esversion: 6 */\r\n(function () {\r\n 'use strict';\r\n\n SidebarController.$inject = [\"$state\", \"authenticationService\", \"localStorageService\", \"dataservice\", \"$rootScope\", \"$scope\"];\r\n angular\r\n .module('app.layout')\r\n .controller('SidebarController', SidebarController);\r\n\r\n function SidebarController($state, authenticationService, localStorageService, dataservice, $rootScope, $scope) {\r\n var vm = this;\r\n vm.isCurrent = isCurrent;\r\n\r\n var language = authenticationService.getLanguage();\r\n var imgAppStoreSB = document.getElementById('NoAppStoreSB');\r\n imgAppStoreSB.src = '../../images/NoAppStore_' + language + '.png';\r\n vm.goToMobilePage = function goToMobilePage () {\r\n console.log('vm.goToMobilePage');\r\n $state.go('sikerMobile');\r\n };\r\n vm.noEducationalFee = localStorageService.get('noEducationalFee');\r\n vm.isAuthenticated = authenticationService.isAuthenticated();\r\n vm.permission = authenticationService.getPermission();\r\n vm.authenticated = authenticationService.isAuthenticated();\r\n vm.rights = authenticationService.getAuthData().accessRights;\r\n vm.checkPermissionGroup = checkPermissionGroup;\r\n vm.checkUserLevel = checkUserLevel;\r\n vm.hideAnyWay = hideAnyWay;\r\n vm.buildNumber = 'Siker 2.0 - 2019.03.06.';\r\n vm.getUnreadMessageCount = getUnreadMessageCount;\r\n $rootScope.INAKTIVMENUREJTES = true;\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n $scope.$on('msgRead', getUnreadMessageCount);\r\n\r\n getSystemSettings('INAKTIVMENUREJTES').then(function (res) {\r\n $rootScope.INAKTIVMENUREJTES = res;\r\n });\r\n vm.menuItemClicked = menuItemClicked;\r\n vm.messageCount = 0;\r\n getUnreadMessageCount();\r\n\r\n function checkPermissionGroup(activators) {\r\n if (activators) {\r\n if (activators.some(e => vm.rights.indexOf(e) !== -1)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function checkUserLevel(permission) {\r\n if (permission) {\r\n if (permission.some(e => vm.permission.indexOf(e) !== -1)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n // a 3 különböző dashboard és a szülői igazolás elrejtése végett\r\n function hideAnyWay (permission) {\r\n if (permission) {\r\n if (checkUserLevel(permission)) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n function getUnreadMessageCount() {\r\n dataservice.GetUnreadMessageCount().then(function(data) {\r\n vm.messageCount = data.res;\r\n });\r\n };\r\n\r\n function menuItemClicked(nav, level) {\r\n if (nav.settings.childRoutes === undefined || nav.settings.childRoutes.length === 0) {\r\n if (level === 1) {\r\n vm.level1Open = 0;\r\n vm.level2Open = 0;\r\n }\r\n if (window.innerWidth < 768) {\r\n $rootScope.$broadcast('autoCloseSideBar');\r\n }\r\n $state.go(nav.name);\r\n } else {\r\n switch (level) {\r\n case 1:\r\n if (nav.settings.navId === vm.level1Open) {\r\n vm.level1Open = 0;\r\n } else {\r\n vm.level1Open = nav.settings.navId;\r\n vm.level2Open = 0;\r\n }\r\n break;\r\n case 2:\r\n if (nav.settings.navId === vm.level2Open) {\r\n vm.level2Open = 0;\r\n } else {\r\n vm.level2Open = nav.settings.navId;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n\r\n function isCurrent(route) {\r\n if (!route.title || !$state.current || !$state.current.title) {\r\n return '';\r\n }\r\n var menuName = route.title;\r\n return $state.current.title === menuName ? 'current' : '';\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n LoginController.$inject = [\"$q\", \"dataservice\", \"logger\", \"authenticationService\", \"$state\", \"$rootScope\", \"LANG_EVENTS\", \"DOMAIN\", \"paramHelper\"];\r\n angular\r\n .module('app.login')\r\n .controller('LoginController', LoginController);\r\n\r\n function LoginController($q, dataservice, logger, authenticationService, $state, $rootScope, LANG_EVENTS, DOMAIN, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.title = 'Bejelentkezés';\r\n vm.loginName = '';\r\n vm.password = '';\r\n vm.defaultLang = '';\r\n vm.isAuthenticated = authenticationService.isAuthenticated();\r\n vm.sessionTimeout = false;\r\n vm.unknownUser = false;\r\n vm.loginWarning = '';\r\n vm.languageTemplate = '<img src=\\\"${icon}\\\" alt=\\\"lang\\\" height=\\\"20px\\\" width=\\\"20px\\\"/>' +\r\n '<span style=\\\"padding-left: 10px; vertical-align: middle\\\">${text}</span>';\r\n\r\n // Events\r\n vm.changeLanguage = changeLanguage;\r\n vm.changeLoginName = changeLoginName;\r\n vm.changePassword = changePassword;\r\n vm.login = login;\r\n vm.loginFocusOut = loginFocusOut;\r\n\r\n activate();\r\n\r\n function activate() {\r\n if (authenticationService.isAuthenticated()) {\r\n $state.go('dashboard');\r\n return;\r\n }\r\n var promises = [getAvailableLanguages(), loadSessionData()];\r\n $q.all(promises).then(function () {\r\n angular.element('#availableLang').ejDropDownList({dataSource: vm.availableLanguages});\r\n if (!authenticationService.isSessionTimeOut()) {\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', vm.defaultLang);\r\n } else {\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', authenticationService.getLanguage());\r\n }\r\n });\r\n }\r\n\r\n function getAvailableLanguages() {\r\n var browserLang = navigator.language || navigator.userLanguage;\r\n authenticationService.noEducationalFee();\r\n return dataservice.getAvailableLanguages().then(function (data) {\r\n data = data.itemsList;\r\n vm.availableLanguages = data;\r\n for (var i = 0; i < vm.availableLanguages.length; i++) {\r\n if (browserLang.toLowerCase().indexOf(vm.availableLanguages[i].value.toLowerCase()) >= 0) {\r\n vm.defaultLang = vm.availableLanguages[i].value;\r\n }\r\n }\r\n if (vm.defaultLang === '') {\r\n vm.defaultLang = data.d.defLanguage;\r\n }\r\n return vm.availableLanguages;\r\n });\r\n }\r\n\r\n function loadSessionData() {\r\n if (!authenticationService.isSessionTimeOut()) {\r\n return;\r\n }\r\n var user = authenticationService.getSessionData();\r\n vm.sessionTimeout = true;\r\n vm.loginName = user.loginName;\r\n }\r\n\r\n function login() {\r\n paramHelper.setUserNameParams(vm.loginName, [{'Login.Language': angular.element('#availableLang').ejDropDownList('getSelectedValue')}]);\r\n authenticationService.login(vm.loginName, vm.password, angular.element('#availableLang').ejDropDownList('getSelectedValue')).then(function (result) {\r\n if (!result) {\r\n angular.element('#loginName').addClass('error');\r\n angular.element('#password').addClass('error');\r\n vm.unknownUser = true;\r\n }\r\n });\r\n }\r\n\r\n function changeLanguage(args) {\r\n paramHelper.setUserNameParams(vm.loginName, [{'Login.Language': angular.element('#availableLang').ejDropDownList('getSelectedValue')}]);\r\n $rootScope.$broadcast(LANG_EVENTS.changeLanguage, args.value);\r\n vm.frmLogin.$setPristine();\r\n }\r\n\r\n function changeLoginName() {\r\n if (vm.unknownUser) {\r\n angular.element('#loginName').removeClass('error');\r\n }\r\n }\r\n function changePassword() {\r\n if (vm.unknownUser) {\r\n angular.element('#password').removeClass('error');\r\n }\r\n }\r\n\r\n function loginFocusOut() {\r\n paramHelper.getUserNameParams(vm.loginName, [], ['Login.Language']).then(function(args) {\r\n if (args['Login.Language']) {\r\n vm.defaultLang = args['Login.Language'];\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', vm.defaultLang);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.login')\r\n .directive('ngEnter', ngEnter);\r\n\r\n /* @ngInject */\r\n function ngEnter() {\r\n return {\r\n link: link,\r\n restrict: 'EA'\r\n };\r\n\r\n function link(scope, element, attrs) {\r\n element.bind('keydown keypress', function (event) {\r\n if (event.which === 13) {\r\n scope.$apply(function () {\r\n scope.$eval(attrs.ngEnter, {'event': event});\r\n });\r\n event.preventDefault();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.login')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'login',\r\n config: {\r\n url: '/login',\r\n templateUrl: 'app/login/login.html',\r\n controller: 'LoginController',\r\n controllerAs: 'vm',\r\n title: 'LogIn'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MessageCenterController.$inject = [\"$q\", \"$rootScope\", \"gettextCatalog\", \"dataservice\", \"$scope\", \"log\", \"authenticationService\", \"paramHelper\", \"$state\", \"$timeout\", \"DOMAIN\"];\r\n angular\r\n .module('app.messageCenter')\r\n .controller('MessageCenterController', MessageCenterController);\r\n\r\n function MessageCenterController($q, $rootScope, gettextCatalog, dataservice, $scope, log, authenticationService, paramHelper, $state, $timeout, DOMAIN) {\r\n let vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MessageCenterRecievedMessages');\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n //Grid nyomtatás, exportálás nyomógomb\r\n vm.isBusy = false;\r\n vm.listPageNumber = 1;\r\n vm.itemsPerMessage = 24;\r\n vm.messagePageNumber = 1;\r\n vm.listItemsPerPage = 24;\r\n vm.SelectedMessage = {};\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n vm.newMessage = false;\r\n vm.toolbarClick = toolbarClick;\r\n vm.loadMessageId = -1;\r\n vm.topicStarter = null;\r\n vm.messageImages = [];\r\n vm.recipients = [];\r\n vm.recipientsId = [];\r\n vm.recipientsList = [];\r\n vm.kicked = [];\r\n vm.tempRec = [];\r\n vm.Message = '';\r\n vm.profileImgBaseUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl;\r\n vm.messageImagesUrl = DOMAIN.baseURL + DOMAIN.messageImagesUrl;\r\n vm.searchInput = '';\r\n vm.unreadCount = 0;\r\n vm.dataMessages = [];\r\n vm.imageSet = imageSet;\r\n vm.getRecipients = getRecipients;\r\n vm.deleteAttachedImg = deleteAttachedImg;\r\n vm.removeUser = removeUser;\r\n vm.addUser = addUser;\r\n vm.selectUser = selectUser;\r\n vm.addUserDone = addUserDone;\r\n vm.addUserCancel = addUserCancel;\r\n vm.deleteImage = deleteImage;\r\n vm.searchUsers = searchUsers;\r\n vm.recipientsListSm = recipientsListSm;\r\n vm.getUnreadMessageCount = getUnreadMessageCount;\r\n vm.userFilter = userFilter;\r\n vm.getSeenName = getSeenName;\r\n\r\n $scope.$on('msgRead', getUnreadMessageCount);\r\n\r\n maxSize();\r\n activate();\r\n\r\n function activate() {\r\n setInterval(WaitForPushNotifications, 500);\r\n vm.dataMessages = [];\r\n vm.userid = authenticationService.getAuthData().id;\r\n dataservice.Cimjegyzek().then(function (data) {\r\n $timeout(function () {\r\n vm.userLevel = authenticationService.getPermission();\r\n vm.recipientsList = data.itemsList;\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n $q.all([paramHelper.getParams([], ['messageTargyId']), authenticationService.getRight('MEGTFELH'), authenticationService.getRight('UZENETMEGT'), authenticationService.getRight('UZENETTORLES')]).then(function (results) {\r\n vm.MEGTFELH = results[1];\r\n vm.UZENETMEGT = results[2];\r\n vm.UZENETTORLES = results[3];\r\n if (!vm.UZENETMEGT) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n refreshList();\r\n angular.element(document.querySelector('#message-list')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-list'));\r\n if (objDiv[0].scrollTop == objDiv[0].scrollHeight - objDiv[0].clientHeight) {\r\n vm.listPageNumber += 1;\r\n loadMoreListItem();\r\n }\r\n });\r\n $timeout(function () {\r\n if (vm.openedMessageTargyId > 0) {\r\n getMessages(vm.openedMessageTargyId);\r\n }\r\n }, 100);\r\n });\r\n }\r\n\r\n function WaitForPushNotifications() {\r\n var pushnotification = localStorage.getItem('pushnotification');\r\n if (pushnotification && pushnotification.length > 0) {\r\n localStorage.removeItem('pushnotification');\r\n var payload = JSON.parse(pushnotification);\r\n if (payload.data.page == 'messages') {\r\n refreshList();\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n $scope.$apply();\r\n }, 200);\r\n if (payload.data.contentid == vm.openedMessageTargyId) {\r\n getMessages(vm.openedMessageTargyId);\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n $scope.$apply();\r\n }, 200);\r\n }\r\n }\r\n }\r\n }\r\n\r\n function toolbarClick(id) {\r\n switch (id) {\r\n case 'new_msg':\r\n vm.newMessage = true;\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n addUser();\r\n break;\r\n case 'del_msg':\r\n if (!vm.openedMessageTargyId) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectAMessage'));\r\n return;\r\n }\r\n if (vm.topicStarter == vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('MsgDelMessagePermissionError'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantDelete'),\r\n text: gettextCatalog.getString('DoYouWantDeleteDesc'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (!vm.UZENETTORLES) {\r\n log.errorMsg(gettextCatalog.getString('MsgDelMessagePermissionError'));\r\n return;\r\n }\r\n if (isConfirm.value) {\r\n dataservice.SikerMobileFreeDeleteMessages(vm.openedMessageTargyId).then(function () {\r\n log.infoMsg('MessageMarkAsDeleted');\r\n refreshList();\r\n });\r\n $timeout(function() {\r\n vm.SelectedMessage = {};\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n break;\r\n case 'unsub_msg':\r\n if (vm.topicStarter == vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('YouCannotLeaveThisConversationBecouseYouCreatedIt'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToLeave'),\r\n text: gettextCatalog.getString('DoYouWantToLeaveDesc'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.SikerMobileFreeLeaveConversation(vm.openedMessageTargyId).then(function() {\r\n log.infoMsg('UnsubbedFromTopic');\r\n refreshList();\r\n });\r\n }\r\n });\r\n break;\r\n }\r\n }\r\n\r\n function refreshList() {\r\n let pageNumber = vm.listPageNumber * vm.listItemsPerPage;\r\n dataservice.GetMessageGroups(1, pageNumber).then(function(data) {\r\n vm.dataMessages = data.itemsList;\r\n if (vm.dataMessages.some(elem => elem.TargyId == vm.openedMessageTargyId)) {\r\n getRecipients(vm.openedMessageTargyId);\r\n }\r\n getUnreadMessageCount();\r\n });\r\n }\r\n\r\n vm.messageClicked = function (index) {\r\n vm.isBusy = false;\r\n vm.messagePageNumber = 1;\r\n vm.SelectedMessage = vm.dataMessages[index];\r\n vm.openedMessageTargyId = vm.SelectedMessage.TargyId;\r\n vm.selectedMessageIndex = index;\r\n addUserCancel();\r\n vm.recipients = vm.dataMessages[index].Kikkel;\r\n\r\n paramHelper.setParams([{\r\n 'messageTargyId': vm.openedMessageTargyId\r\n }]);\r\n if (vm.SelectedMessage.Olvasott) {\r\n setTimeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n } else {\r\n vm.SelectedMessage.Olvasott = true;\r\n }\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n vm.messageImages = [];\r\n getMessages(vm.openedMessageTargyId);\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n }, 500);\r\n };\r\n\r\n function getMessages(targyId) {\r\n getRecipients(targyId);\r\n vm.SelectedMessageDateSource = null;\r\n dataservice.getMessages(targyId).then(function (result) {\r\n vm.SelectedMessageDateSource = result.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n }\r\n\r\n vm.messageSend = function () {\r\n if (!vm.Message && $scope.files.length == 0) {\r\n vm.Message = '';\r\n return;\r\n } else if ($scope.files.length > 0 && vm.Message == '') {\r\n vm.Message = gettextCatalog.getString('picture') + '(' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = vm.Message.trim();\r\n }\r\n\r\n if (!vm.openedMessageTargyId && !vm.newMessage) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectAMessage'));\r\n } else if (vm.newMessage) {\r\n if (!vm.Message || vm.Message == '' || vm.Message == null) {\r\n if ($scope.files.length > 0) {\r\n vm.Message = gettextCatalog.getString('picture') + '(' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = '';\r\n return;\r\n }\r\n }\r\n if (!vm.tempRec || vm.tempRec.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectRecipient'));\r\n return;\r\n }\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0%'});\r\n\r\n vm.Obj = {};\r\n vm.Obj.Ids = [];\r\n vm.Obj.base64_images = [];\r\n for (let i = 0; i < vm.tempRec.length; i++) {\r\n vm.Obj.Ids.push(vm.tempRec[i].usersof);\r\n }\r\n if ($scope.files.length > 0) {\r\n for (let i = 0; i < $scope.files.length; i++) {\r\n vm.Obj.base64_images.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n }\r\n vm.Obj.Message = vm.Message;\r\n dataservice.SikerMobileFreeSendNewMessage(vm.Obj).then(function (result) {\r\n log.successMsg('SendSuccessful');\r\n vm.Message = null;\r\n vm.SelectedMessageDateSource = result.messageListResponse.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n refreshList();\r\n addUserCancel();\r\n vm.openedMessageTargyId = result.id;\r\n });\r\n } else {\r\n if (!vm.Message || vm.Message == '' || vm.Message == null) {\r\n if ($scope.files.length > 0 && vm.Message == '') {\r\n vm.Message = 'Képek (' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = '';\r\n return;\r\n }\r\n }\r\n if ($scope.files.length > 0) {\r\n for (let i = 0; i < $scope.files.length; i++) {\r\n vm.messageImages.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n }\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: vm.Message, base64_images: vm.messageImages, recipients: vm.recipients, kicked: vm.kicked};\r\n vm.Message = '';\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n log.successMsg(gettextCatalog.getString('SendSuccessful'));\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.selectedMessageIndex = 0;\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n refreshList();\r\n }\r\n });\r\n }\r\n };\r\n\r\n vm.finished = function () {\r\n let objDiv = $('#message-detail');\r\n // ne kerülön vissza a\r\n if (vm.messagePageNumber == 1) {\r\n $timeout(function() {\r\n objDiv[0].scrollTop = objDiv[0].scrollHeight;\r\n }, 0);\r\n }\r\n };\r\n\r\n function loadMoreListItem() {\r\n dataservice.GetMessageGroups(vm.listPageNumber).then(function (resp) {\r\n if (resp.itemsList.length == 0) {\r\n vm.listPageNumber -= 1;\r\n angular.element(document.querySelector('#message-list')).unbind('scroll');\r\n return;\r\n }\r\n resp.itemsList.forEach(function (item) {\r\n vm.dataMessages.push(item);\r\n });\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n function loadMoreMessage() {\r\n dataservice.getMessages(vm.openedMessageTargyId, vm.messagePageNumber, vm.itemsPerMessage).then(function (resp) {\r\n if (resp.itemsList.length == 0) {\r\n vm.listPageNumber += 1;\r\n angular.element(document.querySelector('#message-detail')).unbind('scroll');\r\n return;\r\n }\r\n let objDivBefore = $('#message-detail');\r\n let rowSizeBeforeLoadMore = objDivBefore[0].scrollHeight - objDivBefore[0].clientHeight;\r\n resp.itemsList.reverse().forEach(function (item) {\r\n vm.SelectedMessageDateSource.unshift(item);\r\n });\r\n\r\n $timeout(function () {\r\n vm.isBusy = false;\r\n let objDivAfter = $('#message-detail');\r\n let rowSizeAfterLoadMore = objDivAfter[0].scrollHeight - objDivAfter[0].clientHeight;\r\n objDivAfter[0].scrollTop = rowSizeAfterLoadMore - rowSizeBeforeLoadMore;\r\n $scope.$apply();\r\n }, 0);\r\n imageSet(vm.SelectedMessageDateSource);\r\n });\r\n }\r\n\r\n function imageSet(array) {\r\n for (let i = 0; i < array.length; i++) {\r\n if (array[i]['images'] != null) {\r\n for (let j = 0; j < array[i]['images'].length; j++) {\r\n array[i]['images'][j] = array[i]['images'][j].replace('_thumb', '');\r\n }\r\n }\r\n }\r\n $timeout(function () {\r\n $('.message-wrapper').each(function () {\r\n $(this).magnificPopup({\r\n delegate: 'a',\r\n type: 'image',\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n });\r\n }, 100);\r\n }\r\n\r\n function getRecipients(subjectId) {\r\n dataservice.GetRecipientsBySubjectId(subjectId).then(function (response) {\r\n vm.recipients = response.itemsList;\r\n vm.topicStarter = response.admin;\r\n vm.recipientsId = [];\r\n vm.kicked = [];\r\n vm.tempRec = [];\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.fileData = [];\r\n vm.newMessage = false;\r\n for (let i = 0; i < vm.recipients.length; i++) {\r\n vm.recipientsId.push(vm.recipients[i].value);\r\n }\r\n });\r\n }\r\n\r\n function deleteAttachedImg(index) {\r\n $scope.files.splice(index, 1);\r\n $scope.imageDatas.splice(index, 1);\r\n if ($scope.files.length == 0) {\r\n maxSize();\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n }\r\n }\r\n\r\n function removeUser(index) {\r\n if (vm.topicStarter != vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('MsgModifyRecipientPermission'));\r\n return;\r\n }\r\n if (vm.recipients.length < 2) {\r\n vm.toolbarClick('del_msg');\r\n return;\r\n }\r\n let id = vm.recipients[index].value;\r\n let name = vm.recipients[index].text;\r\n swal({\r\n title: gettextCatalog.getString('MsgModifyRecipientAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('MsgModifyRecipientYes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.kicked.push(id);\r\n vm.recipientsId.splice(index, 1);\r\n let msg = name + ' ' + gettextCatalog.getString('MsgRemovedRecipientFromConv');\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: msg, recipients: vm.recipientsId, kicked: vm.kicked};\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n getRecipients(vm.openedMessageTargyId);\r\n refreshList();\r\n vm.Message = null;\r\n vm.kicked = [];\r\n maxSize();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function addUser() {\r\n $('#addUser').css({'left': '0%'});\r\n $('#recipient-container').css({'left': '-100%'});\r\n if (window.innerWidth < 768) {\r\n $('#recipients-wrapper').delay(500).animate({'top': '50px'}, 500);\r\n }\r\n }\r\n\r\n function selectUser(index) {\r\n if (vm.tempRec.includes(index)) {\r\n vm.tempRec.splice(vm.tempRec.indexOf(index), 1);\r\n } else {\r\n vm.tempRec.push(index);\r\n }\r\n }\r\n\r\n function addUserDone() {\r\n if (vm.tempRec.length < 1) {\r\n addUserCancel();\r\n return;\r\n }\r\n if (!vm.newMessage) {\r\n swal({\r\n title: gettextCatalog.getString('MsgModifyRecipientAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('MsgModifyRecipientYes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0%'});\r\n let msg = '';\r\n for (let i = 0; i < vm.tempRec.length; i++) {\r\n vm.recipientsId.push(vm.tempRec[i].value);\r\n if (vm.tempRec.length - 1 !== i) {\r\n msg += vm.tempRec[i].text + ', ';\r\n } else {\r\n msg += vm.tempRec[i].text + ' ';\r\n }\r\n }\r\n vm.tempRec = [];\r\n msg += ' ' + gettextCatalog.getString('MsgRecipientsAdded');\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: msg, recipients: vm.recipientsId, kicked: vm.kicked};\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n getRecipients(vm.openedMessageTargyId);\r\n refreshList();\r\n vm.Message = null;\r\n $('#msgImg').css({'height': '0px'});\r\n maxSize();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function addUserCancel() {\r\n if (window.innerWidth < 768) {\r\n $('#recipients-wrapper').animate({'top': '-400px'}, 500, function() {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0'});\r\n });\r\n } else {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0'});\r\n }\r\n $('#addUser div ul').slideUp(750);\r\n if (vm.newMessage) {\r\n vm.newMessage = false;\r\n vm.openedMessageTargyId = null;\r\n }\r\n vm.tempRec = [];\r\n vm.results = [];\r\n vm.searchInput = '';\r\n }\r\n\r\n function deleteImage(imgPath, feladoId) {\r\n if (vm.userid != feladoId) {\r\n log.errorMsg(gettextCatalog.getString('MsgDeleteImagePermission'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('MsgDeleteImageAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteMessageImage(JSON.stringify(imgPath)).then(function() {\r\n getMessages(vm.openedMessageTargyId);\r\n refreshList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function searchUsers(key) {\r\n vm.results = [];\r\n let regex = new RegExp(key, 'gi');\r\n vm.recipientsList.forEach(function(item) {\r\n if (item.text.match(regex)) {\r\n vm.results.push(item);\r\n }\r\n });\r\n }\r\n\r\n function maxSize() {\r\n let height = $('html').height();\r\n if (window.innerWidth < 768) {\r\n $('#mainPage-message-wrapper').height(height - 82);\r\n $('#message-detail').height(height - 175);\r\n $('#recipients-wrapper').css({'top': '-400px'});\r\n } else {\r\n $('#mainPage-message-wrapper').height(height - 50);\r\n $('#message-detail').height(height - 145);\r\n $('#recipients-wrapper').css({'top': '0'});\r\n }\r\n }\r\n\r\n function recipientsListSm(action) {\r\n if (action == 'open') {\r\n $('#recipients-wrapper').animate({'top': '50px'});\r\n } else {\r\n $('#recipients-wrapper').animate({'top': '-400px'});\r\n }\r\n }\r\n\r\n function getUnreadMessageCount() {\r\n dataservice.GetUnreadMessageCount().then(function(data) {\r\n vm.unreadCount = data.res;\r\n });\r\n };\r\n\r\n function userFilter(id) {\r\n return vm.recipients.some(elem => elem.value == id);\r\n }\r\n\r\n function getSeenName(id) {\r\n var res = '';\r\n vm.recipients.forEach(elem => {\r\n if (elem.value == id) {\r\n res = elem.text;\r\n }\r\n });\r\n return res;\r\n }\r\n\r\n // EVENTEK\r\n // full címjegyzék eventek\r\n $('#addUser div').on('click', function() {\r\n if ($(this).children('ul').css('display') !== 'none') {\r\n $(this).children('ul').slideUp(750);\r\n } else {\r\n $('#addUser div ul').slideUp(750);\r\n $(this).children('ul').slideDown(750);\r\n }\r\n });\r\n $('#addUser div ul').on('click', function(e) {\r\n e.stopPropagation();\r\n });\r\n\r\n // csatolt képek megjelenítése küldés előtt\r\n $timeout(function() {\r\n $('#addFile').on('change', function() {\r\n $('#messageInput').prop('disabled', true);\r\n });\r\n $scope.$apply();\r\n }, 100);\r\n\r\n window.addEventListener('resize', () => {\r\n maxSize();\r\n });\r\n\r\n window.addEventListener('keypress', (e) => {\r\n if (e.key == 'Enter') {\r\n e.preventDefault();\r\n vm.messageSend();\r\n }\r\n });\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.messageCenter')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'messageCenter',\r\n config: {\r\n url: '/messageCenter',\r\n templateUrl: 'app/messageCenter/messageCenter.html',\r\n controller: 'MessageCenterController',\r\n controllerAs: 'vm',\r\n title: 'MessageCenter',\r\n settings: {\r\n navId: 9,\r\n level: 1,\r\n order: 9,\r\n parentId: 0,\r\n content: 'MessageCenter',\r\n faIcon: 'fa-comments',\r\n permission: ['0', '1', '2', '3', '4', '5', '6'],\r\n activatorPermission: ['\"UZENETMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n FilesController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"DOMAIN\"];\r\n angular\r\n .module('app.other.files')\r\n .controller('FilesController', FilesController);\r\n\r\n function FilesController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, DOMAIN) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = $rootScope.title + gettextCatalog.getString('Contracts');\r\n vm.title = gettextCatalog.getString('Contracts');\r\n\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#fitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n vm.selectedRow = -1;\r\n vm.deleteFile = deleteFile;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectedRowIndex: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {browse: gettextCatalog.getString('ChooseFile'), upload: gettextCatalog.getString('UploadFile'), cancel: gettextCatalog.getString('CancelUpload')},\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {title: gettextCatalog.getString('UploadedFilesTitle'), name: gettextCatalog.getString('FileName'), size: gettextCatalog.getString('FileSize'), status: gettextCatalog.getString('FileStatus')},\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls,.mp4,.avi',\r\n complete: function () {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles();\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc, .docx, .pdf, .xls, .mp4, .avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: vm.tipus, tablaId: vm.tablaId};\r\n }\r\n });\r\n\r\n var promises = [paramHelper.getParams([], ['files.tipus', 'files.tablaId', 'weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.trainingPlanId', 'weeklyTrainingPlan.edzoNev', 'weeklyTrainingPlan.szakosztalyNev', 'weeklyTrainingPlan.korosztalyNev'])];\r\n\r\n return $q.all(promises).then(function (results) {\r\n if (angular.isDefined(results[0]['files.tipus'])) {\r\n vm.tipus = results[0]['files.tipus'];\r\n }\r\n if (angular.isDefined(results[0]['files.tablaId'])) {\r\n vm.tablaId = results[0]['files.tablaId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.edzoId'])) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.edzoNev'])) {\r\n vm.coachName = results[0]['weeklyTrainingPlan.edzoNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.szakosztalyId'])) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.szakosztalyNev'])) {\r\n vm.sectionName = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.korosztalyId'])) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.korosztalyNev'])) {\r\n vm.ageGroupName = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.ev'])) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n }\r\n getFiles();\r\n });\r\n }\r\n\r\n function getFiles() {\r\n dataservice.getFilesList(vm.tipus, vm.tablaId).then(\r\n function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function deleteFile() {\r\n if (grid.getSelectedRowIndexes().size === 0) {\r\n log.errorMsg('SelectFile');\r\n return;\r\n }\r\n\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected file?'),\r\n text: gettextCatalog.getString('You will not be able to recover it!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this file'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteFiles(vm.data[grid.getSelectedRowIndexes()[0]].Id).then(\r\n function() {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n getFiles();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.other.files')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'other.files',\r\n config: {\r\n url: '/files',\r\n templateUrl: 'app/other/files/files.html',\r\n controller: 'FilesController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.other')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'other',\r\n config: {\r\n title: 'Other',\r\n url: '/other',\r\n templateUrl: 'app/other/other.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DashboardController.$inject = [\"$q\", \"dataservice\", \"log\", \"DOMAIN\", \"$location\", \"paramHelper\", \"$state\", \"$scope\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$timeout\"];\r\n angular\r\n .module('app.paint')\r\n .controller('PaintController', DashboardController);\r\n\r\n function DashboardController($q, dataservice, log, DOMAIN, $location, paramHelper, $state, $scope, authenticationService, gettextCatalog, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Paint');\r\n\r\n vm.enabledResizeRotate = false;\r\n var canvas;\r\n var ctx;\r\n var interval = null;\r\n\r\n var WIDTH = $('#canvasWrapper').width() - 17;\r\n var HEIGHT = WIDTH / 594 * 319;\r\n\r\n var scaleWidth = 1;\r\n var scaleHeight = 1;\r\n /*\r\n Modes:\r\n 0 - Pen\r\n 1 - Select\r\n 2 - Resize\r\n 3 - Rotate\r\n */\r\n vm.activeMode = 1;\r\n\r\n var paintId = null;\r\n vm.public = false;\r\n vm.sectionDropDownEnabled = true;\r\n vm.checkBoxEnabled = false;\r\n vm.deleteEnabled = false;\r\n\r\n vm.clickedElement = null;\r\n var clickedElementIndex = -1;\r\n\r\n var maxUndoStates = 10;\r\n var lineSize = 3;\r\n vm.background = 6;\r\n var arrowPointRadius = 15;\r\n var lineId = 0;\r\n var color = '#000000';\r\n var textColor = '#ffffff';\r\n var fontSize = 18;\r\n var font = fontSize + 'pt Arial';\r\n vm.label = '';\r\n var objectCounter = 0;\r\n\r\n var imageWidth = WIDTH;\r\n var imageHeight = HEIGHT;\r\n var imageObj = null;\r\n\r\n // Visszavonáshoz\r\n var stateLast = true;\r\n vm.stateId = -1;\r\n var states = [];\r\n\r\n // Animációhoz\r\n var selectedAnimationId = -1;\r\n vm.animationStates = [];\r\n\r\n // Mentés és betöltés\r\n vm.paintName = '';\r\n vm.sectionId = null;\r\n vm.agegroupId = null;\r\n vm.agegroupValue = null;\r\n vm.ageGroupList = [];\r\n\r\n var lines = [];\r\n var objects = [];\r\n\r\n function saveState() {\r\n if (stateLast === false) {\r\n for (var i = maxUndoStates; i > vm.stateId; i--) {\r\n states.splice(i, 1);\r\n }\r\n stateLast = true;\r\n }\r\n var stateTemp = {lines: $.extend(true, [], lines), objects: $.extend(true, [], objects), lineId: lineId};\r\n stateTemp.objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n if (vm.stateId < maxUndoStates) {\r\n states.push(stateTemp);\r\n vm.stateId++;\r\n } else {\r\n states.shift();\r\n states.push(stateTemp);\r\n }\r\n vm.redoEnable = false;\r\n scopeApply();\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(0, vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n $timeout(function () {\r\n if (vm.agegroupValue) {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.agegroupValue);\r\n vm.selectedAgeGroup = vm.agegroupValue;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n vm.sectionDataBound = function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n };\r\n\r\n vm.ageGroupDataBound = function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroup = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n };\r\n\r\n vm.sectionSelect = function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n };\r\n\r\n vm.agegroupSelect = function agegroupSelect(args) {\r\n vm.agegroupId = args.value;\r\n };\r\n\r\n vm.undo = function undo() {\r\n if (vm.stateId > 0) {\r\n stateLast = false;\r\n vm.stateId--;\r\n lines = $.extend(true, [], states[vm.stateId].lines);\r\n objects = $.extend(true, [], states[vm.stateId].objects);\r\n lineId = states[vm.stateId].lineId;\r\n }\r\n vm.redoEnable = true;\r\n };\r\n\r\n vm.redo = function redo() {\r\n if (stateLast === false && vm.stateId + 1 < states.length) {\r\n vm.stateId++;\r\n lines = $.extend(true, [], states[vm.stateId].lines);\r\n objects = $.extend(true, [], states[vm.stateId].objects);\r\n lineId = states[vm.stateId].lineId;\r\n }\r\n if (stateLast === false && vm.stateId + 1 < states.length) {\r\n vm.redoEnable = true;\r\n } else {\r\n vm.redoEnable = false;\r\n }\r\n };\r\n\r\n var backgrounds = [{\r\n text: gettextCatalog.getString('FootballPitch'),\r\n src: '/images/football_pitch.png',\r\n value: 1\r\n },\r\n {text: gettextCatalog.getString('Grass'), src: '/images/green_background.png', value: 2},\r\n {text: gettextCatalog.getString('BasketballCourt'), src: '/images/basketball_court.png', value: 3},\r\n {text: gettextCatalog.getString('HandballCourt'), src: '/images/handball_court.png', value: 4},\r\n {text: gettextCatalog.getString('HockeyRink'), src: '/images/hockey_rink.jpeg', value: 5},\r\n {text: gettextCatalog.getString('NoBackground'), src: '/images/none.png', value: 6}];\r\n\r\n function init() {\r\n getSections();\r\n // Háttér választó\r\n $('#Background').ejDropDownList({\r\n dataSource: backgrounds,\r\n value: vm.background,\r\n template: '<div><img src=\"${src}\" style=\"height: 30px;margin-right: 1em;\"/>${text}</div>',\r\n change: backgroundChanged,\r\n enabled: vm.checkBoxEnabled,\r\n width: 250\r\n });\r\n\r\n // Vonal vastagság választó\r\n $('#LineSize').ejDropDownList({\r\n dataSource: [{text: gettextCatalog.getString('LineSize1'), src: '/images/line_size_1.png', value: 1},\r\n {text: gettextCatalog.getString('LineSize2'), src: '/images/line_size_3.png', value: 3},\r\n {text: gettextCatalog.getString('LineSize3'), src: '/images/line_size_5.png', value: 5}],\r\n value: lineSize,\r\n template: '<div><img src=\"${src}\"/></div>',\r\n change: penWidthChanged,\r\n enabled: vm.checkBoxEnabled,\r\n width: 200\r\n });\r\n\r\n // Háttérszínválasztó\r\n $('#Color').ejColorPicker({\r\n value: color,\r\n enableOpacity: false,\r\n change: colorChanged,\r\n enabled: vm.checkBoxEnabled,\r\n modelType: 'Palette'\r\n });\r\n\r\n // Szövegszínválasztó\r\n $('#TextColor').ejColorPicker({\r\n value: textColor,\r\n enableOpacity: false,\r\n change: textColorChanged,\r\n enabled: vm.checkBoxEnabled,\r\n modelType: 'Palette'\r\n });\r\n\r\n // Canvas létrehozása\r\n canvas = document.getElementById('canvas');\r\n // Szélesség a maximális szélesség\r\n canvas.width = WIDTH;\r\n // Magasság alapértelmezett\r\n canvas.height = WIDTH / 594 * 319;\r\n // Context mentése\r\n ctx = canvas.getContext('2d');\r\n // Vonalvastagás, betűtípus, betűméret beállítása\r\n ctx.lineSize = lineSize;\r\n ctx.font = '16px Arial';\r\n // Click esemény beállítása\r\n canvas.onmousedown = canvasClicked;\r\n\r\n //paramHelper.setParams([{'Paint.id': 3}]);\r\n paramHelper.getParams([], ['Paint.id']).then(function (result) {\r\n paintId = result['Paint.id'];\r\n // paintId = 3;\r\n paramHelper.removeParam('Paint.id');\r\n if (paintId) {\r\n dataservice.getPaint({id: paintId}).then(function (res) {\r\n vm.authData = authenticationService.getAuthData();\r\n vm.sectionDropDownEnabled = false;\r\n var response = res.retValue;\r\n if (response.userId === parseInt(vm.authData.id)) {\r\n vm.checkBoxEnabled = true;\r\n vm.deleteEnabled = true;\r\n $('#Background').ejDropDownList('enable');\r\n $('#LineSize').ejDropDownList('enable');\r\n $('#Color').ejColorPicker('enable');\r\n }\r\n var data = JSON.parse(response.data);\r\n vm.paintName = response.paintName;\r\n vm.sectionId = response.sectionId;\r\n vm.sectionSelect({value: vm.sectionId});\r\n vm.agegroupId = response.agegroupId;\r\n vm.agegroupValue = response.agegroupId;\r\n vm.selectedAgeGroup = response.agegroupId;\r\n lineId = data.lineId;\r\n objectCounter = data.objectCounter;\r\n ctx.scale(WIDTH / data.imageWidth, HEIGHT / data.imageHeight);\r\n scaleWidth = WIDTH / data.imageWidth;\r\n scaleHeight = HEIGHT / data.imageHeight;\r\n imageWidth = data.imageWidth;\r\n imageHeight = data.imageHeight;\r\n $('#Background').ejDropDownList('selectItemByValue', data.background);\r\n vm.public = response.publikus;\r\n data.animationStates.forEach(function (el) {\r\n el.objects.forEach(function (el2) {\r\n if (el2.type === 'ball') {\r\n var tmp = el2.image;\r\n el2.image = new Image();\r\n el2.image.src = tmp;\r\n }\r\n });\r\n });\r\n vm.animationStates = data.animationStates;\r\n lines = data.lines;\r\n data.objects.forEach(function (el) {\r\n if (el.type === 'ball') {\r\n var tmp = el.image;\r\n el.image = new Image();\r\n el.image.src = tmp;\r\n }\r\n });\r\n objects = data.objects;\r\n });\r\n }\r\n\r\n // Kirajzolás intervalból hivása\r\n saveState();\r\n interval = setInterval(draw, 10);\r\n });\r\n }\r\n\r\n // Rajzoló metódusok\r\n // Kör\r\n function circle(x, y, r) {\r\n ctx.beginPath();\r\n ctx.arc(x, y, r, 0, 2 * Math.PI, false);\r\n ctx.fill();\r\n ctx.stroke();\r\n }\r\n\r\n // Téglalap\r\n function rect(x, y, w, h) {\r\n ctx.beginPath();\r\n ctx.rect(x, y, w, h);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function triangle(x, y, w, h) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(x, y + h);\r\n ctx.lineTo(x + w, y + h);\r\n ctx.lineTo(x + w / 2, y);\r\n ctx.lineTo(x, y + h);\r\n ctx.lineTo(x + w, y + h);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function pentagon(x, y, w) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n var numberOfSides = 5;\r\n var size = w * 0.6;\r\n var Xcenter = x;\r\n var Ycenter = y;\r\n\r\n ctx.beginPath();\r\n ctx.moveTo(Xcenter + size * Math.cos(0), Ycenter + size * Math.sin(0));\r\n\r\n for (var i = 1; i <= numberOfSides; i += 1) {\r\n ctx.lineTo(Xcenter + size * Math.cos(i * 2 * Math.PI / numberOfSides), Ycenter + size * Math.sin(i * 2 * Math.PI / numberOfSides));\r\n }\r\n\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Vonal\r\n function line(x1, y1, x2, y2) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(x1, y1);\r\n ctx.lineTo(x2, y2);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Szaggatott vonal\r\n function dashedLine(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([5, 5]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Szaggatott vonal\r\n function dashedLine2(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([10, 5]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Nyíl\r\n function arrow(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function sine(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n\r\n var oFromx = fromx;\r\n var oFromy = fromy;\r\n\r\n tox = tox - fromx;\r\n fromx = 0;\r\n toy = toy - fromy;\r\n fromy = 0;\r\n\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.lineJoin = 'round';\r\n\r\n var unit = 3;\r\n var x = fromx;\r\n var y = Math.sin(x);\r\n\r\n var cosalfa = Math.cos(angle);\r\n var sinalfa = Math.sin(angle);\r\n\r\n var length = Math.sqrt(Math.pow(tox - fromx, 2) + Math.pow(toy - fromy, 2));\r\n\r\n ctx.moveTo(fromx + oFromx, unit * y + fromy + oFromy);\r\n\r\n var newX;\r\n var newY;\r\n\r\n // Loop to draw segments\r\n for (var i = 0; i <= length; i += 1) {\r\n x = i / unit;\r\n y = Math.sin(x);\r\n\r\n var oldX = fromx + i;\r\n var oldY = unit * y + fromy;\r\n\r\n newX = oldX * cosalfa - oldY * sinalfa;\r\n newY = oldX * sinalfa + oldY * cosalfa;\r\n\r\n ctx.lineTo(newX + oFromx, newY + oFromy);\r\n }\r\n\r\n ctx.stroke();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n\r\n x = newX + oFromx - headlen / 2 * Math.cos(angle + Math.PI / 2);\r\n y = newY + oFromy - headlen / 2 * Math.sin(angle + Math.PI / 2);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(x, y);\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 2), y + headlen * Math.sin(angle + Math.PI / 2));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 7), y + headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(x, y);\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 2), y + headlen * Math.sin(angle + Math.PI / 2));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Canvas törlése\r\n function clear() {\r\n ctx.clearRect(0, 0, WIDTH, HEIGHT);\r\n }\r\n\r\n // Vonalvastagság változik\r\n function penWidthChanged(args) {\r\n lineSize = args.value;\r\n }\r\n\r\n // Szín változik\r\n function colorChanged(args) {\r\n color = args.value;\r\n }\r\n\r\n // Szín változik\r\n function textColorChanged(args) {\r\n textColor = args.value;\r\n }\r\n\r\n // Klikk esemény\r\n function canvasClicked(e) {\r\n if (!vm.checkBoxEnabled) {\r\n return;\r\n }\r\n // Ha kijelölő mód aktív\r\n if (vm.activeMode !== 0) {\r\n // x, y koordináta meghatározása\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n var y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n // előző kijelölés törlése\r\n clearClicked();\r\n // kijelölt elem megkeresése\r\n objects.forEach(function (element, index) {\r\n if (element.type === 'rect' || element.type === 'triangle' || element.type === 'pentagon') {\r\n if (x < element.x + (element.width / 2) && x > element.x - (element.width / 2) &&\r\n y < element.y + (element.height / 2) && y > element.y - (element.height / 2)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'circle') {\r\n if (Math.pow(x - element.x, 2) + Math.pow(y - element.y, 2) < Math.pow(element.r, 2)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'arrow' || element.type === 'line' || element.type === 'dline' || element.type === 'dline2' || element.type === 'sine') {\r\n if (x < element.x1 + arrowPointRadius && x > element.x1 - arrowPointRadius &&\r\n y < element.y1 + arrowPointRadius && y > element.y1 - arrowPointRadius) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveArrowStart;\r\n canvas.onmouseup = moveEnd;\r\n } else if ((x < element.x2 + arrowPointRadius && x > element.x2 - arrowPointRadius &&\r\n y < element.y2 + arrowPointRadius && y > element.y2 - arrowPointRadius)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveArrorEnd;\r\n canvas.onmouseup = moveEnd;\r\n } else if (isPointOnSection({x: element.x1, y: element.y1}, {\r\n x: element.x2,\r\n y: element.y2\r\n }, {x: x, y: y})) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n old.x = x;\r\n old.y = y;\r\n canvas.onmousemove = moveArrow;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'ball') {\r\n var w = element.width / 2;\r\n var h = element.height / 2;\r\n\r\n var originX = element.x - w;\r\n var originY = element.y - h;\r\n\r\n var x1 = rotate(originX, originY, element.x - w, element.y + h, element.rotate);\r\n var x2 = rotate(originX, originY, element.x + w, element.y + h, element.rotate);\r\n var x3 = rotate(originX, originY, element.x + w, element.y - h, element.rotate);\r\n var x4 = rotate(originX, originY, element.x - w, element.y - h, element.rotate);\r\n\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x1[0],\r\n // y: x1[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'red',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x2[0],\r\n // y: x2[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'yellow',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x3[0],\r\n // y: x3[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'orange',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x4[0],\r\n // y: x4[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'brown',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n\r\n var maxX = Math.max(x1[0], x2[0], x3[0], x4[0]);\r\n var maxY = Math.max(x1[1], x2[1], x3[1], x4[1]);\r\n var minX = Math.min(x1[0], x2[0], x3[0], x4[0]);\r\n var minY = Math.min(x1[1], x2[1], x3[1], x4[1]);\r\n\r\n if (x > minX && x < maxX && y > minY && y < maxY) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n if (vm.clickedElement.canResizeRotate) {\r\n vm.enabledResizeRotate = true;\r\n }\r\n if (vm.activeMode === 1) {\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else if (vm.activeMode === 2) {\r\n oldResizeX = x;\r\n canvas.onmousemove = resizeObject;\r\n canvas.onmouseup = moveEnd;\r\n } else if (vm.activeMode === 3) {\r\n oldRotateX = x;\r\n canvas.onmousemove = rotateObject;\r\n canvas.onmouseup = moveEnd;\r\n }\r\n } else {\r\n element.clicked = false;\r\n }\r\n }\r\n });\r\n // Ha rajz mód aktív\r\n } else if (vm.activeMode === 0) {\r\n lines[lineId] = {points: [], lineSize: lineSize, color: color};\r\n canvas.onmousemove = drawPen;\r\n canvas.onmouseup = stopDrawPen;\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function rotate(cx, cy, x, y, angle) {\r\n var radians = (Math.PI / 180) * angle;\r\n var cos = Math.cos(radians);\r\n var sin = Math.sin(radians);\r\n var nx = (cos * (x - cx)) - (sin * (y - cy)) + cx;\r\n var ny = (sin * (x - cx)) + (cos * (y - cy)) + cy;\r\n return [nx, ny];\r\n }\r\n\r\n function draw() {\r\n clear();\r\n if (imageObj) {\r\n ctx.drawImage(imageObj, 0, 0, imageWidth, imageHeight);\r\n }\r\n var oldFont = ctx.font;\r\n objects.forEach(function (element) {\r\n ctx.lineWidth = element.lineSize;\r\n if (element.clicked === false) {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = element.color;\r\n } else {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = '#991111';\r\n }\r\n if (element.type === 'rect') {\r\n rect(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - fontSize / 2);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'pentagon') {\r\n pentagon(element.x, element.y, element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - fontSize / 2);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'triangle') {\r\n triangle(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - 3);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'line') {\r\n line(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'sine') {\r\n sine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'dline') {\r\n dashedLine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n } else if (element.type === 'dline2') {\r\n dashedLine2(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n } else if (element.type === 'arrow') {\r\n arrow(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'circle') {\r\n circle(element.x, element.y, element.r);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + 10);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'ball') {\r\n var x = element.x - (element.width / 2);\r\n var y = element.y - (element.height / 2);\r\n\r\n ctx.translate(x, y);\r\n ctx.rotate(element.rotate * (Math.PI / 180));\r\n ctx.drawImage(element.image, 0, 0, element.width, element.height);\r\n\r\n if (element.clicked) {\r\n ctx.lineWidth = 2;\r\n ctx.strokeRect(0, 0, element.width, element.height);\r\n ctx.lineWidth = lineSize;\r\n }\r\n if (element.label) {\r\n ctx.fillText(element.label, 0, -5);\r\n }\r\n ctx.rotate(-element.rotate * (Math.PI / 180));\r\n ctx.translate(-x, -y);\r\n }\r\n });\r\n\r\n for (var i = 0; i < lines.length; i++) {\r\n for (var j = 0; j + 1 < lines[i].points.length; j++) {\r\n ctx.lineWidth = lines[i].lineSize;\r\n ctx.fillStyle = lines[i].color;\r\n ctx.strokeStyle = lines[i].color;\r\n line(lines[i].points[j].x, lines[i].points[j].y, lines[i].points[j + 1].x, lines[i].points[j + 1].y);\r\n }\r\n }\r\n }\r\n\r\n function drawThis(obs) {\r\n clear();\r\n if (imageObj) {\r\n ctx.drawImage(imageObj, 0, 0, imageWidth, imageHeight);\r\n }\r\n obs.objects.forEach(function (element) {\r\n ctx.lineWidth = element.lineSize;\r\n if (element.clicked === false) {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = element.color;\r\n } else {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = '#991111';\r\n }\r\n if (element.type === 'rect') {\r\n rect(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x - (element.width / 2), element.y - (element.height / 2) - fontSize / 2);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'triangle') {\r\n triangle(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - 3);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'line') {\r\n line(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'dline') {\r\n dashedLine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'dline2') {\r\n dashedLine2(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'arrow') {\r\n arrow(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'sine') {\r\n sine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'circle') {\r\n circle(element.x, element.y, element.r);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x - (element.r / 2), element.y - element.r - 5);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'ball') {\r\n var x = element.x - (element.width / 2);\r\n var y = element.y - (element.height / 2);\r\n\r\n ctx.translate(x, y);\r\n ctx.rotate(element.rotate * (Math.PI / 180));\r\n // ctx.drawImage(element.image, element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n ctx.drawImage(element.image, 0, 0, element.width, element.height);\r\n\r\n if (element.clicked) {\r\n ctx.lineWidth = 2;\r\n ctx.strokeRect(0, 0, element.width, element.height);\r\n ctx.lineWidth = lineSize;\r\n }\r\n if (element.label) {\r\n ctx.fillText(element.label, 0, -5);\r\n }\r\n ctx.rotate(-element.rotate * (Math.PI / 180));\r\n ctx.translate(-x, -y);\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n }\r\n });\r\n\r\n for (var i = 0; i < obs.lines.length; i++) {\r\n for (var j = 0; j + 1 < obs.lines[i].points.length; j++) {\r\n ctx.lineWidth = obs.lines[i].lineSize;\r\n ctx.fillStyle = obs.lines[i].color;\r\n ctx.strokeStyle = obs.lines[i].color;\r\n line(obs.lines[i].points[j].x, obs.lines[i].points[j].y, obs.lines[i].points[j + 1].x, obs.lines[i].points[j + 1].y);\r\n }\r\n }\r\n }\r\n\r\n // Kijelölés törlése\r\n function clearClicked() {\r\n vm.enabledResizeRotate = false;\r\n vm.label = '';\r\n vm.clickedElement = null;\r\n clickedElementIndex = -1;\r\n objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n }\r\n\r\n var oldResizeX = 0;\r\n\r\n function resizeObject(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n\r\n var resizeScale = vm.clickedElement.height / vm.clickedElement.width;\r\n vm.clickedElement.width += x - oldResizeX;\r\n vm.clickedElement.height += (x - oldResizeX) * resizeScale;\r\n oldResizeX = x;\r\n }\r\n\r\n var oldRotateX = 0;\r\n\r\n function rotateObject(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.rotate += (x - oldRotateX) * 2;\r\n oldRotateX = x;\r\n }\r\n\r\n // Mozgatások\r\n function moveObject(e) {\r\n if (vm.clickedElement.rotate) {\r\n vm.clickedElement.x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n } else {\r\n vm.clickedElement.x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n }\r\n }\r\n\r\n function moveArrowStart(e) {\r\n vm.clickedElement.x1 = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y1 = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n }\r\n\r\n function moveArrorEnd(e) {\r\n vm.clickedElement.x2 = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y2 = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n }\r\n\r\n var old = {x: 0, y: 0};\r\n\r\n function moveArrow(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n var y = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n vm.clickedElement.x1 += x - old.x;\r\n vm.clickedElement.y1 += y - old.y;\r\n vm.clickedElement.x2 += x - old.x;\r\n vm.clickedElement.y2 += y - old.y;\r\n old.x = x;\r\n old.y = y;\r\n }\r\n\r\n // Vonal új pontjának mentése\r\n function drawPen(e) {\r\n var x = e.pageX - canvas.offsetLeft;\r\n var y = e.pageY - canvas.offsetTop;\r\n lines[lineId].points.push({x: x, y: y});\r\n }\r\n\r\n // Aktuális vonal vége\r\n function stopDrawPen() {\r\n lineId++;\r\n canvas.onmousemove = null;\r\n canvas.onmouseup = null;\r\n saveState();\r\n }\r\n\r\n // Mozgatás vége\r\n function moveEnd() {\r\n canvas.onmousemove = null;\r\n canvas.onmouseup = null;\r\n saveState();\r\n }\r\n\r\n // Rajzoló mód aktiválása\r\n vm.pen = function () {\r\n vm.activeMode = 0;\r\n clearClicked();\r\n };\r\n\r\n // Kiválasztó mód aktiválása\r\n vm.select = function () {\r\n vm.activeMode = 1;\r\n clearClicked();\r\n };\r\n\r\n // Kijelölt elem törlése\r\n vm.deleteObject = function () {\r\n if (clickedElementIndex !== -1) {\r\n clearClicked();\r\n objects.splice(clickedElementIndex, 1);\r\n saveState();\r\n }\r\n };\r\n\r\n // Hozzáadások\r\n vm.addRect = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'rect',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addTriangle = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'triangle',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addPentagon = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'pentagon',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addCircle = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'circle',\r\n x: 500,\r\n y: 125,\r\n r: 20,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addLine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'line',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addDashedLine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'dline',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addDashedLine2 = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'dline2',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addArrow = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'arrow',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addSine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'sine',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addFootball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/football_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addBasketball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/basketball_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addHandball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/handball_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addCone = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/cone.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addHockeyPuck = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 20,\r\n height: 20,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/hockey_puck.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addGoal1 = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 50,\r\n height: 100,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/goal1.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n // Pont és pont távolsága\r\n function pointPointDistance(p1, p2) {\r\n return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));\r\n }\r\n\r\n // Pitagorasz (hiányzó befogó hossza)\r\n function pitagorasz(atfogo, befogo) {\r\n return Math.sqrt(Math.pow(atfogo, 2) - Math.pow(befogo, 2));\r\n }\r\n\r\n // Pont a vonalon van?\r\n function isPointOnSection(p1, p2, p0) {\r\n // Vonaltól való távolság, amire még megfogható\r\n var diff = 10;\r\n // Számításból eredő hiba tűrés\r\n var errorDiff = 3;\r\n var sectionDistance = pointPointDistance(p1, p2);\r\n var d = Math.abs((p2.x - p1.x) * (p1.y - p0.y) - (p1.x - p0.x) * (p2.y - p1.y)) / Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p1.y - p2.y, 2));\r\n var sectionP1 = pitagorasz(pointPointDistance(p1, p0), d);\r\n var sectionP2 = pitagorasz(pointPointDistance(p2, p0), d);\r\n\r\n if ((sectionP1 + sectionP2 < (sectionDistance + errorDiff)) && (sectionP1 + sectionP2 > (sectionDistance - errorDiff))) {\r\n return d < diff;\r\n }\r\n return false;\r\n }\r\n\r\n //\r\n function backgroundChanged(args) {\r\n vm.background = args.value;\r\n if (args.value === 6) {\r\n imageObj = null;\r\n } else {\r\n imageObj = new Image();\r\n imageObj.src = backgrounds[args.value - 1].src;\r\n }\r\n }\r\n\r\n // Minden objektum törlése\r\n vm.deleteAll = function () {\r\n imageObj = null;\r\n imageWidth = WIDTH;\r\n imageHeight = HEIGHT;\r\n scaleHeight = 1;\r\n scaleWidth = 1;\r\n objects = [];\r\n lines = [];\r\n vm.animationStates = [];\r\n states = [];\r\n paintId = null;\r\n vm.sectionDropDownEnabled = true;\r\n clearClicked();\r\n stateLast = true;\r\n vm.stateId = -1;\r\n selectedAnimationId = -1;\r\n lineId = 0;\r\n vm.label = '';\r\n color = '#000000';\r\n vm.checkBoxEnabled = true;\r\n $('#Background').ejDropDownList('enable');\r\n $('#LineSize').ejDropDownList('enable');\r\n $('#Color').ejColorPicker('enable');\r\n $('#TextColor').ejColorPicker('enable');\r\n vm.deleteEnabled = false;\r\n scopeApply();\r\n saveState();\r\n };\r\n\r\n // Szín beállítása\r\n vm.getColor = function () {\r\n if (vm.clickedElement) {\r\n color = vm.clickedElement.color;\r\n $('#Color').ejColorPicker({\r\n value: vm.clickedElement.color,\r\n enableOpacity: false,\r\n change: colorChanged,\r\n modelType: 'Palette'\r\n });\r\n }\r\n };\r\n\r\n vm.changedLabel = function () {\r\n vm.clickedElement.label = vm.label;\r\n saveState();\r\n };\r\n\r\n vm.addAnimation = function () {\r\n clearClicked();\r\n selectedAnimationId++;\r\n var stateTemp = {lines: $.extend(true, [], lines), objects: $.extend(true, [], objects), lineId: lineId};\r\n stateTemp.objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n vm.animationStates.push(stateTemp);\r\n };\r\n\r\n vm.saveAnimation = function () {\r\n if (selectedAnimationId >= 0) {\r\n vm.animationStates[selectedAnimationId].lines = $.extend(true, [], lines);\r\n vm.animationStates[selectedAnimationId].objects = $.extend(true, [], objects);\r\n vm.animationStates[selectedAnimationId].lineId = lineId;\r\n }\r\n };\r\n\r\n function scopeApply() {\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n vm.deleteAnimation = function () {\r\n clearClicked();\r\n if (selectedAnimationId > -1) {\r\n vm.animationStates.splice(selectedAnimationId, 1);\r\n vm.selectAnimation(vm.animationStates.length - 1);\r\n scopeApply();\r\n }\r\n };\r\n\r\n vm.selectAnimation = function (index) {\r\n clearClicked();\r\n if (index > -1) {\r\n selectedAnimationId = index;\r\n lines = $.extend(true, [], vm.animationStates[index].lines);\r\n objects = $.extend(true, [], vm.animationStates[index].objects);\r\n lineId = vm.animationStates[index].lineId;\r\n }\r\n };\r\n\r\n var fps = 60;\r\n var drawTime = 1000 / fps;\r\n var intervalTimes = 0;\r\n var timePerState = 2;\r\n var animationList = [];\r\n var stateId = 0;\r\n vm.play = function (speed) {\r\n clearClicked();\r\n timePerState = speed;\r\n intervalTimes = 0;\r\n animationList = [];\r\n stateId = 0;\r\n // Csak akkor van animáció, amikor legalább két állapot van\r\n var statesLength = vm.animationStates.length;\r\n if (statesLength > 1) {\r\n for (var i = 0; i < (statesLength - 1); i++) {\r\n animationList.push({objects: [], lines: []});\r\n vm.animationStates[i].objects.forEach(function (element) {\r\n // Ha kell animálni\r\n var nextElement = vm.animationStates[i + 1].objects.find(function (nextElement) {\r\n return element.id === nextElement.id;\r\n });\r\n if (nextElement !== undefined) {\r\n // deltaX és deltaY kiszámolása\r\n if (element.type === 'rect' || element.type === 'circle' || element.type === 'ball') {\r\n var tmp = $.extend(true, [], element);\r\n tmp.deltaX = (nextElement.x - element.x) / (timePerState * fps);\r\n tmp.deltaY = (nextElement.y - element.y) / (timePerState * fps);\r\n animationList[i].objects.push(tmp);\r\n } else if (element.type === 'line' || element.type === 'dline' || element.type === 'dline2' || element.type === 'arrow' || element.type === 'sine') {\r\n var tmp = $.extend(true, [], element);\r\n tmp.deltaX1 = (nextElement.x1 - element.x1) / (timePerState * fps);\r\n tmp.deltaY1 = (nextElement.y1 - element.y1) / (timePerState * fps);\r\n tmp.deltaX2 = (nextElement.x2 - element.x2) / (timePerState * fps);\r\n tmp.deltaY2 = (nextElement.y2 - element.y2) / (timePerState * fps);\r\n animationList[i].objects.push(tmp);\r\n }\r\n animationList[i].lines = $.extend(true, [], vm.animationStates[i].lines);\r\n }\r\n });\r\n }\r\n clearInterval(interval);\r\n interval = setInterval(drawAnimation, drawTime);\r\n stateId = 0;\r\n intervalTimes = 0;\r\n }\r\n };\r\n\r\n function drawAnimation() {\r\n if (intervalTimes >= (vm.animationStates.length - 1) * timePerState * fps) {\r\n clearInterval(interval);\r\n interval = setInterval(draw, 10);\r\n vm.selectAnimation(vm.animationStates.length - 1);\r\n } else {\r\n if (intervalTimes % (timePerState * fps) === 0) {\r\n stateId++;\r\n }\r\n intervalTimes++;\r\n drawThis(animationList[stateId - 1]);\r\n }\r\n }\r\n\r\n vm.save = function () {\r\n $timeout(function () {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n var data = {\r\n lineId: lineId,\r\n objectCounter: objectCounter,\r\n background: vm.background,\r\n imageWidth: imageWidth,\r\n imageHeight: imageHeight,\r\n animationStates: $.extend(true, [], vm.animationStates),\r\n lines: lines,\r\n objects: $.extend(true, [], objects)\r\n };\r\n data.objects.forEach(function (el) {\r\n if (el.type === 'ball') {\r\n el.image = el.image.src;\r\n }\r\n });\r\n data.animationStates.forEach(function (el) {\r\n el.objects.forEach(function (el2) {\r\n if (el2.type === 'ball') {\r\n el2.image = el2.image.src;\r\n }\r\n });\r\n });\r\n if (paintId) {\r\n dataservice.modifyPaint({\r\n paintId: paintId,\r\n publikus: vm.public,\r\n data: JSON.stringify(data)\r\n }).then(function () {\r\n vm.sectionDropDownEnabled = false;\r\n log.successMsg('PaintModified');\r\n });\r\n } else {\r\n dataservice.savePaint({\r\n paintName: vm.paintName,\r\n sectionId: vm.sectionId,\r\n agegroupId: vm.agegroupId,\r\n data: JSON.stringify(data)\r\n }).then(function (data) {\r\n paintId = data.res;\r\n vm.deleteEnabled = true;\r\n vm.sectionDropDownEnabled = false;\r\n log.successMsg('PaintSaved');\r\n });\r\n }\r\n }\r\n }, 0);\r\n };\r\n\r\n vm.publicCheckboxChanged = function (args) {\r\n vm.public = args.value;\r\n };\r\n\r\n vm.deletePaint = function () {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantDelete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('YesIWantDelete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deletePaint(paintId).then(function () {\r\n vm.deleteAll();\r\n log.successMsg('PaintDeleted');\r\n });\r\n }\r\n });\r\n };\r\n\r\n vm.resizeObject = function () {\r\n vm.activeMode = 2;\r\n };\r\n\r\n vm.rotateObject = function () {\r\n vm.activeMode = 3;\r\n };\r\n\r\n interval = init();\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.paint')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'paint',\r\n config: {\r\n url: '/paint/',\r\n templateUrl: 'app/paint/paint.html',\r\n controller: 'PaintController',\r\n controllerAs: 'vm',\r\n title: 'Paint',\r\n /*\r\n settings: {\r\n navId: 2162,\r\n level: 2,\r\n order: 16,\r\n parentId: 2,\r\n orderTitle_hu: 'Gyakorlat ábra tervező',\r\n orderTitle_en: 'Exercise Figure Creator',\r\n content: 'Paint'\r\n }\r\n */\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ParentDashboardController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\"];\r\n angular\r\n .module('app.parentDashboard')\r\n .controller('ParentDashboardController', ParentDashboardController);\r\n\r\n function ParentDashboardController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ParentDashboard');\r\n\r\n vm.athletesofuser = [];\r\n vm.selectedAthlete = undefined;\r\n vm.modifyAthleteData = modifyAthleteData;\r\n vm.athleteidOfAthleteUser = -1;\r\n vm.SPORTOLO = false;\r\n vm.SZULO = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO')])\r\n .then(function (results) {\r\n if (results[0] || results[1]) {\r\n vm.SPORTOLO = results[0];\r\n vm.SZULO = results[1];\r\n getAthletesOfUser();\r\n getAthleteIDofUser();\r\n // getParentNotifications(new Date(), new Date(), 0, true, true, 'all', 9999);\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function modifyAthleteData() {\r\n if (vm.SZULO) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.selectedAthlete}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.athleteidOfAthleteUser}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n }\r\n\r\n function getAthletesOfUser() {\r\n dataservice.getAthletesOfUser()\r\n .then(function (data) {\r\n vm.athletesofuser = data.itemsList;\r\n });\r\n }\r\n\r\n function getAthleteIDofUser() {\r\n dataservice.getAthleteidBelongsToAthleteUser()\r\n .then(function (data) {\r\n vm.athleteidOfAthleteUser = data.data;\r\n });\r\n }\r\n\r\n function getParentNotifications(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n dataservice.getParentNotifications2(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size).then(function (data) {\r\n console.log('getParentNotifications', data);\r\n });\r\n dataservice.ErtesitestLatta(-1).then(function (data) {\r\n console.log('ErtesitestLatta', data);\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.parentDashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'parentDashboard',\r\n config: {\r\n url: '/parentDashboard',\r\n templateUrl: 'app/parentDashboard/parentDashboard.html',\r\n controller: 'ParentDashboardController',\r\n controllerAs: 'vm',\r\n title: 'ParentDashboard',\r\n settings: {\r\n navId: 12,\r\n level: 1,\r\n order: 11,\r\n parentId: 0,\r\n content: 'ParentDashboard',\r\n faIcon: 'fa-play',\r\n permission: ['5']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ParentMonthlyAttendanceController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"$filter\"];\r\n angular\r\n .module('app.parentMonthlyAttendance')\r\n .controller('ParentMonthlyAttendanceController', ParentMonthlyAttendanceController);\r\n\r\n function ParentMonthlyAttendanceController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('parentMonthlyAttendance');\r\n\r\n // Create variables\r\n vm.dateValue = new Date();\r\n vm.athleteList = [];\r\n vm.athleteId = '';\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Nap',\r\n headerText: gettextCatalog.getString('Day'),\r\n textAlign: 'center',\r\n width: 115\r\n },\r\n {\r\n field: 'Igazolt',\r\n headerText: gettextCatalog.getString('Igazolt'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 70\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.saveDate = saveDate;\r\n vm.athleteDataBound = athleteDataBound;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.gridRowSelected,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [];\r\n $q.all(promises)\r\n .then(function () {\r\n getAthletes();\r\n parentsAthleteAttendanceList();\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getAthletes() {\r\n return dataservice.parentsAthletes().then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n });\r\n }\r\n\r\n function athleteDataBound() {\r\n if (vm.athleteList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.athleteList[0].value);\r\n vm.athleteId = vm.athleteList[0].value;\r\n }\r\n }\r\n\r\n function parentsAthleteAttendanceList() {\r\n return dataservice.parentsAthleteAttendanceList().then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Nap');\r\n });\r\n }\r\n\r\n function saveDate() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.parentsAthleteAttendance(vm.athleteId, vm.dateValue).then(function () {\r\n log.successMsg('HianyzasBejelentve');\r\n parentsAthleteAttendanceList();\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.parentMonthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'parentMonthlyAttendance',\r\n config: {\r\n url: '/parentMonthlyAttendance',\r\n templateUrl: 'app/parentMonthlyAttendance/parentMonthlyAttendance.html',\r\n controller: 'ParentMonthlyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'parentMonthlyAttendance',\r\n settings: {\r\n navId: 1200,\r\n level: 1,\r\n order: 20,\r\n parentId: 0,\r\n content: 'parentMonthlyAttendance',\r\n faIcon: 'fa-heartbeat',\r\n permission: ['5']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AbsenceReportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.reports.absenceReport')\r\n .controller('AbsenceReportController', AbsenceReportController);\r\n\r\n function AbsenceReportController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('AbsenceReport');\r\n vm.searchSPC = true;\r\n vm.searchPP = true;\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.search = search;\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.selectdateTo = new Date();\r\n vm.fromDateSelect = fromDateSelect;\r\n vm.toDateSelect = toDateSelect;\r\n vm.SelectedSectionID = -1;\r\n vm.SelectedCoachID = -1;\r\n\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120',\r\n template: '#abretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120',\r\n template: '#abretemplateDataColumn2'\r\n },\r\n {\r\n field: 'OsszEdzesekSzama',\r\n headerText: '*' + gettextCatalog.getString('SumNumberOfTrainings'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'JelenletSzazalek',\r\n headerText: '*' + gettextCatalog.getString('AttendancePercent'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '130'\r\n },\r\n {\r\n field: 'EdzesekSzama',\r\n headerText: gettextCatalog.getString('NumberOfTrainings'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '105'\r\n },\r\n {\r\n field: 'HianyzasokSzama',\r\n headerText: gettextCatalog.getString('NumberOfAbsence'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '130'\r\n },\r\n {\r\n field: 'IgazoltHianyzasokSzama',\r\n headerText: gettextCatalog.getString('ProvenNumberOfAbsence'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'BetegsegekSzama',\r\n headerText: gettextCatalog.getString('NumberOfSickness'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '140'\r\n },\r\n {\r\n field: 'SerulesekSzama',\r\n headerText: gettextCatalog.getString('NumberOfInjuries'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120'\r\n },\r\n {\r\n field: 'VersenyekSzama',\r\n headerText: gettextCatalog.getString('NumberOfCompetition'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n }\r\n ];\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $timeout(function () {\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.selectdateTo = new Date();\r\n $scope.$apply();\r\n });\r\n var promises = [authenticationService.getRight('HIANYZASMEGT')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'absenceReport.sectionId',\r\n 'absenceReport.coachId',\r\n 'absenceReport.selectdateFrom',\r\n 'absenceReport.selectdateTo',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.SelectedSectionID = results[0]['absenceReport.sectionId'] ? results[0]['absenceReport.sectionId'] : vm.SelectedSectionID;\r\n vm.SelectedCoachID = results[0]['absenceReport.coachId'] ? results[0]['absenceReport.coachId'] : vm.SelectedCoachID;\r\n vm.selectdateFrom = results[0]['absenceReport.selectdateFrom'] ? results[0]['absenceReport.selectdateFrom'] : vm.selectdateFrom;\r\n vm.selectdateTo = results[0]['absenceReport.selectdateTo'] ? results[0]['absenceReport.selectdateTo'] : vm.selectdateTo;\r\n });\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'absenceReport.sectionId': vm.SelectedSectionID},\r\n {'absenceReport.coachId': vm.SelectedCoachID},\r\n {'absenceReport.selectdateFrom': vm.selectdateFrom},\r\n {'absenceReport.selectdateTo': vm.selectdateTo},\r\n ]);\r\n dataservice.getAbsenceReport(vm.SelectedSectionID, 0, vm.SelectedCoachID, vm.selectdateFrom, vm.selectdateTo)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList(SelectedSectionID) {\r\n return dataservice.coachDropDownList(SelectedSectionID, 0, vm.selectdateFrom, vm.selectdateTo)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.SelectedCoachID);\r\n }\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.SelectedSectionID);\r\n }\r\n }\r\n\r\n function fromDateSelect() {\r\n getActualCoachesList(vm.SelectedSectionID);\r\n }\r\n\r\n function toDateSelect() {\r\n getActualCoachesList(vm.SelectedSectionID);\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.absenceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.absenceReport',\r\n config: {\r\n url: '/absenceReport',\r\n templateUrl: 'app/reports/absenceReport/absenceReport.html',\r\n controller: 'AbsenceReportController',\r\n controllerAs: 'vm',\r\n title: 'AbsenceReport',\r\n settings: {\r\n navId: 2154,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Hiányzások',\r\n orderTitle_en: 'Absence',\r\n parentId: 4,\r\n content: 'AbsenceReport',\r\n activatorPermission: ['\"HIANYZASMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.annualPresenceReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports',\r\n config: {\r\n url: '/annualPresenceReports',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReports.html',\r\n title: 'AnnualPresenceReports',\r\n settings: {\r\n navId: 224,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Éves jelenléti kimutatások',\r\n orderTitle_en: 'Annual Attendance Reports',\r\n parentId: 4,\r\n content: 'AnnualPresenceReports',\r\n activatorPermission: ['\"KMEVESJELEDZO\"', '\"KMEVESJELSZO\"', '\"KMEVESJELSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualPresenceReportsBySectionsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"authenticationService\", \"paramHelper\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySections')\r\n .controller('AnnualPresenceReportsBySectionsController', AnnualPresenceReportsBySectionsController);\r\n\r\n function AnnualPresenceReportsBySectionsController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, authenticationService, paramHelper, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsBySections');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.selectedSection = {};\r\n vm.sectionDataBound = [];\r\n vm.stackedHeaderRows = [];\r\n vm.summaryRows = [];\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#columnTemplate'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugEdzes, AugJelen, AugHianyzik,AugSzazalek',\r\n {field: 'AugEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptEdzes, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.sectionSelect = sectionSelect;\r\n vm.goToNewCoach = goToNewCoach;\r\n vm.reportSelect = reportSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELEDZO')];\r\n $q.all(promises).then(function (res) {\r\n vm.KMEVESJELEDZO = res[0];\r\n if (!vm.KMEVESJELEDZO) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'aprbs.selectedSection',\r\n 'annualPresenceReports.year',\r\n 'annualPresenceReports.month'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['annualPresenceReports.year']) {\r\n vm.selectedYear = results[0]['annualPresenceReports.year'];\r\n }\r\n if (results[0]['annualPresenceReports.month']) {\r\n vm.selectedMonth = results[0]['annualPresenceReports.month'];\r\n }\r\n if (results[0]['aprbs.selectedSection']) {\r\n vm.selectedSection = results[0]['aprbs.selectedSection'];\r\n }\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.selectedSection > 0) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n $timeout(function () {\r\n if (!(vm.selectedSection > 0)) {\r\n vm.selectedSection = vm.sectionList[0].value;\r\n }\r\n }, 0);\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n }\r\n\r\n function goToNewCoach(coachId) {\r\n if (coachId && coachId === 0 && !vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': coachId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedSection && vm.selectedYear && vm.selectedMonth) {\r\n paramHelper.setParams([\r\n {'aprbs.selectedSection': vm.selectedSection},\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportBySectionsReport(vm.selectedYear, vm.selectedMonth, vm.selectedSection)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySections')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsBySections',\r\n config: {\r\n url: '/annualPresenceReportsBySections',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.html',\r\n controller: 'AnnualPresenceReportsBySectionsController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsBySections',\r\n settings: {\r\n navId: 33234,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Éves jelenléti kimutatás szakosztályonként',\r\n orderTitle_en: 'Annual Attendance Reports by Sections',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsBySections',\r\n activatorPermission: ['\"KMEVESJELEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualPresenceReportsBySportSchoolController.$inject = [\"dataservice\", \"$q\", \"log\", \"authenticationService\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"paramHelper\", \"$timeout\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool')\r\n .controller('AnnualPresenceReportsBySportSchoolController', AnnualPresenceReportsBySportSchoolController);\r\n\r\n function AnnualPresenceReportsBySportSchoolController(dataservice, $q, log, authenticationService, $rootScope, gettextCatalog, $scope, paramHelper, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsBySportSchool');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.reportSelect = reportSelect;\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {field: 'VersenyzoNeve', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 125},\r\n\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugEdzes, AugJelen, AugHianyzik,AugSzazalek',\r\n {field: 'AugEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'AugJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'AugHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptEdzes, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'SzeptJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'OktJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'OktHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'NovJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'NovHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'DecJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'DecHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELSZO')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n }\r\n paramHelper.getParams([], ['annualPresenceReports.year', 'annualPresenceReports.month']).then(function (result) {\r\n $timeout(function () {\r\n if (result['annualPresenceReports.year']) {\r\n vm.selectedYear = result['annualPresenceReports.year'];\r\n }\r\n if (result['annualPresenceReports.month']) {\r\n vm.selectedMonth = result['annualPresenceReports.month'];\r\n }\r\n reportSelect();\r\n }, 0);\r\n });\r\n });\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedYear && vm.selectedMonth) {\r\n paramHelper.setParams([\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportBySportSchoolReport(vm.selectedYear, vm.selectedMonth)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsBySportSchool',\r\n config: {\r\n url: '/annualPresenceReportsBySportSchool',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.html',\r\n controller: 'AnnualPresenceReportsBySportSchoolController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsBySportSchool',\r\n settings: {\r\n navId: 32234,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Éves jelenléti kimutatás edzőnként',\r\n orderTitle_en: 'Annual Attendance Reports by Coaches',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsBySportSchool',\r\n activatorPermission: ['\"KMEVESJELSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualPresenceReportsByTrainersController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$scope\", \"authenticationService\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers')\r\n .controller('AnnualPresenceReportsByTrainersController', AnnualPresenceReportsByTrainersController);\r\n\r\n function AnnualPresenceReportsByTrainersController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, authenticationService, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsByTrainers');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedCoach = {};\r\n vm.coachList = [];\r\n vm.selectedSection = 0;\r\n vm.sectionDataBound = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.ageGroupList = [];\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {field: 'VersenyzoNeve', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugFlo, AugJelen, AugHianyzik,AugSzazalek',\r\n {\r\n field: 'AugEdzes',\r\n headerText: gettextCatalog.getString('EdzesSzam'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptFlo, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.coachSelect = coachSelect;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.reportSelect = reportSelect;\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELSP')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'aprbt.selectedSection',\r\n 'aprbt.selectedAgeGroup',\r\n 'aprbt.selectedCoach',\r\n 'annualPresenceReports.year',\r\n 'annualPresenceReports.month'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['aprbt.selectedSection']) {\r\n vm.selectedSection = results[0]['aprbt.selectedSection'];\r\n }\r\n if (results[0]['aprbt.selectedAgeGroup']) {\r\n vm.selectedAgeGroup = results[0]['aprbt.selectedAgeGroup'];\r\n }\r\n if (results[0]['aprbt.selectedCoach']) {\r\n vm.selectedCoach = results[0]['aprbt.selectedCoach'];\r\n }\r\n if (results[0]['annualPresenceReports.year']) {\r\n vm.selectedYear = results[0]['annualPresenceReports.year'];\r\n }\r\n if (results[0]['annualPresenceReports.month']) {\r\n vm.selectedMonth = results[0]['annualPresenceReports.month'];\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.selectedSection, vm.selectedAgeGroup, new Date(vm.selectedYear, vm.selectedMonth, 1)).then(\r\n function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n getCoaches();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelectYear(0, vm.selectedSection, vm.selectedYear)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n getCoaches();\r\n }\r\n\r\n function goToNewAthlete(athleteId) {\r\n if (athleteId == 0) {\r\n return;\r\n }\r\n if (!vm.MODSPORTOLO) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'athleteModify.Id': athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedYear && vm.selectedMonth && vm.selectedSection && vm.selectedAgeGroup && vm.selectedCoach) {\r\n paramHelper.setParams([\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth},\r\n {'aprbt.selectedSection': vm.selectedSection},\r\n {'aprbt.selectedAgeGroup': vm.selectedAgeGroup},\r\n {'aprbt.selectedCoach': vm.selectedCoach}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportByTrainersReport(vm.selectedYear, vm.selectedMonth, vm.selectedSection, vm.selectedAgeGroup, '', vm.selectedCoach)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.selectedSection > 0) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.selectedAgeGroup > 0) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n } else {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroup = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.selectedCoach > 0) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsByTrainers',\r\n config: {\r\n url: '/annualPresenceReportsByTrainers',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.html',\r\n controller: 'AnnualPresenceReportsByTrainersController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsByTrainers',\r\n settings: {\r\n navId: 31234,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Éves jelenléti kimutatás sportolónként',\r\n orderTitle_en: 'Annual Attendance Reports By Athletes',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsByTrainers',\r\n activatorPermission: ['\"KMEVESJELSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnthropometryTestPrintingController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$filter\", \"$scope\", \"$state\", \"paramHelper\", \"DOMAIN\", \"$q\", \"$timeout\"];\r\n angular\r\n .module('app.reports.anthropometryTestPrinting')\r\n .controller('AnthropometryTestPrintingController', AnthropometryTestPrintingController);\r\n\r\n function AnthropometryTestPrintingController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $filter, $scope, $state, paramHelper, DOMAIN, $q, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnthropometryTestPrinting');\r\n\r\n // Create variables\r\n vm.dateToValue = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());\r\n vm.dateFromValue = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.printEnabled = false;\r\n // Grid's variables\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 35},\r\n {field: 'SportoloId', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n headerTextAlign: 'center', textAlign: 'center',\r\n template: '#anthropometryTestPrintingcolumnTemplate',\r\n width: 150\r\n },\r\n {field: 'SportoloLakcim', headerText: gettextCatalog.getString('Address'), headerTextAlign: 'center', textAlign: 'center', width: 150},\r\n {field: 'Felmeres', headerText: gettextCatalog.getString('Test'), headerTextAlign: 'center', textAlign: 'center', width: 150},\r\n {field: 'Csoport', headerText: gettextCatalog.getString('Group'), headerTextAlign: 'center', textAlign: 'center', width: 125},\r\n {field: 'MeresDatuma', headerText: gettextCatalog.getString('Date'), headerTextAlign: 'center', textAlign: 'center', width: 125}\r\n ];\r\n vm.reportParameters = {};\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n $timeout(function () {\r\n var selectedRow = grid.getSelectedRecords();\r\n if (selectedRow && selectedRow.length > 0) {\r\n vm.printEnabled = true;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n },\r\n rowDeselected: Deselect,\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function Deselect() {\r\n if (grid.getSelectedRecords().length === 0) {\r\n vm.printEnabled = false;\r\n $scope.$apply();\r\n }\r\n }\r\n\r\n // Public functions\r\n vm.search = search;\r\n vm.printSelection = printSelection;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('TomAntr').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n search();\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n dataservice.getAnthropometryListForPrinting(vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'MeresDatuma');\r\n });\r\n }\r\n\r\n function printSelection() {\r\n var selectedAthletes = $rootScope.getSelectedItems(grid);\r\n var Tomeges = '';\r\n if (selectedAthletes.length == 0) {\r\n log.errorMsg('NoSelectedAthlete');\r\n return;\r\n }\r\n angular.forEach(selectedAthletes, function (value) {\r\n if (Tomeges.length > 0) {\r\n Tomeges += ';';\r\n }\r\n Tomeges += value.Id + ',' + value.SportoloId;\r\n });\r\n vm.reportParameters = {\r\n 'Tomeges': Tomeges,\r\n 'SportoloId': 0,\r\n 'AntropometriaId': 0,\r\n 'SportiskolaLogo': (grid.dataSource[0] && grid.dataSource[0].SportiskolaLogo) ? DOMAIN.baseURL + DOMAIN.anthropometryPhotosUrl + grid.dataSource[0].SportiskolaLogo : undefined\r\n };\r\n if (Tomeges !== '') {\r\n angular.element('#printDialoganthtest').ejDialog({\r\n 'height': '95%',\r\n 'width': '95%',\r\n 'showoninit': 'false',\r\n 'enablemodal': 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n 'target': '#mainContent',\r\n 'enableresize': 'false'\r\n });\r\n angular.element('#printDialoganthtest').ejDialog('open');\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.anthropometryTestPrinting')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.anthropometryTestPrinting',\r\n config: {\r\n url: '/anthropometryTestPrinting',\r\n templateUrl: 'app/reports/anthropometryTestPrinting/anthropometryTestPrinting.html',\r\n controller: 'AnthropometryTestPrintingController',\r\n controllerAs: 'vm',\r\n title: 'AnthropometryTestPrinting',\r\n settings: {\r\n navId: 2124,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Antropometria tömeges nyomtatás',\r\n orderTitle_en: 'Anthropometry Bulk Printing',\r\n parentId: 4,\r\n content: 'AnthropometryTestPrinting',\r\n activatorPermission: ['\"TomAntr\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AssetInventoryReportByType.$inject = [\"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"log\", \"$filter\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.assetInventoryReportByType')\r\n .controller('AssetInventoryReportByTypeController', AssetInventoryReportByType);\r\n\r\n function AssetInventoryReportByType (logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, log, $filter, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AssetInventoryReportByType');\r\n\r\n vm.active = false;\r\n vm.all = true;\r\n vm.assetTypeId = undefined;\r\n vm.assetTypeList = [];\r\n vm.checkboxEnabled = false;\r\n vm.datasource = [];\r\n vm.expend = false;\r\n vm.mainGrid = [];\r\n vm.childGrid = [];\r\n vm.selectAll = selectAll;\r\n vm.AssetTypeDataBound = AssetTypeDataBound;\r\n vm.show = show;\r\n\r\n activate();\r\n vm.columns = [\r\n {field: 'EszkozId', visible: false},\r\n {field: 'EszkozMegnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 175},\r\n {field: 'EszkozTipusa', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('ItemActive'), textAlign: 'center', type: 'boolean', displayAsCheckBox: true, width: 140},\r\n {field: 'Szabad', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', type: 'boolean', displayAsCheckBox: true, width: 160},\r\n {field: 'EszkozLeiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 175},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 150},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 115},\r\n {field: 'Kinel', headerText: gettextCatalog.getString('Kinel'), textAlign: 'center', width: 150},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n vm.childGridColumns = [\r\n {field: 'MozgasId', isPrimaryKey: 'true', visible: false},\r\n {field: 'Kiadva', headerText: gettextCatalog.getString('Kiadva'), textAlign: 'center', width: 125},\r\n {field: 'Visszaveve', headerText: gettextCatalog.getString('Visszaveve'), textAlign: 'center', width: 125},\r\n {field: 'Sportolo', headerText: gettextCatalog.getString('Sportolo'), textAlign: 'center', width: 150},\r\n {field: 'Felhasznalo', headerText: gettextCatalog.getString('Felhasznalo'), textAlign: 'center', width: 150},\r\n {field: 'MegjegyzesKiadaskor', headerText: gettextCatalog.getString('MegjegyzesKiadaskor'), textAlign: 'center', width: 150},\r\n {field: 'MegjegyzesVisszavetelkor', headerText: gettextCatalog.getString('MegjegyzesVisszavetelkor'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n columns: vm.columns,\r\n //allowPaging: true,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n childGrid: {\r\n locale: 'hu-HU',\r\n dataSource: [],\r\n queryString: 'EszkozId',\r\n allowPaging: true,\r\n allowSorting: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.childGridColumns\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT')]).then(function (data) {\r\n vm.ESZKNYILVMEGT = data[0];\r\n if (vm.ESZKNYILVMEGT) {\r\n getAssetType();\r\n setDropDowns();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'airbt.type',\r\n 'airbt.active',\r\n 'airbt.expend',\r\n 'airbt.all'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['airbt.type'] != null) {\r\n vm.assetTypeId = results[0]['airbt.type'];\r\n // vm.active = results[0]['airbt.active'];\r\n // vm.expend = results[0]['airbt.expend'];\r\n // vm.all = results[0]['airbt.all'];\r\n // angular.element(\"#Active\").ejCheckBox ({ enabled: vm.active });\r\n // angular.element(\"#Expend\").ejCheckBox ({ enabled: vm.expend });\r\n // angular.element(\"#All\").ejCheckBox ({ enabled: vm.all });\r\n }\r\n });\r\n }\r\n\r\n function getAssetType() {\r\n dataservice.assetTypeList().then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({TipusId: 0, TipusNev: gettextCatalog.getString('All')});\r\n }\r\n vm.assetTypeList = data.itemsList;\r\n });\r\n }\r\n\r\n function selectAll() {\r\n vm.checkboxEnabled = vm.all ? true : false;\r\n }\r\n\r\n // Run after data bounded\r\n function AssetTypeDataBound() {\r\n if (vm.assetTypeId > 0) {\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId);\r\n } else {\r\n if (vm.assetTypeList.length === 1) {\r\n vm.assetTypeId = vm.assetTypeList[0].TipusId;\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId[0].value);\r\n } else {\r\n vm.assetTypeId = 0;\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId);\r\n }\r\n }\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'airbt.type': vm.assetTypeId},\r\n {'airbt.active': vm.active},\r\n {'airbt.expend': vm.expend},\r\n {'airbt.all': vm.all}\r\n ]);\r\n dataservice.assetInventoryByType(vm.assetTypeId, vm.expend, vm.active, vm.all).then(function (data) {\r\n grid.dataSource = data.itemsList[0].EszkozAdatok;\r\n var childGrid = data.itemsList[0].EszkozMozgasa;\r\n childGrid = $filter('dateTimeStringFilter')(childGrid, 'Kiadva');\r\n grid.childGrid.dataSource = $filter('dateTimeStringFilter')(childGrid, 'Visszaveve');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.assetInventoryReportByType')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReportByType',\r\n config: {\r\n url: '/assetInventoryReportByType',\r\n templateUrl: 'app/reports/assetInventoryReportByType/AssetInventoryReportByType.html',\r\n controller: 'AssetInventoryReportByTypeController',\r\n controllerAs: 'vm',\r\n title: 'AssetInventoryReportByType',\r\n settings: {\r\n navId: 322224,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Eszköz nyilvántartó (Típus)',\r\n orderTitle_en: 'Asset Inventory (Type)',\r\n parentId: 2224,\r\n content: 'AssetInventoryReportByType',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AssetInventoryReportByUsers.$inject = [\"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"log\", \"$filter\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.assetInventoryReportByUsers')\r\n .controller('AssetInventoryReportByUsersController', AssetInventoryReportByUsers);\r\n\r\n function AssetInventoryReportByUsers(logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, log, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AssetInventoryReportByUsers');\r\n\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.searchTypeAthlete = false;\r\n vm.enableAgeGropu = false;\r\n vm.ageGroupList = [];\r\n vm.sectionList = [];\r\n vm.athletecoachList = [\r\n {value: 'athlete', text: gettextCatalog.getString('Athlete')},\r\n {value: 'users', text: gettextCatalog.getString('Users')}\r\n ];\r\n vm.columns = [\r\n {field: 'KiadvaId', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: 150},\r\n {field: 'Lakcim', headerText: gettextCatalog.getString('Location'), textAlign: 'center', width: 175},\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Elerhetosege'), textAlign: 'center', width: 150},\r\n ];\r\n vm.childGridColums = [\r\n {field: 'EszkozId', visible: false},\r\n {field: 'KiadvaId', visible: false},\r\n {field: 'EszkozMegnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 150},\r\n {field: 'EszkozTipusa', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 125},\r\n {field: 'EszkozLeiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 150},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 125},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 125},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n columns: vm.columns,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n childGrid: {\r\n dataSource: [],\r\n queryString: 'KiadvaId',\r\n allowPaging: true,\r\n columns: vm.childGridColums\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.searchTypeSelect = searchTypeSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.searchTypeDateBound = searchTypeDateBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.show = show;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT')]).then(function (data) {\r\n vm.ESZKNYILVMEGT = data[0];\r\n if (!vm.ESZKNYILVMEGT) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getSections();\r\n setDropDowns();\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'airbu.typeuser',\r\n 'airbu.section',\r\n 'airbu.agegroup'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.searchTypeUser = (results[0]['airbu.typeuser'] === true);\r\n vm.searchTypeAthlete = (results[0]['airbu.typeuser'] === false);\r\n vm.sectionId = results[0]['airbu.section'];\r\n vm.ageGroupId = results[0]['airbu.agegroup'];\r\n });\r\n }\r\n\r\n function searchTypeSelect(arg) {\r\n vm.chooseEnabled = false;\r\n switch (arg.value) {\r\n case 'athlete':\r\n vm.searchTypeAthlete = true;\r\n vm.searchTypeUser = false;\r\n vm.dropdownlabel = gettextCatalog.getString('Section');\r\n break;\r\n case 'users':\r\n vm.searchTypeAthlete = false;\r\n vm.searchTypeUser = true;\r\n vm.dropdownlabel = gettextCatalog.getString('UserGroup');\r\n break;\r\n }\r\n }\r\n\r\n function searchTypeDateBound() {\r\n if (vm.searchTypeUser) {\r\n angular.element('#searchType').ejDropDownList('selectItemByValue', vm.athletecoachList[1].value);\r\n vm.searchTypeAthlete = false;\r\n vm.searchTypeUser = true;\r\n } else {\r\n angular.element('#searchType').ejDropDownList('selectItemByValue', vm.athletecoachList[0].value);\r\n vm.searchTypeAthlete = true;\r\n vm.searchTypeUser = false;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(arg) {\r\n vm.sectionId = arg.value;\r\n vm.enableAgeGropu = true;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupId > 0) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n } else {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.sectionList[0].value;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n vm.ageGroupId = 0;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionId > 0) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n vm.sectionId = 0;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n }\r\n\r\n function show() {\r\n paramHelper.setParams([\r\n {'airbu.typeuser': (vm.searchTypeUser == true)},\r\n {'airbu.section': vm.sectionId},\r\n {'airbu.agegroup': vm.ageGroupId},\r\n ]);\r\n dataservice.assetInventoryByPerson(vm.searchTypeUser, vm.searchTypeAthlete, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = data.itemsList[0].Kiknel;\r\n var childdataSource = data.itemsList[0].EszkozAdatok;\r\n childdataSource = $filter('dateTimeStringFilter')(childdataSource, 'Kiadva');\r\n grid.childGrid.dataSource = $filter('dateTimeStringFilter')(childdataSource, 'Visszaveve');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.assetInventoryReportByUsers')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReportByUsers',\r\n config: {\r\n url: '/assetInventoryReportByUsers',\r\n templateUrl: 'app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.html',\r\n controller: 'AssetInventoryReportByUsersController',\r\n controllerAs: 'vm',\r\n title: 'AssetInventoryReportByUsers',\r\n settings: {\r\n navId: 312224,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Eszköz nyilvántartó (Személy)',\r\n orderTitle_en: 'Asset Inventory (Person)',\r\n parentId: 2224,\r\n content: 'AssetInventoryReportByUsers',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.assetInventoryReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReports',\r\n config: {\r\n url: '/assetInventoryReports',\r\n templateUrl: 'app/reports/assetInventoryReports/assetInventoryReports.html',\r\n title: 'AssetInventoryReports',\r\n settings: {\r\n navId: 2224,\r\n level: 2,\r\n order: 22,\r\n orderTitle_hu: 'Eszköz nyilvántartó',\r\n orderTitle_en: 'Asset Inventory',\r\n parentId: 4,\r\n content: 'AssetManagement',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteTransferController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\", \"$scope\", \"$filter\"];\r\n angular\r\n .module('app.reports.athleteTransfer')\r\n .controller('AthleteTransferController2', AthleteTransferController);\r\n\r\n function AthleteTransferController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteTransfer');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 6));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#attrcolumnTemplate1'},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150, template: '#columnTemplate2'},\r\n {field: 'Kerveny_Datum', headerText: gettextCatalog.getString('Kervenyezve'), textAlign: 'center', width: 150},\r\n {field: 'Elfogadva', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('Accepted'), textAlign: 'center', width: 100},\r\n {field: 'Lezarva', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('Closed'), textAlign: 'center', width: 100},\r\n {field: 'Lezarva_datum', headerText: gettextCatalog.getString('ClosedDate'), textAlign: 'center', width: 125},\r\n {field: 'KorcsoportValtas', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('KorcsoportValtas'), textAlign: 'center', width: 125},\r\n {field: 'KerelmezoNeve', headerText: gettextCatalog.getString('Kervenyezo'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEDZOVALTAS')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('KMEDZOVALTAS'), paramHelper.getParams([], ['athleteTransferList.coachId', 'athleteTransferList.szakosztalyId'])]).then(function (results) {\r\n vm.KMEDZOVALTAS = results[0];\r\n vm.sectionId = results[1]['athleteTransferList.szakosztalyId'] === null ? -1 : results[1]['athleteTransferList.szakosztalyId'];\r\n vm.coachId = results[1]['athleteTransferList.coachId'] === null ? -1 : results[1]['athleteTransferList.coachId'];\r\n });\r\n getSections();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'at.section',\r\n 'at.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['at.section'];\r\n vm.coachId = results[0]['at.coach'];\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'at.section': vm.sectionId},\r\n {'at.coach': vm.coachId}\r\n ]);\r\n dataservice.getAthleteTransferList(vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'EdzoLezartaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzakosztalyVezetoJovahagyva');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'KeszitesDatum');\r\n });\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.athleteTransfer')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.athleteTransfer',\r\n config: {\r\n url: '/athleteTransfer',\r\n templateUrl: 'app/reports/athleteTransfer/athleteTransfer.html',\r\n controller: 'AthleteTransferController2',\r\n controllerAs: 'vm',\r\n title: 'AthleteTransfer',\r\n settings: {\r\n navId: 2124,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Edzőváltás',\r\n orderTitle_en: 'Change Coach',\r\n parentId: 4,\r\n content: 'AthleteTransfer',\r\n activatorPermission: ['\"KMEDZOVALTAS\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AwayBudgetPlanSummary.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"paramHelper\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.reports.awayBudgetPlanSummary')\r\n .controller('AwayBudgetPlanSummaryController', AwayBudgetPlanSummary);\r\n\r\n function AwayBudgetPlanSummary(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanSummary');\r\n\r\n vm.sectionList = [];\r\n vm.sectionId = undefined;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = undefined;\r\n vm.coachList = [];\r\n vm.coachId = undefined;\r\n vm.colIndex = undefined;\r\n vm.rowindex = undefined;\r\n vm.toRange = undefined;\r\n vm.newRange = undefined;\r\n vm.fromRange = undefined;\r\n vm.onlyStartDate = false;\r\n vm.g = [];\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.onlyStartDateChanged = onlyStartDateChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n\r\n vm.columns = [\r\n {\r\n visible: false\r\n },\r\n {\r\n field: 'VersenySorszam',\r\n headerText: gettextCatalog.getString('TervSorszam'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevHelyCsopRsz',\r\n headerText: gettextCatalog.getString('NevHelyCsopRsz'),\r\n width: 200,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'VersenyKezdesIdopont',\r\n headerText: gettextCatalog.getString('RaceStartTime'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'VersenyBefejezesIdopont',\r\n headerText: gettextCatalog.getString('RaceEndTime'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Megnevezes',\r\n headerText: gettextCatalog.getString('Appellation'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'UtazasiKoltseg',\r\n headerText: gettextCatalog.getString('TravelCosts'),\r\n width: 130,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Etkezes',\r\n headerText: gettextCatalog.getString('Meal'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szallas',\r\n headerText: gettextCatalog.getString('Accommodation'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevezesiDij',\r\n headerText: gettextCatalog.getString('EntryFee'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'KikuldetesiKoltseg',\r\n headerText: gettextCatalog.getString('DelegacyCost'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Egyeb',\r\n headerText: gettextCatalog.getString('Other'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Osszesen',\r\n headerText: gettextCatalog.getString('Total'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'ElolegOsszege',\r\n headerText: gettextCatalog.getString('AmountOfAdvance'),\r\n width: 130,\r\n textAlign: 'center'\r\n },\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n allowTextWrap: true,\r\n allowSorting: false,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n enableHover: false,\r\n allowSelection: false,\r\n columns: vm.columns,\r\n rowTemplate: '#rowtemplate',\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'awayBudgetPlanSummary.sectionId',\r\n 'awayBudgetPlanSummary.ageGroupId',\r\n 'awayBudgetPlanSummary.coachId',\r\n 'awayBudgetPlanSummary.onlyStartDate',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['awayBudgetPlanSummary.sectionId'];\r\n vm.ageGroupId = results[0]['awayBudgetPlanSummary.ageGroupId'];\r\n vm.coachId = results[0]['awayBudgetPlanSummary.coachId'];\r\n if (results[0]['awayBudgetPlanSummary.onlyStartDate']) {\r\n $timeout(function () {\r\n angular.element('#onlyStartDate').ejCheckBox({checked: results[0]['awayBudgetPlanSummary.onlyStartDate']});\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n getActualCoachesList(0);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day === 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n function show() {\r\n //vm.onlyStartDate = angular.element('#onlyStartDate').ejCheckBox('isChecked');\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'awayBudgetPlanSummary.sectionId': vm.sectionId},\r\n {'awayBudgetPlanSummary.ageGroupId': vm.ageGroupId},\r\n {'awayBudgetPlanSummary.coachId': vm.coachId},\r\n {'awayBudgetPlanSummary.onlyStartDate': vm.onlyStartDate}\r\n ]);\r\n dataservice.KoltsegtervOsszesitoKimutatas(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.onlyStartDate).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function onlyStartDateChanged(args) {\r\n $timeout(function () {\r\n vm.onlyStartDate = args.value;\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.awayBudgetPlanSummary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.awayBudgetPlanSummary',\r\n config: {\r\n url: '/awayBudgetPlanSummary',\r\n templateUrl: 'app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.html',\r\n controller: 'AwayBudgetPlanSummaryController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanSummary',\r\n settings: {\r\n navId: 2174,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Idegenbeli költségterv összesítő kimutatás',\r\n orderTitle_en: 'Away Budget Plan Summary',\r\n parentId: 4,\r\n content: 'AwayBudgetPlanSummary',\r\n activatorPermission: ['\"MEGTIDEGENKOLTSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n DuplicatedAthletesController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$filter\", \"$scope\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.duplicatedAthletes')\r\n .controller('DuplicatedAthletesController', DuplicatedAthletesController);\r\n\r\n function DuplicatedAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $scope, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DuplicatedAthletesByNameAndSSN');\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, templat: '#duplicatedcolumnTemplate1'},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 150},\r\n {field: 'AnyjaNeve', headerText: gettextCatalog.getString('MothersName'), textAlign: 'center', width: 150},\r\n {field: 'RegisztraciosSzam', headerText: gettextCatalog.getString('Regisztracios'), textAlign: 'center', width: 150},\r\n {field: 'TajSzam', headerText: gettextCatalog.getString('SocialSecurityNumber'), textAlign: 'center', width: 150},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#duplicatedcolumnTemplate2'},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), type: 'boolean', textAlign: 'center', width: 100, displayAsCheckBox: true}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToUser = goToUser;\r\n vm.InactivesChange = InactivesChange;\r\n vm.InactivesToo = false;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('DUPLIKALTMEGT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDuplicatedAthletes();\r\n }\r\n });\r\n }\r\n\r\n function InactivesChange(arg) {\r\n getDuplicatedAthletes(arg.value);\r\n }\r\n\r\n function getDuplicatedAthletes(inactivesToo) {\r\n if (inactivesToo !== true) {\r\n inactivesToo = false;\r\n }\r\n dataservice.getDuplicatedAthletes(inactivesToo).then(function(data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.duplicatedAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.duplicatedAthletes',\r\n config: {\r\n url: '/duplicatedAthletes',\r\n templateUrl: 'app/reports/duplicatedAthletes/duplicatedAthletes.html',\r\n controller: 'DuplicatedAthletesController',\r\n controllerAs: 'vm',\r\n title: 'DuplicatedAthletes',\r\n settings: {\r\n navId: 2134,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Duplázott sportolók kimutatás',\r\n orderTitle_en: 'Duplicated Athletes Report',\r\n parentId: 4,\r\n content: 'DuplicatedAthletes',\r\n activatorPermission: ['\"DUPLIKALTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ExpiringDocumentsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$filter\", \"$state\"];\r\n angular\r\n .module('app.reports.expiringDocuments')\r\n .controller('ExpiringDocumentsController', ExpiringDocumentsController);\r\n\r\n function ExpiringDocumentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('ExpiringDocuments');\r\n vm.searchSPC = true;\r\n vm.searchPP = true;\r\n vm.searchPID = true;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.search = search;\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.selectdateTo = new Date(new Date().getFullYear(), new Date().getMonth() + 1);\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#exdotemplateDataColumn1'\r\n },\r\n {\r\n field: 'SportorvosiLejar',\r\n headerText: gettextCatalog.getString('SportPhysicalCertificateExpirationDate'),\r\n textAlign: 'center',\r\n width: 250\r\n },\r\n {\r\n field: 'UtlevelLejar',\r\n headerText: gettextCatalog.getString('PassportExpirationDate'),\r\n textAlign: 'center',\r\n width: 180\r\n },\r\n {\r\n field: 'SzemelyiLejar',\r\n headerText: gettextCatalog.getString('PersonalIDExpirationDate'),\r\n textAlign: 'center',\r\n width: 180\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#exdotemplateDataColumn2'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('LEJAROMEGT')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'ed.section',\r\n 'ed.agegroup',\r\n 'ed.coach',\r\n 'ed.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['ed.to'] != null) {\r\n vm.selectdateTo = results[0]['ed.to'];\r\n vm.savedSection = results[0]['ed.section'];\r\n vm.savedAgegroup = results[0]['ed.agegroup'];\r\n vm.savedCoach = results[0]['ed.coach'];\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n if (!vm.searchSPC && !vm.searchPP && !vm.searchPID) {\r\n swal({\r\n title: gettextCatalog.getString('AtLeastOneConditionHaveToBeSelected'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'ed.section': vm.SelectedSectionID},\r\n {'ed.agegroup': vm.SelectedAgeGroupID},\r\n {'ed.coach': vm.SelectedCoachID},\r\n {'ed.to': vm.selectdateTo}\r\n ]);\r\n dataservice.getExpiringDocuments(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID, vm.selectdateTo, vm.searchSPC, vm.searchPP, vm.searchPID)\r\n .then(function (data) {\r\n var athleteList = data.itemsList;\r\n athleteList = $filter('dateStringFilter')(data.itemsList, 'SportorvosiLejar');\r\n grid.dataSource = $filter('dateStringFilter')(athleteList, 'UtlevelLejar');\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, new Date(2000, 1, 1), vm.selectdateTo)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function getTeamsList() {\r\n dataservice.teamsDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID)\r\n .then(function (data) {\r\n vm.teamsList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.teamsList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach() {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': 0}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.savedSection > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.savedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0]);\r\n } else if (vm.SelectedSectionID > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.SelectedSectionID);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.savedAgegroup > 0) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.savedAgegroup);\r\n } else {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else if (vm.SelectedAgeGroupID > 0) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.SelectedAgeGroupID);\r\n }\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.savedCoach > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.savedCoach);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else if (vm.SelectedCoachID > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.SelectedCoachID);\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.expiringDocuments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.expiringDocuments',\r\n config: {\r\n url: '/expiringDocuments',\r\n templateUrl: 'app/reports/expiringDocuments/expiringDocuments.html',\r\n controller: 'ExpiringDocumentsController',\r\n controllerAs: 'vm',\r\n title: 'ExpiringDocuments',\r\n settings: {\r\n navId: 2154,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Hamarosan lejáró dokumentumok, igazolások',\r\n orderTitle_en: 'Expiring documents and certificates',\r\n parentId: 4,\r\n content: 'ExpiringDocuments',\r\n activatorPermission: ['\"LEJAROMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n HealthReportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.healthReport')\r\n .controller('HealthReportController', HealthReportController);\r\n\r\n function HealthReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('HealthReport');\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1);\r\n vm.selectdateTo = new Date();\r\n vm.mainType = -1;\r\n vm.subType = -1;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.filteredSubTypes = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n vm.MainTypeSelect = MainTypeSelect;\r\n vm.mainTypeDataBound = mainTypeDataBound;\r\n vm.subTypeDataBound = subTypeDataBound;\r\n vm.goToModifyHealthEvent = goToModifyHealthEvent;\r\n vm.changeDateFrom = changeDateFrom;\r\n vm.changeDateTo = changeDateTo;\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#healthedit'},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 120},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'EdzokNeve', headerText: gettextCatalog.getString('Coaches'), textAlign: 'center', width: 150},\r\n {field: 'MettolMeddig', headerText: gettextCatalog.getString('TimeInterval'), textAlign: 'center', width: 120},\r\n {field: 'FoTipus', headerText: gettextCatalog.getString('MainType'), textAlign: 'center', width: 150},\r\n {field: 'AlTipus', headerText: gettextCatalog.getString('SubType'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('HEALTHREPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getHealthMainTypes();\r\n getHealthSubTypes();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'hr.section',\r\n 'hr.agegroup',\r\n 'hr.coach',\r\n 'hr.from',\r\n 'hr.to',\r\n 'hr.main',\r\n 'hr.sub'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['hr.section'];\r\n vm.ageGroupId = results[0]['hr.agegroup'];\r\n vm.coachId = results[0]['hr.coach'];\r\n vm.selectdateFrom = results[0]['hr.from'];\r\n vm.selectdateTo = results[0]['hr.to'];\r\n if (results[0]['hr.main']) {\r\n vm.mainType = results[0]['hr.main'];\r\n }\r\n if (results[0]['hr.sub']) {\r\n vm.subType = results[0]['hr.sub'];\r\n }\r\n });\r\n }\r\n\r\n function goToModifyHealthEvent(arg) {\r\n vm.selectedGridRow = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('EgeszsegEsetId', 'equal', arg))[0];\r\n console.log('selectedGridRow', selectedGridRow);\r\n paramHelper.setParams([{\r\n 'athleteModify.sportoloId': vm.selectedGridRow.SportoloId,\r\n 'mofifyHealthAthleteId': vm.selectedGridRow.SportoloId,\r\n 'mofifyHealthAthleteName': vm.selectedGridRow.SportoloNev,\r\n 'mofifyHealthAthleteSocialSecurity': vm.selectedGridRow.taj,\r\n 'mofifyHealthAthleteBirthDate': vm.selectedGridRow.SzuletesiIdo,\r\n 'mofifyHealthId': vm.selectedGridRow.EgeszsegEsetId,\r\n 'mofifyHealthKezeles': vm.selectedGridRow.kezeles,\r\n 'mofifyHealthLeiras': vm.selectedGridRow.leiras,\r\n 'mofifyHealthLetrehozas': vm.selectedGridRow.Letrehozas,\r\n 'mofifyHealthMettol': vm.selectedGridRow.Mettol,\r\n 'mofifyHealthMeddig': vm.selectedGridRow.Meddig,\r\n 'mofifyHealthTipus': vm.selectedGridRow.FoTipus,\r\n 'mofifyHealthAlTipus': vm.selectedGridRow.AlTipus,\r\n 'fromState': 'report',\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.modifyHealthEvent');\r\n }\r\n\r\n function MainTypeSelect(arg) {\r\n var mainKey = vm.healthMainType.filter(function (MainType) {\r\n return MainType.text === arg.text;\r\n });\r\n if (mainKey[0] != undefined) {\r\n vm.filteredSubTypes = [];\r\n for (var i = 0; i < vm.healthSubType.length; i++) {\r\n if (vm.healthSubType[i].Fotipus === mainKey[0].value) {\r\n vm.filteredSubTypes.push(vm.healthSubType[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList().then(function (response) {\r\n vm.healthMainType.push({text: gettextCatalog.getString('All'), value: -1});\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({text: response.itemsList[i].Nev, value: response.itemsList[i].Id});\r\n }\r\n });\r\n }\r\n\r\n function getHealthSubTypes() {\r\n dataservice.healthSubTypesList().then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthSubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].Id,\r\n Fotipus: response.itemsList[i].FotipusId\r\n });\r\n }\r\n });\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'hr.section': vm.sectionId},\r\n {'hr.agegroup': vm.ageGroupId},\r\n {'hr.coach': vm.coachId},\r\n {'hr.from': vm.selectdateFrom},\r\n {'hr.to': vm.selectdateTo},\r\n {'hr.main': vm.mainType},\r\n {'hr.sub': vm.subType}\r\n ]);\r\n dataservice.HealthReport(vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId, vm.coachId, vm.mainType, vm.subType).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(-1);\r\n }\r\n }\r\n }\r\n\r\n function mainTypeDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#MainTypeDropDown').ejDropDownList('selectItemByValue', vm.healthMainType[0].value);\r\n } else {\r\n angular.element('#MainTypeDropDown').ejDropDownList('selectItemByValue', vm.mainType);\r\n }\r\n }\r\n\r\n function subTypeDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#SubTypeDropDown').ejDropDownList('selectItemByValue', vm.filteredSubTypes[0].value);\r\n } else {\r\n angular.element('#SubTypeDropDown').ejDropDownList('selectItemByValue', vm.subType);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function changeDateFrom(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(vm.ageGroupId);\r\n }\r\n\r\n function changeDateTo(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(vm.ageGroupId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.healthReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.healthReport',\r\n config: {\r\n url: '/healthReport',\r\n templateUrl: 'app/reports/healthReport/healthReport.html',\r\n controller: 'HealthReportController',\r\n controllerAs: 'vm',\r\n title: 'HealthReport',\r\n settings: {\r\n navId: 2184,\r\n level: 2,\r\n order: 18,\r\n orderTitle_hu: 'Egészségügyi adatok',\r\n orderTitle_en: 'Health Data',\r\n parentId: 4,\r\n content: 'HealthReport',\r\n activatorPermission: ['\"HEALTHREPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AnnualCompetitivePlansController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\", \"$scope\", \"$filter\"];\r\n angular\r\n .module('app.reports.managementReports.annualCompetitivePlans')\r\n .controller('AnnualCompetitivePlansController', AnnualCompetitivePlansController);\r\n\r\n function AnnualCompetitivePlansController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualCompetitivePlans');\r\n\r\n // Create variables\r\n vm.params = [];\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 6));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#ancoplcolumnTemplate1', textAlign: 'center', width: 60},\r\n {field: 'Egyeni', headerText: gettextCatalog.getString('Individual'), textAlign: 'center', width: 80, displayAsCheckBox: true},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150, template: '#ancopfiltersection'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#ancopopencoach'},\r\n {field: 'KeszitesDatum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 150},\r\n {field: 'EdzoLezarta', type: 'boolean', headerText: gettextCatalog.getString('Closed'), textAlign: 'center', width: 80, displayAsCheckBox: true},\r\n {field: 'EdzoLezartaDatum', headerText: gettextCatalog.getString('ClosedDate'), textAlign: 'center', width: 125},\r\n {field: 'SzakosztalyVezetoJovahagyta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', width: 150, displayAsCheckBox: true},\r\n {field: 'SzakosztalyVezetoJovahagyva', headerText: gettextCatalog.getString('SectionLeaderSignedDate'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n vm.openCoach = openCoach;\r\n vm.filterSection = filterSection;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIEV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTEVVERST'), paramHelper.getParams([], ['annualCompetitivePlans.coachId', 'annualCompetitivePlans.sectionId', 'managementReports.annualCompetitivePlans.dateFrom', 'managementReports.annualCompetitivePlans.dateTo'])]).then(function (results) {\r\n vm.MEGTEVVERST = results[0];\r\n vm.dateFromValue = results[1]['managementReports.annualCompetitivePlans.dateFrom'] ? results[1]['managementReports.annualCompetitivePlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.annualCompetitivePlans.dateTo'] ? results[1]['managementReports.annualCompetitivePlans.dateTo'] : vm.dateToValue;\r\n vm.params = results[1];\r\n });\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.params['annualCompetitivePlans.sectionId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.params['annualCompetitivePlans.sectionId']);\r\n vm.params['annualCompetitivePlans.sectionId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function filterSection(id) {\r\n vm.sectionId = id;\r\n search();\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.params['annualCompetitivePlans.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.params['annualCompetitivePlans.coachId']);\r\n vm.params['annualCompetitivePlans.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getAnnualCompetitiveReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'EdzoLezartaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzakosztalyVezetoJovahagyva');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'KeszitesDatum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n paramHelper.setParams([\r\n {\r\n 'annualCompetitivePlans.sectionId': vm.sectionId\r\n },\r\n {\r\n 'annualCompetitivePlans.coachId': vm.coachId\r\n },\r\n {'managementReports.annualCompetitivePlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.annualCompetitivePlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToAnnualSeasonPlan(args) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'AnnualSeasonPlanReport.Id': args\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports.annualCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.annualCompetitivePlans',\r\n config: {\r\n url: '/annualCompetitivePlans',\r\n templateUrl: 'app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.html',\r\n controller: 'AnnualCompetitivePlansController',\r\n controllerAs: 'vm',\r\n title: 'AnnualCompetitivePlans',\r\n settings: {\r\n navId: 35244,\r\n level: 3,\r\n order: 5,\r\n orderTitle_hu: 'Éves versenyeztetési tervek',\r\n orderTitle_en: 'Annual Competition Plans',\r\n parentId: 244,\r\n content: 'AnnualCompetitivePlans',\r\n activatorPermission: ['\"VEZETOIEV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports',\r\n config: {\r\n url: '/managementReports',\r\n templateUrl: 'app/reports/managementReports/managementReports.html',\r\n title: 'ManagementReports',\r\n settings: {\r\n navId: 244,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Vezetői kimutatások',\r\n orderTitle_en: 'Management Reports',\r\n parentId: 4,\r\n content: 'ManagementReports',\r\n activatorPermission: [\r\n '\"VEZETOIHJ\"',\r\n '\"VEZETOIEV\"',\r\n '\"VEZETOIHV\"',\r\n '\"MEGTHAVIJEL\"',\r\n '\"VEZETOIHE\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyAttendanceReportsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$filter\", \"$state\"];\r\n angular\r\n .module('app.reports.managementReports.monthlyAttendanceReports')\r\n .controller('MonthlyAttendanceReportsController', MonthlyAttendanceReportsController);\r\n\r\n function MonthlyAttendanceReportsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $filter, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendance');\r\n\r\n // Create variables\r\n vm.params = [];\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#moatrecolumnTemplate1', width: 60, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, template: '#marsection', textAlign: 'center'},\r\n {field: 'KorosztalyNeve', headerText: gettextCatalog.getString('AgeGroup'), width: 125, textAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, template: '#marcoach', textAlign: 'center'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'CsoportLetszam', headerText: gettextCatalog.getString('CsoportLetszam'), width: 125, textAlign: 'center'},\r\n {field: 'Erkezett', headerText: gettextCatalog.getString('Joined'), width: 100, textAlign: 'center'},\r\n {field: 'Tavozott', headerText: gettextCatalog.getString('Departed'), width: 100, textAlign: 'center'},\r\n {field: 'Edzo_Alairta', type: 'boolean', headerText: gettextCatalog.getString('CoachSigned'), width: 125, displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Szakosztalyvezeto_Alairta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), width: 150, displayAsCheckBox: true, textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.openCoach = openCoach;\r\n vm.clickOnSection = clickOnSection;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIHJ').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTHAVIJEL'), paramHelper.getParams([], ['monthlyAttendanceReports.coachId', 'monthlyAttendanceReports.sectionId', 'managementReports.monthlyAttendanceReports.dateFrom', 'managementReports.monthlyAttendanceReports.dateTo'])]).then(function (results) {\r\n vm.MEGTHAVIJEL = results[0];\r\n vm.dateFromValue = results[1]['managementReports.monthlyAttendanceReports.dateFrom'] ? results[1]['managementReports.monthlyAttendanceReports.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.monthlyAttendanceReports.dateTo'] ? results[1]['managementReports.monthlyAttendanceReports.dateTo'] : vm.dateToValue;\r\n vm.params = results[1];\r\n });\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function clickOnSection(id) {\r\n vm.sectionId = id;\r\n search();\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.params['monthlyAttendanceReports.sectionId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.params['monthlyAttendanceReports.sectionId']);\r\n vm.params['monthlyAttendanceReports.sectionId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.params['monthlyAttendanceReports.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.params['monthlyAttendanceReports.coachId']);\r\n vm.params['monthlyAttendanceReports.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getMonthlyAttendanceReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n });\r\n\r\n paramHelper.setParams([\r\n {\r\n 'monthlyAttendanceReports.sectionId': vm.sectionId\r\n },\r\n {\r\n 'monthlyAttendanceReports.coachId': vm.coachId\r\n },\r\n {'managementReports.monthlyAttendanceReports.dateFrom': vm.dateFromValue},\r\n {'managementReports.monthlyAttendanceReports.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToMonthlyAttendance(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'monthlyAttendance.id': attendanceId\r\n }\r\n ]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports.monthlyAttendanceReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.monthlyAttendanceReports',\r\n config: {\r\n url: '/monthlyAttendanceReports',\r\n templateUrl: 'app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.html',\r\n controller: 'MonthlyAttendanceReportsController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendance',\r\n settings: {\r\n navId: 32244,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Havi jelenléti ívek',\r\n orderTitle_en: 'Monthly Attendance Sheets',\r\n parentId: 244,\r\n content: 'MonthlyAttendance',\r\n activatorPermission: ['\"VEZETOIHJ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyCompetitivePlansController2.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\", \"$scope\", \"$filter\"];\r\n angular\r\n .module('app.reports.managementReports.monthlyCompetitivePlans')\r\n .controller('MonthlyCompetitivePlansController2', MonthlyCompetitivePlansController2);\r\n\r\n function MonthlyCompetitivePlansController2(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyCompetitivePlansManagementReport');\r\n\r\n // Create variables\r\n vm.promises = [];\r\n vm.coachId = -1;\r\n vm.sectionId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#mocomplcolumnTemplate1', width: 60, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n template: '#mocomplcolumnTemplate2',\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'ErvenyesDatum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'AlairtaDatum', headerText: gettextCatalog.getString('SignedDate'), width: 125, textAlign: 'center'},\r\n {\r\n field: 'JovahagytaDatum',\r\n headerText: gettextCatalog.getString('SectionLeaderSignedDate'), width: 125, textAlign: 'center'\r\n },\r\n {\r\n field: 'JovahagytaNeve',\r\n headerText: gettextCatalog.getString('SectionLeaderSigned'),\r\n template: '#mocomplcolumnTemplate3', width: 150, textAlign: 'center'\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyCompetitivePlan = goToMonthlyCompetitivePlan;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('VEZETOIHV'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n paramHelper.getParams([], [\r\n 'monthlyCompetitivePlans.coachId',\r\n 'monthlyCompetitivePlans.szakosztalyId', 'managementReports.monthlyCompetitivePlans.dateFrom', 'managementReports.monthlyCompetitivePlans.dateTo'])])\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTHAVIVERST = results[1];\r\n vm.dateFromValue = results[2]['managementReports.monthlyCompetitivePlans.dateFrom'] ? results[2]['managementReports.monthlyCompetitivePlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[2]['managementReports.monthlyCompetitivePlans.dateTo'] ? results[2]['managementReports.monthlyCompetitivePlans.dateTo'] : vm.dateToValue;\r\n vm.promises = results[2];\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.promises['monthlyCompetitivePlans.szakosztalyId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.promises['monthlyCompetitivePlans.szakosztalyId']);\r\n vm.promises['monthlyCompetitivePlans.szakosztalyId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.promises['monthlyCompetitivePlans.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.promises['monthlyCompetitivePlans.coachId']);\r\n vm.promises['monthlyCompetitivePlans.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getMonthlyCompetitiveReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'ErvenyesDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'JovahagytaDatum');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'AlairtaDatum');\r\n });\r\n paramHelper.setParams([\r\n {\r\n 'monthlyCompetitivePlans.szakosztalyId': vm.sectionId\r\n },\r\n {\r\n 'monthlyCompetitivePlans.coachId': vm.coachId\r\n },\r\n {'managementReports.monthlyCompetitivePlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.monthlyCompetitivePlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToMonthlyCompetitivePlan(planId, egyeni) {\r\n console.log(egyeni);\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'competitiveMonthlyPlan.competitivePlanId': planId\r\n },\r\n {'competitiveMonthlyPlan.szakosztalyId': vm.sectionId},\r\n {'monthlyCompetitivePlan.coachId': vm.coachId},\r\n {'competitiveMonthlyPlan.egyeni': egyeni}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports.monthlyCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.monthlyCompetitivePlans',\r\n config: {\r\n url: '/monthlyCompetitivePlans',\r\n templateUrl: 'app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.html',\r\n controller: 'MonthlyCompetitivePlansController2',\r\n controllerAs: 'vm',\r\n title: 'MonthlyCompetitivePlansManagementReport',\r\n settings: {\r\n navId: 34244,\r\n level: 3,\r\n order: 4,\r\n orderTitle_hu: 'Havi versenyeztetési tervek',\r\n orderTitle_en: 'Monthly Competitive Plans',\r\n parentId: 244,\r\n content: 'MonthlyCompetitivePlansManagementReport',\r\n activatorPermission: ['\"VEZETOIHV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingDiaryReportsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$scope\", \"$filter\", \"$state\"];\r\n angular\r\n .module('app.reports.managementReports.trainingDiaryReports')\r\n .controller('TrainingDiaryReportsController', TrainingDiaryReportsController);\r\n\r\n function TrainingDiaryReportsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $filter, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingDiaryReports');\r\n\r\n vm.promises = [];\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#tdropentd', textAlign: 'center', width: 60},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {field: 'KorosztalyNeve', headerText: gettextCatalog.getString('AgeGroup'), width: 100, textAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, template: '#tdrcoach', textAlign: 'center'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'EdzesNapokSzama', headerText: gettextCatalog.getString('NumberOfTrainingDays'), width: 125, textAlign: 'center'},\r\n {field: 'Edzo_Alairta', type: 'boolean', headerText: gettextCatalog.getString('CoachSigned'), textAlign: 'center', width: 125, displayAsCheckBox: true},\r\n {field: 'Szakosztalyvezeto_Alairta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', width: 150, displayAsCheckBox: true}\r\n ];\r\n\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.search = search;\r\n vm.openTrainingDiary = openTrainingDiary;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupId = -1;\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('VEZETOIHJ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n paramHelper.getParams([], [\r\n 'trainingDiaryReports.dateFromValue',\r\n 'trainingDiaryReports.dateToValue',\r\n 'trainingDiaryReports.sectionId',\r\n 'trainingDiaryReports.coachId',\r\n 'trainingDiaryReports.ageGroupId'])]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTHAVIJEL = results[1];\r\n vm.promises = results[2];\r\n if (vm.promises['trainingDiaryReports.dateFromValue']) {\r\n vm.dateFromValue = vm.promises['trainingDiaryReports.dateFromValue'];\r\n }\r\n if (vm.promises['weeklyTrainingPlans.dateToValue']) {\r\n vm.dateToValue = vm.promises['trainingDiaryReports.dateToValue'];\r\n }\r\n\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'trainingDiaryReports.dateFromValue',\r\n 'trainingDiaryReports.dateToValue',\r\n 'trainingDiaryReports.sectionId',\r\n 'trainingDiaryReports.coachId',\r\n 'trainingDiaryReports.ageGroupId'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['trainingDiaryReports.sectionId'];\r\n vm.ageGroupId = results[0]['trainingDiaryReports.ageGroupId'];\r\n vm.coachId = results[0]['trainingDiaryReports.coachId'];\r\n vm.dateFromValue = results[0]['trainingDiaryReports.dateFromValue'];\r\n vm.dateToValue = results[0]['trainingDiaryReports.dateToValue'];\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getAgeGroups(coachId) {\r\n dataservice.ageGroupSelectBetweenDates(coachId, vm.sectionId, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n vm.ageGroupList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n getAgeGroups(0);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n if (vm.coachId) {\r\n getAgeGroups(0);\r\n }\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getTrainingDiaryReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n });\r\n\r\n paramHelper.setParams(\r\n [\r\n {'trainingDiaryReports.dateFromValue': vm.dateFromValue},\r\n {'trainingDiaryReports.dateToValue': vm.dateToValue},\r\n {'trainingDiaryReports.sectionId': vm.sectionId},\r\n {'trainingDiaryReports.coachId': vm.coachId},\r\n {'trainingDiaryReports.ageGroupId': vm.ageGroupId},\r\n ]);\r\n }\r\n\r\n function openTrainingDiary(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'HaviJelenletiFejId': attendanceId}]);\r\n $state.go('administration.trainingDiary');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports.trainingDiaryReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.trainingDiaryReports',\r\n config: {\r\n url: '/trainingDiaryReports',\r\n templateUrl: 'app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.html',\r\n controller: 'TrainingDiaryReportsController',\r\n controllerAs: 'vm',\r\n title: 'TrainingDiaryReports',\r\n settings: {\r\n navId: 31244,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Képzési naplók',\r\n orderTitle_en: 'Training Diaries',\r\n parentId: 244,\r\n content: 'TrainingDiaryReports',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n WeeklyTrainingPlansController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$state\", \"$scope\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.reports.managementReports.weeklyTrainingPlans')\r\n .controller('WeeklyTrainingPlansController', WeeklyTrainingPlansController);\r\n\r\n function WeeklyTrainingPlansController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('WeeklyTrainingPlans');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n\r\n vm.dateToValue = getMonday(new Date(), 6);\r\n vm.dateFromValue = getMonday(new Date(), 0);\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#wetrplcolumnTemplate1', textAlign: 'center', width: 60},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', template: '#wetrplcolumnTemplate2', width: 150},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'HetSzama', headerText: gettextCatalog.getString('WeekNumber'), textAlign: 'center', width: 115},\r\n {field: 'Makrociklus', headerText: gettextCatalog.getString('MacroCycleNumber'), textAlign: 'center', width: 150},\r\n {field: 'Hetfo', headerText: gettextCatalog.getString('Monday'), textAlign: 'center', width: 115},\r\n {field: 'Vasarnap', headerText: gettextCatalog.getString('Sunday'), textAlign: 'center', width: 115}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIHE').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n Promise.all([authenticationService.getRight('MEGTHETIEDZTERV'), paramHelper.getParams([], ['managementReports.weeklyTrainingPlans.szakosztalyId', 'managementReports.weeklyTrainingPlans.coachId', 'managementReports.weeklyTrainingPlans.dateFrom', 'managementReports.weeklyTrainingPlans.dateTo'])])\r\n .then((results) => {\r\n vm.MEGTHETIEDZTERV = results[0];\r\n vm.sectionId = results[1]['managementReports.weeklyTrainingPlans.szakosztalyId'];\r\n vm.coachId = results[1]['managementReports.weeklyTrainingPlans.coachId'];\r\n vm.dateFromValue = results[1]['managementReports.weeklyTrainingPlans.dateFrom'] ? results[1]['managementReports.weeklyTrainingPlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.weeklyTrainingPlans.dateTo'] ? results[1]['managementReports.weeklyTrainingPlans.dateTo'] : vm.dateToValue;\r\n $timeout(function () {\r\n angular.element('#datepickerFrom').ejDatePicker({value: vm.dateFromValue});\r\n angular.element('#datepickerTo').ejDatePicker({value: vm.dateToValue});\r\n }, 0);\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n vm.dateFromDB = function () {\r\n console.log('vm.dateFromDB');\r\n };\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value, vm.dateFromValue, vm.dateToValue);\r\n }\r\n\r\n vm.dateChange = function (args) {\r\n getActualCoachesList(vm.sectionId, args.value, vm.dateToValue);\r\n };\r\n\r\n vm.dateChange2 = function (args) {\r\n getActualCoachesList(vm.sectionId, vm.dateFromValue, args.value);\r\n };\r\n\r\n function getActualCoachesList(sectionId, dateFrom, dateTo) {\r\n return dataservice.coachDropDownList(sectionId, 0, dateFrom, dateTo).then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getWeeklyTrainingPlans(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Hetfo');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Vasarnap');\r\n });\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlans.szakosztalyId': vm.sectionId},\r\n {'weeklyTrainingPlans.coachId': vm.coachId},\r\n {'managementReports.weeklyTrainingPlans.szakosztalyId': vm.sectionId},\r\n {'managementReports.weeklyTrainingPlans.coachId': vm.coachId},\r\n {'managementReports.weeklyTrainingPlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.weeklyTrainingPlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'weeklyTrainingPlan.trainingPlanId': trainingPlanId\r\n },\r\n {\r\n 'weeklyTrainingPlans.szakosztalyId': vm.sectionId\r\n },\r\n {\r\n 'weeklyTrainingPlans.coachId': vm.coachId\r\n }\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.managementReports.weeklyTrainingPlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.weeklyTrainingPlans',\r\n config: {\r\n url: '/weeklyTrainingPlans',\r\n templateUrl: 'app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.html',\r\n controller: 'WeeklyTrainingPlansController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTrainingPlans',\r\n settings: {\r\n navId: 33244,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Heti edzéstervek',\r\n orderTitle_en: 'Weekly Training Plans',\r\n parentId: 244,\r\n content: 'WeeklyTrainingPlans',\r\n activatorPermission: ['\"VEZETOIHE\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MonthlyCompetitivePlansController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"paramHelper\", \"$state\", \"$scope\", \"$q\", \"$filter\"];\r\n angular\r\n .module('app.reports.monthlyCompetitivePlans')\r\n .controller('MonthlyCompetitivePlansController', MonthlyCompetitivePlansController);\r\n\r\n function MonthlyCompetitivePlansController(log, dataservice, $rootScope, gettextCatalog, authenticationService, paramHelper, $state, $scope, $q, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyCompetitivePlans');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n vm.savedSectionId = 0;\r\n vm.savedCoachId = 0;\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyCompetitivePlan = goToMonthlyCompetitivePlan;\r\n vm.openCoach = openCoach;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'SportoloId', isPrimaryKey: true, visible: false},\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#moncompplacolumnTemplate1'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#monthlyCompetitivePlanscolumnTemplate1'\r\n },\r\n {field: 'ErvenyesDatum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'AlairtaDatum', headerText: gettextCatalog.getString('SignedDate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'JovahagytaDatum', headerText: gettextCatalog.getString('ApprovalDate'), textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'JovahagytaNeve',\r\n headerText: gettextCatalog.getString('Approval'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#monthlyCompetitivePlanscolumnTemplate2'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n gridLines: 'Both',\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMHAVIVERSTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTHAVIVERST'), paramHelper.getParams([], ['mcp.coach', 'mcp.section'])]).then(function (results) {\r\n vm.MEGTHAVIVERST = results[0];\r\n vm.sectionId = results[1]['mcp.section'];\r\n vm.coachId = results[1]['mcp.coach'] === null ? -1 : results[1]['mcp.coach'];\r\n });\r\n setDropDowns();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'mcp.section',\r\n 'mcp.coach',\r\n 'mcp.from',\r\n 'mcp.to',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['mcp.section'] > 0) {\r\n vm.savedSectionId = results[0]['mcp.section'];\r\n vm.savedCoachId = results[0]['mcp.coach'];\r\n vm.dateFromValue = results[0]['mcp.from'];\r\n vm.dateToValue = results[0]['mcp.to'];\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.savedSectionId > 0) {\r\n vm.sectionId = vm.savedSectionId;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.savedCoachId > 0) {\r\n vm.coachId = vm.savedCoachId;\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'mcp.section': vm.sectionId},\r\n {'mcp.coach': vm.coachId},\r\n {'mcp.from': vm.dateFromValue},\r\n {'mcp.to': vm.dateToValue}\r\n ]);\r\n dataservice.getMonthlyCompetitivePlans(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'ErvenyesDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'AlairtaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'JovahagytaDatum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToMonthlyCompetitivePlan(planId) {\r\n var result = $.grep(grid.currentViewData, function (e) {\r\n return e.planId == planId;\r\n });\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'competitiveMonthlyPlan.edzoId': result[0].EdzoId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.edzoNev': result[0].EdzoNeve\r\n },\r\n {\r\n 'competitiveMonthlyPlan.szakosztalyNev': result[0].szakosztalyNev\r\n },\r\n {\r\n 'competitiveMonthlyPlan.szakosztalyId': result[0].SzakosztalyId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.competitivePlanId': result[0].planId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.egyeni': result[0].egyeni\r\n }\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.monthlyCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.monthlyCompetitivePlans',\r\n config: {\r\n url: '/monthlyCompetitivePlans',\r\n templateUrl: 'app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.html',\r\n controller: 'MonthlyCompetitivePlansController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyCompetitivePlans',\r\n settings: {\r\n navId: 274,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Havi versenyeztetési tervek',\r\n orderTitle_en: 'Monthly Competitive Plans',\r\n parentId: 4,\r\n content: 'MonthlyCompetitivePlans',\r\n activatorPermission: ['\"KMHAVIVERSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n PlayUpAndDownController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.playUpAndDown')\r\n .controller('PlayUpAndDownController', PlayUpAndDownController);\r\n\r\n function PlayUpAndDownController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('PlayUpAndDown');\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#puadcoach'\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#puadath'\r\n },\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center',\r\n width: 115\r\n },\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('EducationalFee'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('PaidAmount'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMATFELJATSZ').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'puad.section',\r\n 'puad.agegroup',\r\n 'puad.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n console.log('setDropDowns', results[0]);\r\n vm.sectionId = results[0]['puad.section'];\r\n vm.sectionIdValue = results[0]['puad.section'];\r\n vm.ageGroupId = results[0]['puad.agegroup'];\r\n vm.ageGroupIdValue = results[0]['puad.agegroup'];\r\n vm.coachId = results[0]['puad.coach'];\r\n vm.coachIdValue = results[0]['puad.coach'];\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n vm.ageGroupId = -1;\r\n getAgeGroups();\r\n }\r\n\r\n // Get age groups' list\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (!vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(agegroup) {\r\n if (!agegroup) {\r\n agegroup = 0;\r\n }\r\n return dataservice.coachDropDownList(vm.sectionId, agegroup).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'puad.section': vm.sectionId},\r\n {'puad.agegroup': vm.ageGroupId},\r\n {'puad.coach': vm.coachId}\r\n ]);\r\n dataservice.getUpAndDownPlayers(vm.sectionId, vm.ageGroupId, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.playUpAndDown')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.playUpAndDown',\r\n config: {\r\n url: '/playUpAndDown',\r\n templateUrl: 'app/reports/playUpAndDown/playUpAndDown.html',\r\n controller: 'PlayUpAndDownController',\r\n controllerAs: 'vm',\r\n title: 'PlayUpAndDown',\r\n settings: {\r\n navId: 2104,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Át/Feljátszó sportolók',\r\n orderTitle_en: 'Play Up Athletes',\r\n parentId: 4,\r\n content: 'PlayUpAndDown',\r\n activatorPermission: ['\"KMATFELJATSZ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n RaceResultsReportController.$inject = [\"log\", \"logger\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$scope\", \"$filter\", \"$state\", \"$timeout\"];\r\n angular\r\n .module('app.reports.raceResultsReport')\r\n .controller('RaceResultsReportController', RaceResultsReportController);\r\n\r\n function RaceResultsReportController(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('RaceResultsReport');\r\n\r\n // Create variables\r\n vm.searched = '';\r\n vm.requestedData = {\r\n Csapat: {CsapatId: undefined, CsapatNev: undefined}, // Csapat neve\r\n Szakosztaly: {SzakosztalyId: 0, SzakosztalyNev: undefined},\r\n Korcsoport: {KorcsoportId: undefined, KorcsoportNev: undefined},\r\n Edzo: {EdzoId: undefined, EdzoNev: undefined}, // int Edző (UserId)\r\n Sportolo: {SportoloId: undefined, SportoloNev: undefined, SzuletesiIdo: undefined}, // Sportoló adatai\r\n EredmenySzoveg: undefined, // Eredmény (szöveg input mező)\r\n DatumTol: undefined, // DateTime? Dátumtól\r\n DatumIg: undefined, // DateTime? Dátumig\r\n Helyszin: undefined, // string Helyszín\r\n Helyezes: undefined, // string Helyezés\r\n Ertekeles: undefined, // string Értékelés\r\n Jellege: undefined, // string Jellege\r\n Verseny: undefined, // string Verseny\r\n Eredmeny: undefined, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n Foto: undefined, // (megjeleníteni kell kiválaszás esetén)\r\n SportoloKereses: true\r\n };\r\n // For print\r\n vm.reportParameters = {};\r\n vm.reportParameters2 = {};\r\n // section\r\n vm.sectionList = [];\r\n // age group\r\n vm.ageGroupList = [];\r\n // team\r\n vm.teamsList = [];\r\n vm.selectedTeamId = undefined;\r\n // coach\r\n vm.coachList = [];\r\n vm.selectedCoachList;\r\n vm.birthDate = undefined;\r\n vm.selectdateTo = new Date();\r\n vm.requestedData.DatumIg = new Date();\r\n\r\n vm.coachRating = undefined; // Edzo ertekelese\r\n vm.athleteData = {\r\n Id: undefined,\r\n IdSzakosztaly: undefined, // Int32\r\n Korcsoport: undefined, // Int32\r\n JelenlegiEdzo: undefined, // int\r\n Nev: undefined, // String\r\n SzuletesiIdo: undefined // DateTime\r\n };\r\n\r\n vm.reportDatasGrid = [];\r\n vm.reportDatasGrid[0] = vm.reportData1;\r\n vm.reportDatasGrid[1] = vm.reportData2;\r\n vm.reportDatasGrid[2] = vm.reportData3;\r\n\r\n // GRID\r\n vm.pageData = 1;\r\n vm.actionBegin = actionBegin;\r\n vm.schoolGridSelectedRowData = {};\r\n vm.columnsAthlete = [\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: '60',\r\n template: '#rareretemplateDataColumn3'\r\n },\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('ResultText'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('ResultScore'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('ResultTime'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('ResultDistance'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DateFrom'),\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), textAlign: 'center', width: '100'},\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Location'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: '115'\r\n },\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '250', textAlign: 'center'},\r\n {\r\n field: 'Ertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('Jellege'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), textAlign: 'center', width: '90'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn2'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn4'\r\n }\r\n ];\r\n vm.columnsTeam = [\r\n\r\n {field: 'Link', headerText: '', width: '60', template: '#rareretemplateDataColumn7', textAlign: 'center'},\r\n {\r\n field: 'CsapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n width: '150',\r\n template: '#rareretemplateDataColumn5',\r\n textAlign: 'center'\r\n },\r\n {field: 'EredmenySzoveg', headerText: gettextCatalog.getString('ResultText'), width: '200', textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: '115', textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), width: '115', textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('DateFrom'), width: '90', textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), width: '90', textAlign: 'center'},\r\n {field: 'Helyszin', headerText: gettextCatalog.getString('Location'), width: '125', textAlign: 'center'},\r\n {field: 'Helyezes', headerText: gettextCatalog.getString('AthleteRanking'), width: '100', textAlign: 'center'},\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {field: 'Ertekeles', headerText: gettextCatalog.getString('CoachRating'), width: '200', textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('Jellege'), width: '175', textAlign: 'center'},\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), textAlign: 'center', width: '90'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: '150',\r\n template: '#rareretemplateDataColumn6',\r\n textAlign: 'center'\r\n },\r\n {field: 'Print', headerText: gettextCatalog.getString('Print'), width: '100', template: '#rareretemplateDataColumn8', textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n vm.clearYear = clearYear;\r\n vm.clearTeam = clearTeam;\r\n vm.clearSection = clearSection;\r\n vm.clearAgeGroup = clearAgeGroup;\r\n vm.clearCoach = clearCoach;\r\n vm.clearSelectdateFrom = clearSelectdateFrom;\r\n vm.clearSelectdateTo = clearSelectdateTo;\r\n\r\n vm.openCoach = openCoach;\r\n vm.radioButtonChecked = radioButtonChecked;\r\n vm.radioButtonClear = radioButtonClear;\r\n // Buttons for Grid\r\n vm.searchTeam = searchTeam; // Grid data change button\r\n vm.searchAthlete = searchAthlete; // Grid data change button\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n\r\n // sectionDropDown\r\n vm.sectionDataBound = sectionDataBound; // Public\r\n vm.sectionSelect = sectionSelect; // Public\r\n // ageGroupDropDown\r\n vm.ageGroupDataBound = ageGroupDataBound; // Public\r\n vm.ageGroupSelect = ageGroupSelect; // Public\r\n // teamDropDown\r\n vm.teamsDataBound = teamsDataBound; // Public\r\n vm.teamsSelect = teamsSelect; // Public\r\n // coach\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.coachSelect = coachSelect;\r\n // date pickers\r\n vm.selectdateFromChange = selectdateFromChange;\r\n vm.selectdateToChange = selectdateToChange;\r\n vm.selectBirthDate = selectBirthDate;\r\n\r\n vm.selectdCoach = '';\r\n vm.deleteResult = deleteResult;\r\n vm.open = open;\r\n vm.printAthleteResult = printAthleteResult;\r\n vm.printTeamResult = printTeamResult;\r\n\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n vm.isAdmin = false;\r\n vm.showDelButton = false;\r\n vm.selectedRowData = {};\r\n vm.nameChange = nameChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthlete,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Print']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Print']);\r\n },\r\n rowSelected: function () {\r\n $timeout(function () {\r\n vm.showDelButton = true;\r\n }, 10);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var grid2 = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsTeam,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Print']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Print']);\r\n },\r\n rowSelected: function () {\r\n $timeout(function () {\r\n vm.showDelButton = true;\r\n }, 10);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n grid2.appendTo('#Grid2');\r\n grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n paramHelper.getParams([], ['raceResultsReport.athleteData', 'teamID']),\r\n authenticationService.getRight('KMVERSEREDM')\r\n ]).then(function (results) {\r\n if (!results[1]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.params = results;\r\n paramHelper.removeParam('raceResultsReport.athleteData'); // Clear athleteData\r\n paramHelper.removeParam('teamID'); // Clear teamID\r\n if (results[0]['teamID']) {\r\n vm.SelectedTeamID = results[0]['teamID'];\r\n getResultTeam();\r\n // Clear();\r\n } else if (results[0]['raceResultsReport.athleteData']) {\r\n vm.athleteData = results[0]['raceResultsReport.athleteData'];\r\n vm.athleteData.Nev = results[0]['raceResultsReport.athleteData'].Nev;\r\n vm.requestedData.Sportolo.SportoloId = results[0]['raceResultsReport.athleteData'].SportolokId;\r\n getActualCoachesList();\r\n searchAthlete();\r\n //Clear();\r\n } else {\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n }\r\n $timeout(function () {\r\n //angular.element('#birthDate').ejDropDownList('selectItemByValue', new Date(data.ErvenyessegTol).getFullYear() + ' / ' + new Date(data.ErvenyessegIg).getFullYear());\r\n vm.birthDate = vm.athleteData.SzuletesiIdo;\r\n }, 0);\r\n\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n getTeamsList();\r\n }\r\n });\r\n }\r\n\r\n function nameChange() {\r\n vm.requestedData.Sportolo.SportoloId = null;\r\n }\r\n\r\n function searchAthlete() {\r\n vm.searched = 'athlete';\r\n vm.requestedData.SportoloKereses = true;\r\n vm.requestedData.Sportolo.SportoloNev = vm.athleteData.Nev;\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.SelectedSectionID;\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.SelectedAgeGroupID;\r\n vm.requestedData.Edzo.EdzoId = vm.SelectedCoachID;\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n vm.requestedData.Sportolo.SzuletesiIdo = vm.birthDate;\r\n dataservice.getResultsReports(vm.requestedData)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumTol');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumIg');\r\n grid.dataSource = $filter('valueChangeFromObject')(data.itemsList, 'Eredmeny');\r\n vm.isAdmin = data.isAdmin;\r\n });\r\n angular.element('#hidedContent').css('height', '500px');\r\n angular.element('#hidedContent2').css('height', '0px');\r\n }\r\n\r\n function getResultTeam() {\r\n vm.requestedData.SportoloKereses = false;\r\n vm.requestedData.Sportolo.SportoloNev = vm.athleteData.Nev;\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.SelectedSectionID;\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.SelectedAgeGroupID;\r\n vm.requestedData.Edzo.EdzoId = vm.SelectedCoachID;\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n dataservice.getResultsReports(vm.requestedData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumTol');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumIg');\r\n grid2.dataSource = $filter('valueChangeFromObject')(data.itemsList, 'Eredmeny');\r\n vm.isAdmin = data.isAdmin;\r\n });\r\n angular.element('#hidedContent').css('height', '0px');\r\n angular.element('#hidedContent2').css('height', '500px');\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function teamsSelect(args) {\r\n vm.SelectedTeamID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedTeamID = 0;\r\n }\r\n vm.requestedData.Csapat.CsapatNev = angular.element('#Team').data('ejDropDownList').currentValue;\r\n angular.element('#coach').ejDropDownList('selectItemByValue', 0);\r\n vm.requestedData.Edzo.EdzoId = undefined;\r\n vm.requestedData.Edzo.EdzoNev = undefined;\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.requestedData.DatumTol, vm.requestedData.DatumIg) // Need the section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() { // getCoaches - EdzoFelhasznalokDropdownSelect. use this, when not yet selected section and age group\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function getTeamsList() {\r\n dataservice.teamsDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID)\r\n .then(function (data) {\r\n vm.teamsList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.teamsList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function selectdateFromChange(args) {\r\n vm.requestedData.DatumTol = args.value; // DateTime? Dátumtól\r\n vm.requestedData.DatumTol = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function selectdateToChange(args) {\r\n vm.requestedData.DatumIg = args.value; // DateTime? Dátumig\r\n vm.requestedData.DatumIg = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function selectBirthDate(args) {\r\n vm.birthDate = args.value; // DateTime?\r\n vm.requestedData.Sportolo.SzuletesiIdo = args.value;\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'teams.sectionId': '0'},\r\n {'teams.ageGroupId': '0'},\r\n {'teams.team': id}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function open(id) {\r\n if (vm.requestedData.SportoloKereses === true) {\r\n $q.all([authenticationService.getRight('MEGTEERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportAthletes.Id': id}]);\r\n $state.go('administration.resultReportAthletes');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportTeam.Id': id}]);\r\n $state.go('administration.resultReportTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function radioButtonChecked(args) {\r\n vm.requestedData.Eredmeny = args.model.value; // Edzo ertekelese - Eredmeny int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n }\r\n\r\n function radioButtonClear() {\r\n vm.requestedData.Eredmeny = undefined;\r\n }\r\n\r\n function searchTeam() {\r\n vm.searched = 'team';\r\n getResultTeam();\r\n angular.element('#hidedContent').css('height', '0px');\r\n angular.element('#hidedContent2').css('height', '500px');\r\n }\r\n\r\n function actionBegin(args) {\r\n if (args.requestType && (args.requestType === 'paging' || args.requestType === 'sorting')) {\r\n args.cancel = true;\r\n args.previousPage = args.currentPage;\r\n }\r\n }\r\n\r\n function deleteResult() {\r\n var csapatEredmeny = undefined;\r\n var resultReportID = 0;\r\n vm.selectedRowsInGrid1 = grid.getSelectedRecords();\r\n vm.selectedRowsInGrid2 = grid2.getSelectedRecords();\r\n if (!vm.selectedRowsInGrid1[0] && !vm.selectedRowsInGrid2[0]) {\r\n csapatEredmeny = '';\r\n } else if (!vm.selectedRowsInGrid2[0] && vm.selectedRowsInGrid1[0]) {\r\n csapatEredmeny = false;\r\n resultReportID = vm.selectedRowsInGrid1[0].Id;\r\n } else if (!vm.selectedRowsInGrid1[0] && vm.selectedRowsInGrid2[0]) {\r\n csapatEredmeny = true;\r\n resultReportID = vm.selectedRowsInGrid2[0].Id;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected result report?'),\r\n text: gettextCatalog.getString('You will not be able to recover the deleted result report!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this result report'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteResultsReport(resultReportID, csapatEredmeny)\r\n .then(function () {\r\n vm.showDelButton = false;\r\n log.successMsg(gettextCatalog.getString('ResultReportDeleted'));\r\n swal(gettextCatalog.getString('Deleted!'), '', 'success');\r\n if (vm.requestedData.SportoloKereses === true) {\r\n searchAthlete();\r\n } else {\r\n getResultTeam();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function Clear() {\r\n vm.requestedData = {\r\n Csapat: {CsapatId: undefined, CsapatNev: undefined}, // Csapat neve\r\n Szakosztaly: {SzakosztalyId: 0, SzakosztalyNev: undefined},\r\n Korcsoport: {KorcsoportId: undefined, KorcsoportNev: undefined},\r\n Edzo: {EdzoId: undefined, EdzoNev: undefined}, // int Edző (UserId)\r\n Sportolo: {SportoloId: undefined, SportoloNev: undefined, SzuletesiIdo: undefined}, // Sportoló adatai\r\n EredmenySzoveg: undefined, // Eredmény (szöveg input mező)\r\n DatumTol: undefined, // DateTime? Dátumtól\r\n DatumIg: undefined, // DateTime? Dátumig\r\n Helyszin: undefined, // string Helyszín\r\n Helyezes: undefined, // string Helyezés\r\n Ertekeles: undefined, // string Értékelés\r\n Jellege: undefined, // string Jellege\r\n Eredmeny: undefined, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n Foto: undefined, // (megjeleníteni kell kiválaszás esetén)\r\n SportoloKereses: true\r\n };\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n }\r\n\r\n function printAthleteResult(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].SportoloNev === null ? '' : data.result[0].SportoloNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n eredmeny: data.result[0].Eredmeny === null ? '' : data.result[0].Eredmeny, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n eIdo: data.result[0].EredmenyIdo === null ? '' : data.result[0].EredmenyIdo,\r\n ePont: data.result[0].EredmenyPont === null ? '' : data.result[0].EredmenyPont,\r\n eSzoveg: data.result[0].EredmenySzoveg === null ? '' : data.result[0].EredmenySzoveg, // Eredmény (szöveg input mező)\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles\r\n };\r\n\r\n var dialogObj = angular.element('#printDialogA').data('ejDialog');\r\n dialogObj.open();\r\n }, 100);\r\n });\r\n }\r\n\r\n function printTeamResult(id) {\r\n new ej2.data.DataManager(grid2.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters2 = {\r\n nev: data.result[0].CsapatNev === null ? '' : data.result[0].CsapatNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles,\r\n id: data.result[0].Id === null ? '' : data.result[0].Id\r\n };\r\n\r\n var dialogObj = angular.element('#printDialogT').data('ejDialog');\r\n dialogObj.open();\r\n }, 1000);\r\n });\r\n }\r\n\r\n function teamsDataBound() {\r\n if (vm.teamsList.length === 1) {\r\n angular.element('#Team').ejDropDownList('selectItemByValue', vm.teamsList[0].value);\r\n vm.requestedData.Csapat.CsapatId = vm.teamsList[0].value;\r\n } else {\r\n angular.element('#Team').ejDropDownList('selectItemByValue', vm.SelectedTeamID);\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.ageGroupList[0].value;\r\n } else if (vm.athleteData.Korcsoport > 0) {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.athleteData.Korcsoport;\r\n }\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.requestedData.Edzo.EdzoId = vm.coachList[0].value;\r\n } else if (vm.athleteData.JelenlegiEdzo > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n //angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.sectionList[0].value;\r\n } else if (vm.athleteData.IdSzakosztaly > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.athleteData.IdSzakosztaly;\r\n }\r\n }\r\n\r\n function clearYear() {\r\n vm.selectedBirthDate = undefined;\r\n angular.element('#birthDate').ejDatePicker({value: new Date('')});\r\n }\r\n\r\n function clearTeam() {\r\n vm.SelectedTeamID = undefined;\r\n angular.element('#Team').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearSection() {\r\n vm.SelectedSectionID = undefined;\r\n angular.element('#section').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearAgeGroup() {\r\n vm.SelectedAgeGroupID = undefined;\r\n angular.element('#ageGroup').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearCoach() {\r\n vm.SelectedCoachID = undefined;\r\n angular.element('#coach').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearSelectdateFrom() {\r\n vm.selectdateFrom = undefined;\r\n angular.element('#selectdateFrom').ejDatePicker({value: new Date('')});\r\n getActualCoachesList();\r\n }\r\n\r\n function clearSelectdateTo() {\r\n vm.selectdateTo = undefined;\r\n angular.element('#selectdateTo').ejDatePicker({value: new Date('')});\r\n getActualCoachesList();\r\n }\r\n }\r\n})();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.raceResultsReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.raceResultsReport',\r\n config: {\r\n url: '/raceResultsReport',\r\n templateUrl: 'app/reports/raceResultsReport/raceResultsReport.html',\r\n controller: 'RaceResultsReportController',\r\n controllerAs: 'vm',\r\n title: 'RaceResultsReport',\r\n settings: {\r\n navId: 2114,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Versenyeredmények',\r\n orderTitle_en: 'Competition Results',\r\n parentId: 4,\r\n content: 'RaceResultsReport',\r\n activatorPermission: ['\"KMVERSEREDM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports',\r\n config: {\r\n title: 'Reports',\r\n url: '/reports',\r\n templateUrl: 'app/reports/reports.html',\r\n settings: {\r\n navId: 4,\r\n level: 1,\r\n order: 4,\r\n parentId: 0,\r\n content: 'Reports',\r\n faIcon: 'fa-chart-pie',\r\n activatorPermission: ['\"HIANYZASMEGT\"', '\"KMEVESJELEDZO\"', '\"KMEVESJELSZO\"', '\"KMEVESJELSP\"', '\"TomAntr\"', '\"KMEDZOVALTAS\"',\r\n '\"ESZKNYILVMEGT\"', '\"AssetManagement\"', '\"AthleteTransfer\"', '\"MEGTIDEGENKOLTSTERV\"', '\"MEGTKPFELM\"',\r\n '\"DUPLIKALTMEGT\"', '\"LEJAROMEGT\"', '\"HEALTHREPORT\"', '\"VEZETOIHJ\"', '\"VEZETOIEV\"', '\"VEZETOIHV\"',\r\n '\"MEGTHAVIJEL\"', '\"VEZETOIHE\"', '\"KMHAVIVERSTERV\"', '\"KMATFELJATSZ\"', '\"KMVERSEREDM\"', '\"MEGTSPFELM\"',\r\n '\"EDZLATSTAT\"', '\"MEGTHETIEDZTERVKIMUT\"', '\"UTAZTERVMEGT\"', '\"KMSPORTELETKOR\"', '\"KMSPORTEDZO\"',\r\n '\"KMSPORTALAK\"', '\"KMSPORTSZAK\"', '\"KMSPORTALAKSZO\"', '\"SPJELENLETINELK\"', '\"KMBELEPEDZO\"',\r\n '\"KMBELSZAK\"', '\"KMKILEPEDZO\"', '\"KMKILSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SportSpecificReportController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"$state\", \"paramHelper\", \"$q\"];\r\n angular\r\n .module('app.reports.sportSpecificReport')\r\n .controller('SportSpecificReportController', SportSpecificReportController);\r\n\r\n function SportSpecificReportController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $filter, $state, paramHelper, $q) {\r\n var vm = this;\r\n $rootScope.title = gettextCatalog.getString('SportSpecificReport');\r\n vm.dateFromValue = new Date(new Date().getFullYear(), 0, 1);\r\n vm.dateToValue = new Date(new Date().getFullYear(), 11, 31);\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.tipusList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.tipusId = 0;\r\n vm.querycellinfo = querycellinfo;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.tipusDataBound = tipusDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.tipusSelect = tipusSelect;\r\n vm.getData = getData;\r\n vm.dataList = [];\r\n vm.dataFelmeroElem = [];\r\n vm.testdata = [];\r\n vm.test = [];\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 150},\r\n {field: 'datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.test,\r\n columns: vm.columns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n queryCellInfo: function (arg) {\r\n var cellIndex = -1;\r\n if (arg.column.field) {\r\n cellIndex = parseInt(arg.column.field.replace('c', ''));\r\n if (!(cellIndex >= 0)) {\r\n return;\r\n }\r\n }\r\n var cell = angular.element(arg.cell);\r\n if (vm.testdata && vm.testdata.length > 0 && cellIndex >= 0) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID, arg.data.datum);\r\n if (vm.testdata[rowIndex].Colors[cellIndex] && vm.testdata[rowIndex].Colors[cellIndex].length > 0) {\r\n cell.css('background-color', vm.testdata[rowIndex].Colors[cellIndex]);\r\n }\r\n }\r\n }\r\n });\r\n\r\n Grid2.appendTo('#Grid2');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([\r\n getSections(),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n paramHelper.getParams([], ['sportSpecificReport.SportoloID'])\r\n ]).then(function (results) {\r\n console.log('results', results);\r\n }).catch(function () {\r\n log.unknownError();\r\n });\r\n }\r\n }).catch(function () {\r\n log.unknownError();\r\n });\r\n }\r\n\r\n function resetColumns() {\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 125},\r\n {field: 'datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125}\r\n ];\r\n }\r\n\r\n function getData() {\r\n if (!(vm.tipusId > 0)) {\r\n return;\r\n }\r\n vm.testdata = [];\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n dataservice.getFelmeroElemList(vm.tipusId).then(function (elemResponse) {\r\n vm.dataFelmeroElem = elemResponse.itemsList;\r\n console.log('getFelmeroElemList() elemResponse', elemResponse);\r\n resetColumns();\r\n dataservice.getSportagSpecReport(vm.tipusId, vm.ageGroupId, vm.sectionId, vm.dateFromValue, vm.dateToValue).then(function(data) {\r\n vm.testdata = data.itemsList;\r\n console.log('getSportagSpecReport() data', data);\r\n vm.test = [];\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n var line = {};\r\n line.SportoloID = vm.testdata[i].SportoloID;\r\n line.SportoloNeve = vm.testdata[i].SportoloNeve;\r\n line.datum = vm.testdata[i].datum;\r\n for (var c = 0; c < vm.dataFelmeroElem.length; c++) {\r\n var fieldName = 'c' + c;\r\n line[fieldName] = '';\r\n }\r\n vm.test.push(line);\r\n }\r\n var strArr = [];\r\n resetColumns();\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 150});\r\n for (var j = 0; j < vm.test.length; j++) {\r\n vm.test[j][strArr[i]] = vm.testdata[j].Adatok1D[i];\r\n }\r\n }\r\n Grid2.dataSource = vm.test;\r\n Grid2.columns = vm.columns;\r\n Grid2.refreshColumns();\r\n Grid2.refresh();\r\n });\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var $element = angular.element(arg.cell);\r\n if (vm.testdata && vm.testdata.length > 0 && arg.cell.cellIndex >= 3) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID, arg.data.datum);\r\n if (vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3] && vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3].length > 0) {\r\n $element.css('background-color', vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3]);\r\n }\r\n }\r\n }\r\n\r\n function getRowIndex(SportoloID, datum) {\r\n //console.log('getRowIndex('+SportoloID+','+datum+') vm.testdata' , vm.testdata);\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n if (vm.testdata[i].SportoloID == SportoloID && vm.testdata[i].datum == datum) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n vm.ageGroupList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n });\r\n }\r\n\r\n function getTipusList() {\r\n return dataservice.felmeroElemFejDropDownList(vm.sectionId).then(function(data) {\r\n vm.tipusList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function tipusDataBound() {\r\n if (vm.tipusList.length === 1) {\r\n angular.element('#tipusDropDown').ejDropDownList('selectItemByValue', vm.tipusList[0].value);\r\n } else {\r\n angular.element('#tipusDropDown').ejDropDownList('selectItemByValue', vm.tipusId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.tipusId = -1;\r\n getAgeGroups();\r\n getTipusList();\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getData();\r\n }\r\n\r\n function tipusSelect(args) {\r\n vm.tipusId = args.value;\r\n getData();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.sportSpecificReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.sportSpecificReport',\r\n config: {\r\n url: '/sportSpecificReport',\r\n templateUrl: 'app/reports/sportSpecificReport/sportSpecificReport.html',\r\n controller: 'SportSpecificReportController',\r\n controllerAs: 'vm',\r\n title: 'SportSpecificReport',\r\n settings: {\r\n navId: 2194,\r\n level: 2,\r\n order: 19,\r\n orderTitle_hu: 'Sportágspecifikus felmérő kimutatás',\r\n orderTitle_en: 'Sport Specific Test Report',\r\n parentId: 4,\r\n content: 'SportSpecificReport',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ActiveAthletesByAgeController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByAge')\r\n .controller('ActiveAthletesByAgeController', ActiveAthletesByAgeController);\r\n\r\n function ActiveAthletesByAgeController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesByAge');\r\n vm.sectionList = [];\r\n\r\n vm.columnWith = 105;\r\n vm.columns = [\r\n {field: 'SzuletesiEv', headerText: gettextCatalog.getString('BirthYear'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_year', textAlign: 'center'},\r\n {field: 'Szam', headerText: gettextCatalog.getString('NumberOfAthletes'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'},\r\n {field: 'SzamFiu', headerText: gettextCatalog.getString('NumberOfBoys'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'},\r\n {field: 'SzamLany', headerText: gettextCatalog.getString('NumberOfGirls'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'}\r\n ];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.openSection = openSection;\r\n vm.openBirthYear = openBirthYear;\r\n\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.accessibleSectionsStr = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n vm.sectionList = [];\r\n vm.griddata = [];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSectionList().then(function () {\r\n initColumns();\r\n getNumbers(vm.Date);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSectionList() {\r\n return dataservice.sectionDropDownListAll()\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.activeAthletesByAge(date, vm.selectedSection)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.accessibleSectionsStr = data.felhasznaloSzakosztalyaiStr;\r\n vm.yearListFull = data.itemsList;\r\n });\r\n }\r\n\r\n function openSection(sectionID, year) {\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionID) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n var yearint = parseInt(year);\r\n paramHelper.setParams([\r\n {'sectionID': sectionID},\r\n {'year': yearint}\r\n ]);\r\n $state.go('reports.statisticalReports.athletesByBirthYear');\r\n } else {\r\n log.warningMsg('You do not have permission to access the selected section details!');\r\n }\r\n }\r\n\r\n function openBirthYear(year) {\r\n paramHelper.setParams([\r\n {'year': year}\r\n ]);\r\n $state.go('reports.statisticalReports.athletesByYear');\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function initColumns() {\r\n for (var i = 0; i < vm.sectionList.length; i++) {\r\n switch (vm.sectionList[i].value) {\r\n case 1:\r\n vm.columns.push({field: '_sz_01', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops01', textAlign: 'center'});\r\n break;\r\n case 2:\r\n vm.columns.push({field: '_sz_02', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops02', textAlign: 'center'});\r\n break;\r\n case 3:\r\n vm.columns.push({field: '_sz_03', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops03', textAlign: 'center'});\r\n break;\r\n case 4:\r\n vm.columns.push({field: '_sz_04', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops04', textAlign: 'center'});\r\n break;\r\n case 5:\r\n vm.columns.push({field: '_sz_05', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops05', textAlign: 'center'});\r\n break;\r\n case 6:\r\n vm.columns.push({field: '_sz_06', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops06', textAlign: 'center'});\r\n break;\r\n case 7:\r\n vm.columns.push({field: '_sz_07', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops07', textAlign: 'center'});\r\n break;\r\n case 8:\r\n vm.columns.push({field: '_sz_08', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops08', textAlign: 'center'});\r\n break;\r\n case 9:\r\n vm.columns.push({field: '_sz_09', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops09', textAlign: 'center'});\r\n break;\r\n case 10:\r\n vm.columns.push({field: '_sz_10', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops10', textAlign: 'center'});\r\n break;\r\n case 11:\r\n vm.columns.push({field: '_sz_11', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops11', textAlign: 'center'});\r\n break;\r\n case 12:\r\n vm.columns.push({field: '_sz_12', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops12', textAlign: 'center'});\r\n break;\r\n case 13:\r\n vm.columns.push({field: '_sz_13', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops13', textAlign: 'center'});\r\n break;\r\n case 14:\r\n vm.columns.push({field: '_sz_14', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops14', textAlign: 'center'});\r\n break;\r\n case 15:\r\n vm.columns.push({field: '_sz_15', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops15', textAlign: 'center'});\r\n break;\r\n case 16:\r\n vm.columns.push({field: '_sz_16', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops16', textAlign: 'center'});\r\n break;\r\n case 17:\r\n vm.columns.push({field: '_sz_17', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops17', textAlign: 'center'});\r\n break;\r\n case 18:\r\n vm.columns.push({field: '_sz_18', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops18', textAlign: 'center'});\r\n break;\r\n case 19:\r\n vm.columns.push({field: '_sz_19', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops19', textAlign: 'center'});\r\n break;\r\n case 20:\r\n vm.columns.push({field: '_sz_20', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops20', textAlign: 'center'});\r\n break;\r\n case 21:\r\n vm.columns.push({field: '_sz_21', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops21', textAlign: 'center'});\r\n break;\r\n case 22:\r\n vm.columns.push({field: '_sz_22', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops22', textAlign: 'center'});\r\n break;\r\n case 23:\r\n vm.columns.push({field: '_sz_23', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops23', textAlign: 'center'});\r\n break;\r\n case 24:\r\n vm.columns.push({field: '_sz_24', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops24', textAlign: 'center'});\r\n break;\r\n case 25:\r\n vm.columns.push({field: '_sz_25', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops25', textAlign: 'center'});\r\n break;\r\n case 26:\r\n vm.columns.push({field: '_sz_26', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops26', textAlign: 'center'});\r\n break;\r\n case 27:\r\n vm.columns.push({field: '_sz_27', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops27', textAlign: 'center'});\r\n break;\r\n case 28:\r\n vm.columns.push({field: '_sz_28', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops28', textAlign: 'center'});\r\n break;\r\n case 29:\r\n vm.columns.push({field: '_sz_29', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops29', textAlign: 'center'});\r\n break;\r\n case 30:\r\n vm.columns.push({field: '_sz_30', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops30', textAlign: 'center'});\r\n break;\r\n case 31:\r\n vm.columns.push({field: '_sz_31', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops31', textAlign: 'center'});\r\n break;\r\n case 32:\r\n vm.columns.push({field: '_sz_32', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops32', textAlign: 'center'});\r\n break;\r\n case 33:\r\n vm.columns.push({field: '_sz_33', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops33', textAlign: 'center'});\r\n break;\r\n case 34:\r\n vm.columns.push({field: '_sz_34', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops34', textAlign: 'center'});\r\n break;\r\n case 35:\r\n vm.columns.push({field: '_sz_35', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops35', textAlign: 'center'});\r\n break;\r\n case 36:\r\n vm.columns.push({field: '_sz_36', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops36', textAlign: 'center'});\r\n break;\r\n case 37:\r\n vm.columns.push({field: '_sz_37', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops37', textAlign: 'center'});\r\n break;\r\n case 38:\r\n vm.columns.push({field: '_sz_38', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops38', textAlign: 'center'});\r\n break;\r\n case 39:\r\n vm.columns.push({field: '_sz_39', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops39', textAlign: 'center'});\r\n break;\r\n case vm.columnWith:\r\n vm.columns.push({field: '_sz_vm.columnWith', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_opsvm.columnWith'});\r\n break;\r\n }\r\n }\r\n grid.refreshColumns();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByAge')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByAge',\r\n config: {\r\n url: '/activeAthletesByAge',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.html',\r\n controller: 'ActiveAthletesByAgeController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesByAge',\r\n settings: {\r\n navId: 37214,\r\n level: 3,\r\n order: 7,\r\n orderTitle_hu: 'Aktív sportolók kor szerint',\r\n orderTitle_en: 'Number of Active Athletes by Age',\r\n parentId: 214,\r\n content: 'ActiveAthletesByAge',\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ActiveAthletesByCoachController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByCoach')\r\n .controller('ActiveAthletesByCoachController', ActiveAthletesByCoachController);\r\n\r\n function ActiveAthletesByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#acatbycotemplateDataColumn1', width: 150, textAlign: 'center'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#acatbycotemplateDataColumn2', width: 125, textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'),\r\n template: '#acatbycotemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatbycotemplateDataColumn4', width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatbycotemplateDataColumn5', width: 115, textAlign: 'center'\r\n }];\r\n vm.queryDate = new Date();\r\n vm.dateChange = dateChange;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openAthleteListByCoach = openAthleteListByCoach;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.queryDate);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.athletesByCoach(date)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'activeAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openAthleteListByCoach(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'athletesByCoach'},\r\n {'coachId': coachId},\r\n {'sectionId': sectionId},\r\n {'gender': gender},\r\n {'coachName': coachName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateChange() {\r\n getNumbers(vm.queryDate);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByCoach',\r\n config: {\r\n url: '/activeAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.html',\r\n controller: 'ActiveAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByCoach',\r\n settings: {\r\n navId: 34214,\r\n level: 3,\r\n order: 4,\r\n orderTitle_hu: 'Sportolók száma edzőnként',\r\n orderTitle_en: 'Number of Active Athletes by Coaches',\r\n parentId: 214,\r\n content: 'AthletesByCoach',\r\n activatorPermission: ['\"KMSPORTEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ActiveAthletesByMonthController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByMonth')\r\n .controller('ActiveAthletesByMonthController', ActiveAthletesByMonthController);\r\n\r\n function ActiveAthletesByMonthController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesByMonth');\r\n vm.sectionList = [];\r\n\r\n initColumns();\r\n\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openSection = openSection;\r\n vm.openAthletes = openAthletes;\r\n vm.openJoined = openJoined;\r\n vm.openLeaving = openLeaving;\r\n\r\n vm.accessibleSections = [];\r\n vm.accessibleSectionsStr = [];\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTALAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSectionList().then(function () {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n initColumns();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function initColumns() {\r\n vm.columns = [\r\n {field: 'SzuletesiEv', headerText: gettextCatalog.getString('Month'), textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4'},\r\n {field: 'Szam', headerText: gettextCatalog.getString('NumberOfAthletes'), textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4', template: '#aabm_allgender'},\r\n {field: 'SzamFiu', headerText: gettextCatalog.getString('NumberOfBoys'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_male'},\r\n {field: 'SzamLany', headerText: gettextCatalog.getString('NumberOfGirls'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_female'},\r\n {field: 'SzamErkezett', headerText: gettextCatalog.getString('Belepett'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_joined'},\r\n {field: 'SzamKilepett', headerText: gettextCatalog.getString('Kilepett'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_leaving'}\r\n ];\r\n for (var i = 0; i < vm.sectionList.length; i++) {\r\n vm.columns.push({field: 'c' + vm.sectionList[i].value, headerText: vm.sectionList[i].text, textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4', template: '#aabm_ops' + vm.sectionList[i].value});\r\n if (i === (vm.sectionList.length - 1)) {\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dateFrom = $filter('dateToISOFilter')(dateFrom);\r\n dateTo = $filter('dateToISOFilter')(dateTo);\r\n dataservice.activeAthletesByMonth(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.accessibleSectionsStr = data.felhasznaloSzakosztalyaiStr;\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function openAthletes(id, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': 0},\r\n {'sectionName': gettextCatalog.getString('All sections')},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openLeaving(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n authenticationService.getRight('SPSZAMALAKRESZL').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'state': 'monthlyStatLeaving'},\r\n {'sectionId': 0},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n }\r\n });\r\n });\r\n }\r\n\r\n function openJoined(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n authenticationService.getRight('SPSZAMALAKRESZL').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'state': 'monthlyStatJoined'},\r\n {'sectionId': 0},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n }\r\n });\r\n });\r\n }\r\n\r\n function openSection(sectionID, id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionID) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'sectionID': sectionID},\r\n {'date': (date)}\r\n ]);\r\n $state.go('reports.statisticalReports.activeAthletesInSectionByMonth');\r\n } else {\r\n log.warningMsg('You do not have permission to access the selected section details!');\r\n }\r\n });\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function getSectionList() {\r\n return dataservice.sectionDropDownListAll()\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function ParseDate(strDate) { // \"2016. június\" --> Date\r\n var idxOfSpace = strDate.indexOf(' ');\r\n var strYear = strDate.slice(0, idxOfSpace - 1);\r\n var strMonth = strDate.slice(idxOfSpace + 1, idxOfSpace + 4);\r\n var year = parseInt(strYear);\r\n var month = 0;\r\n switch (strMonth) {\r\n case 'jan' :\r\n month = 1;\r\n break;\r\n case 'feb' :\r\n month = 2;\r\n break;\r\n case 'már' :\r\n month = 3;\r\n break;\r\n case 'ápr' :\r\n month = 4;\r\n break;\r\n case 'máj' :\r\n month = 5;\r\n break;\r\n case 'jún' :\r\n month = 6;\r\n break;\r\n case 'júl' :\r\n month = 7;\r\n break;\r\n case 'aug' :\r\n month = 8;\r\n break;\r\n case 'sze' :\r\n month = 9;\r\n break;\r\n case 'okt' :\r\n month = 10;\r\n break;\r\n case 'nov' :\r\n month = 11;\r\n break;\r\n case 'dec' :\r\n month = 12;\r\n break;\r\n }\r\n return new Date(year, month - 1, 1, 3);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByMonth')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByMonth',\r\n config: {\r\n url: '/activeAthletesByMonth',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.html',\r\n controller: 'ActiveAthletesByMonthController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesByMonth',\r\n settings: {\r\n navId: 38214,\r\n level: 3,\r\n order: 8,\r\n orderTitle_hu: 'Sportolók számának alakulása',\r\n orderTitle_en: 'Number of Active Athletes by Month',\r\n parentId: 214,\r\n content: 'ActiveAthletesByMonth',\r\n activatorPermission: ['\"KMSPORTALAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ActiveAthletesBySectionController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesBySection')\r\n .controller('ActiveAthletesBySectionController', ActiveAthletesBySectionController);\r\n\r\n function ActiveAthletesBySectionController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesBySection');\r\n vm.athleteList = [];\r\n vm.queryDate = new Date();\r\n vm.dateChange = dateChange;\r\n vm.openSection = openSection;\r\n\r\n vm.columns = [{\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 115\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#acatbysetemplateDataColumn1', textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatbysetemplateDataColumn2', textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatbysetemplateDataColumn3', textAlign: 'center', width: 115\r\n }];\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openSection(SectionId, gender) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var accessGranted = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] === SectionId) {\r\n accessGranted = true;\r\n break;\r\n }\r\n }\r\n if (accessGranted || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'activeAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate},\r\n {'gender': gender === 0 ? 'allgender' : (gender === 1 ? 'male' : 'female')}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTSZAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.queryDate);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteListFull;\r\n }\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.athletesBySection(date)\r\n .then(function (data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function dateChange(data) {\r\n getNumbers(data.value);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesBySection',\r\n config: {\r\n url: '/activeAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.html',\r\n controller: 'ActiveAthletesBySectionController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesBySection',\r\n settings: {\r\n navId: 31214,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Aktív sportolók szakosztály szerint',\r\n orderTitle_en: 'Number of Active Athletes by Sections',\r\n parentId: 214,\r\n content: 'ActiveAthletesBySection',\r\n activatorPermission: ['\"KMSPORTSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ActiveAthletesInSectionByMonthController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesInSectionByMonth')\r\n .controller('ActiveAthletesInSectionByMonthController', ActiveAthletesInSectionByMonthController);\r\n\r\n function ActiveAthletesInSectionByMonthController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesInSectionByMonth');\r\n vm.sectionList = [];\r\n vm.columns = [{\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('Month'),\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#acatinsebymotemplateDataColumn1',\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatinsebymotemplateDataColumn2',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatinsebymotemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamErkezett',\r\n headerText: gettextCatalog.getString('Joined'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamKilepett',\r\n headerText: gettextCatalog.getString('Leave'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamAtjott',\r\n headerText: gettextCatalog.getString('MoveIn'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamAtment',\r\n headerText: gettextCatalog.getString('MoveOut'),\r\n width: 100, textAlign: 'center'\r\n }];\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.sectionList = [];\r\n vm.sectionValue = '';\r\n vm.selectedSectionName = '';\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.selectedSectionID = '';\r\n vm.showOnlyOneMonth = false;\r\n vm.openAthletes = openAthletes;\r\n vm.openBoys = openBoys;\r\n vm.openGirls = openGirls;\r\n vm.date = '';\r\n vm.sectionId = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSectionName = vm.sectionList[0].value;\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function ParseDate(strDate) { // \"2016. június\" --> Date\r\n var idxOfSpace = strDate.indexOf(' ');\r\n var strYear = strDate.slice(0, idxOfSpace - 1);\r\n var strMonth = strDate.slice(idxOfSpace + 1, idxOfSpace + 4);\r\n var year = parseInt(strYear);\r\n var month = 0;\r\n switch (strMonth) {\r\n case 'jan' :\r\n month = 1;\r\n break;\r\n case 'feb' :\r\n month = 2;\r\n break;\r\n case 'már' :\r\n month = 3;\r\n break;\r\n case 'ápr' :\r\n month = 4;\r\n break;\r\n case 'máj' :\r\n month = 5;\r\n break;\r\n case 'jún' :\r\n month = 6;\r\n break;\r\n case 'júl' :\r\n month = 7;\r\n break;\r\n case 'aug' :\r\n month = 8;\r\n break;\r\n case 'sze' :\r\n month = 9;\r\n break;\r\n case 'okt' :\r\n month = 10;\r\n break;\r\n case 'nov' :\r\n month = 11;\r\n break;\r\n case 'dec' :\r\n month = 12;\r\n break;\r\n }\r\n return new Date(year, month - 1, 1, 2);\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTALAKSZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getSections(), paramHelper.getParams([], ['sectionID', 'date'])]).then(function (results) {\r\n vm.params = results[1];\r\n paramHelper.removeParam('sectionID');\r\n paramHelper.removeParam('date');\r\n if (vm.params.sectionID != null && vm.params.date != null) {\r\n var date = vm.params.date.slice(0, 10);\r\n var SectionItem = ej.DataManager(vm.sectionList).executeLocal(new ej.Query().where('value', 'equal', vm.params.sectionID))[0];\r\n if (!SectionItem) {\r\n $rootScope.back();\r\n } else {\r\n vm.selectedSectionName = SectionItem.text;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesInSectionByMonth') + ' (' + gettextCatalog.getString(vm.selectedSectionName) + ', ' + $filter('dateYearMonthLongStrFilter')(date) + ')';\r\n }\r\n $timeout(function () {\r\n vm.dateFrom = date;\r\n vm.dateTo = date;\r\n vm.sectionValue = vm.params.sectionID;\r\n if (SectionItem) {\r\n getNumbers(date, date, SectionItem.text, vm.params.sectionID);\r\n }\r\n }, 0);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date1, date2, sectionName, sectionId) {\r\n if (!sectionName) {\r\n return;\r\n }\r\n dataservice.activeAthletesInSectionByMonth(date1, date2, sectionName, sectionId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openAthletes(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openBoys(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'male'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openGirls(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'female'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSectionName = args.text.toString();\r\n vm.selectedSectionID = args.value;\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(vm.dateFrom, vm.dateTo, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n\r\n function dateFromChanged(data) {\r\n if (data && data.value && vm.dateTo) {\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(data.value, vm.dateTo, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n }\r\n\r\n function dateToChanged(data) {\r\n if (data && data.value && vm.dateTo) {\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(vm.dateFrom, data.value, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesInSectionByMonth')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesInSectionByMonth',\r\n config: {\r\n url: '/activeAthletesInSectionByMonth',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.html',\r\n controller: 'ActiveAthletesInSectionByMonthController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesInSectionByMonth',\r\n settings: {\r\n navId: 39214,\r\n level: 3,\r\n order: 9,\r\n orderTitle_hu: 'Sportolók számának alakulása szakosztályonként',\r\n orderTitle_en: 'Alteration of Number of Athletes by Sections',\r\n parentId: 214,\r\n content: 'ActiveAthletesInSectionByMonth',\r\n activatorPermission: ['\"KMSPORTALAKSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesByBirthYearController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesByBirthYear')\r\n .controller('AthletesByBirthYearController', AthletesByBirthYearController);\r\n\r\n function AthletesByBirthYearController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByBirthYear');\r\n vm.sectionList = [];\r\n\r\n vm.columns = [{\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn1', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn2', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn3', width: 115\r\n }];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.listAthletes = listAthletes;\r\n var SectionName = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['sectionID', 'year'])]).then(function (results) {\r\n // Ha paraméter nélkül érkezik akkor tovább arra az oldalra ahol a gridben kattintva eljuthat ide újra\r\n if (results[0].sectionID == null || results[0].year == null) {\r\n $state.go('reports.statisticalReports.activeAthletesByAge');\r\n } else {\r\n vm.params = results[0];\r\n vm.selectedSection = vm.params.sectionID;\r\n getSections();\r\n getNumbers(vm.params.year, vm.params.sectionID);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function listAthletes(year, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzuletesiEv', 'equal', year)).then(function () {\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n paramHelper.setParams([\r\n {'state': 'activeAthletesByBirthYear'},\r\n {'year': year},\r\n {'sectionId': vm.selectedSection},\r\n {'sectionName': SectionName},\r\n {'dateFrom': null},\r\n {'dateTo': null},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function getNumbers(year, sectionId) {\r\n var date = new Date(year, 0, 1); // First day of year\r\n dataservice.activeAthletesByAge(date, sectionId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n SectionName = ej.DataManager(vm.sectionList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedSection))[0].text;\r\n $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + ' (' + gettextCatalog.getString(SectionName) + ', ' + vm.params.year + ')';\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesByBirthYear')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesByBirthYear',\r\n config: {\r\n url: '/athletesByBirthYear',\r\n templateUrl: 'app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.html',\r\n controller: 'AthletesByBirthYearController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByBirthYear',\r\n settings: {\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesByYearController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesByYear')\r\n .controller('AthletesByYearController', AthletesByYearController);\r\n\r\n function AthletesByYearController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByYear');\r\n\r\n vm.sectionList = [];\r\n\r\n vm.columns = [{\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#atbyyetemplateDataColumn1'\r\n }, {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n width: 50,\r\n textAlign: 'center',\r\n displayAsCheckBox: true\r\n }, {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#atbyyetemplateDataColumn3'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('PayedSportServiceFee'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('PayedEducationalFee'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n width: 150,\r\n textAlign: 'center'\r\n }];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToCoach = goToCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['year'])]).then(function (results) {\r\n vm.params = results[0];\r\n getNumbers(vm.params.year, 0);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToCoach(coachId) {\r\n $q.all([authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'newUser.userId': coachId}\r\n ]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(year, sectionID) {\r\n dataservice.activeAthletesBornAtSpecificYear(year, sectionID)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesByYear')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesByYear',\r\n config: {\r\n url: '/athletesByYear',\r\n templateUrl: 'app/reports/statisticalReports/athletesByYear/athletesByYear.html',\r\n controller: 'AthletesByYearController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByYear',\r\n settings: {\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthletesNotPresentOnMonthlyAttendanceController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\", \"$timeout\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance')\r\n .controller('AthletesNotPresentOnMonthlyAttendanceController', AthletesNotPresentOnMonthlyAttendanceController);\r\n\r\n function AthletesNotPresentOnMonthlyAttendanceController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AthletesNotPresentOnMonthlyAttendance');\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.header = [];\r\n vm.reportParameters = {};\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.sectionList = [];\r\n vm.sectionValue = '';\r\n vm.selectedSectionId = -1;\r\n vm.selectedSectionName = '';\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionId = '';\r\n vm.numberOfMonths = 0;\r\n vm.isAdmin = false;\r\n vm.isSectionLeader = false;\r\n vm.accessibleSections = [];\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToCoach = goToCoach;\r\n\r\n vm.columns = [];\r\n\r\n var grid;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('SPJELENLETINELK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections().then(function () {\r\n $timeout(function () {\r\n if (vm.sectionList.length > 0) {\r\n vm.sectionValue = vm.sectionList[0].value;\r\n }\r\n }, 0);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToCoach(coachId) {\r\n paramHelper.setParams([\r\n {'newUser.userId': coachId}\r\n ]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n vm.selectedSectionId = vm.sectionId;\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo, sectionId) {\r\n if (!sectionId) {\r\n return;\r\n }\r\n if (sectionId == -1) { // -1 jelenti az összes szakosztályt itt, 0-ra keresi az összeset\r\n sectionId = 0;\r\n vm.selectedSectionId = 0;\r\n }\r\n dataservice.athletesNotPresentOnMonthlyAttendance(dateFrom, dateTo, sectionId)\r\n .then(function (data) {\r\n setColumns();\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.data = data.itemsList;\r\n vm.header = data.header;\r\n vm.isAdmin = data.isAdmin;\r\n vm.honapokszama = data.honapokszama;\r\n var allSection = {value: -1, text: gettextCatalog.getString('All')};\r\n if (vm.isAdmin && vm.sectionList.length > 1 && vm.sectionList[0].value != -1) {\r\n vm.sectionList.unshift({value: '-1', text: gettextCatalog.getString('All')});\r\n }\r\n var columnWidth = 100;\r\n for (var i = 0; i < vm.honapokszama; i++) {\r\n switch (i) {\r\n case 0:\r\n vm.columns.push({headerText: data.header.t01, textAlign: 'center', width: columnWidth, field: 'h01'});\r\n break;\r\n case 1:\r\n vm.columns.push({headerText: data.header.t02, textAlign: 'center', width: columnWidth, field: 'h02'});\r\n break;\r\n case 2:\r\n vm.columns.push({headerText: data.header.t03, textAlign: 'center', width: columnWidth, field: 'h03'});\r\n break;\r\n case 3:\r\n vm.columns.push({headerText: data.header.t04, textAlign: 'center', width: columnWidth, field: 'h04'});\r\n break;\r\n case 4:\r\n vm.columns.push({headerText: data.header.t05, textAlign: 'center', width: columnWidth, field: 'h05'});\r\n break;\r\n case 5:\r\n vm.columns.push({headerText: data.header.t06, textAlign: 'center', width: columnWidth, field: 'h06'});\r\n break;\r\n case 6:\r\n vm.columns.push({headerText: data.header.t07, textAlign: 'center', width: columnWidth, field: 'h07'});\r\n break;\r\n case 7:\r\n vm.columns.push({headerText: data.header.t08, textAlign: 'center', width: columnWidth, field: 'h08'});\r\n break;\r\n case 8:\r\n vm.columns.push({headerText: data.header.t09, textAlign: 'center', width: columnWidth, field: 'h09'});\r\n break;\r\n case 9:\r\n vm.columns.push({headerText: data.header.t10, textAlign: 'center', width: columnWidth, field: 'h10'});\r\n break;\r\n case 10:\r\n vm.columns.push({headerText: data.header.t11, textAlign: 'center', width: columnWidth, field: 'h11'});\r\n break;\r\n case 11:\r\n vm.columns.push({headerText: data.header.t12, textAlign: 'center', width: columnWidth, field: 'h12'});\r\n break;\r\n }\r\n }\r\n if (!grid) {\r\n grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n } else {\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSectionId = args.value;\r\n vm.selectedSectionName = args.text;\r\n getNumbers(vm.DateFrom, vm.DateTo, vm.selectedSectionId);\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo, vm.selectedSectionId);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value, vm.selectedSectionId);\r\n }\r\n\r\n function setColumns() {\r\n vm.columns = [{\r\n field: 'MezoSportoloNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#anpomaathlete'\r\n }, {\r\n field: 'MezoSzakosztalyNev',\r\n headerText: gettextCatalog.getString('Szakosztaly'),\r\n textAlign: 'center',\r\n width: 115\r\n }, {\r\n field: 'MezoKorcsoportNev',\r\n headerText: gettextCatalog.getString('Korcsoport'),\r\n textAlign: 'center',\r\n width: 115\r\n }, {\r\n field: 'MezoEdzoNev',\r\n headerText: gettextCatalog.getString('Edzo'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#anpomacoach'\r\n }];\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesNotPresentOnMonthlyAttendance',\r\n config: {\r\n url: '/athletesNotPresentOnMonthlyAttendance',\r\n templateUrl: 'app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.html',\r\n controller: 'AthletesNotPresentOnMonthlyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'AthletesNotPresentOnMonthlyAttendance',\r\n settings: {\r\n navId: 310214,\r\n level: 3,\r\n order: 10,\r\n orderTitle_hu: 'Havi jelenlétin nem szereplő sportolók',\r\n orderTitle_en: 'Athletes not Presented on Monthly Attendance Sheet',\r\n parentId: 214,\r\n content: 'AthletesNotPresentOnMonthlyAttendance',\r\n activatorPermission: ['\"SPJELENLETINELK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n JoinedAthletesByCoachController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesByCoach')\r\n .controller('JoinedAthletesByCoachController', JoinedAthletesByCoachController);\r\n\r\n function JoinedAthletesByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('JoinedAthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#joatbycotemplateDataColumn1',\r\n textAlign: 'center', width: 150\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#joatbycotemplateDataColumn2',\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#joatbycotemplateDataColumn3',\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#joatbycotemplateDataColumn4',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#joatbycotemplateDataColumn5',\r\n textAlign: 'center', width: 115\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openCoachesJoinedAthletes = openCoachesJoinedAthletes;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openCoachesJoinedAthletes(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletesToCoach'},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'coachId': coachId},\r\n {'coachName': coachName},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dataservice.joinedAthletesByCoach(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMBELEPEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.joinedAthletesByCoach',\r\n config: {\r\n url: '/joinedAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.html',\r\n controller: 'JoinedAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'JoinedAthletesByCoach',\r\n settings: {\r\n navId: 36214,\r\n level: 3,\r\n order: 6,\r\n orderTitle_hu: 'Belépők száma edzőnként',\r\n orderTitle_en: 'Number of New Athletes by Coaches',\r\n parentId: 214,\r\n content: 'JoinedAthletesByCoach',\r\n activatorPermission: ['\"KMBELEPEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function() {\r\n 'use strict';\r\n\n JoinedAthletesBySection.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesBySection')\r\n .controller('JoinedAthletesBySection', JoinedAthletesBySection);\r\n\r\n function JoinedAthletesBySection(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('JoinedAthletesBySection');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.accessibleSections = [];\r\n vm.columns = [\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamErkezett',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#joatbysetemplateDataColumn1',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamBelepettFiuk',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#joatbysetemplateDataColumn2',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamBelepettLanyok',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#joatbysetemplateDataColumn3',\r\n textAlign: 'center', width: 115\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.DateFromChanged = DateFromChanged;\r\n vm.DateToChanged = DateToChanged;\r\n vm.openSection = openSection;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n }\r\n grid.dataSource = vm.athleteList;\r\n }\r\n\r\n function openSection(SectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == SectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMBELSZAK').then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date, date2) {\r\n dataservice.joinedAthletesBySection(date, date2)\r\n .then(function(data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function DateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function DateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function(data) {\r\n data.itemsList.unshift({\r\n value: '0',\r\n text: gettextCatalog.getString('All')\r\n });\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.joinedAthletesBySection',\r\n config: {\r\n url: '/joinedAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.html',\r\n controller: 'JoinedAthletesBySection',\r\n controllerAs: 'vm',\r\n title: 'JoinedAthletesBySection',\r\n settings: {\r\n navId: 33214,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Belépők száma szakosztályonként',\r\n orderTitle_en: 'Number of New Athletes by Sections',\r\n parentId: 214,\r\n content: 'JoinedAthletesBySection',\r\n activatorPermission: ['\"KMBELSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n LeavingAthletesByCoachController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\", \"$q\"];\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesByCoach')\r\n .controller('LeavingAthletesByCoachController', LeavingAthletesByCoachController);\r\n\r\n function LeavingAthletesByCoachController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $q) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('LeavingAthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#leatbycotemplateDataColumn1', width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#leatbycotemplateDataColumn2', width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#leatbycotemplateDataColumn3', width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#leatbycotemplateDataColumn4', width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#leatbycotemplateDataColumn5', width: 115,\r\n textAlign: 'center'\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openCoachesLeavingAthletes = openCoachesLeavingAthletes;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openCoachesLeavingAthletes(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletesFromCoach'},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'coachId': coachId},\r\n {'coachName': coachName},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMKILEPEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dataservice.leavingAthletesByCoach(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.leavingAthletesByCoach',\r\n config: {\r\n url: '/leavingAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.html',\r\n controller: 'LeavingAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'LeavingAthletesByCoach',\r\n settings: {\r\n navId: 35214,\r\n level: 3,\r\n order: 5,\r\n orderTitle_hu: 'Kilépők széma edzőnként',\r\n orderTitle_en: 'Number of Left Athletes by Coaches',\r\n parentId: 214,\r\n content: 'LeavingAthletesByCoach',\r\n activatorPermission: ['\"KMKILEPEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n LeavingAthletesBySection.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$state\", \"paramHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesBySection')\r\n .controller('LeavingAthletesBySection', LeavingAthletesBySection);\r\n\r\n function LeavingAthletesBySection(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('LeavingAthletesBySection');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.accessibleSections = [];\r\n vm.columns = [\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamKilepett',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#leatbysetemplateDataColumn1',\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#leatbysetemplateDataColumn2',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#leatbysetemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }];\r\n vm.queryDate = new Date();\r\n vm.queryDate.setMonth(vm.queryDate.getMonth() - 1);\r\n vm.queryDate2 = new Date();\r\n vm.dateChange = dateChange;\r\n vm.dateChange2 = dateChange2;\r\n vm.openSection = openSection;\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openSection(SectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == SectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate2},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMKILSZAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getNumbers(vm.queryDate, vm.queryDate2);\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date, date2) {\r\n dataservice.leavingAthletesBySection(date, date2)\r\n .then(function (data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function dateChange(data) {\r\n getNumbers(data.value, vm.queryDate2);\r\n }\r\n\r\n function dateChange2(data) {\r\n getNumbers(vm.queryDate, data.value);\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n data.itemsList.unshift({\r\n value: '0',\r\n text: gettextCatalog.getString('All')\r\n });\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.leavingAthletesBySection',\r\n config: {\r\n url: '/leavingAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.html',\r\n controller: 'LeavingAthletesBySection',\r\n controllerAs: 'vm',\r\n title: 'LeavingAthletesBySection',\r\n settings: {\r\n navId: 32214,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Kilépők száma szakosztályonként',\r\n orderTitle_en: 'Number of Left Athletes by Sections',\r\n parentId: 214,\r\n content: 'LeavingAthletesBySection',\r\n activatorPermission: ['\"KMKILSZAK\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ListAthletesController.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"$q\", \"gettextCatalog\", \"$rootScope\", \"paramHelper\", \"$scope\", \"$filter\"];\r\n angular\r\n .module('app.reports.statisticalReports.listAthletes')\r\n .controller('ListAthletesController', ListAthletesController);\r\n\r\n function ListAthletesController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('listAthletes');\r\n vm.params = [];\r\n vm.openAthlete = openAthlete;\r\n vm.openSportServiceFee = openSportServiceFee;\r\n vm.openCoach = openCoach;\r\n vm.athleteList = [];\r\n vm.columns = [];\r\n\r\n setColumns();\r\n\r\n function setColumns() {\r\n vm.columns = [];\r\n vm.columns = [{\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#laopenath'\r\n }, {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n width: 60,\r\n textAlign: 'center',\r\n displayAsCheckBox: true\r\n }, {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#laopencoach'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n width: 150,\r\n textAlign: 'center'\r\n }];\r\n }\r\n\r\n var Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.athleteList,\r\n columns: vm.columns,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n\r\n Grid2.appendTo('#Grid2');\r\n Grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, Grid2);\r\n };\r\n\r\n //0: mindkettő, 1: belépés dátuma, 2: kilépés dátuma\r\n function addColumns(args) {\r\n if (args === 0 || args === 1) {\r\n vm.columns.push({field: 'edzosportoloiIdoszakTol', headerText: gettextCatalog.getString('EnteringDate'), width: 100, textAlign: 'center'});\r\n }\r\n if (args === 0 || args === 2) {\r\n vm.columns.push({field: 'edzosportoloiIdoszakIg', headerText: gettextCatalog.getString('ExitingDate'), width: 100, textAlign: 'center'});\r\n }\r\n vm.columns.push({field: 'Tagdij', headerText: gettextCatalog.getString('PayedSportServiceFee'), width: 240, textAlign: 'center'});\r\n vm.columns.push({field: 'Oktatasidij', headerText: gettextCatalog.getString('PayedEducationalFee'), width: 240, textAlign: 'center'});\r\n vm.columns.push({field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), width: 150, textAlign: 'center', template: '#laopenfee'});\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['state', 'sectionId', 'sectionName', 'dateFrom', 'dateTo', 'gender', 'coachId', 'coachName', 'year'])]).then(function (results) {\r\n if (results[0].state == null) {\r\n $state.go('dashboard');\r\n }\r\n vm.params = results[0];\r\n paramHelper.removeParam('state');\r\n paramHelper.removeParam('sectionId');\r\n paramHelper.removeParam('sectionName');\r\n paramHelper.removeParam('dateFrom');\r\n paramHelper.removeParam('dateTo');\r\n paramHelper.removeParam('gender');\r\n paramHelper.removeParam('coachId');\r\n paramHelper.removeParam('coachName');\r\n paramHelper.removeParam('year');\r\n setTitle(vm.params.state, vm.params.sectionName, vm.params.coachName, vm.params.gender, vm.params.dateFrom, vm.params.dateTo, vm.params.year);\r\n if (vm.params.state == 'leavingAthletes') {\r\n checkRight('KMKILSZAK');\r\n addColumns(2);\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'joinedAthletes') {\r\n checkRight('KMBELSZAK');\r\n addColumns(1);\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'activeAthletes') {\r\n checkRight('KMSPORTSZAK');\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'monthlyStatJoined') {\r\n checkRight('SPSZAMALAKRESZL');\r\n addColumns(0);\r\n getMonthlyListJoined();\r\n } else if (vm.params.state == 'monthlyStatLeaving') {\r\n checkRight('SPSZAMALAKRESZL');\r\n addColumns(2);\r\n getMonthlyListLeaving();\r\n } else if (vm.params.state == 'athletesByCoach') {\r\n checkRight('KMSPORTEDZO');\r\n getActiveAthleteListByCoach(vm.params.coachId, vm.params.sectionId, vm.params.dateFrom, vm.params.gender);\r\n } else if (vm.params.state == 'leavingAthletesFromCoach') {\r\n checkRight('KMKILEPEDZO');\r\n addColumns(2);\r\n getLeavingAthletesFromCoach(vm.params.gender);\r\n } else if (vm.params.state == 'joinedAthletesToCoach') {\r\n checkRight('KMBELEPEDZO');\r\n addColumns(1);\r\n getJoinedAthletesToCoach(vm.params.gender);\r\n } else if (vm.params.state == 'monthlyStat') {\r\n checkRight('KMSPORTALAK');\r\n addColumns(0);\r\n vm.params.dateFrom = vm.params.dateFrom.slice(0, 10);\r\n getMonthlyListActive(vm.params.gender);\r\n vm.params.dateFrom = $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom);\r\n $rootScope.title = gettextCatalog.getString('Sportolok Szamanak Alakulasa') + ' (' + gettextCatalog.getString(vm.params.sectionName) + ', ' + gettextCatalog.getString(vm.params.gender) + ', ' + vm.params.dateFrom + ')';\r\n } else if (vm.params.state == 'activeAthletesByBirthYear') {\r\n checkRight('KMSPORTELETKOR');\r\n getActiveAthletesByBirthYear(vm.params.sectionId, vm.params.year, vm.params.gender);\r\n $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + ' (' + gettextCatalog.getString(vm.params.sectionName) + ', ' + gettextCatalog.getString(vm.params.gender) + ', ' + vm.params.year + ')';\r\n }\r\n });\r\n }\r\n\r\n function checkRight(right) {\r\n authenticationService.getRight(right).then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function setTitle(state, sectionname, coachname, gender, datefrom, dateto, year) {\r\n var titleText = ' (';\r\n if (sectionname && sectionname.length > 0) {\r\n titleText += sectionname + ', ';\r\n }\r\n if (coachname && coachname.length > 0) {\r\n titleText += coachname + ', ';\r\n }\r\n if (gender) {\r\n switch (gender){\r\n case 'allgender': titleText += gettextCatalog.getString('allgender'); break;\r\n case 'male': titleText += gettextCatalog.getString('male'); break;\r\n case 'female': titleText += gettextCatalog.getString('female'); break;\r\n }\r\n }\r\n if (datefrom == dateto) {\r\n dateto = undefined;\r\n }\r\n if (datefrom) {\r\n titleText += ', ' + datefrom;\r\n }\r\n if (dateto) {\r\n titleText += ' - ' + dateto;\r\n }\r\n if (year) {\r\n titleText + year;\r\n }\r\n titleText += ')';\r\n switch (state){\r\n case 'activeAthletes': $rootScope.title = gettextCatalog.getString('activeAthletesBySection') + titleText;break;\r\n case 'leavingAthletes': $rootScope.title = gettextCatalog.getString('leavingAthletesBySection') + titleText;break;\r\n case 'joinedAthletes': $rootScope.title = gettextCatalog.getString('joinedAthletesBySection') + titleText;break;\r\n case 'monthlyStatJoined': $rootScope.title = gettextCatalog.getString('joinedAthletesInMonth') + ' (' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')';break;\r\n case 'monthlyStatLeaving': $rootScope.title = gettextCatalog.getString('leavingAthletesInMonth') + ' (' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')';break;\r\n case 'athletesByCoach': $rootScope.title = gettextCatalog.getString('AthletesByCoach') + titleText;break;\r\n case 'leavingAthletesFromCoach': $rootScope.title = gettextCatalog.getString('leavingAthletesFromCoach') + titleText;break;\r\n case 'joinedAthletesToCoach': $rootScope.title = gettextCatalog.getString('joinedAthletesToCoach') + titleText;break;\r\n case 'monthlyStat': $rootScope.title = gettextCatalog.getString('monthlyStat') + ' (' + sectionname + ', ' + gender + ', ' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')'; break;\r\n case 'activeAthletesByBirthYear': $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + titleText;break;\r\n }\r\n }\r\n\r\n function refresh() {\r\n Grid2.columns = vm.columns;\r\n Grid2.refreshColumns();\r\n Grid2.dataSource = vm.athleteList;\r\n Grid2.refresh();\r\n }\r\n\r\n function nullFilter(arr, prop) {\r\n arr.forEach(function(e) {\r\n if (e[prop] === null) {\r\n e[prop] = '';\r\n }\r\n });\r\n return arr;\r\n }\r\n\r\n function getList(gender) {\r\n dataservice.listAthletes(vm.params.dateFrom, vm.params.dateTo, vm.params.state, vm.params.sectionId, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getActiveAthletesByBirthYear(sectionId, year, gender) {\r\n dataservice.activeAthletesByBirthYear(sectionId, year, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getActiveAthleteListByCoach(coachId, sectionId, dateFrom, gender) {\r\n dataservice.activeAthletesByCoach(coachId, sectionId, dateFrom, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListActive(gender) {\r\n dataservice.ActiveAthletesInASpecificMonth(vm.params.dateFrom, vm.params.dateFrom, vm.params.sectionId, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListJoined() {\r\n dataservice.JoinedAthletesInASpecificMonth(vm.params.dateFrom).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListLeaving() {\r\n dataservice.LeavingAthletesInASpecificMonth(vm.params.dateFrom).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getLeavingAthletesFromCoach(gender) {\r\n dataservice.leavingAthletesFromASpecificCoach(vm.params.coachId, vm.params.dateFrom, vm.params.dateTo, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getJoinedAthletesToCoach(gender) {\r\n dataservice.joinedAthletesToASpecificCoach(vm.params.coachId, vm.params.dateFrom, vm.params.dateTo, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function openSportServiceFee(SportolokID) {\r\n var promises = [authenticationService.getRight('MEGTTAGDNYILV'), authenticationService.getRight('MEGTOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true || results[1] !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'sportServiceFeeRegister.athleteID': SportolokID}\r\n ]);\r\n $state.go('business.sportServiceFeeRegister');\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports.listAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.listAthletes',\r\n config: {\r\n url: '/listAthletes',\r\n templateUrl: 'app/reports/statisticalReports/listAthletes/listAthletes.html',\r\n controller: 'ListAthletesController',\r\n controllerAs: 'vm',\r\n title: 'listAthletes'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.statisticalReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports',\r\n config: {\r\n title: 'statisticalReports',\r\n url: '/statisticalReports',\r\n templateUrl: 'app/reports/statisticalReports/statisticalReports.html',\r\n settings: {\r\n navId: 214,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Statisztikai kimutatások',\r\n orderTitle_en: 'Statistical Reports',\r\n parentId: 4,\r\n content: 'StatisticalReports',\r\n activatorPermission: [\r\n '\"KMSPORTELETKOR\"',\r\n '\"KMSPORTEDZO\"',\r\n '\"KMSPORTALAK\"',\r\n '\"KMSPORTSZAK\"',\r\n '\"KMSPORTALAKSZO\"',\r\n '\"SPJELENLETINELK\"',\r\n '\"KMBELEPEDZO\"',\r\n '\"KMBELSZAK\"',\r\n '\"KMKILEPEDZO\"',\r\n '\"KMKILSZAK\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n TrainingAttendanceReportController.$inject = [\"log\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"$state\", \"paramHelper\", \"$q\"];\r\n angular\r\n .module('app.reports.trainingAttendanceReport')\r\n .controller('TrainingAttendanceReportController', TrainingAttendanceReportController);\r\n\r\n function TrainingAttendanceReportController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $filter, $state, paramHelper, $q) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingAttendanceReport');\r\n\r\n // Create variables\r\n vm.dateFromValue = new Date(new Date().getFullYear(), 0, 1);\r\n vm.dateToValue = new Date(new Date().getFullYear(), 11, 31);\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n vm.coachDataBound = coachDataBound;\r\n vm.show = show;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150,\r\n template: '#trainingAttendanceReportcolumnTemplate'},\r\n {field: 'SzuletesiDatum', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 125},\r\n {field: 'EdzesekSzama', headerText: gettextCatalog.getString('Attendance'), textAlign: 'center', width: 115},\r\n {field: 'JelenletOsszMinden', headerText: gettextCatalog.getString('AllAttendance'), textAlign: 'center', width: 150},\r\n {field: 'OsszEdzesekSzama', headerText: '*' + gettextCatalog.getString('Trainings'), textAlign: 'center', width: 125},\r\n {field: 'JelenletSzazalek', headerText: '*' + gettextCatalog.getString('AttendancePercentage'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('EDZLATSTAT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoachList();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'tar.from',\r\n 'tar.to',\r\n 'tar.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.dateFromValue = results[0]['tar.from'];\r\n vm.dateToValue = results[0]['tar.to'];\r\n vm.coachId = results[0]['tar.coach'];\r\n });\r\n }\r\n\r\n function getCoachList() {\r\n return dataservice.coachSelect().then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'tar.from': vm.dateFromValue},\r\n {'tar.to': vm.dateToValue},\r\n {'tar.coach': vm.coachId}\r\n ]);\r\n dataservice.getTrainingAttendances(vm.dateFromValue, vm.dateToValue, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiDatum');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.trainingAttendanceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.trainingAttendanceReport',\r\n config: {\r\n url: '/trainingAttendanceReport',\r\n templateUrl: 'app/reports/trainingAttendanceReport/trainingAttendanceReport.html',\r\n controller: 'TrainingAttendanceReportController',\r\n controllerAs: 'vm',\r\n title: 'TrainingAttendanceReport',\r\n settings: {\r\n navId: 254,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Edzéslátogatás statisztika',\r\n orderTitle_en: 'Training Visit Statistic',\r\n parentId: 4,\r\n content: 'TrainingAttendanceReport',\r\n activatorPermission: ['\"EDZLATSTAT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n weeklyTrainingReportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.weeklyTrainingReport')\r\n .controller('weeklyTrainingReportController', weeklyTrainingReportController);\r\n\r\n function weeklyTrainingReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('weeklyTrainingReport');\r\n\r\n vm.place = '';\r\n vm.sectionList = [];\r\n vm.places = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n vm.showWeeks = false;\r\n vm.onlyStartDate = false;\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n vm.openPlan = openPlan;\r\n vm.showWeeksChange = showWeeksChange;\r\n vm.savedParams = {sectionId: 0, ageGroupId: 0, coachId: 0};\r\n\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 115},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 200},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'tol', headerText: gettextCatalog.getString('From'), textAlign: 'center', width: 125},\r\n {field: 'ig', headerText: gettextCatalog.getString('To'), textAlign: 'center', width: 125},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTHETIEDZTERVKIMUT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getPlaces();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'wtr.sectionId',\r\n 'wtr.ageGroupId',\r\n 'wtr.coachId',\r\n 'wtr.showWeeks',\r\n 'wtr.place'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['wtr.sectionId'];\r\n vm.ageGroupId = results[0]['wtr.ageGroupId'];\r\n vm.coachId = results[0]['wtr.coachId'];\r\n vm.place = results[0]['wtr.place'];\r\n angular.element('#ShowWeeks').ejCheckBox({checked: results[0]['wtr.showWeeks']});\r\n });\r\n }\r\n\r\n function initColumns(weekly) {\r\n if (weekly) {\r\n grid.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 250},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Monday'), textAlign: 'center', width: 125},\r\n ];\r\n grid.refreshColumns();\r\n } else {\r\n grid.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 250},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'tol', headerText: gettextCatalog.getString('From'), textAlign: 'center', width: 100},\r\n {field: 'ig', headerText: gettextCatalog.getString('To'), textAlign: 'center', width: 100},\r\n ];\r\n grid.refreshColumns();\r\n }\r\n }\r\n\r\n function getPlaces() {\r\n dataservice.WeeklyTrainingPlaces().then(function (data) {\r\n vm.places = data.data;\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n getActualCoachesList(0);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.place == null) {\r\n vm.place = '';\r\n }\r\n if (vm.showWeeks == null) {\r\n vm.showWeeks = false;\r\n }\r\n paramHelper.setParams([{\r\n 'wtr.sectionId': vm.sectionId,\r\n 'wtr.ageGroupId': vm.ageGroupId,\r\n 'wtr.coachId': vm.coachId,\r\n 'wtr.selectdateFrom': vm.selectdateFrom,\r\n 'wtr.selectdateTo': vm.selectdateTo,\r\n 'wtr.showWeeks': vm.showWeeks,\r\n 'wtr.place': vm.place\r\n }]);\r\n dataservice.getWeeklyTrainingList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.showWeeks, vm.place).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'nap');\r\n initColumns(vm.showWeeks);\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openPlan(trainingPlanId) {\r\n authenticationService.getRight('MEGTHETIEDZTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n } else {\r\n dataservice.weeklyTrainingPlanSelectByIdNew(trainingPlanId).then(function (data) {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.edzoId': data.retValue.IdEdzo},\r\n {'weeklyTrainingPlan.szakosztalyId': data.retValue.IdSzakosztaly},\r\n {'weeklyTrainingPlan.korosztalyId': data.retValue.IdKorosztaly},\r\n {'weeklyTrainingPlan.ev': 0},\r\n {'weeklyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'weeklyTrainingPlan.edzoNev': data.retValue.EdzoNev},\r\n {'weeklyTrainingPlan.szakosztalyNev': data.retValue.SzakosztalyNev},\r\n {'weeklyTrainingPlan.korosztalyNev': data.retValue.KorosztalyNev},\r\n {'weeklyTrainingPlan.szoveg': ''}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n });\r\n }\r\n });\r\n }\r\n\r\n function showWeeksChange(arg) {\r\n vm.showWeeks = arg.value;\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(0);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(0);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.weeklyTrainingReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.weeklyTrainingReport',\r\n config: {\r\n url: '/weeklyTrainingReport',\r\n templateUrl: 'app/reports/weeklyTrainingReport/weeklyTrainingReport.html',\r\n controller: 'weeklyTrainingReportController',\r\n controllerAs: 'vm',\r\n title: 'weeklyTrainingReport',\r\n settings: {\r\n navId: 2204,\r\n level: 2,\r\n order: 20,\r\n orderTitle_hu: 'Heti edzésterv kimutatás',\r\n orderTitle_en: 'Weekly Training Report',\r\n parentId: 4,\r\n content: 'weeklyTrainingReport',\r\n activatorPermission: ['\"MEGTHETIEDZTERVKIMUT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n WeeklyTravelReportController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"$filter\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.reports.weeklyTravelReport')\r\n .controller('WeeklyTravelReportController', WeeklyTravelReportController);\r\n\r\n function WeeklyTravelReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('WeeklyTravelReport');\r\n\r\n vm.typeList = [\r\n {value: 1, text: gettextCatalog.getString('Plan')},\r\n {value: 2, text: gettextCatalog.getString('Fact')},\r\n {value: 3, text: gettextCatalog.getString('All')}\r\n ];\r\n\r\n vm.typeId = 3;\r\n vm.sectionList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n vm.datasource = [];\r\n vm.onlyStartDate = false;\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n vm.showOrder = 1;\r\n vm.typeDataBound = typeDataBound;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.busOwnersDataBound = busOwnersDataBound;\r\n vm.busOwnerSelect = busOwnerSelect;\r\n vm.typeSelect = typeSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.show = show;\r\n vm.radioButtonChecked = radioButtonChecked;\r\n vm.openPlan = openPlan;\r\n vm.busOwners = [];\r\n vm.busOwnerId = '-1';\r\n vm.fromDateChange = fromDateChange;\r\n vm.toDateChange = toDateChange;\r\n vm.onlyStartDateChanged = onlyStartDateChanged;\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'Link', headerText: '', template: '#WTRPlanOpenTemplate', textAlign: 'center', width: 60},\r\n {field: 'VersenySorszam', headerText: gettextCatalog.getString('VersenySorszam'), width: 125, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('SzakosztalyNeve'), width: 125, textAlign: 'center'},\r\n {field: 'VersenyNeve', headerText: gettextCatalog.getString('VersenyNeve'), width: 175, textAlign: 'center'},\r\n {field: 'VersenyHelye', headerText: gettextCatalog.getString('VersenyHelye'), width: 175, textAlign: 'center'},\r\n {field: 'SzallitoJarmuTipusa', headerText: gettextCatalog.getString('JarmuTipus'), width: 150, textAlign: 'center'},\r\n {field: 'SzallitoJarmuTulajdonos', headerText: gettextCatalog.getString('JarmuTulajdonos'), width: 175, textAlign: 'center'},\r\n {field: 'JarmuKiallasIdopontja', headerText: gettextCatalog.getString('JarmuKiallasIdopontja'), width: 175, textAlign: 'center'},\r\n {field: 'JarmuKiallasHelye', headerText: gettextCatalog.getString('JarmuKiallasHelye'), width: 175, textAlign: 'center'},\r\n {field: 'VisszaindulasIdopontja', headerText: gettextCatalog.getString('VisszaindulasIdopontja'), width: 150, textAlign: 'center'},\r\n {field: 'FelelosEdzoNeve', headerText: gettextCatalog.getString('FelelosEdzoNeve'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoElerhetosege', headerText: gettextCatalog.getString('EdzoElerhetosege'), width: 150, textAlign: 'center'},\r\n {field: 'Vegleges', headerText: gettextCatalog.getString('Final'), displayAsCheckBox: true, width: 115, textAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UTAZTERVMEGT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getBusOwners();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function onlyStartDateChanged(arg) {\r\n vm.onlyStartDate = arg.value;\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'weeklyTrainingPlans.sectionId',\r\n 'weeklyTrainingPlans.ageGroupId',\r\n 'weeklyTrainingPlans.coachId',\r\n 'weeklyTrainingPlans.onlyStartDate',\r\n 'weeklyTrainingPlans.typeId',\r\n 'weeklyTrainingPlans.busOwnerId'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['weeklyTrainingPlans.sectionId'] ? results[0]['weeklyTrainingPlans.sectionId'] : vm.sectionId;\r\n vm.ageGroupId = results[0]['weeklyTrainingPlans.ageGroupId'] ? results[0]['weeklyTrainingPlans.ageGroupId'] : vm.ageGroupId;\r\n vm.coachId = results[0]['weeklyTrainingPlans.coachId'] ? results[0]['weeklyTrainingPlans.coachId'] : vm.coachId;\r\n vm.onlyStartDate = results[0]['weeklyTrainingPlans.onlyStartDate'] != null ? results[0]['weeklyTrainingPlans.onlyStartDate'] : vm.onlyStartDate;\r\n vm.typeId = results[0]['weeklyTrainingPlans.typeId'] ? results[0]['weeklyTrainingPlans.typeId'] : vm.typeId;\r\n vm.busOwnerId = results[0]['weeklyTrainingPlans.busOwnerId'] ? results[0]['weeklyTrainingPlans.busOwnerId'] : vm.busOwnerId;\r\n angular.element('#onlyStartDate').ejCheckBox({checked: vm.onlyStartDate});\r\n });\r\n }\r\n\r\n function getBusOwners() {\r\n dataservice.IdegenKoltsegTervBuszTulaj().then(function (response) {\r\n vm.busOwners = [{value: '-1', text: ''}];\r\n for (var i = 0; i < response.data.length; i++) {\r\n vm.busOwners.push({value: response.data[i], text: response.data[i]});\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selectedplayUpAndDown\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n function typeDataBound() {\r\n angular.element('#typeDropDown').ejDropDownList('selectItemByValue', vm.typeId);\r\n }\r\n\r\n function typeSelect(args) {\r\n vm.typeId = args.value;\r\n }\r\n\r\n function busOwnersDataBound() {\r\n if (vm.busOwners.length === 1) {\r\n angular.element('#BusOwnerDropDown').ejDropDownList('selectItemByValue', vm.busOwners[0].value);\r\n } else {\r\n angular.element('#BusOwnerDropDown').ejDropDownList('selectItemByValue', vm.busOwnerId);\r\n }\r\n }\r\n\r\n function busOwnerSelect(args) {\r\n vm.busOwnerId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getWeeklyTravelList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.onlyStartDate, vm.typeId, vm.busOwnerId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n paramHelper.setParams(\r\n [\r\n {'weeklyTrainingPlans.sectionId': vm.sectionId},\r\n {'weeklyTrainingPlans.ageGroupId': vm.ageGroupId},\r\n {'weeklyTrainingPlans.coachId': vm.coachId},\r\n {'weeklyTrainingPlans.onlyStartDate': vm.onlyStartDate},\r\n {'weeklyTrainingPlans.typeId': vm.typeId},\r\n {'weeklyTrainingPlans.busOwnerId': vm.busOwnerId}\r\n ]);\r\n }\r\n\r\n function radioButtonChecked(args) {\r\n vm.showOrder = args.model.value;\r\n }\r\n\r\n function openPlan(Id) {\r\n $q.all([authenticationService.getRight('MEGTIDEGENKOLTSTERV')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'awayBudgetPlan.planId': Id}]);\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function fromDateChange(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(0);\r\n }\r\n\r\n function toDateChange(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(0);\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.reports.weeklyTravelReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.weeklyTravelReport',\r\n config: {\r\n url: '/weeklyTravelReport',\r\n templateUrl: 'app/reports/weeklyTravelReport/weeklyTravelReport.html',\r\n controller: 'WeeklyTravelReportController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTravelReport',\r\n settings: {\r\n navId: 2174,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Utazási összesítő kimutatás',\r\n orderTitle_en: 'Travel Report',\r\n parentId: 4,\r\n content: 'WeeklyTravelReport',\r\n activatorPermission: ['\"UTAZTERVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n ScheduleController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"DOMAIN\", \"$timeout\", \"$scope\"];\r\n angular\r\n .module('app.schedule')\r\n .controller('ScheduleController', ScheduleController);\r\n\r\n function ScheduleController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, DOMAIN, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Schedule');\r\n\r\n vm.unnamedEvent = gettextCatalog.getString('unnamedEvent');\r\n // Create variables\r\n vm.eventColor = '#000000';\r\n vm.trainingColor = '#169c5f';\r\n vm.sectionResources = [];\r\n vm.ageGroupResources = [];\r\n vm.categoryResources = [\r\n {text: gettextCatalog.getString('Event'), id: 1, color: vm.eventColor, fontColor: '#000000'},\r\n {text: gettextCatalog.getString('Training'), id: 2, color: vm.trainingColor, fontColor: '#ffffff'}\r\n ];\r\n vm.trainingText = gettextCatalog.getString('Training');\r\n vm.eventText = gettextCatalog.getString('Event');\r\n vm.appointments = [];\r\n\r\n vm.SPORTOLO = null;\r\n vm.SZULO = null;\r\n vm.sectionDropDownVisible = true;\r\n vm.training = false;\r\n vm.saveThis = {};\r\n\r\n // Public functions\r\n vm.getSections = getSections;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.print = print;\r\n vm.exportAllToIcs = exportAllToIcs;\r\n vm.trainingCheckboxChanged = trainingCheckboxChanged;\r\n\r\n // Felhasználó kiválasztás\r\n vm.RecipientsIds = [];\r\n vm.RecipientsNames = '';\r\n vm.RecipientsNamesArr = [];\r\n vm.recipientsText = gettextCatalog.getString('recipients');\r\n vm.clearText = gettextCatalog.getString('clear');\r\n vm.showRecipientsText = gettextCatalog.getString('showRecipients');\r\n\r\n vm.searchUser = searchUser;\r\n vm.searchAthlete = searchAthlete;\r\n vm.searchParent = searchParent;\r\n vm.searchUserGroup = searchUserGroup;\r\n vm.searchSection = searchSection;\r\n vm.searchTeamsAthletes = searchTeamsAthletes;\r\n vm.searchTeamsParents = searchTeamsParents;\r\n vm.searchAgeGroupAthletes = searchAgeGroupAthletes;\r\n vm.searchAgeGroupParents = searchAgeGroupParents;\r\n\r\n vm.parentsCheckboxChanged = parentsCheckboxChanged;\r\n vm.athleteCheckboxChanged = athleteCheckboxChanged;\r\n vm.userCheckboxChanged = userCheckboxChanged;\r\n vm.usersGroupCheckboxChanged = usersGroupCheckboxChanged;\r\n vm.sectionsCheckboxChanged = sectionsCheckboxChanged;\r\n vm.teamsCheckboxChanged = teamsCheckboxChanged;\r\n vm.teamParentsCheckboxChanged = teamParentsCheckboxChanged;\r\n vm.ageGroupsCheckboxChanged = ageGroupsCheckboxChanged;\r\n vm.ageGroupsParentsCheckboxChanged = ageGroupsParentsCheckboxChanged;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n\r\n vm.usersList = [];\r\n vm.athletesList = [];\r\n vm.parentsList = [];\r\n vm.usersGroupList = [];\r\n vm.sectionsList = [];\r\n vm.teamsAthletesList = [];\r\n vm.teamParentsList = [];\r\n vm.ageGroupsList = [];\r\n vm.ageGroupsParentsList = [];\r\n\r\n vm.usersListAll = [];\r\n vm.athletesListAll = [];\r\n vm.parentsListAll = [];\r\n vm.usersGroupListAll = [];\r\n vm.sectionsListAll = [];\r\n vm.teamsAthletesListAll = [];\r\n vm.teamParentsListAll = [];\r\n vm.ageGroupsListAll = [];\r\n vm.ageGroupsParentsListAll = [];\r\n\r\n vm.alertSettings = {};\r\n initAlertSettings();\r\n\r\n vm.processedTabs = 0;\r\n\r\n vm.showDirectory = showDirectory;\r\n vm.toolbarPopupClick = toolbarPopupClick;\r\n\r\n vm.toolbarPopupItems = [\r\n {empid: 1, tooltiptext: gettextCatalog.getString('Ok'), spriteCss: 'msgtools Accept'},\r\n {empid: 2, tooltiptext: gettextCatalog.getString('Cancel'), spriteCss: 'msgtools Back'}\r\n ];\r\n\r\n function initAlertSettings() {\r\n vm.alertSettings = {};\r\n vm.alertSettings.users = [];\r\n vm.alertSettings.athletes = [];\r\n vm.alertSettings.parents = [];\r\n vm.alertSettings.usergroups = [];\r\n vm.alertSettings.sections = [];\r\n vm.alertSettings.teamsathletes = [];\r\n vm.alertSettings.teamsparents = [];\r\n vm.alertSettings.agegroupsathletes = [];\r\n vm.alertSettings.agegroupsparents = [];\r\n }\r\n\r\n function getUsers() {\r\n dataservice.CimjegyzekMobil().then(function (data) {\r\n data.data.lista.forEach(function (element) {\r\n switch (element.usersof){\r\n case 'users':\r\n vm.usersList = element.itemsList;\r\n vm.usersListAll = element.itemsList;\r\n break;\r\n case 'athletes':\r\n vm.athletesList = element.itemsList;\r\n vm.athletesListAll = element.itemsList;\r\n break;\r\n case 'parents':\r\n vm.parentsList = element.itemsList;\r\n vm.parentsListAll = element.itemsList;\r\n break;\r\n case 'usergroups':\r\n vm.usersGroupList = element.itemsList;\r\n vm.usersGroupListAll = element.itemsList;\r\n break;\r\n case 'sections':\r\n vm.sectionsList = element.itemsList;\r\n vm.sectionsListAll = element.itemsList;\r\n break;\r\n case 'teamsathletes':\r\n vm.teamsAthletesList = element.itemsList;\r\n vm.teamsAthletesListAll = element.itemsList;\r\n break;\r\n case 'teamsparents':\r\n vm.teamParentsList = element.itemsList;\r\n vm.teamParentsListAll = element.itemsList;\r\n break;\r\n case 'agegroupsathletes':\r\n vm.ageGroupsList = element.itemsList;\r\n vm.ageGroupsListAll = element.itemsList;\r\n break;\r\n case 'agegroupsparents':\r\n vm.ageGroupsParentsList = element.itemsList;\r\n vm.ageGroupsParentsListAll = element.itemsList;\r\n break;\r\n }\r\n });\r\n });\r\n }\r\n\r\n function showRecipients() {\r\n var obj = {};\r\n obj.Ids = vm.RecipientsIds;\r\n obj.Message = '-';\r\n dataservice.getNamesByIds(obj).then(function (data) {\r\n var txt = '';\r\n for (var i = 0; i < data.data.length; i++) {\r\n txt += data.data[i];\r\n if (i < data.data.length - 1 && data.data.length > 1) {\r\n txt += ', ';\r\n }\r\n }\r\n swal({\r\n title: gettextCatalog.getString('recipients'),\r\n text: txt,\r\n type: 'info',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n });\r\n }\r\n\r\n function clearRecipients() {\r\n initAlertSettings();\r\n vm.RecipientsIds = [];\r\n vm.RecipientsNames = '';\r\n vm.RecipientsNamesArr = [];\r\n vm.emptyGroupList = '';\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function recipientsSettings(tab) {\r\n var itemstemp = [];\r\n switch (tab) {\r\n case 0:\r\n itemstemp = angular.element('#usersListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'users');\r\n }\r\n break;\r\n case 1:\r\n itemstemp = angular.element('#athletesListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'athletes');\r\n }\r\n break;\r\n case 2:\r\n itemstemp = angular.element('#parentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'parents');\r\n }\r\n break;\r\n case 3:\r\n itemstemp = angular.element('#usersGroupListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('usergroupmember', itemstemp);\r\n }\r\n break;\r\n case 4:\r\n itemstemp = angular.element('#sectionsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('sectionmembers', itemstemp);\r\n }\r\n break;\r\n case 5:\r\n itemstemp = angular.element('#teamsAthletesListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('teammembers', itemstemp);\r\n }\r\n break;\r\n case 6:\r\n itemstemp = angular.element('#teamParentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('teammembersparents', itemstemp);\r\n }\r\n break;\r\n case 7:\r\n itemstemp = angular.element('#ageGroupsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('agegroupsmembers', itemstemp);\r\n }\r\n break;\r\n case 8:\r\n itemstemp = angular.element('#ageGroupsParentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('agegroupsmembersparents', itemstemp);\r\n }\r\n break;\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function getUserIdsOfGroup(usersof, id, name) {\r\n var idlist = [];\r\n idlist.push(id);\r\n return dataservice.getUserIdsOfGroup(usersof, idlist).then(function (data) {\r\n if (data.data.length == 0) {\r\n vm.emptyGroupList += name + '<br>';\r\n return false;\r\n }\r\n for (var i = 0; i < data.data.length; i++) {\r\n vm.RecipientsIds.push(data.data[i]);\r\n }\r\n switch (usersof){\r\n case 'usergroupmember':\r\n vm.alertSettings.usergroups.push(id);\r\n break;\r\n case 'sectionmembers':\r\n vm.alertSettings.sections.push(id);\r\n break;\r\n case 'teammembers':\r\n vm.alertSettings.teamsathletes.push(id);\r\n break;\r\n case 'teammembersparents':\r\n vm.alertSettings.teamsparents.push(id);\r\n break;\r\n case 'agegroupsmembers':\r\n vm.alertSettings.agegroupsathletes.push(id);\r\n break;\r\n case 'agegroupsmembersparents':\r\n vm.alertSettings.agegroupsparents.push(id);\r\n break;\r\n }\r\n return name;\r\n });\r\n }\r\n\r\n function addRecipientsFromGroup(group, temp) {\r\n for (var i = 0; i < temp.length; i++) {\r\n var t = temp[i].data;\r\n $q.all([getUserIdsOfGroup(group, temp[i].data.value, temp[i].data.text)]).then(function (results) {\r\n if (results != false && noDuplicates(results)) {\r\n if (vm.RecipientsNames.length > 0) {\r\n vm.RecipientsNames += '; ';\r\n }\r\n vm.RecipientsNames += results;\r\n vm.RecipientsNamesArr.push(results);\r\n }\r\n vm.processedTabs++;\r\n });\r\n }\r\n }\r\n\r\n function addRecipientNames(items, tab) {\r\n angular.forEach(items, function(value) {\r\n switch (tab){\r\n case 'users':\r\n vm.alertSettings.users.push(value.data.value);\r\n break;\r\n case 'athletes':\r\n vm.alertSettings.athletes.push(value.data.value);\r\n break;\r\n case 'parents':\r\n vm.alertSettings.parents.push(value.data.value);\r\n break;\r\n }\r\n vm.RecipientsIds.push(value.data.value);\r\n if (noDuplicates(value.text)) {\r\n if (vm.RecipientsNames.length > 0) {\r\n vm.RecipientsNames += '; ';\r\n }\r\n vm.RecipientsNames += value.text;\r\n vm.RecipientsNamesArr.push(value.text);\r\n }\r\n });\r\n vm.processedTabs++;\r\n }\r\n\r\n function noDuplicates(newName) {\r\n for (var i = 0; i < vm.RecipientsNamesArr.length; i++) {\r\n if (vm.RecipientsNamesArr[i] == newName) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function getNumberOfCheckedTabs() {\r\n var itemstemp = [];\r\n var cnt = 0;\r\n if (angular.element('#usersListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#athletesListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#parentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#usersGroupListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#sectionsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#teamsAthletesListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#teamParentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#ageGroupsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#ageGroupsParentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n return cnt;\r\n }\r\n\r\n function toolbarPopupClick(params) {\r\n vm.processedTabs = 0;\r\n clearRecipients();\r\n angular.element('#directory').data('ejDialog').close();\r\n if (params.currentTarget.id == '1') {\r\n var tabs = getNumberOfCheckedTabs();\r\n for (var t = 0; t <= 9; t++) {\r\n recipientsSettings(t);\r\n }\r\n WaitForRecipientsIds(tabs);\r\n }\r\n }\r\n\r\n function WaitForRecipientsIds(tabs) {\r\n if (vm.processedTabs >= tabs) {\r\n showRecipients();\r\n vm.saveThis.alertUsers = vm.RecipientsIds;\r\n vm.saveThis.alertSettings = vm.alertSettings;\r\n vm.saveThis.alertSettingsJSON = JSON.stringify(vm.alertSettings);\r\n switch (vm.saveOrModify){\r\n case 'modify':modifyEvent();break;\r\n case 'save':\r\n default: saveEvent();break;\r\n }\r\n } else {\r\n setTimeout(function() {\r\n WaitForRecipientsIds(tabs);\r\n }, 10);\r\n }\r\n }\r\n\r\n function showDirectory(arg) {\r\n if (vm.saveThis.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n getEvents();\r\n return;\r\n }\r\n vm.saveOrModify = arg;\r\n angular.element('#directory').data('ejDialog').open();\r\n }\r\n\r\n function searchByName(arr, name) {\r\n if (!name || name.length == 0) {\r\n return arr;\r\n }\r\n var result = [];\r\n arr.forEach(function (user) {\r\n if (user.text.toUpperCase().indexOf(name.toUpperCase()) !== -1) {\r\n result.push(user);\r\n }\r\n });\r\n return result;\r\n }\r\n\r\n function searchUser() {\r\n angular.element('#chkSelectAllUsers').ejCheckBox({checked: false});\r\n vm.usersList = searchByName(vm.usersListAll, vm.searchUserParam);\r\n }\r\n\r\n function searchAthlete() {\r\n angular.element('#chkSelectAllAthletes').ejCheckBox({checked: false});\r\n vm.athletesList = searchByName(vm.athletesListAll, vm.searchAthleteParam);\r\n }\r\n\r\n function searchParent() {\r\n angular.element('#chkSelectAllParents').ejCheckBox({checked: false});\r\n vm.parentsList = searchByName(vm.parentsListAll, vm.searchParentParam);\r\n }\r\n\r\n function searchUserGroup() {\r\n angular.element('#chkSelectAllUserGroup').ejCheckBox({checked: false});\r\n vm.usersGroupList = searchByName(vm.usersGroupListAll, vm.searchUserGroupParam);\r\n }\r\n\r\n function searchSection() {\r\n angular.element('#chkSelectAllSections').ejCheckBox({checked: false});\r\n vm.sectionsList = searchByName(vm.sectionsListAll, vm.searchSectionParam);\r\n }\r\n\r\n function searchTeamsAthletes() {\r\n angular.element('#chkSelectAllTeams').ejCheckBox({checked: false});\r\n vm.teamsAthletesList = searchByName(vm.teamsAthletesListAll, vm.searchTeamsAthletesParam);\r\n }\r\n\r\n function searchTeamsParents() {\r\n angular.element('#chkSelectAllTeamParents').ejCheckBox({checked: false});\r\n vm.teamParentsList = searchByName(vm.teamParentsListAll, vm.searchTeamsParentParam);\r\n }\r\n\r\n function searchAgeGroupAthletes() {\r\n angular.element('#chkSelectAllAgeGroups').ejCheckBox({checked: false});\r\n vm.ageGroupsList = searchByName(vm.ageGroupsListAll, vm.searchAgeGroupsAthletesParam);\r\n }\r\n\r\n function searchAgeGroupParents() {\r\n angular.element('#chkSelectAllAgeGroupsParents').ejCheckBox({checked: false});\r\n vm.ageGroupsParentsList = searchByName(vm.ageGroupsParentsListAll, vm.searchAgeGroupsParentParam);\r\n }\r\n\r\n function userCheckboxChanged(args) {\r\n for (var i = 0; i < vm.usersList.length; i++) {\r\n if (args.value) {\r\n angular.element('#usersListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#usersListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function athleteCheckboxChanged(args) {\r\n for (var i = 0; i < vm.athletesList.length; i++) {\r\n if (args.value) {\r\n angular.element('#athletesListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#athletesListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function parentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.parentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#parentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#parentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function usersGroupCheckboxChanged(args) {\r\n for (var i = 0; i < vm.usersGroupList.length; i++) {\r\n if (args.value) {\r\n angular.element('#usersGroupListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#usersGroupListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function sectionsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.sectionsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#sectionsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#sectionsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function teamsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.teamsAthletesList.length; i++) {\r\n if (args.value) {\r\n angular.element('#teamsAthletesListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#teamsAthletesListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function teamParentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.teamParentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#teamParentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#teamParentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.ageGroupsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#ageGroupsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#ageGroupsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupsParentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.ageGroupsParentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#ageGroupsParentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#ageGroupsParentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n var accessGranted = false;\r\n authenticationService.getRight('MEGTESEMNAPT').then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n $q.all([\r\n paramHelper.getParams([], ['eventsCalendar.sectionId', 'eventsCalendar.ageGroupId']),\r\n getSections(),\r\n authenticationService.getLanguage(),\r\n authenticationService.getRight('MEGTESEMNAPT'),\r\n authenticationService.getRight('MODESEMNAPT'),\r\n authenticationService.getRight('UJESEMNAPT'),\r\n getSectionResources(),\r\n getAgeGroupResources(),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO')])\r\n .then(function (results) {\r\n if (results[3] !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['eventsCalendar.sectionId']) {\r\n vm.sectionId = results[0]['eventsCalendar.sectionId'];\r\n } else {\r\n vm.sectionId = 0;\r\n }\r\n if (results[0]['eventsCalendar.ageGroupId']) {\r\n vm.ageGroupId = results[0]['eventsCalendar.ageGroupId'];\r\n } else {\r\n vm.ageGroupId = 0;\r\n }\r\n\r\n vm.language = results[2];\r\n vm.MODESEMNAPT = results[4];\r\n vm.UJESEMNAPT = results[5];\r\n\r\n createSchedule();\r\n\r\n vm.SPORTOLO = results[8];\r\n vm.SZULO = results[9];\r\n\r\n setSectionVisible();\r\n\r\n getUsers();\r\n //getEvents();\r\n });\r\n });\r\n }\r\n\r\n function setSectionVisible() {\r\n vm.sectionDropDownVisible = !(vm.SZULO || vm.SPORTOLO);\r\n }\r\n\r\n function getSectionResources() {\r\n return dataservice.getSectionResources().then(function (data) {\r\n vm.sections = data.itemsList;\r\n vm.sectionResources = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroupResources() {\r\n return dataservice.getAgeGroupResources().then(function (data) {\r\n vm.ageGroupResources = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.selectedRowData = {};\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n paramHelper.setParams([{'eventsCalendar.sectionId': args.value}]);\r\n vm.ageGroupId = 0;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n vm.ageGroupList = data.itemsList;\r\n $('#ageGroupDropDown').ejDropDownList({dataSource: data.itemsList});\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n console.log(vm.ageGroupId);\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n paramHelper.setParams([{'eventsCalendar.ageGroupId': args.value}]);\r\n vm.ageGroupId = args.value;\r\n getEvents();\r\n }\r\n\r\n function getEvents() {\r\n dataservice.getEvents(vm.date, vm.view, vm.sectionId, vm.training, vm.ageGroupId).then(function (data) {\r\n vm.appointments = [];\r\n vm.appointments = data.itemsList;\r\n vm.appointments = $filter('dateEventFilter')(vm.appointments, vm.view);\r\n showSchedule();\r\n clearRecipients();\r\n });\r\n }\r\n\r\n function showSchedule() {\r\n angular.element('#Schedule1').ejSchedule({\r\n appointmentSettings: {\r\n dataSource: vm.appointments\r\n }\r\n });\r\n }\r\n\r\n function createSchedule() {\r\n angular.element('#Schedule1').ejSchedule({\r\n appointmentTemplateId: '#apptemplate',\r\n width: '100%',\r\n height: '600px',\r\n views: ['Day', 'Week', 'Month', 'Agenda'],\r\n currentView: 'Month',\r\n timeZone: 'UTC +00:00',\r\n allowDragDrop: false,\r\n readOnly: !(vm.MODESEMNAPT || vm.UJESEMNAPT),\r\n timeMode: ej.Schedule.TimeMode.Hour24,\r\n enableAppointmentResize: false,\r\n showAppointmentNavigator: false,\r\n showQuickWindow: false,\r\n showLocationField: true,\r\n showTimeZoneFields: false,\r\n firstDayOfWeek: 'Monday',\r\n timeZoneCollection: {\r\n dataSource: [{\r\n text: 'UTC +00:00',\r\n id: '1',\r\n value: 'UTC +00:00'\r\n }]\r\n },\r\n categorizeSettings: {\r\n enable: true,\r\n allowMultiple: false,\r\n dataSource: vm.categoryResources,\r\n text: 'text', id: 'id', color: 'color', fontColor: 'fontColor'\r\n },\r\n highlightBusinessHours: false,\r\n tooltipSettings: {\r\n enable: true\r\n },\r\n resources: [\r\n {\r\n field: 'SectionId',\r\n title: gettextCatalog.getString('Section'),\r\n name: 'SectionId',\r\n allowMultiple: false,\r\n resourceSettings: {\r\n dataSource: vm.sectionResources,\r\n text: 'text',\r\n id: 'id',\r\n color: 'color',\r\n groupId: 'groupId'\r\n }\r\n },\r\n {\r\n field: 'AgeGroupId',\r\n title: gettextCatalog.getString('AgeGroup'),\r\n name: 'AgeGroupId',\r\n allowMultiple: false,\r\n resourceSettings: {\r\n dataSource: vm.ageGroupResources,\r\n text: 'text',\r\n id: 'id',\r\n color: 'color',\r\n groupId: 'groupId'\r\n }\r\n }\r\n ],\r\n contextMenuSettings: {\r\n enable: true,\r\n menuItems: {\r\n appointment: [\r\n {id: 'open', text: gettextCatalog.getString('OpenAppointment')},\r\n {id: 'delete', text: gettextCatalog.getString('DeleteAppointment')},\r\n {id: 'export', text: gettextCatalog.getString('ExportToICS')}\r\n ],\r\n cells: [\r\n {id: 'new', text: gettextCatalog.getString('NewAppointment')},\r\n {id: 'recurrence', text: gettextCatalog.getString('NewRecurringAppointment')},\r\n {id: 'today', text: gettextCatalog.getString('Today')},\r\n {id: 'gotodate', text: gettextCatalog.getString('GoToDate')},\r\n {id: 'settings', text: gettextCatalog.getString('Settings')},\r\n {id: 'view', text: gettextCatalog.getString('View'), parentId: 'settings'},\r\n {id: 'timemode', text: gettextCatalog.getString('TimeMode'), parentId: 'settings'},\r\n {id: 'view_Day', text: gettextCatalog.getString('Daily'), parentId: 'view'},\r\n {id: 'view_Week', text: gettextCatalog.getString('Weekly'), parentId: 'view'},\r\n {id: 'view_Month', text: gettextCatalog.getString('Monthly'), parentId: 'view'},\r\n {id: 'view_Agenda', text: gettextCatalog.getString('Agenda'), parentId: 'view'},\r\n {id: 'timemode_Hour12', text: gettextCatalog.getString('12Hours'), parentId: 'timemode'},\r\n {id: 'timemode_Hour24', text: gettextCatalog.getString('24Hours'), parentId: 'timemode'},\r\n {id: 'businesshours', text: gettextCatalog.getString('BusinessHours'), parentId: 'settings'}\r\n ]\r\n }\r\n },\r\n prioritySettings: {\r\n enable: true,\r\n dataSource: [\r\n {text: gettextCatalog.getString('No'), value: 0},\r\n {text: gettextCatalog.getString('Yes'), value: 1}],\r\n text: 'text', value: 'value',\r\n template: '<div class=\\'${value}\\'></div>'\r\n },\r\n appointmentSettings: {\r\n applyTimeOffset: false,\r\n dataSource: vm.appointments,\r\n id: 'Id',\r\n location: 'Location',\r\n subject: 'Subject',\r\n startTime: 'StartTime',\r\n startTimeZone: 'StartTimeZone',\r\n endTime: 'EndTime',\r\n endTimeZone: 'EndTimeZone',\r\n description: 'Description',\r\n allDay: 'AllDay',\r\n recurrence: 'Recurrence',\r\n recurrenceId: 'RecurrenceId',\r\n recurrenceRule: 'RecurrenceRule',\r\n resourceFields: 'SectionId,AgeGroupId',\r\n categorize: 'Categorize',\r\n priority: 'priority',\r\n isReadonly: 'isReadonly'\r\n },\r\n menuItemClick: exportToIcs,\r\n appointmentWindowOpen: appointmentWindowOpen,\r\n beforeAppointmentCreate: saveAppointment,\r\n beforeAppointmentChange: changeAppointment,\r\n beforeAppointmentRemove: removeAppointment,\r\n navigation: navigation,\r\n create: onCreate,\r\n locale: vm.language,\r\n });\r\n }\r\n\r\n function setAlertUsers(alertSettings, tab) {\r\n var array = alertSettings[tab];\r\n if (!array || array.length == 0) {\r\n return;\r\n }\r\n var index = -1;\r\n array.forEach(function (id) {\r\n switch (tab){\r\n case 'users':\r\n index = $filter('getIndex')(vm.usersListAll, 'value', id);\r\n angular.element('#usersListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'athletes':\r\n index = $filter('getIndex')(vm.athletesListAll, 'value', id);\r\n angular.element('#athletesListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'parents':\r\n index = $filter('getIndex')(vm.parentsListAll, 'value', id);\r\n angular.element('#parentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'usergroups':\r\n index = $filter('getIndex')(vm.usersGroupListAll, 'value', id);\r\n angular.element('#usersGroupListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'sections':\r\n index = $filter('getIndex')(vm.sectionsListAll, 'value', id);\r\n angular.element('#sectionsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'teamsathletes':\r\n index = $filter('getIndex')(vm.teamsAthletesListAll, 'value', id);\r\n angular.element('#teamsAthletesListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'teamsparents':\r\n index = $filter('getIndex')(vm.teamParentsListAll, 'value', id);\r\n angular.element('#teamParentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'agegroupsathletes':\r\n index = $filter('getIndex')(vm.ageGroupsListAll, 'value', id);\r\n angular.element('#ageGroupsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'agegroupsparents':\r\n index = $filter('getIndex')(vm.ageGroupsParentsListAll, 'value', id);\r\n angular.element('#ageGroupsParentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n }\r\n });\r\n }\r\n\r\n function appointmentWindowOpen(arg) {\r\n clearRecipients();\r\n if (arg.hasOwnProperty('appointment')) {\r\n if (arg.appointment.hasOwnProperty('alertSettings')) {\r\n Object.getOwnPropertyNames(arg.appointment.alertSettings).forEach(function (property) {\r\n setAlertUsers(arg.appointment.alertSettings, property);\r\n });\r\n $timeout(function () {\r\n if (arg.appointment.alertUsers && arg.appointment.alertUsers.length > 0) {\r\n angular.element('#Schedule1priority').ejDropDownList('selectItemByIndex', 1);\r\n } else {\r\n angular.element('#Schedule1priority').ejDropDownList('selectItemByIndex', 0);\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n var resData = this.model.resources[0].resourceSettings.dataSource;\r\n this['_appointmentAddWindow'].find('.owner_' + 0).ejAutocomplete({\r\n focusOut: function (argument) {\r\n var flag = false;\r\n for (var i = 0; i < resData.length; i++) {\r\n if (argument.value === resData[i].text) {\r\n flag = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedSectionDoesnExist');\r\n }\r\n }\r\n });\r\n var resData2 = this.model.resources[1].resourceSettings.dataSource;\r\n this['_appointmentAddWindow'].find('.owner_' + 1).ejAutocomplete({\r\n focusOut: function (argument) {\r\n var flag = false;\r\n for (var i = 0; i < resData2.length; i++) {\r\n if (argument.value === resData2[i].text) {\r\n flag = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedAgeGroupDoesnExist');\r\n }\r\n }\r\n });\r\n if (arg.appointment.isReadonly == true) {\r\n this._appointmentAddWindow.find('.e-select').css('display', 'none');\r\n this._appointmentAddWindow.find('.e-input').prop('disabled', true);\r\n this._appointmentAddWindow.find('.e-inputtext').prop('disabled', true);\r\n this._appointmentAddWindow.find('.' + this._id + 'parrow').css('display', 'none');\r\n } else {\r\n this._appointmentAddWindow.find('.e-select').css('display', '');\r\n this._appointmentAddWindow.find('.e-input').prop('disabled', false);\r\n this._appointmentAddWindow.find('.e-inputtext').prop('disabled', false);\r\n this._appointmentAddWindow.find('.' + this._id + 'parrow').css('display', '');\r\n }\r\n }\r\n\r\n function onCreate() {\r\n }\r\n\r\n function exportToIcs(args) {\r\n if (args.events.ID == 'export') {\r\n var obj = $('#Schedule1').data('ejSchedule');\r\n // exportSchedule() method will send a post to the server-side to call a specified action.\r\n obj.exportSchedule(DOMAIN.baseURL + DOMAIN.webService + 'ExportToICS', null, args.targetInfo.Id);\r\n }\r\n }\r\n\r\n function exportAllToIcs(e) {\r\n var obj = $('#Schedule1').data('ejSchedule');\r\n // Calls the server-side action ExportToICS\r\n obj.exportSchedule(DOMAIN.baseURL + DOMAIN.webService + 'ExportToICS', null, null);\r\n e.cancel = true;\r\n }\r\n\r\n function navigation(args) {\r\n vm.date = args.currentDate;\r\n vm.view = args.currentView;\r\n getEvents();\r\n }\r\n\r\n function saveAppointment(args) {\r\n console.log('saveAppointment', args);\r\n if (vm.UJESEMNAPT) {\r\n vm.saveThis = {};\r\n if (args.appointment[0] === undefined) {\r\n vm.saveThis = jQuery.extend({}, args.appointment);\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n if (vm.saveThis.Subject === '') {\r\n vm.saveThis.Subject = vm.unnamedEvent;\r\n }\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n } else {\r\n vm.saveThis = jQuery.extend({}, args.appointment[0]);\r\n var resData = this.model.resources[0].resourceSettings.dataSource;\r\n var resData2 = this.model.resources[1].resourceSettings.dataSource;\r\n var value = vm.saveThis.Schedule1_ownerfield_0 === '' ? (vm.saveThis.SectionId ? vm.saveThis.SectionId : 0) : vm.saveThis.Schedule1_ownerfield_0;\r\n var value2 = vm.saveThis.Schedule1_ownerfield_1 === '' ? (vm.saveThis.AgeGroupId ? vm.saveThis.AgeGroupId : 0) : vm.saveThis.Schedule1_ownerfield_1;\r\n var flag = false;\r\n var flag2 = false;\r\n for (var i = 0; i < resData.length; i++) {\r\n if (value == resData[i].text || value === resData[i].value) {\r\n flag = true;\r\n }\r\n }\r\n for (var i = 0; i < resData2.length; i++) {\r\n if (value2 == resData2[i].text || value2 === resData2[i].value) {\r\n flag2 = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedSectionDoesnExist');\r\n args.cancel = true;\r\n } else if (!flag2) {\r\n log.errorMsg('SelectedAgeGroupDoesnExist');\r\n args.cancel = true;\r\n } else {\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n if (vm.saveThis.Subject === '') {\r\n vm.saveThis.Subject = vm.unnamedEvent;\r\n }\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n }\r\n // Felhasználók értesítése\r\n if (vm.saveThis.priority == '1') {\r\n showDirectory('save');\r\n } else {\r\n saveEvent();\r\n }\r\n }\r\n } else {\r\n args.cancel = true;\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function modifyEvent() {\r\n if (vm.saveThis.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n getEvents();\r\n return;\r\n }\r\n dataservice.modifyEvent(vm.saveThis).then(function () {\r\n log.successMsg('Saved');\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function saveEvent() {\r\n dataservice.saveEvent(vm.saveThis).then(function () {\r\n log.successMsg('Saved');\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function changeAppointment(args) {\r\n if (vm.MODESEMNAPT) {\r\n vm.saveThis = jQuery.extend({}, args.appointment.changed[0]);\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n // Felhasználók értesítése\r\n if (vm.saveThis.priority == '1') {\r\n showDirectory('modify');\r\n } else {\r\n modifyEvent();\r\n }\r\n } else {\r\n args.cancel = true;\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function removeAppointment(args) {\r\n if (args.appointment.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n args.cancel = true;\r\n return;\r\n }\r\n var removeDate = null;\r\n var year = -1;\r\n var month = -1;\r\n var day = -1;\r\n if (args.currentAction == 'deleteOccurrence') {\r\n removeDate = args.appointment.StartTime;\r\n year = removeDate.getFullYear();\r\n month = removeDate.getMonth() + 1;\r\n day = removeDate.getDate();\r\n }\r\n dataservice.removeEvent(args.appointment.Id, year, month, day).then(function () {\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function print() {\r\n var schObj = angular.element('#Schedule1').data('ejSchedule');\r\n schObj.print();\r\n }\r\n\r\n function trainingCheckboxChanged(args) {\r\n vm.training = args.value;\r\n getEvents();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.schedule')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'eventsCalendar',\r\n config: {\r\n url: '/schedule',\r\n templateUrl: 'app/schedule/schedule.html',\r\n controller: 'ScheduleController',\r\n controllerAs: 'vm',\r\n title: 'EventsCalendar',\r\n settings: {\r\n navId: 6,\r\n level: 1,\r\n order: 6,\r\n parentId: 0,\r\n content: 'EventsCalendar',\r\n faIcon: 'fa-calendar-alt',\r\n permission: ['0', '1', '2', '3', '4', '5', '6'],\r\n activatorPermission: ['\"MEGTESEMNAPT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search.athletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes',\r\n config: {\r\n url: '/athletes',\r\n templateUrl: 'app/search/athletes/athletes.html',\r\n title: 'SearchAthletes'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n MemberListController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"VIEW_DATA\", \"$scope\", \"$state\", \"authenticationService\", \"paramHelper\", \"$filter\"];\r\n angular\r\n .module('app.search.athletes.memberList')\r\n .controller('MemberListController', MemberListController);\r\n\r\n function MemberListController(log, dataservice, $q, $rootScope, gettextCatalog, VIEW_DATA, $scope, $state, authenticationService, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.athleteList = [];\r\n $rootScope.title = gettextCatalog.getString('SearchMemberList');\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n\r\n // Create variables\r\n vm.leftrightboth = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Left'), value: 'Left'},\r\n {text: gettextCatalog.getString('Right'), value: 'Right'},\r\n {text: gettextCatalog.getString('Both'), value: 'Both'}\r\n ];\r\n vm.genderList = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Male'), value: 'Male'},\r\n {text: gettextCatalog.getString('Female'), value: 'Female'}\r\n ];\r\n vm.yesno = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Yes'), value: true},\r\n {text: gettextCatalog.getString('No'), value: false}\r\n ];\r\n vm.muv_EGYEZIK_NEMEGYZIK = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Egyezik'), value: 'Egyezik'},\r\n {text: gettextCatalog.getString('Nem egyezik'), value: 'Nem egyezik'}\r\n ];\r\n vm.muv_KIJELOLVE_NINCSKIJELOLVE = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Kijelölve'), value: 'Kijelölve'},\r\n {text: gettextCatalog.getString('Nincs kijelölve'), value: 'Nincs kijelölve'}\r\n ];\r\n vm.muv_E_NEME_TART_NEMT = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Tartalmazza'), value: 'Tartalmazza'},\r\n {text: gettextCatalog.getString('Nem tartalmazza'), value: 'Nem tartalmazza'},\r\n {text: gettextCatalog.getString('Egyezik'), value: 'Egyezik'},\r\n {text: gettextCatalog.getString('Nem egyezik'), value: 'Nem egyezik'}\r\n ];\r\n vm.muv_TAG_NEMTAG = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Tagja'), value: 'Tagja'},\r\n {text: gettextCatalog.getString('Nem tagja'), value: 'Nem tagja'}\r\n ];\r\n vm.muv_KIJ_NINCSKIJ = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Kijelölve'), value: 'Kijelölve'}\r\n /*,{text: gettextCatalog.getString('Nincs kijelölve'), value: 'Nincs kijelölve'}*/\r\n ];\r\n vm.muv_DATE = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Date_Before'), value: '<='},\r\n {text: gettextCatalog.getString('Date_After'), value: '>='},\r\n {text: gettextCatalog.getString('Date_At'), value: '='},\r\n {text: gettextCatalog.getString('Date_NotAt'), value: '≠'},\r\n {text: gettextCatalog.getString('Date_Between'), value: 'Között'}\r\n ];\r\n vm.muv_REL_KOZ = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Less than'), value: '<='},\r\n {text: gettextCatalog.getString('Greater than'), value: '>='},\r\n {text: gettextCatalog.getString('Equals'), value: '='},\r\n {text: gettextCatalog.getString('Not equal'), value: '≠'},\r\n {text: gettextCatalog.getString('Between'), value: 'Között'}\r\n ];\r\n\r\n vm.nameChange = nameChange;\r\n function nameChange () {\r\n vm.query.muvnev = 'Tartalmazza';\r\n vm.NameNotMatchingChecked = false;\r\n vm.NameExactMatchChecked = false;\r\n }\r\n\r\n vm.NameExactMatch = NameExactMatch;\r\n function NameExactMatch (arg) {\r\n if (arg.value == true) {\r\n vm.NameNotMatchingChecked = false;\r\n vm.query.muvnev = 'Egyezik';\r\n }\r\n }\r\n\r\n vm.NameNotMatching = NameNotMatching;\r\n function NameNotMatching (arg) {\r\n if (arg.value == true) {\r\n vm.NameExactMatchChecked = false;\r\n vm.query.muvnev = 'Nem egyezik';\r\n }\r\n }\r\n\r\n vm.MemberOfSection = MemberOfSection;\r\n function MemberOfSection (arg) {\r\n if (arg.value == true) {\r\n vm.NotMemberOfSectionChecked = false;\r\n vm.query.muvszakosztaly = 'Tagja';\r\n }\r\n }\r\n\r\n vm.NotMemberOfSection = NotMemberOfSection;\r\n function NotMemberOfSection (arg) {\r\n if (arg.value == true) {\r\n vm.MemberOfSectionChecked = false;\r\n vm.query.muvszakosztaly = 'Nem tagja';\r\n }\r\n }\r\n\r\n vm.MemberOfAgeGroup = MemberOfAgeGroup;\r\n function MemberOfAgeGroup (arg) {\r\n if (arg.value == true) {\r\n vm.NotMemberOfAgeGroupChecked = false;\r\n vm.query.muvkorosztaly = 'Tagja';\r\n }\r\n }\r\n\r\n vm.NotMemberOfAgeGroup = NotMemberOfAgeGroup;\r\n function NotMemberOfAgeGroup (arg) {\r\n if (arg.value == true) {\r\n vm.MemberOfAgeGroupChecked = false;\r\n vm.query.muvkorosztaly = 'Nem tagja';\r\n }\r\n }\r\n\r\n vm.BelongsToCoach = BelongsToCoach;\r\n function BelongsToCoach (arg) {\r\n if (arg.value == true) {\r\n vm.NotBelongsToCoachChecked = false;\r\n vm.query.muvedzo = 'Egyezik';\r\n }\r\n }\r\n\r\n vm.NotBelongsToCoach = NotBelongsToCoach;\r\n function NotBelongsToCoach (arg) {\r\n if (arg.value == true) {\r\n vm.BelongsToCoachChecked = false;\r\n vm.query.muvedzo = 'Nem egyezik';\r\n }\r\n }\r\n\r\n vm.ContactNotMatching = ContactNotMatching;\r\n function ContactNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given contact details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.SchoolNotMatching = SchoolNotMatching;\r\n function SchoolNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given school details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.ParentNotMatching = ParentNotMatching;\r\n function ParentNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n vm.query.muvanyjaMagTol = '=';\r\n vm.query.muvapaMagTol = '=';\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given parent details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.BodyShapeNotMatching = BodyShapeNotMatching;\r\n function BodyShapeNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given bodyshape details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.IdNumbersNotMatching = IdNumbersNotMatching;\r\n function IdNumbersNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given id numbers'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.columns = [{field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: '150'}];\r\n\r\n vm.query = {};\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.resetQueryDetails = resetQueryDetails;\r\n resetQueryDetails();\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SPORTOLOKERESO')];\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n vm.goToAthlete = goToAthlete;\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n vm.sectionSelect = sectionSelect;\r\n function sectionSelect(args) {\r\n vm.MemberOfSectionChecked = args.value > 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n }\r\n\r\n vm.ageGroupSelect = ageGroupSelect;\r\n function ageGroupSelect(args) {\r\n vm.MemberOfAgeGroupChecked = true;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n }\r\n\r\n vm.coachSelect = coachSelect;\r\n function coachSelect(args) {\r\n vm.BelongsToCoachChecked = true;\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 0) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID) // Need the section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n vm.search = search;\r\n function search() {\r\n initGrid();\r\n initData();\r\n dataservice.searchMemberList(vm.query).then(function (results) {\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'SzuletesiIdo');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'DSITagsagKezd');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'KilepesDatuma');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'EdzesreJarasKezd');\r\n });\r\n }\r\n\r\n function resetQueryDetails () {\r\n // string, datetime, int?\r\n vm.query.nev = undefined;\r\n vm.query.szakosztalyId = undefined;\r\n vm.query.korosztalyId = undefined;\r\n vm.query.edzoId = undefined;\r\n vm.query.tol = undefined;\r\n vm.query.ig = undefined;\r\n vm.query.neme = undefined;\r\n vm.query.allamp = undefined;\r\n vm.query.vspTol = undefined;\r\n vm.query.vspIg = undefined;\r\n vm.query.lakcimMegye = undefined;\r\n vm.query.lakcimIrSzam = undefined;\r\n vm.query.lakcimVaros = undefined;\r\n vm.query.lakcimUtca = undefined;\r\n vm.query.lakcimHazszam = undefined;\r\n vm.query.elerh = undefined;\r\n vm.query.iskNev = undefined;\r\n vm.query.iskIrSzam = undefined;\r\n vm.query.iskVaros = undefined;\r\n vm.query.iskUtca = undefined;\r\n vm.query.iskHazszam = undefined;\r\n vm.query.igNeve = undefined;\r\n vm.query.testnev = undefined;\r\n vm.query.testnevElerh = undefined;\r\n vm.query.evfolyam = undefined;\r\n vm.query.osztaly = undefined;\r\n vm.query.anyjaNeve = undefined;\r\n vm.query.anyjaElerh = undefined;\r\n vm.query.anyjaMagTol = undefined;\r\n vm.query.anyjaMagIg = undefined;\r\n vm.query.anyjaSpMult = undefined;\r\n vm.query.apaNeve = undefined;\r\n vm.query.apaElerh = undefined;\r\n vm.query.apaMagTol = undefined;\r\n vm.query.apaMagIg = undefined;\r\n vm.query.apaSpMult = undefined;\r\n vm.query.testMagTol = undefined;\r\n vm.query.testMagIg = undefined;\r\n vm.query.testsulyTol = undefined;\r\n vm.query.testSulyIg = undefined;\r\n vm.query.bmi = undefined;\r\n vm.query.bmiig = undefined;\r\n vm.query.ugyKez = undefined;\r\n vm.query.ugyLab = undefined;\r\n vm.query.szemIgSzam = undefined;\r\n vm.query.tajSzam = undefined;\r\n vm.query.adoSzam = undefined;\r\n vm.query.utlevelSzam = undefined;\r\n vm.query.egyeb = undefined;\r\n vm.query.aktiv = undefined;\r\n vm.query.havidijas = undefined;\r\n vm.query.oktdijas = undefined;\r\n vm.query.dsiKezdTol = undefined;\r\n vm.query.dsiKezdIg = undefined;\r\n vm.query.kiDatTol = undefined;\r\n vm.query.kiDatIg = undefined;\r\n vm.query.kilepIndoka = undefined;\r\n vm.query.eddigiEdzoi = undefined;\r\n vm.query.eddigiSpEgyes = undefined;\r\n vm.query.edzesKezdTol = undefined;\r\n vm.query.edzesKezdIg = undefined;\r\n vm.query.email = undefined;\r\n vm.query.regSzam = undefined;\r\n vm.query.osztFoNeve = undefined;\r\n vm.query.anyjaLeanyNeve = undefined;\r\n vm.query.pubVegeTol = undefined;\r\n vm.query.pubVegeIg = undefined;\r\n vm.query.szuloFogl = undefined;\r\n vm.query.gyereksport = undefined;\r\n vm.query.fajiEredet = undefined;\r\n vm.query.szunidElfogl = undefined;\r\n vm.query.valSportagak = undefined;\r\n vm.query.leanykoriNev = undefined;\r\n vm.query.papucsMerete = undefined;\r\n vm.query.melegitoMerete = undefined;\r\n vm.query.furdokopenyMerete = undefined;\r\n vm.query.kabatMerete = undefined;\r\n vm.query.pancelNadragMerete = undefined;\r\n vm.query.poloMerete = undefined;\r\n vm.query.sortMerete = undefined;\r\n vm.query.cipoMerete = undefined;\r\n vm.query.uszonadragMerete = undefined;\r\n\r\n vm.query.acttestMagTol = undefined;\r\n vm.query.acttestMagIg = undefined;\r\n vm.query.acttestSulyTol = undefined;\r\n vm.query.testactSulyIg = undefined;\r\n vm.query.actbmi = undefined;\r\n vm.query.actbmiig = undefined;\r\n\r\n // Müvelet, Egyezik, Nem egyezik, Tartalmazza, Nem tartalmazza stb\r\n vm.query.muvnev = undefined;\r\n vm.query.muvszakosztaly = undefined;\r\n vm.query.muvkorosztaly = undefined;\r\n vm.query.muvedzo = undefined;\r\n vm.query.muvtol = undefined;\r\n vm.query.muvig = undefined;\r\n //vm.query.muvneme = undefined;\r\n vm.query.muvneme = 'Egyezik';\r\n vm.query.muvallamp = 'Tartalmazza';\r\n vm.query.muvvspTol = undefined;\r\n vm.query.muvvspIg = undefined;\r\n vm.query.muvlakcimMegye = undefined;\r\n vm.query.muvlakcimIrSzam = undefined;\r\n vm.query.muvlakcimVaros = undefined;\r\n vm.query.muvlakcimUtca = undefined;\r\n vm.query.muvlakcimHazszam = undefined;\r\n vm.query.muvelerh = undefined;\r\n vm.query.muviskNev = undefined;\r\n vm.query.muviskIrSzam = undefined;\r\n vm.query.muviskVaros = undefined;\r\n vm.query.muviskUtca = undefined;\r\n vm.query.muviskHazszam = undefined;\r\n vm.query.muvigNeve = undefined;\r\n vm.query.muvtestnev = undefined;\r\n vm.query.muvtestnevElerh = undefined;\r\n vm.query.muvevfolyam = undefined;\r\n vm.query.muvosztaly = undefined;\r\n vm.query.muvanyjaNeve = undefined;\r\n vm.query.muvanyjaElerh = undefined;\r\n vm.query.muvanyjaMagTol = undefined;\r\n vm.query.muvanyjaMagIg = undefined;\r\n vm.query.muvanyjaSpMult = undefined;\r\n vm.query.muvapaNeve = undefined;\r\n vm.query.muvapaElerh = undefined;\r\n vm.query.muvapaMagTol = undefined;\r\n vm.query.muvapaMagIg = undefined;\r\n vm.query.muvapaSpMult = undefined;\r\n vm.query.muvtestMagTol = undefined;\r\n vm.query.muvtestMagIg = undefined;\r\n vm.query.muvtestsulyTol = undefined;\r\n vm.query.muvtestSulyIg = undefined;\r\n vm.query.muvugyKez = undefined;\r\n vm.query.muvugyLab = undefined;\r\n vm.query.muvszemIgSzam = undefined;\r\n vm.query.muvtajSzam = undefined;\r\n vm.query.muvadoSzam = undefined;\r\n vm.query.muvutlevelSzam = undefined;\r\n vm.query.muvegyeb = undefined;\r\n vm.query.muvaktiv = 'Kijelölve';\r\n vm.query.muvhavidijas = undefined;\r\n vm.query.muvoktdijas = undefined;\r\n vm.query.muvdsiKezdTol = undefined;\r\n vm.query.muvdsiKezdIg = undefined;\r\n vm.query.muvkiDatTol = undefined;\r\n vm.query.muvkiDatIg = undefined;\r\n vm.query.muvkilepIndoka = undefined;\r\n vm.query.muveddigiEdzoi = undefined;\r\n vm.query.muveddigiSpEgyes = undefined;\r\n vm.query.muvedzesKezdTol = undefined;\r\n vm.query.muvedzesKezdIg = undefined;\r\n vm.query.muvemail = undefined;\r\n vm.query.muvregSzam = undefined;\r\n vm.query.muvosztFoNeve = undefined;\r\n vm.query.muvanyjaLeanyNeve = undefined;\r\n vm.query.muvpubVegeTol = undefined;\r\n vm.query.muvpubVegeIg = undefined;\r\n vm.query.muvszuloFogl = undefined;\r\n vm.query.muvgyereksport = undefined;\r\n vm.query.muvfajiEredet = undefined;\r\n vm.query.muvszunidElfogl = undefined;\r\n vm.query.muvvalSportagak = undefined;\r\n vm.query.muvleanykoriNev = 'Tartalmazza';\r\n //vm.query.muvleanykoriNev = undefined;\r\n vm.query.muvbmi = undefined;\r\n vm.query.muvacttestMagTol = undefined;\r\n vm.query.muvacttestSulyTol = undefined;\r\n vm.query.muvactbmi = undefined;\r\n\r\n vm.query.muvpapucsMerete = undefined;\r\n vm.query.muvmelegitoMerete = undefined;\r\n vm.query.muvfurdokopenyMerete = undefined;\r\n vm.query.muvkabatMerete = undefined;\r\n vm.query.muvpancelNadragMerete = undefined;\r\n vm.query.muvpoloMerete = undefined;\r\n vm.query.muvsortMerete = undefined;\r\n vm.query.muvcipoMerete = undefined;\r\n vm.query.muvuszonadragMerete = undefined;\r\n\r\n vm.query.anyjaFoglalkozasa = undefined;\r\n vm.query.muvanyjaFoglalkozasa = undefined;\r\n vm.query.apaFoglalkozasa = undefined;\r\n vm.query.muvapaFoglalkozasa = undefined;\r\n\r\n // BOOL\r\n vm.query.kellnev = undefined;\r\n vm.query.kelltestiAdottsagok = undefined;\r\n vm.query.kellAzonositok = undefined;\r\n vm.query.kelliskCim = undefined;\r\n vm.query.kelllakcim = undefined;\r\n vm.query.kellpapucs = undefined;\r\n vm.query.kellmelegito = undefined;\r\n vm.query.kellfurdokopeny = undefined;\r\n vm.query.kellkabat = undefined;\r\n vm.query.kellpancelNadrag = undefined;\r\n vm.query.kellpolo = undefined;\r\n vm.query.kellsort = undefined;\r\n vm.query.kellcipo = undefined;\r\n vm.query.kelluszonadrag = undefined;\r\n vm.query.kellmegjegyzes = undefined;\r\n vm.query.kellszulhelyorszag = undefined;\r\n vm.query.kellszulhelyvaros = undefined;\r\n vm.query.kellaktiv = undefined;\r\n vm.query.kellszakosztalyId = undefined;\r\n vm.query.kellkorosztalyId = undefined;\r\n vm.query.kelledzoId = undefined;\r\n vm.query.kelltol = undefined;\r\n vm.query.kellig = undefined;\r\n vm.query.kellneme = undefined;\r\n vm.query.kellSzulHely = undefined;\r\n vm.query.kellallamp = undefined;\r\n vm.query.kellvspTol = undefined;\r\n vm.query.kellvspIg = undefined;\r\n vm.query.kelllakcimMegye = undefined;\r\n vm.query.kelllakcimIrSzam = undefined;\r\n vm.query.kelllakcimVaros = undefined;\r\n vm.query.kelllakcimUtca = undefined;\r\n vm.query.kelllakcimHazszam = undefined;\r\n vm.query.kellelerh = undefined;\r\n vm.query.kelliskNev = undefined;\r\n vm.query.kelliskIrSzam = undefined;\r\n vm.query.kelliskVaros = undefined;\r\n vm.query.kelliskUtca = undefined;\r\n vm.query.kelliskHazszam = undefined;\r\n vm.query.kelligNeve = undefined;\r\n vm.query.kelltestnev = undefined;\r\n vm.query.kelltestnevElerh = undefined;\r\n vm.query.kellevfolyam = undefined;\r\n vm.query.kellosztaly = undefined;\r\n vm.query.kellanyjaNeve = undefined;\r\n vm.query.kellanyjaElerh = undefined;\r\n vm.query.kellanyjaMagTol = undefined;\r\n vm.query.kellanyjaMagIg = undefined;\r\n vm.query.kellanyjaSpMult = undefined;\r\n vm.query.kellapaNeve = undefined;\r\n vm.query.kellapaElerh = undefined;\r\n vm.query.kellapaMagTol = undefined;\r\n vm.query.kellapaMagIg = undefined;\r\n vm.query.kellapaSpMult = undefined;\r\n vm.query.kelltestMagTol = undefined;\r\n vm.query.kelltestMagIg = undefined;\r\n vm.query.kelltestsulyTol = undefined;\r\n vm.query.kelltestSulyIg = undefined;\r\n vm.query.kellugyKez = undefined;\r\n vm.query.kellugyLab = undefined;\r\n vm.query.kellszemIgSzam = undefined;\r\n vm.query.kelltajSzam = undefined;\r\n vm.query.kelladoSzam = undefined;\r\n vm.query.kellutlevelSzam = undefined;\r\n vm.query.kellegyeb = undefined;\r\n vm.query.kellaktiv = undefined;\r\n vm.query.kellhavidijas = undefined;\r\n vm.query.kelloktdijas = undefined;\r\n vm.query.kellNyilvSzam = undefined;\r\n vm.query.kellDSIKezd = undefined;\r\n vm.query.kellEddigiEdzo = undefined;\r\n vm.query.kellEddigiSp = undefined;\r\n vm.query.kellTagdijas = undefined;\r\n vm.query.kellEmail = undefined;\r\n vm.query.kellEdzJaras = undefined;\r\n vm.query.kellGyermSp = undefined;\r\n vm.query.kellFajiEredet = undefined;\r\n vm.query.kellSzunidei = undefined;\r\n vm.query.kellLeanykNev = undefined;\r\n vm.query.kellKilepesDatum = undefined;\r\n vm.query.kellKilepesIndok = undefined;\r\n vm.query.kellpapucsMerete = undefined;\r\n vm.query.kellmelegitoMerete = undefined;\r\n vm.query.kellfurdokopenyMerete = undefined;\r\n vm.query.kellkabatMerete = undefined;\r\n vm.query.kellpancelNadragMerete = undefined;\r\n vm.query.kellpoloMerete = undefined;\r\n vm.query.kellsortMerete = undefined;\r\n vm.query.kellAnyjaLeanykoriNeve = undefined;\r\n vm.query.kellAnyjaAdatai = undefined;\r\n vm.query.kellApjaAdatai = undefined;\r\n vm.query.kellbmi = undefined;\r\n vm.query.kellof = undefined;\r\n\r\n // CHECKBOX bools\r\n vm.NameExactMatchChecked = false;\r\n vm.NameNotMatchingChecked = false;\r\n vm.MemberOfSectionChecked = false;\r\n vm.NotMemberOfSectionChecked = false;\r\n vm.MemberOfAgeGroupChecked = false;\r\n vm.NotMemberOfAgeGroupChecked = false;\r\n vm.BelongsToCoachChecked = false;\r\n vm.NotBelongsToCoachChecked = false;\r\n\r\n // OFFSET\r\n vm.query.kezdo = undefined;\r\n vm.query.darab = undefined;\r\n }\r\n\r\n function initData() {\r\n // CONTACT DETAILS\r\n if (vm.ContactNotMatchingChecked == true) {\r\n if (vm.query.lakcimMegye) {\r\n vm.query.muvlakcimMegye = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimIrSzam) {\r\n vm.query.muvlakcimIrSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimVaros) {\r\n vm.query.muvlakcimVaros = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimUtca) {\r\n vm.query.muvlakcimUtca = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimHazszam) {\r\n vm.query.muvlakcimHazszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.elerh) {\r\n vm.query.muvelerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.email) {\r\n vm.query.muvemail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.lakcimMegye) {\r\n vm.query.muvlakcimMegye = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimIrSzam) {\r\n vm.query.muvlakcimIrSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimVaros) {\r\n vm.query.muvlakcimVaros = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimUtca) {\r\n vm.query.muvlakcimUtca = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimHazszam) {\r\n vm.query.muvlakcimHazszam = 'Tartalmazza';\r\n }\r\n if (vm.query.elerh) {\r\n vm.query.muvelerh = 'Tartalmazza';\r\n }\r\n if (vm.query.email) {\r\n vm.query.muvemail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // SCHOOL DETAILS\r\n if (vm.SchoolNotMatchingChecked == true) {\r\n if (vm.query.iskNev) {\r\n vm.query.muviskNev = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskIrSzam) {\r\n vm.query.muviskIrSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskVaros) {\r\n vm.query.muviskVaros = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskUtca) {\r\n vm.query.muviskUtca = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskHazszam) {\r\n vm.query.muviskHazszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.igNeve) {\r\n vm.query.muvigNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnev) {\r\n vm.query.muvtestnev = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnevElerh) {\r\n vm.query.muvtestnevElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnevEmail) {\r\n vm.query.muvtestnevEmail = 'Nem tartalmazza';\r\n }\r\n if (vm.query.evfolyam) {\r\n vm.query.muvevfolyam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.osztaly) {\r\n vm.query.muvosztaly = 'Nem tartalmazza';\r\n }\r\n if (vm.query.regszam) {\r\n vm.query.muvregszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.osztFoNeve) {\r\n vm.query.muvosztFoNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.OfTel) {\r\n vm.query.muvOfTel = 'Nem tartalmazza';\r\n }\r\n if (vm.query.OfEmail) {\r\n vm.query.muvOfEmail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.iskNev) {\r\n vm.query.muviskNev = 'Tartalmazza';\r\n }\r\n if (vm.query.iskIrSzam) {\r\n vm.query.muviskIrSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.iskVaros) {\r\n vm.query.muviskVaros = 'Tartalmazza';\r\n }\r\n if (vm.query.iskUtca) {\r\n vm.query.muviskUtca = 'Tartalmazza';\r\n }\r\n if (vm.query.iskHazszam) {\r\n vm.query.muviskHazszam = 'Tartalmazza';\r\n }\r\n if (vm.query.igNeve) {\r\n vm.query.muvigNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.testnev) {\r\n vm.query.muvtestnev = 'Tartalmazza';\r\n }\r\n if (vm.query.testnevElerh) {\r\n vm.query.muvtestnevElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.testnevEmail) {\r\n vm.query.muvtestnevEmail = 'Tartalmazza';\r\n }\r\n if (vm.query.evfolyam) {\r\n vm.query.muvevfolyam = 'Tartalmazza';\r\n }\r\n if (vm.query.osztaly) {\r\n vm.query.muvosztaly = 'Tartalmazza';\r\n }\r\n if (vm.query.regszam) {\r\n vm.query.muvregszam = 'Tartalmazza';\r\n }\r\n if (vm.query.osztFoNeve) {\r\n vm.query.muvosztFoNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.kilepIndoka) {\r\n vm.query.muvkilepIndoka = 'Tartalmazza';\r\n }\r\n if (vm.query.eddigiEdzoi) {\r\n vm.query.muveddigiEdzoi = 'Tartalmazza';\r\n }\r\n if (vm.query.eddigiSpEgyes) {\r\n vm.query.muveddigiSpEgyes = 'Tartalmazza';\r\n }\r\n if (vm.query.OfTel) {\r\n vm.query.muvOfTel = 'Tartalmazza';\r\n }\r\n if (vm.query.OfEmail) {\r\n vm.query.muvOfEmail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // PARENT DETAILS\r\n if (vm.ParentNotMatchingChecked == true) {\r\n if (vm.query.anyjaNeve) {\r\n vm.query.muvanyjaNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaElerh) {\r\n vm.query.muvanyjaElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaSpMult) {\r\n vm.query.muvanyjaSpMult = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaLeanyNeve) {\r\n vm.query.muvanyjaLeanyNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaFoglalkozasa) {\r\n vm.query.muvanyjaFoglalkozasa = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaNeve) {\r\n vm.query.muvapaNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaElerh) {\r\n vm.query.muvapaElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaSpMult) {\r\n vm.query.muvapaSpMult = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaFoglalkozasa) {\r\n vm.query.muvapaFoglalkozasa = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaMagTol) {\r\n vm.query.muvanyjaMagTol = '≠';\r\n }\r\n if (vm.query.apaMagTol) {\r\n vm.query.muvapaMagTol = '≠';\r\n }\r\n if (vm.query.AnyaMunkahely) {\r\n vm.query.muvAnyaMunkahely = 'Nem tartalmazza';\r\n }\r\n if (vm.query.ApaMunkahely) {\r\n vm.query.muvApaMunkahely = 'Nem tartalmazza';\r\n }\r\n if (vm.query.AnyaEmail) {\r\n vm.query.muvAnyaEmail = 'Nem tartalmazza';\r\n }\r\n if (vm.query.ApaEmail) {\r\n vm.query.muvApaEmail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.anyjaNeve) {\r\n vm.query.muvanyjaNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaElerh) {\r\n vm.query.muvanyjaElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaSpMult) {\r\n vm.query.muvanyjaSpMult = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaLeanyNeve) {\r\n vm.query.muvanyjaLeanyNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaFoglalkozasa) {\r\n vm.query.muvanyjaFoglalkozasa = 'Tartalmazza';\r\n }\r\n if (vm.query.apaNeve) {\r\n vm.query.muvapaNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.apaElerh) {\r\n vm.query.muvapaElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.apaSpMult) {\r\n vm.query.muvapaSpMult = 'Tartalmazza';\r\n }\r\n if (vm.query.apaFoglalkozasa) {\r\n vm.query.muvapaFoglalkozasa = 'Tartalmazza';\r\n }\r\n if (vm.query.AnyaMunkahely) {\r\n vm.query.muvAnyaMunkahely = 'Tartalmazza';\r\n }\r\n if (vm.query.ApaMunkahely) {\r\n vm.query.muvApaMunkahely = 'Tartalmazza';\r\n }\r\n if (vm.query.AnyaEmail) {\r\n vm.query.muvAnyaEmail = 'Tartalmazza';\r\n }\r\n if (vm.query.ApaEmail) {\r\n vm.query.muvApaEmail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // BODYSHAPE\r\n if (vm.BodyShapeNotMatchingChecked == true) {\r\n if (vm.query.testMagTol) {\r\n vm.query.muvtestMagTol = '≠';\r\n }\r\n if (vm.query.testsulyTol) {\r\n vm.query.muvtestsulyTol = '≠';\r\n }\r\n if (vm.query.bmi) {\r\n vm.query.muvbmi = '≠';\r\n }\r\n if (vm.query.acttestMagTol) {\r\n vm.query.muvacttestMagTol = '≠';\r\n }\r\n if (vm.query.acttestSulyTol) {\r\n vm.query.muvacttestSulyTol = '≠';\r\n }\r\n if (vm.query.actbmi) {\r\n vm.query.muvactbmi = '≠';\r\n }\r\n if (vm.query.ugyKez) {\r\n vm.query.muvugyKez = 'Nem egyezik';\r\n }\r\n if (vm.query.ugyLab) {\r\n vm.query.muvugyLab = 'Nem egyezik';\r\n }\r\n }\r\n\r\n // ID\r\n if (vm.IdNumbersNotMatchingChecked == true) {\r\n if (vm.query.szemIgSzam) {\r\n vm.query.muvszemIgSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.tajSzam) {\r\n vm.query.muvtajSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.adoSzam) {\r\n vm.query.muvadoSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.utlevelSzam) {\r\n vm.query.muvutlevelSzam = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.szemIgSzam) {\r\n vm.query.muvszemIgSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.tajSzam) {\r\n vm.query.muvtajSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.adoSzam) {\r\n vm.query.muvadoSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.utlevelSzam) {\r\n vm.query.muvutlevelSzam = 'Tartalmazza';\r\n }\r\n }\r\n\r\n if (vm.query.egyeb) {\r\n vm.query.muvegyeb = 'Tartalmazza';\r\n }\r\n if (vm.query.havidijas) {\r\n vm.query.muvhavidijas = 'Kijelölve';\r\n }\r\n if (vm.query.oktdijas) {\r\n vm.query.muvoktdijas = 'Kijelölve';\r\n }\r\n if (vm.query.gyereksport) {\r\n vm.query.muvgyereksport = 'Tartalmazza';\r\n }\r\n if (vm.query.szunidElfogl) {\r\n vm.query.muvszunidElfogl = 'Tartalmazza';\r\n }\r\n if (vm.query.valSportagak) {\r\n vm.query.muvvalSportagak = 'Tartalmazza';\r\n }\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns.push({field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: '150', template: '#searchmemberlistgotoathlete'});\r\n vm.columns.push({field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: '125', format: 'yMd'});\r\n if (vm.query.kellSzulHely) {\r\n vm.query.kellszulhelyvaros = true;\r\n vm.query.kellszulhelyorszag = true;\r\n vm.columns.push({field: 'SzuletesiHelyOrszag', headerText: gettextCatalog.getString('BirthCountry'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'SzuletesiHelyVaros', headerText: gettextCatalog.getString('BirthCity'), textAlign: 'center', width: '125'});\r\n }\r\n // ÁLTALÁNOS\r\n if (vm.query.kellszakosztalyId) {\r\n vm.columns.push({field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellkorosztalyId) {\r\n vm.columns.push({field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: '115'});\r\n }\r\n if (vm.query.kelledzoId) {\r\n vm.columns.push({field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellmegjegyzes) {\r\n vm.columns.push({field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: '200'});\r\n }\r\n if (vm.query.kellneme) {\r\n vm.columns.push({field: 'Neme', headerText: gettextCatalog.getString('Gender'), textAlign: 'center', width: '80'});\r\n }\r\n if (vm.query.kellaktiv) {\r\n vm.columns.push({field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: '80', displayAsCheckBox: true});\r\n }\r\n if (vm.query.kellallamp) {\r\n vm.columns.push({field: 'Allampolgarsag', headerText: gettextCatalog.getString('Citizenship'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellvspTol) {\r\n vm.columns.push({field: 'VersSportKezd', headerText: gettextCatalog.getString('CompetitiveSportStart'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellLeanykNev) {\r\n vm.columns.push({field: 'LeanykoriNeve', headerText: gettextCatalog.getString('MaidenName'), textAlign: 'center', width: '150'});\r\n }\r\n // KAPCSOLAT\r\n if (vm.query.kelllakcim) {\r\n vm.query.kelllakcimMegye = true;\r\n vm.query.kelllakcimVaros = true;\r\n vm.query.kelllakcimIrSzam = true;\r\n vm.query.kelllakcimUtca = true;\r\n vm.query.kelllakcimHazszam = true;\r\n vm.columns.push({field: 'lakcim', headerText: gettextCatalog.getString('Address'), textAlign: 'center', width: '225'});\r\n }\r\n if (vm.query.kellelerh) {\r\n vm.columns.push({field: 'Elerhetoseg', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEmail) {\r\n vm.columns.push({field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: '175'});\r\n }\r\n // ISKOLA\r\n if (vm.query.kelliskNev) {\r\n vm.columns.push({field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', width: '200'});\r\n }\r\n if (vm.query.kelliskCim) {\r\n vm.query.kelliskVaros = true;\r\n vm.query.kelliskIrSzam = true;\r\n vm.query.kelliskUtca = true;\r\n vm.query.kelliskHazszam = true;\r\n vm.columns.push({field: 'iskolacim', headerText: gettextCatalog.getString('SchoolAddress'), textAlign: 'center', width: '225'});\r\n }\r\n if (vm.query.kelligNeve) {\r\n vm.columns.push({field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('Director'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellof) {\r\n vm.columns.push({field: 'Of', headerText: gettextCatalog.getString('ClassMaster'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'OfTel', headerText: gettextCatalog.getString('ClassMasterTel'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'OfEmail', headerText: gettextCatalog.getString('ClassMasterEmail'), textAlign: 'center', width: '175'});\r\n }\r\n if (vm.query.kelltestnev) {\r\n vm.columns.push({field: 'TestneveloNeve', headerText: gettextCatalog.getString('GymTeacher'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kelltestnevElerh) {\r\n vm.columns.push({field: 'TestneveloElerhetosege', headerText: gettextCatalog.getString('GymTeacherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'TestneveloEmail', headerText: gettextCatalog.getString('GymTeacherEmail'), textAlign: 'center', width: '175'});\r\n }\r\n if (vm.query.kellevfolyam || vm.query.kellosztaly) {\r\n vm.query.kellevfolyam = true;\r\n vm.query.kellosztaly = true;\r\n vm.columns.push({field: 'evfolyamosztaly', headerText: gettextCatalog.getString('SchoolYearClass'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellDSIKezd) {\r\n vm.columns.push({field: 'DSITagsagKezd', headerText: gettextCatalog.getString('MembershipStart'), textAlign: 'center', width: '125', format: 'yMd'});\r\n }\r\n if (vm.query.kellKilepesDatum) {\r\n vm.query.kellKilepesIndok = true;\r\n vm.columns.push({field: 'KilepesDatuma', headerText: gettextCatalog.getString('MembershipEnd'), textAlign: 'center', width: '125', format: 'yMd'});\r\n vm.columns.push({field: 'KilepesIndoka', headerText: gettextCatalog.getString('CauseOfLeaving'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEddigiEdzo) {\r\n vm.columns.push({field: 'EddigiEdzoi', headerText: gettextCatalog.getString('FormerCoaches'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEddigiSp) {\r\n vm.columns.push({field: 'EddigiSpEgy', headerText: gettextCatalog.getString('FormerSportOrganizationMemberships'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellNyilvSzam) {\r\n vm.columns.push({field: 'NyilvantartasiSzam', headerText: gettextCatalog.getString('RegistrationNumber'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEdzJaras) {\r\n vm.columns.push({field: 'EdzesreJarasKezd', headerText: gettextCatalog.getString('TrainingStart'), textAlign: 'center', width: '125', format: 'yMd'});\r\n }\r\n // SZÜLŐK ADATAI\r\n if (vm.query.kellAnyjaAdatai) {\r\n vm.query.kellanyjaNeve = true;\r\n vm.query.kellAnyjaLeanykoriNeve = true;\r\n vm.query.kellanyjaElerh = true;\r\n vm.query.kellanyjaMagTol = true;\r\n vm.query.kellanyjaSpMult = true;\r\n vm.columns.push({field: 'AnyjaNeve', headerText: gettextCatalog.getString('MothersName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyjaLeanykoriNeve', headerText: gettextCatalog.getString('MothersMaidenName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Szulo1Elerhetosege', headerText: gettextCatalog.getString('MotherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyaEmail', headerText: gettextCatalog.getString('MotherEmail'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'AnyaMunkahely', headerText: gettextCatalog.getString('MothersWorkplace'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyjaTestmagassaga', headerText: gettextCatalog.getString('MotherHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'SportoloiMultAnya', headerText: gettextCatalog.getString('MotherSportHistory'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'anyjafoglalkozasa', headerText: gettextCatalog.getString('MothersJob'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellApjaAdatai) {\r\n vm.query.kellapaNeve = true;\r\n vm.query.kellapaElerh = true;\r\n vm.query.kellapaMagTol = true;\r\n vm.query.kellapaSpMult = true;\r\n vm.columns.push({field: 'SzuloNeve', headerText: gettextCatalog.getString('FathersName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Szulo2Elerhetosege', headerText: gettextCatalog.getString('FatherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'ApaEmail', headerText: gettextCatalog.getString('FatherEmail'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'ApaMunkahely', headerText: gettextCatalog.getString('FathersWorkplace'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'ApjaTestmagassaga', headerText: gettextCatalog.getString('FatherHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'SportoloiMultApa', headerText: gettextCatalog.getString('FatherSportHistory'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'apjafoglalkozasa', headerText: gettextCatalog.getString('FathersJob'), textAlign: 'center', width: '150'});\r\n }\r\n // TESTI ADOTTSÁGOK\r\n if (vm.query.kelltestiAdottsagok) {\r\n vm.query.kelltestMagTol = true;\r\n vm.query.kelltestsulyTol = true;\r\n vm.query.kellugyKez = true;\r\n vm.query.kellugyLab = true;\r\n vm.query.kellbmi = true;\r\n vm.columns.push({field: 'Testmagassag', headerText: gettextCatalog.getString('Height'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'TestsulyStr', headerText: gettextCatalog.getString('Weight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'bmi', headerText: gettextCatalog.getString('BodyMassIndex'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AktTestmagassag', headerText: gettextCatalog.getString('ActualHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'AktTestsuly', headerText: gettextCatalog.getString('ActualWeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'actbmi', headerText: gettextCatalog.getString('ActualBodyMassIndex'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'UgyesebbKez', headerText: gettextCatalog.getString('BetterHand'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'UgyesebbLab', headerText: gettextCatalog.getString('BetterFoot'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'FajiEredet', headerText: gettextCatalog.getString('RacialOrigin'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'PubertasVege', headerText: gettextCatalog.getString('EndOfPuberty'), textAlign: 'center', width: '125', type: 'date', format: 'yMMMd'});\r\n }\r\n // ID\r\n if (vm.query.kellAzonositok) {\r\n vm.query.kellszemIgSzam = true;\r\n vm.query.kelltajSzam = true;\r\n vm.query.kelladoSzam = true;\r\n vm.query.kellutlevelSzam = true;\r\n vm.columns.push({field: 'SzemIgSzam', headerText: gettextCatalog.getString('PersonalID'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'TAJSzam', headerText: gettextCatalog.getString('SocialSecurityNumber'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AdoSzam', headerText: gettextCatalog.getString('TaxNumber'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'UtlevelSzam', headerText: gettextCatalog.getString('PassportNumber'), textAlign: 'center', width: '150'});\r\n }\r\n // OTHERS\r\n if (vm.query.kellTagdijas || vm.query.kellhavidijas || vm.query.kelloktdijas) { // Díjfizetés\r\n vm.query.kellTagdijas = true;\r\n vm.query.kelloktdijas = true;\r\n vm.columns.push({field: 'Tagdijas', headerText: gettextCatalog.getString('DuesOrEducationFee'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Tagdij', headerText: gettextCatalog.getString('Dues'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellGyermSp) {\r\n vm.columns.push({field: 'GyermekkoriSport', headerText: gettextCatalog.getString('ChildhoodSport'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellSzunidei) {\r\n vm.columns.push({field: 'SzunideiElfogl', headerText: gettextCatalog.getString('VacationActivity'), textAlign: 'center', width: '150'});\r\n }\r\n // RUHA\r\n if (vm.query.kellpapucs) {\r\n vm.query.kellpapucsMerete = true;\r\n vm.columns.push({field: 'papucsMerete', headerText: gettextCatalog.getString('SlipperSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellmelegito) {\r\n vm.query.kellmelegitoMerete = true;\r\n vm.columns.push({field: 'melegitoMerete', headerText: gettextCatalog.getString('JoggingSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellfurdokopeny) {\r\n vm.query.kellfurdokopenyMerete = true;\r\n vm.columns.push({field: 'furdokopenyMerete', headerText: gettextCatalog.getString('BathrobeSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellkabat) {\r\n vm.query.kellkabatMerete = true;\r\n vm.columns.push({field: 'kabatMerete', headerText: gettextCatalog.getString('JacketSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellpancelNadrag) {\r\n vm.query.kellpancelNadragMerete = true;\r\n vm.columns.push({field: 'pancelNadragMerete', headerText: gettextCatalog.getString('ArmorPantsSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellpolo) {\r\n vm.query.kellpoloMerete = true;\r\n vm.columns.push({field: 'poloMerete', headerText: gettextCatalog.getString('ShirtSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellsort) {\r\n vm.query.kellsortMerete = true;\r\n vm.columns.push({field: 'sortMerete', headerText: gettextCatalog.getString('ShortsSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellcipo) {\r\n vm.query.kellcipoMerete = true;\r\n vm.columns.push({field: 'cipoMerete', headerText: gettextCatalog.getString('ShoeSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kelluszonadrag) {\r\n vm.query.kelluszonadragMerete = true;\r\n vm.columns.push({field: 'uszonadragMerete', headerText: gettextCatalog.getString('SwimmingPantSize'), textAlign: 'center', width: '150'});\r\n }\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search.athletes.memberList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes.memberList',\r\n config: {\r\n url: '/memberList',\r\n templateUrl: 'app/search/athletes/memberList/memberList.html',\r\n controller: 'MemberListController',\r\n controllerAs: 'vm',\r\n title: 'SearchMemberList',\r\n settings: {\r\n navId: 22170,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Részletes sportoló kereső',\r\n orderTitle_en: 'Detailed Athlete Search',\r\n parentId: 170,\r\n content: 'SearchMemberList',\r\n activatorPermission: ['\"SPORTOLOKERESO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SimpleController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"VIEW_DATA\", \"$filter\", \"authenticationService\", \"paramHelper\", \"$state\", \"$scope\", \"$timeout\"];\r\n angular\r\n .module('app.search.athletes.simple')\r\n .controller('SimpleController', SimpleController);\r\n\r\n function SimpleController(log, dataservice, $q, $rootScope, gettextCatalog, VIEW_DATA, $filter, authenticationService, paramHelper, $state, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SearchAthletesSimple');\r\n\r\n // Create variables\r\n vm.athleteList = [];\r\n vm.sexList = [\r\n {\r\n text: gettextCatalog.getString('Man'),\r\n value: true\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: false\r\n }\r\n ];\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n vm.betterHandList = [\r\n {\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.betterFootList = [\r\n {\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.columns = [\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#simplecolumnTemplate1'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#simplecolumnTemplate2'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'Tagdijas',\r\n headerText: gettextCatalog.getString('SportServiceFeeAthlete'),\r\n textAlign: 'center',\r\n width: '200',\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: '200'},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: '100',\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {\r\n field: 'SzuletesiHelyOrszag',\r\n headerText: gettextCatalog.getString('BirthCountry'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SzuletesiHelyVaros',\r\n headerText: gettextCatalog.getString('BirthCity'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Allampolgarsag',\r\n headerText: gettextCatalog.getString('Citizenship'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'VersSportKezd',\r\n headerText: gettextCatalog.getString('CompetitiveSportStart'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'LakcimMegye', headerText: gettextCatalog.getString('County'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimIrSzam', headerText: gettextCatalog.getString('ZipCode'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimVaros', headerText: gettextCatalog.getString('City'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimUtca', headerText: gettextCatalog.getString('Street'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'LakcimHazszam',\r\n headerText: gettextCatalog.getString('StreetNumber'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {field: 'Elerhetoseg', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'},\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'IskolaIrSzam',\r\n headerText: gettextCatalog.getString('SchoolZipCode'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaVaros',\r\n headerText: gettextCatalog.getString('SchoolCity'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaUtca',\r\n headerText: gettextCatalog.getString('SchoolStreet'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaHazszam',\r\n headerText: gettextCatalog.getString('SchoolStreetNumber'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'IskolaIgazgatoNeve',\r\n headerText: gettextCatalog.getString('Director'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'TestneveloNeve',\r\n headerText: gettextCatalog.getString('GymTeacher'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'TestneveloElerhetosege',\r\n headerText: gettextCatalog.getString('GymTeacherContact'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'TestneveloEmail',\r\n headerText: gettextCatalog.getString('GymTeacherEmail'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'IskolaEvfolyam',\r\n headerText: gettextCatalog.getString('SchoolCourse'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaOsztaly',\r\n headerText: gettextCatalog.getString('SchoolClass'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'OsztalyFonokNeve',\r\n headerText: gettextCatalog.getString('ClassMaster'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'OfEmail',\r\n headerText: gettextCatalog.getString('ClassMasterEmail'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'OfTel',\r\n headerText: gettextCatalog.getString('ClassMasterTel'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'AnyjaNeve',\r\n headerText: gettextCatalog.getString('MothersName'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Szulo1Elerhetosege',\r\n headerText: gettextCatalog.getString('MotherContact'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyaEmail',\r\n headerText: gettextCatalog.getString('MotherEmail'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyaMunkahely',\r\n headerText: gettextCatalog.getString('MothersWorkplace'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyjaTestmagassaga',\r\n headerText: gettextCatalog.getString('MotherHeight'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SportoloiMultAnya',\r\n headerText: gettextCatalog.getString('MotherSportHistory'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'SzuloNeve', headerText: gettextCatalog.getString('FathersName'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'Szulo2Elerhetosege',\r\n headerText: gettextCatalog.getString('FatherContact'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApaEmail',\r\n headerText: gettextCatalog.getString('FatherEmail'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApaMunkahely',\r\n headerText: gettextCatalog.getString('FathersWorkplace'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApjaTestmagassaga',\r\n headerText: gettextCatalog.getString('FatherHeight'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SportoloiMultApa',\r\n headerText: gettextCatalog.getString('FatherSportHistory'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'Testmagassag', headerText: gettextCatalog.getString('Height'), textAlign: 'center', width: '100'},\r\n {field: 'Testsuly', headerText: gettextCatalog.getString('Weight'), textAlign: 'center', width: '100'},\r\n {\r\n field: 'UgyesebbKez',\r\n headerText: gettextCatalog.getString('BetterHand'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'UgyesebbLab',\r\n headerText: gettextCatalog.getString('BetterFoot'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SzemIgSzam',\r\n headerText: gettextCatalog.getString('IdentityNumber'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'TAJSzam',\r\n headerText: gettextCatalog.getString('SocialSecurityNumber'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'AdoSzam', headerText: gettextCatalog.getString('TaxNumber'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'UtlevelSzam',\r\n headerText: gettextCatalog.getString('PassportNumber'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'PapucsMerete',\r\n headerText: gettextCatalog.getString('SlipperSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'MelegitoMerete',\r\n headerText: gettextCatalog.getString('JoggingSuitSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'FurdokopenyMerete',\r\n headerText: gettextCatalog.getString('BathrobeSize'),\r\n textAlign: 'center',\r\n width: '160'\r\n },\r\n {field: 'KabatMerete', headerText: gettextCatalog.getString('CoatSize'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'PancelNadragMerete',\r\n headerText: gettextCatalog.getString('ArmorPantSize'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'PoloMerete',\r\n headerText: gettextCatalog.getString('TShirtSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SortMerete',\r\n headerText: gettextCatalog.getString('ShortDressSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'CipoMerete',\r\n headerText: gettextCatalog.getString('ShoeSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'UszoNadragMerete',\r\n headerText: gettextCatalog.getString('SwimmingPantSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n pageSettings: $rootScope.pageSettings,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.search = search;\r\n vm.reset = reset;\r\n vm.clearSection = clearSection;\r\n vm.clearCoach = clearCoach;\r\n vm.clearAgeGroup = clearAgeGroup;\r\n vm.clearCounty = clearCounty;\r\n vm.clearCourse = clearCourse;\r\n vm.clearClass = clearClass;\r\n vm.cleaSex = cleaSex;\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToUser = goToUser;\r\n\r\n vm.formData = {\r\n active: true,\r\n inactive: false,\r\n sportServiceFee: true,\r\n educationalFee: true\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('SPORTOLOKERESO'),\r\n paramHelper.getParams([], ['search.simple.formdata'])\r\n ];\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n if (results[1] && results[1]['search.simple.formdata']) {\r\n $timeout(function () {\r\n vm.formData = results[1]['search.simple.formdata'];\r\n $scope.$apply();\r\n }, 500);\r\n $timeout(function () {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n $timeout(function () {\r\n search();\r\n }, 500);\r\n }, 500);\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.formData.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.sectionId = args.value;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n if (!sectionId) {\r\n sectionId = 0;\r\n }\r\n return dataservice.ageGroupDropDownListForSearch(sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.ageGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.formData.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formData.ageGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect()\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.formData.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formData.coachId = args.value;\r\n }\r\n\r\n function search() {\r\n console.log('vm.formData SEARCH', vm.formData);\r\n paramHelper.setParams([{'search.simple.formdata': vm.formData}]);\r\n dataservice.searchAthlete(vm.formData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'VersSportKezd');\r\n vm.athleteList = data.itemsList;\r\n grid.dataSource = vm.athleteList;\r\n });\r\n }\r\n\r\n function reset() {\r\n vm.formData = {};\r\n }\r\n\r\n function cleaSex() {\r\n vm.formData.sex = undefined;\r\n $('#sex').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSection() {\r\n vm.formData.sectionId = undefined;\r\n $('#sectionId').ejDropDownList('clearText');\r\n getAgeGroups(0);\r\n getAgeGroups(0);\r\n }\r\n\r\n function clearAgeGroup() {\r\n vm.formData.ageGroupId = undefined;\r\n $('#ageGroupId').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCoach() {\r\n vm.formData.coachId = undefined;\r\n $('#coachId').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCounty() {\r\n vm.formData.county = undefined;\r\n $('#county').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCourse() {\r\n vm.formData.course = undefined;\r\n $('#course').ejDropDownList('clearText');\r\n }\r\n\r\n function clearClass() {\r\n vm.formData.class = undefined;\r\n $('#class').ejDropDownList('clearText');\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search.athletes.simple')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes.simple',\r\n config: {\r\n url: '/simple',\r\n templateUrl: 'app/search/athletes/simple/simple.html',\r\n controller: 'SimpleController',\r\n controllerAs: 'vm',\r\n title: 'SearchAthletesSimple',\r\n settings: {\r\n navId: 21170,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Sportoló kereső',\r\n orderTitle_en: 'Athlete Search',\r\n parentId: 170,\r\n content: 'SearchAthletesSimple',\r\n activatorPermission: ['\"SPORTOLOKERESO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search',\r\n config: {\r\n url: '/search',\r\n templateUrl: 'app/search/search.html',\r\n title: 'Search',\r\n settings: {\r\n navId: 170,\r\n level: 1,\r\n order: 7,\r\n parentId: 0,\r\n content: 'Search',\r\n faIcon: 'fa-search',\r\n activatorPermission: [\r\n '\"EDZOKERESO\"',\r\n '\"SPORTOLOKERESO\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SearchUsersController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"$filter\", \"authenticationService\", \"paramHelper\", \"$state\", \"$scope\"];\r\n angular\r\n .module('app.search.user.searchuser')\r\n .controller('SearchUsersController', SearchUsersController);\r\n\r\n function SearchUsersController(log, dataservice, $q, $rootScope, gettextCatalog, $filter, authenticationService, paramHelper, $state, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SearchUsers');\r\n\r\n // Create variables\r\n vm.userList = [];\r\n vm.yesno = [\r\n {text: gettextCatalog.getString(''), value: null},\r\n {text: gettextCatalog.getString('Yes'), value: true},\r\n {text: gettextCatalog.getString('No'), value: false}\r\n ];\r\n vm.genderList = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Male'), value: 'Male'},\r\n {text: gettextCatalog.getString('Female'), value: 'Female'}\r\n ];\r\n vm.columns = [\r\n {field: 'Id', headerText: gettextCatalog.getString('Id'), textAlign: 'center', width: '90', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('LoginName'), textAlign: 'center', width: '115', template: '#searchusergotouser'},\r\n {field: 'TeljesNev', headerText: gettextCatalog.getString('FullName'), textAlign: 'center', width: '150'},\r\n {field: 'SzulIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: '120', type: 'date', format: 'yMd'},\r\n {field: 'Lakcim', headerText: gettextCatalog.getString('Address'), textAlign: 'center', width: '150'},\r\n {field: 'FelhasznaloCsoport', headerText: gettextCatalog.getString('Usergroup'), textAlign: 'center', width: '115'},\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: '60', type: 'boolean', displayAsCheckBox: true}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.search = search;\r\n vm.reset = reset;\r\n vm.goToUser = goToUser;\r\n\r\n vm.formData = {};\r\n vm.usergroups = [];\r\n\r\n resetQueryDetails ();\r\n\r\n function resetQueryDetails () {\r\n vm.formData.nev = undefined;\r\n vm.formData.loginNev = undefined;\r\n vm.formData.idCsoport = undefined;\r\n vm.formData.szulHelyOrszag = undefined;\r\n vm.formData.szulHelyVaros = undefined;\r\n vm.formData.szulTol = undefined;\r\n vm.formData.szulIg = undefined;\r\n vm.formData.email = undefined;\r\n vm.formData.lakcim = undefined;\r\n vm.formData.elerhetoseg = undefined;\r\n vm.formData.neme = undefined;\r\n vm.formData.allamp = undefined;\r\n vm.formData.anyjaNeve = undefined;\r\n vm.formData.edzKep = undefined;\r\n vm.formData.foallMh = undefined;\r\n vm.formData.magTol = undefined;\r\n vm.formData.magIg = undefined;\r\n vm.formData.testTol = undefined;\r\n vm.formData.testIg = undefined;\r\n vm.formData.szemSzam = undefined;\r\n vm.formData.tajSzam = undefined;\r\n vm.formData.utlevel = undefined;\r\n vm.formData.aktiv = undefined;\r\n vm.formData.egyeniSport = false;\r\n vm.formData.csapatSport = false;\r\n }\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('EDZOKERESO'), paramHelper.getParams([], ['search.user.formdata'])];\r\n getUserGroups();\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n }\r\n if (results[1] && results[1]['search.user.formdata']) {\r\n vm.formData = results[1]['search.user.formdata'];\r\n search();\r\n }\r\n });\r\n }\r\n\r\n function getUserGroups() {\r\n return dataservice.userGroupList()\r\n .then(function (data) {\r\n vm.usergroups = data.itemsList;\r\n vm.usergroups.unshift({value: undefined, text: ''});\r\n });\r\n }\r\n\r\n function search() {\r\n paramHelper.setParams([{'search.user.formdata': vm.formData}]);\r\n vm.userList = [];\r\n dataservice.searchUser(vm.formData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzulIdo');\r\n vm.userList = data.itemsList;\r\n grid.dataSource = vm.userList;\r\n grid.refresh();\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n\r\n function reset() {\r\n resetQueryDetails();\r\n }\r\n\r\n vm.userGroupDatabound = userGroupDatabound;\r\n function userGroupDatabound () {\r\n if (vm.usergroups.length === 1) {\r\n angular.element('#usergroup').ejDropDownList('selectItemByValue', vm.usergroups[0].value);\r\n vm.formData.idCsoport = vm.usergroups[0].value;\r\n } else {\r\n angular.element('#usergroup').ejDropDownList('selectItemByValue', vm.formData.idCsoport);\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search.user.searchuser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.user.searchuser',\r\n config: {\r\n url: '/searchuser',\r\n templateUrl: 'app/search/user/searchuser/searchuser.html',\r\n controller: 'SearchUsersController',\r\n controllerAs: 'vm',\r\n title: 'SearchUsers',\r\n settings: {\r\n navId: 23170,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Felhasználó kereső',\r\n orderTitle_en: 'User Search',\r\n parentId: 170,\r\n content: 'SearchUsers',\r\n activatorPermission: ['\"EDZOKERESO\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.search.user')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.user',\r\n config: {\r\n url: '/user',\r\n templateUrl: 'app/search/user/user.html',\r\n title: 'SearchUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AgeGroupChangeController.$inject = [\"logger\", \"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$scope\", \"$state\"];\r\n angular\r\n .module('app.settings.ageGroupChange')\r\n .controller('AgeGroupChangeController', AgeGroupChangeController);\r\n\r\n function AgeGroupChangeController(logger, log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AgeGroupChange');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.actualSectionList = [];\r\n vm.actualCoachList = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.atletesList = [];\r\n vm.ageGroupList = [];\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 56},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, template: '#agegroupchangecolumnTemplate2'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', width: 150, template: '#agegroupchangecolumnTemplate1'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 125, format: 'yyyy-MM-dd'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('SchoolFee'), textAlign: 'center', width: 150},\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: 60, type: 'boolean', template: '#checkboxTemplateAktiv'},\r\n {field: 'jelenKorcsoportbanMikortolVan', headerText: gettextCatalog.getString('InAgeGroupFromDate'), textAlign: 'center', width: 175, format: 'yyyy-MM-dd'}\r\n ];\r\n\r\n // Other variables\r\n vm.dateValue = new Date();\r\n vm.date = vm.dateValue;\r\n vm.athleteData = {};\r\n vm.actualSectionId = undefined;\r\n vm.actualCoachId = undefined;\r\n vm.actualAthleteId = undefined;\r\n vm.NOACTUALATHLETE = false;\r\n vm.which = 1;\r\n vm.backPath = '';\r\n\r\n // Public functions\r\n vm.actualSectionDataBound = actualSectionDataBound;\r\n vm.actualSectionSelect = actualSectionSelect;\r\n vm.actualCoachDataBound = actualCoachDataBound;\r\n vm.actualCoachSelect = actualCoachSelect;\r\n vm.dateChange = dateChange;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.transferAthletes = transferAthletes;\r\n vm.openCoach = openCoach;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTEDZVALT'),\r\n authenticationService.getRight('MEGTKORVALT'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n paramHelper.getParams([], [\r\n 'ageGroupChange.athleteData',\r\n 'ageGroupChange.which'])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.NOACTUALATHLETE = true;\r\n\r\n if (results[3]['ageGroupChange.athleteData'] !== null && angular.isDefined(results[3]['ageGroupChange.athleteData'])) {\r\n vm.athleteData = results[3]['ageGroupChange.athleteData'];\r\n vm.actualAthleteId = vm.athleteData.SportolokID;\r\n vm.backPath = results[3]['ageGroupChange.backPath'];\r\n paramHelper.removeParam('ageGroupChange.athleteData'); // Clear athleteData\r\n } else {\r\n vm.actualAthleteId = 0;\r\n }\r\n if (angular.isDefined(results[3]['ageGroupChange.which'])) {\r\n vm.which = results[3]['ageGroupChange.which'];\r\n }\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else if (vm.actualAthleteId > 0) {\r\n vm.UJEDZVALT = results[2];\r\n if (vm.which == 1) {\r\n vm.actualSectionId = vm.athleteData.IdSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n } else {\r\n vm.actualSectionId = vm.athleteData.MasodlagosSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n }\r\n athletesSelect();\r\n getAgeGroups();\r\n vm.NOACTUALATHLETE = false;\r\n } else {\r\n vm.UJEDZVALT = results[2];\r\n getActualSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.actualSectionList = data.itemsList;\r\n if (vm.actualSectionId > 0) {\r\n vm.defaultSection = vm.actualSectionId; // Set default section\r\n angular.element('#actualSectionDropDown').ejDropDownList({enabled: false});\r\n grid.selectRow(0);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function actualSectionDataBound() {\r\n if (vm.actualSectionList.length === 1) {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionList[0].value);\r\n vm.actualSectionId = vm.actualSectionList[0].value;\r\n } else {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n vm.actualSectionId = vm.defaultSection;\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function actualSectionSelect(args) {\r\n vm.actualSectionId = args.value;\r\n vm.actualCoachId = 0;\r\n getActualCoaches();\r\n if (vm.NOACTUALATHLETE) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualCoaches() {\r\n return dataservice.coachDropDownList(vm.actualSectionId)\r\n .then(function (data) {\r\n vm.actualCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function actualCoachDataBound() {\r\n if (vm.actualCoachList.length === 1) {\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachList[0].value);\r\n vm.actualCoachId = vm.actualCoachList[0].value;\r\n } else if (vm.athleteData.JelenlegiEdzo > 0) {\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n }\r\n }\r\n\r\n function actualCoachSelect(args) {\r\n vm.actualCoachId = args.value;\r\n if (vm.NOACTUALATHLETE) {\r\n athletesSelect();\r\n }\r\n getAgeGroups();\r\n }\r\n\r\n function athletesSelect() {\r\n return dataservice.getAthletes(vm.actualSectionId, vm.actualCoachId, vm.actualAthleteId)\r\n .then(function (data) {\r\n vm.atletesList = $filter('dateStringFilter')(data.itemsList, 'jelenKorcsoportbanMikortolVan');\r\n vm.atletesList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n grid.dataSource = vm.atletesList;\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n vm.date = args.value;\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.actualCoachId, vm.actualSectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroupId = vm.ageGroupList[0].value;\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function transferAthletes() {\r\n if (vm.UJEDZVALT !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.actualAthleteId > 0) {\r\n grid.selectRow(0);\r\n }\r\n vm.selectedRows = grid.getSelectedRecords();\r\n if (vm.selectedRows.length !== 0) {\r\n if (vm.actualSectionId !== 0 && vm.actualCoachId !== 0 && vm.ageGroupId) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToChangeAgeGroup'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false\r\n }).then(function (confirm) {\r\n if (confirm.value) {\r\n dataservice.transferAthletes(vm.selectedRows, vm.actualCoachId, vm.actualSectionId, vm.ageGroupId, vm.date, true).then(function () {\r\n athletesSelect();\r\n log.successMsg(gettextCatalog.getString('TransferCompleted'));\r\n });\r\n swal.close();\r\n if (vm.actualAthleteId > 0) {\r\n $rootScope.back();\r\n }\r\n } else {\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectTransferDestination'), gettextCatalog.getString('NoSelected'));\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectLeastAthlete'), gettextCatalog.getString('NoSelectedAthlete'));\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.ageGroupChange')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.ageGroupChange',\r\n config: {\r\n url: '/ageGroupChange',\r\n templateUrl: 'app/settings/ageGroupChange/ageGroupChange.html',\r\n controller: 'AgeGroupChangeController',\r\n controllerAs: 'vm',\r\n title: 'AgeGroupChange',\r\n settings: {\r\n navId: 265,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Korosztályváltás',\r\n orderTitle_en: 'Change Age Groups',\r\n parentId: 5,\r\n content: 'AgeGroupChange',\r\n activatorPermission: ['\"MEGTEDZVALT\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AthleteTransferController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"authenticationService\", \"$filter\", \"$state\", \"$scope\"];\r\n angular\r\n .module('app.settings.athleteTransfer')\r\n .controller('AthleteTransferController', AthleteTransferController);\r\n\r\n function AthleteTransferController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $state, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteTransfer');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.actualSectionList = [];\r\n vm.actualCoachList = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.ageGroupList = [];\r\n vm.athleteData = undefined;\r\n vm.selectedRows = [];\r\n vm.columns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 56},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#athltransfercolumnTemplate2',\r\n width: 150\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n template: '#athltransfercolumnTemplate1',\r\n width: 150\r\n },\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n format: '{0:yyyy-MM-dd}',\r\n width: 125\r\n },\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 115},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('SchoolFee'), textAlign: 'center', width: 150},\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: 60, type: 'boolean', displayAsCheckBox: true},\r\n {\r\n field: 'jelenKorcsoportbanMikortolVan',\r\n headerText: gettextCatalog.getString('InAgeGroupFromDate'),\r\n textAlign: 'center',\r\n format: '{0:yyyy-MM-dd}',\r\n width: 175\r\n }\r\n ];\r\n\r\n var Grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(Grid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n vm.selectedRows = $rootScope.getSelectedItems(Grid);\r\n },\r\n dataBound: function () {\r\n if (Grid.dataSource.length === 1) {\r\n Grid.selectRow(0);\r\n }\r\n }\r\n });\r\n Grid.appendTo('#Grid');\r\n Grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, Grid);\r\n };\r\n\r\n //Other variables\r\n vm.dateValue = new Date();\r\n vm.date = vm.dateValue;\r\n\r\n vm.athleteData = undefined;\r\n vm.actualAthleteId = 0;\r\n vm.actualSectionId = undefined;\r\n vm.actualCoachId = 0;\r\n\r\n //Public functions\r\n vm.actualSectionDataBound = actualSectionDataBound;\r\n vm.actualSectionSelect = actualSectionSelect;\r\n vm.actualCoachDataBound = actualCoachDataBound;\r\n vm.actualCoachSelect = actualCoachSelect;\r\n vm.dateChange = dateChange;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.transferAthletes = transferAthletes;\r\n vm.openCoach = openCoach;\r\n vm.goToAthlete = goToAthlete;\r\n vm.previousState = ''; // athleteNew és athleteModify felületekről érkezhet\r\n\r\n //Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTEDZVALT'), authenticationService.getRight('MEGTKORVALT'), paramHelper.getParams([], ['athleteTransfer.athleteData', 'previousState']), authenticationService.getRight('UJEDZVALT')];\r\n $q.all(promises).then(function (results) {\r\n vm.UJEDZVALT = results[3];\r\n if (results[2] ['athleteTransfer.athleteData']) {\r\n vm.previousState = results[2]['previousState'];\r\n vm.athleteData = results[2] ['athleteTransfer.athleteData'];\r\n vm.actualAthleteId = vm.athleteData.SportolokID;\r\n paramHelper.removeParam('athleteTransfer.athleteData'); // Clear paramHelper's athleteData\r\n } else {\r\n vm.actualAthleteId = 0;\r\n }\r\n\r\n if (results[0] !== true && results[1] !== true && results[3] !== true) {\r\n log.permissionError(true);\r\n } else if (vm.actualAthleteId > 0) {\r\n if (vm.athleteData.ModifyCoach === 1) {\r\n vm.actualSectionId = vm.athleteData.IdSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n } else if (vm.athleteData.ModifyCoach === 2) {\r\n vm.actualSectionId = vm.athleteData.MasodlagosSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n }\r\n athletesSelect();\r\n getActualSections();\r\n getSections();\r\n getActualCoaches();\r\n } else {\r\n getActualSections();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualSections() {\r\n return dataservice.sectionDropDownList(vm.actualCoachId)\r\n .then(function (data) {\r\n vm.actualSectionList = data.itemsList;\r\n if (vm.actualSectionId > 0) {\r\n vm.defaultSection = vm.actualSectionId; // Set default section\r\n angular.element('#actualSectionDropDown').ejDropDownList({enabled: false});\r\n Grid.selectRow(0);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function actualSectionDataBound() {\r\n if (vm.actualSectionList.length === 1) {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionList[0].value);\r\n vm.actualSectionId = vm.actualSectionList[0].value;\r\n } else {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionId);\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function actualSectionSelect(args) {\r\n vm.actualSectionId = args.value;\r\n vm.actualCoachId = 0;\r\n getActualCoaches();\r\n if (vm.actualAthleteId == 0) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualCoaches() {\r\n return dataservice.coachDropDownList(vm.actualSectionId)\r\n .then(function (data) {\r\n vm.actualCoachList = data.itemsList;\r\n vm.actualCoachList.unshift({value: '-1', text: gettextCatalog.getString('All')});\r\n if (vm.actualAthleteId > 0) {\r\n angular.element('#actualCoachDropDown').ejDropDownList({enabled: false});\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function actualCoachDataBound() {\r\n if (vm.actualCoachList.length === 1) {\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachList[0].value);\r\n vm.actualCoachId = vm.actualCoachList[0].value;\r\n } else if (vm.athleteData !== undefined) {\r\n if (vm.athleteData.ModifyCoach == 1 && vm.athleteData.JelenlegiEdzo > 0) {\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n } else if (vm.athleteData.ModifyCoach == 2 && vm.athleteData.MasodlagosSzakosztalyEdzoId > 0) {\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n }\r\n }\r\n }\r\n\r\n function actualCoachSelect(args) {\r\n vm.actualCoachId = args.value;\r\n if (vm.actualAthleteId == 0) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n function athletesSelect() {\r\n return dataservice.getAthletesEV(vm.actualSectionId, (vm.actualCoachId == -1 ? 0 : vm.actualCoachId), vm.actualAthleteId, true)\r\n .then(function (data) {\r\n Grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'jelenKorcsoportbanMikortolVan');\r\n Grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n vm.date = args.value;\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachId = 0;\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n getcoaches();\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n vm.ageGroupId = 0;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.coachId, vm.sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroupId = vm.ageGroupList[0].value;\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function transferAthletes() {\r\n if (vm.UJEDZVALT !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.selectedRows.length !== 0) {\r\n if (vm.sectionId !== 0 && vm.coachId !== 0 && vm.ageGroupId) {\r\n var message = '';\r\n angular.forEach(vm.selectedRows, function (value) {\r\n if (value.EdzoId === vm.coachId) {\r\n message += value.Nev + '<br>';\r\n }\r\n });\r\n if (message !== '') {\r\n log.htmlError(gettextCatalog.getString('DestinationCoachSame') + '<br>' + message);\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToTransferAthletes'),\r\n text: gettextCatalog.getString('AreYouSureToTransferAthletesText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false\r\n }).then(function (args) {\r\n if (args.value) {\r\n dataservice.transferAthletes(vm.selectedRows, vm.coachId, vm.sectionId, vm.ageGroupId, vm.date).then(function () {\r\n athletesSelect();\r\n Grid.refresh();\r\n\r\n swal.close();\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.actualAthleteId}]);\r\n\r\n if (vm.previousState !== '') {\r\n $state.go(vm.previousState);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectTransferDestination'));\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectLeastAthlete'));\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.athleteTransfer')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.athleteTransfer',\r\n config: {\r\n url: '/athleteTransfer',\r\n templateUrl: 'app/settings/athleteTransfer/athleteTransfer.html',\r\n controller: 'AthleteTransferController',\r\n controllerAs: 'vm',\r\n title: 'AthleteTransfer',\r\n settings: {\r\n navId: 255,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Edzőváltás',\r\n orderTitle_en: 'Change Coach',\r\n parentId: 5,\r\n content: 'AthleteTransfer',\r\n activatorPermission: ['\"MEGTEDZVALT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n CreateSportSpecificTestController.$inject = [\"log\", \"$q\", \"paramHelper\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"logger\", \"$timeout\"];\r\n angular\r\n .module('app.settings.createSportSpecificTest')\r\n .controller('CreateSportSpecificTestController', CreateSportSpecificTestController);\r\n\r\n function CreateSportSpecificTestController(log, $q, paramHelper, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, logger, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CreateSportSpecificTest');\r\n vm.columnsFelmeroElemFej = [\r\n {field: 'Id_FEF', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {field: 'FelmeroNeve', headerText: gettextCatalog.getString('FelmeroNeve'), textAlign: 'center', width: 200},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 60,\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n }\r\n ];\r\n vm.FEEditEnable = true;\r\n vm.NewFelmeroTipus = NewFelmeroTipus;\r\n vm.SaveFelmeroTipusok = SaveFelmeroTipusok;\r\n vm.CopyFelmeroTipus = CopyFelmeroTipus;\r\n vm.DeleteFelmeroTipus = DeleteFelmeroTipus;\r\n vm.SelectFelmeroTipus = SelectFelmeroTipus;\r\n vm.ActivateFelmeroTipus = ActivateFelmeroTipus;\r\n vm.InactivateFelmeroTipus = InactivateFelmeroTipus;\r\n vm.SaveFelmeroElemek = SaveFelmeroElemek;\r\n vm.DiscardFelmeroElem = DiscardFelmeroElem;\r\n vm.SelectFelmeroElem = SelectFelmeroElem;\r\n vm.setDefaultColors = setDefaultColors;\r\n vm.clearColors = clearColors;\r\n vm.dataFelmeroElemFej = [];\r\n vm.dataFelmeroElem = [];\r\n vm.sectionList = [];\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionValue = undefined;\r\n vm.felmNev = '';\r\n vm.selectedFelmeroElemFej = undefined;\r\n vm.selectedFelmeroElem = undefined;\r\n vm.newFefItemIndex = -1;\r\n vm.newFeItemIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.newTestName = '';\r\n vm.editableHint = '';\r\n vm.saveOrDiscardeHint = '';\r\n vm.modified = false;\r\n vm.selectedSection = undefined;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.applyColor = applyColor;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.selectedFEFRowIndex = undefined;\r\n vm.selectedFelmeroIsActive = undefined;\r\n vm.UJSPFELM = false;\r\n vm.MEGTSPFELM = false;\r\n vm.typeHint = [];\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint'));\r\n vm.typeHint.push('');\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint0'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint1'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint2'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint3'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint4'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint5'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint6'));\r\n vm.selectedFelmeroElemIndex = -1;\r\n vm.felmElemNev = '';\r\n vm.defcolor1 = '#990000';\r\n vm.defcolor12 = '#ff0000';\r\n vm.defcolor23 = '#ff8000';\r\n vm.defcolor34 = '#ffff00';\r\n vm.defcolor45 = '#c4ff00';\r\n vm.defcolor5 = '#4dff00';\r\n vm.num0 = -999;\r\n vm.num6 = 999;\r\n vm.num1 = 0;\r\n vm.num2 = 25;\r\n vm.num3 = 50;\r\n vm.num4 = 75;\r\n vm.num5 = 100;\r\n vm.defnum1 = 0;\r\n vm.defnum2 = 25;\r\n vm.defnum3 = 50;\r\n vm.defnum4 = 75;\r\n vm.defnum5 = 100;\r\n vm.defnum1mmss = '01:00';\r\n vm.defnum2mmss = '02:00';\r\n vm.defnum3mmss = '03:00';\r\n vm.defnum4mmss = '04:00';\r\n vm.defnum5mmss = '05:00';\r\n vm.defnum1hhmmss = '01:00:00';\r\n vm.defnum2hhmmss = '02:00:00';\r\n vm.defnum3hhmmss = '03:00:00';\r\n vm.defnum4hhmmss = '04:00:00';\r\n vm.defnum5hhmmss = '05:00:00';\r\n vm.colordivenabled = false;\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n vm.saveBeforeColorWarning = false;\r\n var GridFelmeroTipus2 = null;\r\n var GridFelmeroElem2 = null;\r\n vm.PreloadFelmeroElemFej = -1;\r\n var types = [\r\n {text: gettextCatalog.getString('NumberInteger'), value: gettextCatalog.getString('NumberInteger')},\r\n {text: gettextCatalog.getString('NumberFraction'), value: gettextCatalog.getString('NumberFraction')},\r\n {text: gettextCatalog.getString('Text'), value: gettextCatalog.getString('Text')},\r\n {\r\n text: gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec')\r\n },\r\n {\r\n text: gettextCatalog.getString('TimeMinuteSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeMinuteSecHundredthOfASec')\r\n },\r\n {\r\n text: gettextCatalog.getString('TimeSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeSecHundredthOfASec')\r\n }\r\n ];\r\n\r\n activate();\r\n\r\n CreateGridFelmeroTipus2();\r\n\r\n CreateGridFelmeroElem2();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], ['sectionId', 'FelmeroElemFej']),\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n getSections()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJSPFELM = results[1];\r\n vm.MEGTSPFELM = results[2];\r\n resetColumnsFelmeroElem(true);\r\n if (!vm.MEGTSPFELM) {\r\n log.permissionError(true);\r\n }\r\n if (!vm.UJSPFELM) {\r\n $timeout(function () {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n }, 1000);\r\n }\r\n vm.sectionValue = results[0].sectionId;\r\n vm.selectedSection = results[0].sectionId;\r\n vm.FelmeroElemFej = results[0].FelmeroElemFej;\r\n vm.PreloadFelmeroElemFej = results[0].FelmeroElemFej;\r\n paramHelper.removeParam('sectionId');\r\n paramHelper.removeParam('FelmeroElemFej');\r\n if (vm.selectedSection > 0) {\r\n if (vm.FelmeroElemFej == 0) {\r\n NewFelmeroTipus();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function CreateGridFelmeroTipus2() {\r\n GridFelmeroTipus2 = new ej2.grids.Grid({\r\n dataSource: vm.dataFelmeroElemFej,\r\n columns: vm.columnsFelmeroElemFej,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n allowSelection: true,\r\n editSettings: {\r\n allowEditing: true, allowAdding: false, allowDeleting: false\r\n },\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: function (args) {\r\n console.log('Tipus Select', args);\r\n SelectFelmeroTipus(args);\r\n },\r\n dataBound: function () {\r\n if (vm.PreloadFelmeroElemFej > 0) {\r\n var idx = getFelmeroElemFejIndex(vm.PreloadFelmeroElemFej);\r\n GridFelmeroTipus2.selectRow(idx);\r\n }\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType == 'save') {\r\n SaveFelmeroTipusok();\r\n }\r\n }\r\n });\r\n GridFelmeroTipus2.appendTo('#GridFelmeroTipus2');\r\n }\r\n\r\n function CreateGridFelmeroElem2() {\r\n GridFelmeroElem2 = new ej2.grids.Grid({\r\n dataSource: vm.dataFelmeroElem,\r\n columns: vm.columnsFelmeroElem,\r\n toolbar: ['Add', 'Edit', 'Update', 'Cancel', 'Delete'],\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Inline', showConfirmDialog: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: function (args) {\r\n SelectFelmeroElem(args);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType == 'add') {\r\n vm.colordivenabled = false;\r\n $scope.$apply();\r\n }\r\n if (args.requestType == 'save' && (args.action == 'add' || args.action == 'save')) {\r\n if (!args.data.TipusStr) {\r\n log.errorMsg(gettextCatalog.getString('TypeIsIncorrect') + ' ' + gettextCatalog.getString('AtLine') + ': ' + args.data.Nev);\r\n args.cancel = true;\r\n }\r\n if (!args.data.Sorrend) {\r\n var max = getMaxSorrend();\r\n if (max) {\r\n max = parseInt(max);\r\n } else {\r\n max = 0;\r\n }\r\n args.data.Sorrend = max + 1;\r\n GridFelmeroElem2.refresh();\r\n }\r\n }\r\n }\r\n });\r\n GridFelmeroElem2.appendTo('#GridFelmeroElem2');\r\n }\r\n\r\n function resetColumnsFelmeroElem(editable) {\r\n vm.columnsFelmeroElem = [];\r\n if (editable) {\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Add', 'Edit', 'Update', 'Cancel', 'Delete'];\r\n } else {\r\n GridFelmeroElem2.toolbar = [];\r\n }\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'FelmeroElemFejId',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n visible: false\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n },\r\n {\r\n field: 'TipusStr',\r\n allowEditing: true,\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n width: 150,\r\n editType: 'dropdownedit',\r\n edit: {\r\n params: {\r\n fields: {value: 'value', text: 'text'},\r\n dataSource: types,\r\n query: new ej2.data.Query()\r\n }\r\n }\r\n },\r\n {\r\n field: 'ElvartEredmeny',\r\n headerText: gettextCatalog.getString('ExpectedResult'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Sorrend',\r\n headerText: gettextCatalog.getString('Order'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 100\r\n }\r\n ];\r\n } else {\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n } else {\r\n GridFelmeroElem2.toolbar = [];\r\n }\r\n GridFelmeroElem2.refresh();\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'FelmeroElemFejId',\r\n headerText: gettextCatalog.getString('FelmeroElemFejId'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n visible: false\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n },\r\n {\r\n field: 'TipusStr',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'ElvartEredmeny',\r\n headerText: gettextCatalog.getString('ExpectedResult'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Sorrend',\r\n headerText: gettextCatalog.getString('Order'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }\r\n ];\r\n }\r\n GridFelmeroElem2.columns = vm.columnsFelmeroElem;\r\n }\r\n\r\n function NewFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('SportSpecificTestTypeName'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.value.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('SportSpecificTestTypeNameMustBeAtLeast2CharactersLong'));\r\n } else {\r\n vm.dataFelmeroElemFej.push({\r\n FelmeroNeve: inputValue.value,\r\n Aktiv: true,\r\n SzakosztalyId: vm.sectionValue,\r\n Id_FEF: vm.newFefItemIndex--\r\n });\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function DeleteFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected test type?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this test type'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteFelmeroElemFej(vm.selectedFelmeroElemFej).then(function () {\r\n vm.selectedFelmeroElemFej = undefined;\r\n LoadFelmeroTipusok(vm.sectionValue);\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function CopyFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" ><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('Section') +\r\n '</label><input class=\"col-lg-6 col-lg-offset-6\" id=\"sectionDropDownSwal\" ej-dropdownlist></div>' +\r\n '<div style=\"margin-top: 10px;\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('FelmeroNeve') +\r\n '</label><input id=\"copyfelmeroneve\" name=\"copyfelmeroneve\"></div>';\r\n swal({\r\n title: gettextCatalog.getString('CreateCopyOfSportSpecific'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var copyName = document.getElementById('copyfelmeroneve').value;\r\n if (copyName.length > 0 && vm.athleteDataSwalSzakosztaly > 0) {\r\n if (copyName.length <= 1 || copyName.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('SportSpecificTestTypeNameMustBeAtLeast2CharactersLong'));\r\n return;\r\n }\r\n dataservice.FelmeroTipusMasolas(vm.selectedFelmeroElemFej, vm.athleteDataSwalSzakosztaly, copyName).then(function () {\r\n vm.sectionValue = vm.athleteDataSwalSzakosztaly;\r\n });\r\n } else {\r\n log.errorMsg('FillTheRequiredFieldsSectionAndTestName');\r\n }\r\n }\r\n }).then(function () {\r\n });\r\n angular.element('#sectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.sectionList,\r\n select: selectSectionDropDownSwal,\r\n value: vm.athleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n }\r\n\r\n function SaveFelmeroTipusok() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n dataservice.saveFelmeroElemFej(vm.dataFelmeroElemFej).then(function () {\r\n LoadFelmeroTipusok(vm.sectionValue);\r\n vm.selectedFelmeroElemFej = undefined;\r\n });\r\n }\r\n }\r\n\r\n function LoadFelmeroTipusok(section) {\r\n dataservice.getFelmeroElemFejList(section).then(function (arg) {\r\n vm.dataFelmeroElemFej = arg.itemsList;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n if (vm.FelmeroElemFej > 0) {\r\n vm.FelmeroElemFej = -1;\r\n }\r\n });\r\n }\r\n\r\n function SelectFelmeroTipus(args) {\r\n console.log('SelectFelmeroTipus', args);\r\n log.infoMsg(gettextCatalog.getString('DetailsAreShownInTheGridBelow'));\r\n vm.selectedFelmeroIsActive = args.data.Aktiv;\r\n vm.selectedFEFRowIndex = args.rowIndex;\r\n vm.FEEditEnable = !args.data.Used;\r\n if (args.data.Used) {\r\n resetColumnsFelmeroElem(false);\r\n vm.editableHint = gettextCatalog.getString('ThisTestTypeIsReadOnlyBecouseOneOrMoreTestsAreBasedOnThisTestType');\r\n GridFelmeroElem2.toolbar = [];\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n }\r\n } else {\r\n resetColumnsFelmeroElem(true);\r\n vm.editableHint = '';\r\n GridFelmeroElem2.toolbar = ['Add', 'Edit', 'Update', 'Cancel', 'Delete'];\r\n }\r\n vm.felmNev = args.data.FelmeroNeve;\r\n vm.selectedFelmeroElemFej = args.data.Id_FEF;\r\n vm.felmeroTipusKijelolve = true;\r\n vm.copyButtonEnabled = true;\r\n vm.deleteButtonEnabled = vm.FEEditEnable;\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n }\r\n\r\n function ActivateFelmeroTipus() {\r\n vm.dataFelmeroElemFej[vm.selectedFEFRowIndex].Aktiv = true;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n vm.selectedFEFRowIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.felmeroTipusKijelolve = false;\r\n }\r\n\r\n function InactivateFelmeroTipus() {\r\n vm.dataFelmeroElemFej[vm.selectedFEFRowIndex].Aktiv = false;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n vm.selectedFEFRowIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.felmeroTipusKijelolve = false;\r\n }\r\n\r\n function DiscardFelmeroElem() {\r\n vm.colordivenabled = false;\r\n vm.copyButtonEnabled = true;\r\n enableFelmeroTipusGrid(true);\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n }\r\n\r\n function SelectFelmeroElem(args) {\r\n console.log('SelectFelmeroElem', args);\r\n enableFelmeroTipusGrid(false);\r\n vm.felmeroTipusKijelolve = false;\r\n vm.saveBeforeColorWarning = false;\r\n vm.felmElemNev = args.data.Nev;\r\n if (!(args.data.Id_FE) || args.data.Id_FE < 0) {\r\n vm.colordivenabled = false;\r\n $scope.$apply();\r\n vm.saveBeforeColorWarning = true;\r\n return;\r\n }\r\n vm.selectedFelmeroElem = args.data.Id_FE;\r\n vm.selectedFelmeroElemIndex = getFelmeroElemIndex(args.data.Id_FE);\r\n\r\n switch (args.data.Tipus) {\r\n case 1:\r\n vm.int = true;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 2:\r\n vm.int = false;\r\n vm.double = true;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 6:\r\n vm.int = false;\r\n vm.double = true;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 5: // MMSS\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = true;\r\n vm.hhmmss = false;\r\n break;\r\n case 4: // HHMMSS\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = true;\r\n break;\r\n }\r\n if (args.data.Tipus == 1 || args.data.Tipus == 2 || args.data.Tipus == 6) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5;\r\n }\r\n } else if (args.data.Tipus == 4) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5hhmmss;\r\n }\r\n } else if (args.data.Tipus == 5) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5mmss;\r\n }\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1) {\r\n vm.color1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1;\r\n } else {\r\n vm.color1 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12) {\r\n vm.color12 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12;\r\n } else {\r\n vm.color12 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23) {\r\n vm.color23 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23;\r\n } else {\r\n vm.color23 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34) {\r\n vm.color34 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34;\r\n } else {\r\n vm.color34 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45) {\r\n vm.color45 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45;\r\n } else {\r\n vm.color45 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5) {\r\n vm.color5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5;\r\n } else {\r\n vm.color5 = '#ffffff';\r\n }\r\n vm.colordivenabled = (args.data.Tipus != 3);\r\n $scope.$apply();\r\n }\r\n\r\n function SaveFelmeroElemek() {\r\n GridFelmeroElem2.endEdit();\r\n GridFelmeroElem2.closeEdit();\r\n GridFelmeroElem2.editModule.endEdit();\r\n GridFelmeroElem2.editModule.batchSave();\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.saveBeforeColorWarning = false;\r\n vm.colordivenabled = false;\r\n vm.dataFelmeroElem = GridFelmeroElem2.dataSource;\r\n if (vm.dataFelmeroElem.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('TestMustNotBeEmpty'));\r\n return;\r\n }\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n vm.dataFelmeroElem[i].FelmeroElemFejId = vm.selectedFelmeroElemFej;\r\n switch (vm.dataFelmeroElem[i].TipusStr) {\r\n case gettextCatalog.getString('NumberInteger'):\r\n vm.dataFelmeroElem[i].Tipus = 1;\r\n break;\r\n case gettextCatalog.getString('NumberFraction'):\r\n vm.dataFelmeroElem[i].Tipus = 2;\r\n break;\r\n case gettextCatalog.getString('Text'):\r\n vm.dataFelmeroElem[i].Tipus = 3;\r\n break;\r\n case gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 4;\r\n break;\r\n case gettextCatalog.getString('TimeMinuteSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 5;\r\n break;\r\n case gettextCatalog.getString('TimeSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 6;\r\n break;\r\n default:\r\n log.errorMsg(gettextCatalog.getString('TypeIsIncorrect') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (vm.dataFelmeroElem[i].Sorrend == undefined || vm.dataFelmeroElem[i].Sorrend == null) {\r\n log.errorMsg(gettextCatalog.getString('OrderMustNotBeEmpty') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (!(vm.dataFelmeroElem[i].Sorrend >= 0)) {\r\n log.errorMsg(gettextCatalog.getString('OrderMustBeInteger') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (!vm.dataFelmeroElem[i].Nev || (vm.dataFelmeroElem[i].Nev && (vm.dataFelmeroElem[i].Nev.length < 2 || vm.dataFelmeroElem[i].Nev.length > 50))) {\r\n log.errorMsg(gettextCatalog.getString('TestNameMustBeBetween2and50Characters') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (vm.dataFelmeroElem[i].ElvartEredmeny && vm.dataFelmeroElem[i].ElvartEredmeny.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('ExpectedResultMustBeAtMost50Characters') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n for (var j = 0; j < vm.dataFelmeroElem.length; j++) {\r\n if (i != j && vm.dataFelmeroElem[i].Sorrend == vm.dataFelmeroElem[j].Sorrend) {\r\n log.errorMsg(gettextCatalog.getString('DuplicatesInOrder') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev + ', ' + vm.dataFelmeroElem[j].Nev);\r\n return;\r\n }\r\n if (i != j && vm.dataFelmeroElem[i].Nev == vm.dataFelmeroElem[j].Nev) {\r\n log.errorMsg(gettextCatalog.getString('DuplicatesNames') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n }\r\n }\r\n console.log('vm.dataFelmeroElem', vm.dataFelmeroElem);\r\n dataservice.saveFelmeroElem(vm.dataFelmeroElem).then(function () {\r\n vm.felmeroTipusKijelolve = false;\r\n enableFelmeroTipusGrid(true);\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n function LoadFelmeroElemek(FEF_ID) {\r\n if (!FEF_ID) {\r\n return;\r\n }\r\n dataservice.getFelmeroElemList(FEF_ID).then(function (arg) {\r\n vm.dataFelmeroElem = arg.itemsList;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n switch (vm.dataFelmeroElem[i].Tipus) {\r\n case 1:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberInteger');\r\n break;\r\n case 2:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberFraction');\r\n break;\r\n case 3:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('Text');\r\n break;\r\n case 4:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec');\r\n break;\r\n case 5:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeMinuteSecHundredthOfASec');\r\n break;\r\n case 6:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeSecHundredthOfASec');\r\n break;\r\n default:\r\n vm.dataFelmeroElem[i].TipusStr = 'x';\r\n }\r\n }\r\n GridFelmeroElem2.dataSource = vm.dataFelmeroElem;\r\n if (!vm.UJSPFELM) {\r\n GridFelmeroElem2.editSettings = {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n };\r\n }\r\n $timeout(function () {\r\n GridFelmeroElem2.refresh();\r\n }, 100);\r\n });\r\n }\r\n\r\n function getMaxSorrend() {\r\n var maxSorrend = -1;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].Sorrend > maxSorrend) {\r\n maxSorrend = vm.dataFelmeroElem[i].Sorrend;\r\n }\r\n }\r\n return maxSorrend;\r\n }\r\n\r\n function enableFelmeroTipusGrid(arg) {\r\n angular.element('#section').ejDropDownList({\r\n enabled: arg\r\n });\r\n var activateButton = angular.element('#activateFelmeroElemFej').data('ejButton');\r\n var inactivateButton = angular.element('#inactivateFelmeroElemFej').data('ejButton');\r\n GridFelmeroTipus2.editSettings.allowEditing = arg;\r\n GridFelmeroTipus2.allowSelection = arg;\r\n\r\n $timeout(function () {\r\n if (arg) {\r\n GridFelmeroTipus2.selectRow(vm.selectedFEFRowIndex);\r\n\r\n if (activateButton) {\r\n activateButton.enable();\r\n }\r\n if (inactivateButton) {\r\n inactivateButton.enable();\r\n }\r\n } else {\r\n //GridFelmeroTipus2.selectionSettings = {type: 'none', mode: 'none'};\r\n if (activateButton && !vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve) {\r\n activateButton.disable();\r\n }\r\n if (inactivateButton && vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve) {\r\n inactivateButton.disable();\r\n }\r\n }\r\n vm.copyButtonEnabled = arg && vm.felmeroTipusKijelolve;\r\n vm.deleteButtonEnabled = arg && vm.FEEditEnable;\r\n angular.element('#saveFelmeroElem').ejButton({enabled: !arg});\r\n angular.element('#discardFelmeroElem').ejButton({enabled: !arg});\r\n angular.element('#newFelmeroElemFej').ejButton({enabled: arg});\r\n //vm.colordivenabled = !arg;\r\n }, 100);\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(arg) {\r\n vm.felmeroTipusKijelolve = false;\r\n vm.selectedFelmeroElemFej = undefined;\r\n LoadFelmeroTipusok(arg.value);\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionSwalDatabound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalSzakosztaly);\r\n }\r\n }\r\n\r\n function selectSectionDropDownSwal(arg) {\r\n vm.athleteDataSwalSzakosztaly = arg.value;\r\n vm.coachListSwal = [];\r\n angular.element('#secondSectionDropDownSwalDiv').addClass('ng-hide');\r\n }\r\n\r\n function applyColor() {\r\n $timeout(function () {\r\n if (vm.selectedFelmeroElemIndex >= 0) {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1 = vm.num1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2 = vm.num2;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3 = vm.num3;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4 = vm.num4;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5 = vm.num5;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = vm.color1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = vm.color12;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = vm.color23;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = vm.color34;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = vm.color45;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = vm.color5;\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('PleaseSelectFelmeroElem'),\r\n type: 'info',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }, 100);\r\n }\r\n\r\n function setDefaultColors() {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = vm.defcolor1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = vm.defcolor12;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = vm.defcolor23;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = vm.defcolor34;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = vm.defcolor45;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = vm.defcolor5;\r\n vm.color1 = vm.defcolor1;\r\n vm.color12 = vm.defcolor12;\r\n vm.color23 = vm.defcolor23;\r\n vm.color34 = vm.defcolor34;\r\n vm.color45 = vm.defcolor45;\r\n vm.color5 = vm.defcolor5;\r\n $scope.$apply();\r\n }\r\n\r\n function clearColors() {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = '#ffffff';\r\n vm.color1 = '#ffffff';\r\n vm.color12 = '#ffffff';\r\n vm.color23 = '#ffffff';\r\n vm.color34 = '#ffffff';\r\n vm.color45 = '#ffffff';\r\n vm.color5 = '#ffffff';\r\n $scope.$apply();\r\n }\r\n\r\n function getFelmeroElemIndex(felmeroElemId) {\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].Id_FE == felmeroElemId) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function getFelmeroElemFejIndex(felmeroElemFejId) {\r\n for (var i = 0; i < vm.dataFelmeroElemFej.length; i++) {\r\n if (vm.dataFelmeroElemFej[i].Id_FEF == felmeroElemFejId) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.createSportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.createSportSpecificTest',\r\n config: {\r\n url: '/createSportSpecificTest',\r\n templateUrl: 'app/settings/createSportSpecificTest/createSportSpecificTest.html',\r\n controller: 'CreateSportSpecificTestController',\r\n controllerAs: 'vm',\r\n title: 'CreateSportSpecificTest',\r\n settings: {\r\n navId: 275,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Sportágspecifikus felmérőtípusok',\r\n orderTitle_en: 'Sport Specific Test',\r\n parentId: 5,\r\n content: 'CreateSportSpecificTest',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n EditHealthTypeController.$inject = [\"$q\", \"paramHelper\", \"gettextCatalog\", \"$state\", \"dataservice\", \"logger\", \"authenticationService\", \"$rootScope\", \"$scope\", \"log\", \"$timeout\"];\r\n angular\r\n .module('app.settings.editHealthType')\r\n .controller('EditHealthTypeController', EditHealthTypeController);\r\n\r\n function EditHealthTypeController($q, paramHelper, gettextCatalog, $state, dataservice, logger, authenticationService, $rootScope, $scope, log, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('EditHealthType');\r\n\r\n vm.mainTypeColumns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 60},\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('HealthEventType')}\r\n }\r\n ];\r\n\r\n var mainTypeGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: (window.innerHeight - 550),\r\n pageSettings: $rootScope.pageSettings.pageSize,\r\n columns: vm.mainTypeColumns,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link']);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(mainTypeGrid, $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n if (!args.data) {\r\n return;\r\n }\r\n mainTypeGrid.clearSelection();\r\n vm.selectedMainTypeRow = args.data;\r\n vm.editDeleteMainTypeEnabled = vm.EGESZSMOD;\r\n vm.addNewSubType = vm.EGESZSMOD;\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(args.data.Id);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(mainTypeGrid);\r\n if (rowSelect.length === 0) {\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n subTypeGrid.dataSource = [];\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, mainTypeGrid);\r\n }\r\n });\r\n mainTypeGrid.appendTo('#MainTypeGrid');\r\n mainTypeGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, mainTypeGrid);\r\n };\r\n\r\n vm.subTypeColumns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 100},\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'AltipusNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('HealthEventType')}\r\n }\r\n ];\r\n\r\n var subTypeGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: (window.innerHeight - 550),\r\n pageSettings: $rootScope.pageSettings.pageSize,\r\n columns: vm.subTypeColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(subTypeGrid, $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n subTypeGrid.clearSelection();\r\n vm.selectedSubTypeRow = args.data;\r\n vm.editDeleteSubTypeEnabled = vm.EGESZSMOD;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(subTypeGrid);\r\n if (rowSelect.length === 0) {\r\n vm.editDeleteSubTypeEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, subTypeGrid);\r\n }\r\n });\r\n subTypeGrid.appendTo('#SubTypeGrid');\r\n subTypeGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, subTypeGrid);\r\n };\r\n\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.editDeleteSubTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n vm.AddSubType = AddSubType;\r\n vm.AddMainType = AddMainType;\r\n vm.DeleteMainType = DeleteMainType;\r\n vm.DeleteSubType = DeleteSubType;\r\n vm.EditMainType = EditMainType;\r\n vm.EditSubType = EditSubType;\r\n vm.SearchSubTypeBySelectedRow = SearchSubTypeBySelectedRow;\r\n\r\n vm.EGESZSMOD = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('EGESZSMEGT'), authenticationService.getRight('EGESZSMOD')]).then(function (data) {\r\n $timeout(function () {\r\n if (!data[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.EGESZSMOD = data[1];\r\n }, 10);\r\n if (data[0] || data[1] || data[2]) {\r\n getMainType();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function getMainType() {\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n dataservice.healthMainTypesList().then(function (data) {\r\n mainTypeGrid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function SearchSubTypeBySelectedRow(arg) {\r\n dataservice.healthSubTypesList().then(function (data) {\r\n var subTypes = data.itemsList;\r\n subTypeGrid.dataSource = [];\r\n for (var i = 0; i < subTypes.length; i++) {\r\n if (subTypes[i].FotipusId === arg) {\r\n subTypeGrid.dataSource.push(subTypes[i]);\r\n }\r\n }\r\n });\r\n }\r\n\r\n function AddMainType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateNewMainTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1) {\r\n log.errorMsg(gettextCatalog.getString('AddMainTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthMainTypeManager({Id: -1, Nev: inputValue.value}).then(function (response) {\r\n if (response.statusText = 'OK') {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n getMainType();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditMainType() {\r\n swal({\r\n title: gettextCatalog.getString('EditNewMainTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.selectedMainTypeRow.Nev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddMainTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthMainTypeManager({\r\n Id: vm.selectedMainTypeRow.Id,\r\n Nev: inputValue.value\r\n }).then(function (response) {\r\n if (response.statusText = 'OK') {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n }\r\n getMainType();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteMainType() {\r\n var warningText = '';\r\n if (subTypeGrid.dataSource.length > 0) {\r\n warningText = gettextCatalog.getString('This will delete all subType too.');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected mainType?'),\r\n type: 'warning',\r\n html: '<b style=\"color: red;\">' + warningText + '</b>',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this mainType'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteHealthMainType({mainTypeId: vm.selectedMainTypeRow.Id}).then(function () {\r\n vm.addNewSubType = false;\r\n vm.editDeleteSubTypeEnabled = false;\r\n getMainType()();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function AddSubType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateNeSubTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddSubTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthSubTypeManager({\r\n Id: -1,\r\n AltipusNev: inputValue.value,\r\n FotipusId: vm.selectedMainTypeRow.Id\r\n }).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditSubType() {\r\n swal({\r\n title: gettextCatalog.getString('EditSubTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.selectedSubTypeRow.AltipusNev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddSubTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthSubTypeManager({\r\n Id: vm.selectedSubTypeRow.Id,\r\n FotipusId: vm.selectedMainTypeRow.Id,\r\n AltipusNev: inputValue.value\r\n }).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteSubType() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected subType?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this subType'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteHealthSubType({subTypeId: vm.selectedSubTypeRow.Id}).then(function () {\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.editHealthType')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.editHealthType',\r\n config: {\r\n url: '/editHealthType',\r\n templateUrl: 'app/settings/editHealthType/editHealthType.html',\r\n controller: 'EditHealthTypeController',\r\n controllerAs: 'vm',\r\n title: 'EditHealthType',\r\n settings: {\r\n navId: 295,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Egészségügyi bejegyzés típusok kezelése',\r\n orderTitle_en: 'Health Entry Type Management',\r\n parentId: 5,\r\n content: 'EditHealthType',\r\n activatorPermission: ['\"EGESZSMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n EditSectionController.$inject = [\"log\", \"$q\", \"paramHelper\", \"dataservice\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$state\", \"$scope\", \"$timeout\"];\r\n angular\r\n .module('app.settings.editSection')\r\n .controller('EditSectionController', EditSectionController);\r\n\r\n function EditSectionController(log, $q, paramHelper, dataservice, $rootScope, gettextCatalog, authenticationService, $state, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = '';\r\n vm.sectionLeaders = [];\r\n vm.sectionLeaders2 = [];\r\n vm.editSectionId = 0;\r\n vm.leader1DataBound = leader1DataBound;\r\n vm.leader2DataBound = leader2DataBound;\r\n vm.save = save;\r\n\r\n vm.section = {\r\n Aktiv: true,\r\n Csapat: false,\r\n Egyeni: false,\r\n Editable: true,\r\n SzakosztalyID: -1,\r\n SzakosztalyNeve: '',\r\n SzakosztalyVezeto1: '',\r\n SzakosztalyVezeto2: '',\r\n SzakosztalyVezetoId1: null,\r\n SzakosztalyVezetoId2: null,\r\n Szin: '#FFFFFF',\r\n SzovegSzin: '#000000',\r\n RuhaPapucs: false,\r\n RuhaCipo: false,\r\n RuhaMelegito: false,\r\n RuhaFurdokopeny: false,\r\n RuhaKabat: false,\r\n RuhaPancelnadrag: false,\r\n RuhaPolo: false,\r\n RuhaSort: false,\r\n RuhaUszonadrag: false\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], ['editSection.SectionId']),\r\n authenticationService.getRight('SZAKOSZTALY'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n getSectionLeaders()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true || (results[2] !== true && results[3] !== true)) {\r\n console.log('permissionError');\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.editSectionLeader = results[2] || results[3];\r\n vm.editSectionId = results[0]['editSection.SectionId'];\r\n if (vm.editSectionId > 0) {\r\n $rootScope.title = gettextCatalog.getString('EditSection');\r\n getSectionData(vm.editSectionId);\r\n } else {\r\n $rootScope.title = gettextCatalog.getString('AddSection');\r\n }\r\n });\r\n }\r\n\r\n function leader1DataBound() {\r\n if (vm.section.SzakosztalyVezetoId1 > 0) {\r\n angular.element('#leader1DropDown').ejDropDownList('selectItemByValue', vm.section.SzakosztalyVezetoId1);\r\n } else {\r\n angular.element('#leader1DropDown').ejDropDownList('selectItemByValue', vm.sectionLeaders[0].value);\r\n }\r\n }\r\n\r\n function leader2DataBound() {\r\n if (vm.section.SzakosztalyVezetoId2 > 0) {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', vm.section.SzakosztalyVezetoId2);\r\n } else {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', vm.sectionLeaders2[0].value);\r\n }\r\n }\r\n\r\n function getSectionLeaders() {\r\n dataservice.getSectionLeaders().then(function (response) {\r\n vm.sectionLeaders = response.itemsList;\r\n vm.sectionLeaders2 = [];\r\n vm.sectionLeaders2.push({value: -1, text: gettextCatalog.getString('None')});\r\n vm.sectionLeaders.forEach(function (section) {\r\n vm.sectionLeaders2.push(section);\r\n });\r\n });\r\n }\r\n\r\n function getSectionData(id) {\r\n dataservice.getSectionData(id).then(function (response) {\r\n vm.section = response.itemsList[0];\r\n $timeout(function () {\r\n if (!(vm.section.SzakosztalyVezetoId2 > 0)) {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', -1);\r\n }\r\n }, 333);\r\n });\r\n }\r\n\r\n function save() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!(vm.section.Egyeni || vm.section.Csapat)) {\r\n log.htmlError(gettextCatalog.getString('PleaseSelectIndividualOrTeamSport'));\r\n return;\r\n }\r\n if (!vm.section.SzakosztalyNeve || vm.section.SzakosztalyNeve.trim().length < 4) {\r\n log.errorMsg(gettextCatalog.getString('MinimumLength4Character'), gettextCatalog.getString('PleaseTypeSectionName'));\r\n return;\r\n }\r\n dataservice.editSection(vm.section).then(function (result) {\r\n if (result.data.Error && result.data.Error.length > 0) {\r\n if (result.data.Error != null) {\r\n log.htmlError(result.data.Error.toString());\r\n return;\r\n }\r\n }\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n $state.go('athletes.sections');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.editSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.editSection',\r\n config: {\r\n url: '/editSection',\r\n templateUrl: 'app/settings/editSection/editSection.html',\r\n controller: 'EditSectionController',\r\n controllerAs: 'vm',\r\n title: 'EditSection'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n AddSchoolController.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$scope\"];\r\n angular\r\n .module('app.settings.schoolManagement.addSchool')\r\n .controller('AddSchoolController', AddSchoolController);\r\n\r\n function AddSchoolController(log, $state, dataservice, authenticationService, gettextCatalog, $rootScope, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n vm.newSchool = {};\r\n vm.saveSchool = saveSchool;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddSchool');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function saveSchool() {\r\n vm.newSchool.Id = -1;\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.addSchool(vm.newSchool).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolSaved'));\r\n $state.go('settings.schoolManagement.schoolList');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.schoolManagement.addSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.addSchool',\r\n config: {\r\n url: '/addSchool',\r\n templateUrl: 'app/settings/schoolManagement/addSchool/addSchool.html',\r\n controller: 'AddSchoolController',\r\n controllerAs: 'vm',\r\n title: 'AddSchool',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n editSchoolController.$inject = [\"log\", \"$state\", \"dataservice\", \"authenticationService\", \"$q\", \"gettextCatalog\", \"$rootScope\", \"paramHelper\", \"$scope\"];\r\n angular\r\n .module('app.settings.schoolManagement.editSchool')\r\n .controller('editSchoolController', editSchoolController);\r\n\r\n function editSchoolController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n vm.ModifySchool = ModifySchool;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('editSchool');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n $q.all([paramHelper.getParams([], ['schoolManagement.editSchool'])]).then(function (results) {\r\n vm.params = results[0]['schoolManagement.editSchool'];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function ModifySchool() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.editSchool(vm.params).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolModified'));\r\n $state.go('settings.schoolManagement.schoolList');\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.schoolManagement.editSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.editSchool',\r\n config: {\r\n url: '/editSchool',\r\n templateUrl: 'app/settings/schoolManagement/editSchool/editSchool.html',\r\n controller: 'editSchoolController',\r\n controllerAs: 'vm',\r\n title: 'editSchool',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SchoolListController.$inject = [\"dataservice\", \"logger\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$q\", \"$state\", \"paramHelper\", \"$scope\", \"$timeout\", \"log\"];\r\n angular\r\n .module('app.settings.schoolManagement.schoolList')\r\n .controller('SchoolListController', SchoolListController);\r\n\r\n function SchoolListController(dataservice, logger, authenticationService, gettextCatalog, $rootScope, $q, $state, paramHelper, $scope, $timeout, log) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('SchoolManagement');\r\n\r\n vm.selectedSchoolObject = '';\r\n vm.data = [];\r\n vm.editedRow = {};\r\n vm.editSchoolButtonEnabled = false;\r\n\r\n // Grid's details\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'IskolaNeve',\r\n headerText: gettextCatalog.getString('SchoolsName'),\r\n textAlign: 'center',\r\n width: 200,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('SchoolsNameIsRequired')}\r\n },\r\n {field: 'IskolaIrSzam', headerText: 'Ir.szám', textAlign: 'center', width: 100},\r\n {\r\n field: 'IskolaVaros',\r\n headerText: gettextCatalog.getString('City'),\r\n textAlign: 'center',\r\n width: 125,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('SchoolsCityIsRequired')}\r\n },\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('Street'), textAlign: 'center', width: 115},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('StreetNumber'), textAlign: 'center', width: 115},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('Director'), textAlign: 'center', width: 150}];\r\n\r\n // Public functions\r\n vm.selectedRow = selectedRow;\r\n vm.EndAdd = EndAdd;\r\n vm.EndEdit = EndEdit;\r\n vm.BeginEdit = BeginEdit;\r\n vm.EndDelete = EndDelete;\r\n vm.goToAddSchool = goToAddSchool;\r\n vm.goToEditSchool = goToEditSchool;\r\n vm.DeleteSchool = DeleteSchool;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJISKOLA')])\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAddSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n $state.go('settings.schoolManagement.addSchool');\r\n }\r\n });\r\n }\r\n\r\n function goToEditSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([{'schoolManagement.editSchool': vm.selectedSchoolObject.data}]);\r\n $state.go('settings.schoolManagement.editSchool');\r\n }\r\n });\r\n }\r\n\r\n function DeleteSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected school?'),\r\n text: gettextCatalog.getString('You will not be able to recover this school!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this school'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteSchool(vm.selectedSchoolObject.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolDeleted'));\r\n log.htmlSuccess(gettextCatalog.getString('Deleted!'), vm.selectedSchoolObject.data.IskolaNeve + ' ' + gettextCatalog.getString('has been deleted!'));\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function selectedRow(args) {\r\n vm.selectedSchoolObject = args;\r\n vm.editSchoolButtonEnabled = args != null;\r\n $scope.$apply();\r\n }\r\n\r\n function EndAdd(args) {\r\n args.data.Id = -1;\r\n return dataservice.addSchool(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolSaved'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('UnexpectedError'));\r\n });\r\n }\r\n\r\n function BeginEdit(args) {\r\n vm.editedRow = args.model.currentViewData[args.model.selectedRowIndex];\r\n }\r\n\r\n function EndEdit(args) {\r\n return dataservice.editSchool(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolModified'));\r\n });\r\n }\r\n\r\n function EndDelete(args) {\r\n return dataservice.deleteSchool(args.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolDeleted'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('UnexpectedError'));\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.schoolManagement.schoolList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.schoolList',\r\n config: {\r\n url: '/schoolList',\r\n templateUrl: 'app/settings/schoolManagement/schoolList/schoolList.html',\r\n controller: 'SchoolListController',\r\n controllerAs: 'vm',\r\n title: 'SchoolManagement',\r\n settings: {\r\n navId: 285,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Iskolai adminisztáció',\r\n orderTitle_en: 'School Administration',\r\n parentId: 5,\r\n content: 'SchoolManagement',\r\n activatorPermission: ['\"UJISKOLA\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.schoolManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement',\r\n config: {\r\n url: '/schoolManagement',\r\n templateUrl: 'app/settings/schoolManagement/schoolManagement.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings',\r\n config: {\r\n url: '/settings',\r\n templateUrl: 'app/settings/settings.html',\r\n title: 'Settings',\r\n settings: {\r\n navId: 5,\r\n level: 1,\r\n order: 5,\r\n parentId: 0,\r\n content: 'Settings',\r\n faIcon: 'fa-cogs',\r\n activatorPermission: ['\"MEGTEDZVALT\"', '\"MEGTEDZVALT\"', '\"MEGTSPFELM\"', '\"EGESZSMEGT\"', '\"EditSection\"', '\"AddSchool\"', '\"editSchool\"', '\"UJISKOLA\"',\r\n '\"BEALLITAS\"', '\"MEGTFELHCSOP\"', '\"MEGTFELH\"', '\"MEGTFELHJOG\"', '\"SPTARTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SystemSettingsController.$inject = [\"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$timeout\"];\r\n angular\r\n .module('app.settings.systemSettings')\r\n .controller('SystemSettingsController', SystemSettingsController);\r\n\r\n function SystemSettingsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SystemSettings');\r\n\r\n // Create variables\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n\r\n // Public functions\r\n vm.languageSelect = languageSelect;\r\n vm.expDocNotificationSelect = expDocNotificationSelect;\r\n vm.saveSystemSettings = saveSystemSettings;\r\n vm.saveSystemSettingValue = saveSystemSettingValue;\r\n vm.nf1Select = nf1Select;\r\n //vm.nf2Select = nf2Select; function nf2Select() {}\r\n vm.nf1databound = nf1databound;\r\n vm.nf2databound = nf2databound;\r\n vm.valasztottNyelv = undefined;\r\n vm.selectedExpDocGroup = 0;\r\n vm.NYELVEK = [];\r\n vm.expNotiList = [\r\n {value: 0, text: gettextCatalog.getString('Administrators')},\r\n {value: 1, text: gettextCatalog.getString('SectionLeader')},\r\n {value: 2, text: gettextCatalog.getString('Trainer')},\r\n {value: 3, text: gettextCatalog.getString('EconomicColleague')}\r\n ];\r\n vm.attendanceList = [\r\n {value: 0, text: gettextCatalog.getString('provenabsenceText')},\r\n {value: 1, text: gettextCatalog.getString('injuryText')},\r\n {value: 2, text: gettextCatalog.getString('Verseny')},\r\n {value: 3, text: gettextCatalog.getString('sicknessText')}\r\n ];\r\n vm.nf1list = [\r\n {value: 1, text: gettextCatalog.getString('Weekly')},\r\n {value: 2, text: gettextCatalog.getString('EverySecondWeek')},\r\n {value: 3, text: gettextCatalog.getString('Monthly')},\r\n {value: 4, text: gettextCatalog.getString('EverySecondMonth')},\r\n {value: 5, text: gettextCatalog.getString('EveryThirdMonth')}\r\n ];\r\n vm.nfWeeklyList = [\r\n {value: 1, text: gettextCatalog.getString('Monday')},\r\n {value: 2, text: gettextCatalog.getString('Tuesday')},\r\n {value: 3, text: gettextCatalog.getString('Wednesday')},\r\n {value: 4, text: gettextCatalog.getString('Thursday')},\r\n {value: 5, text: gettextCatalog.getString('Friday')},\r\n {value: 6, text: gettextCatalog.getString('Saturday')},\r\n {value: 0, text: gettextCatalog.getString('Sunday')}\r\n ];\r\n vm.nfDayList = [];\r\n for (var d = 1; d <= 31; d++) {\r\n vm.nfDayList.push({value: d, text: d.toString()});\r\n }\r\n vm.nf2list = [];\r\n vm.nf1 = -1;\r\n vm.nf2 = -1;\r\n vm.expNotiChecked = [];\r\n var JelenletTipus =\r\n {\r\n IgazoltHianyzas: 0,\r\n Serules: 1,\r\n Verseny: 2,\r\n Betegseg: 3\r\n };\r\n // Default beállítások\r\n vm.attendanceChecked = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n vm.languageSelected = false;\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('BEALLITAS')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n getSystemSettings('TAJKOTELEZO'),\r\n getSystemSettings('SNYSZKOTELEZO'),\r\n getSystemSettings('BEFSSZKULON'),\r\n getSystemSettings('FOLAPOLVASATLANOK'),\r\n getSystemSettings('FOLAPNYOMTATAS'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROJELENLETIK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHAVITERVEK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROEVESTERVEK'),\r\n getSystemSettings('FOLAPKIFIZETETLENTAGDIJAK'),\r\n getSystemSettings('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPLEJARO'),\r\n getSystemSettings('SPORTMINKOTELEZO'),\r\n getSystemSettings('SPKORVALTTART'),\r\n getSystemSettings('HAVIEDZTERVJOVAHAGYKOT'),\r\n getSystemSettings('HETIEDZTERVJOVAHAGYKOT'),\r\n getSystemSettings('ESZKSPORTOLOKILEP'),\r\n getSystemSettings('ESZKUSERKILEP'),\r\n getSystemSettingsValue('LEJARODOCERTESITESTKAPNAK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHETITERV'),\r\n getSystemSettings('NINCSOKTDIJ'),\r\n getSystemSettings('INAKTIVMENUREJTES'),\r\n getSystemSettingsValue('TAGDIJERTESGYAKORISAG'),\r\n getSystemSettingsValue('HETIEDZTURELMI'),\r\n getSystemSettingsValue('JELENLETNEKSZAMIT')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.socialSecurityNumberRequiredValue = results[0];\r\n vm.athleteRegistrationNumberRequiredValue = results[1];\r\n vm.paymentNumberSeparatelyValue = results[2];\r\n vm.FOLAPOLVASATLANOK = results[3];\r\n vm.FOLAPNYOMTATAS = results[4];\r\n vm.FOLAPELFOGADASRAVAROJELENLETIK = results[5];\r\n vm.FOLAPELFOGADASRAVAROHAVITERVEK = results[6];\r\n vm.FOLAPELFOGADASRAVAROEVESTERVEK = results[7];\r\n vm.FOLAPKIFIZETETLENTAGDIJAK = results[8];\r\n vm.FOLAPLINKEK = results[9];\r\n vm.FOLAPLEJARO = results[10];\r\n vm.SPORTMINKOTELEZO = results[11];\r\n vm.SPKORVALTTART = results[12];\r\n vm.HAVIEDZTERVJOVAHAGYKOT = results[13];\r\n vm.HETIEDZTERVJOVAHAGYKOT = results[14];\r\n vm.ESZKSPORTOLOKILEP = results[15];\r\n vm.ESZKUSERKILEP = results[16];\r\n if (results[17]) {\r\n vm.expNotiChecked = JSON.parse(results[17]);\r\n vm.LEJARODOCERTESITESTKAPNAK = JSON.parse(results[17]);\r\n }\r\n vm.FOLAPELFOGADASRAVAROHETITERV = results[18];\r\n vm.NINCSOKTDIJ = results[19];\r\n vm.INAKTIVMENUREJTES = results[20];\r\n if (results[21]) {\r\n var tagdijErtesites = JSON.parse(results[21]);\r\n if (tagdijErtesites) {\r\n vm.nf1 = tagdijErtesites.nf1;\r\n vm.nf2 = tagdijErtesites.nf2;\r\n }\r\n angular.element('#nf1').ejDropDownList('selectItemByValue', vm.nf1);\r\n angular.element('#nf2').ejDropDownList('selectItemByValue', vm.nf2);\r\n }\r\n vm.HETIEDZTURELMI = results[22];\r\n if (!vm.HETIEDZTURELMI) {\r\n vm.HETIEDZTURELMI = 365;\r\n }\r\n if (results[23]) {\r\n vm.attendanceChecked = JSON.parse(results[23]);\r\n vm.JELENLETNEKSZAMIT = JSON.parse(results[23]);\r\n } else {\r\n vm.JELENLETNEKSZAMIT = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n }\r\n getAvailableLanguages();\r\n $timeout(function () {\r\n angular.element('#expNotiList').ejListBox({checkedIndices: vm.LEJARODOCERTESITESTKAPNAK});\r\n angular.element('#attendanceList').ejListBox({checkedIndices: vm.JELENLETNEKSZAMIT});\r\n }, 500);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function nf1databound() {\r\n if (vm.nf1 > 0) {\r\n angular.element('#nf1').ejDropDownList('selectItemByValue', vm.nf1);\r\n nf1Select({value: vm.nf1});\r\n }\r\n }\r\n\r\n function nf1Select(arg) {\r\n var ds2 = [];\r\n switch (arg.value){\r\n case 1:\r\n case 2:\r\n jQuery.extend(ds2, vm.nfWeeklyList);\r\n break;\r\n case 3:\r\n case 4:\r\n case 5:\r\n jQuery.extend(ds2, vm.nfDayList);\r\n break;\r\n }\r\n vm.nf2list = ds2;\r\n }\r\n\r\n function nf2databound() {\r\n if (vm.nf2 > 0) {\r\n angular.element('#nf2').ejDropDownList('selectItemByValue', vm.nf2);\r\n }\r\n }\r\n\r\n function languageSelect(arg) {\r\n vm.languageSelected = true;\r\n getKedvezmenyNevek(arg.value);\r\n getOktatasiKedvezmenyNevek(arg.value);\r\n }\r\n\r\n function expDocNotificationSelect(arg) {\r\n vm.selectedExpDocGroup = arg.value;\r\n }\r\n\r\n function getKedvezmenyNevek(language) {\r\n vm.kedvezmeny1 = undefined;\r\n vm.kedvezmeny2 = undefined;\r\n vm.kedvezmeny3 = undefined;\r\n vm.kedvezmeny4 = undefined;\r\n vm.kedvezmeny5 = undefined;\r\n dataservice.KedvezmenyNevek(language).then(function (response) {\r\n if (response.itemsList.length > 0) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n switch (response.itemsList[i].value) {\r\n case 'K1':\r\n vm.kedvezmeny1 = response.itemsList[i].text;\r\n break;\r\n case 'K2':\r\n vm.kedvezmeny2 = response.itemsList[i].text;\r\n break;\r\n case 'K3':\r\n vm.kedvezmeny3 = response.itemsList[i].text;\r\n break;\r\n case 'K4':\r\n vm.kedvezmeny4 = response.itemsList[i].text;\r\n break;\r\n case 'K5':\r\n vm.kedvezmeny5 = response.itemsList[i].text;\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getOktatasiKedvezmenyNevek(language) {\r\n vm.kedvezmenyokt1 = undefined;\r\n vm.kedvezmenyokt2 = undefined;\r\n vm.kedvezmenyokt3 = undefined;\r\n vm.kedvezmenyokt4 = undefined;\r\n vm.kedvezmenyokt5 = undefined;\r\n dataservice.OktatasiKedvezmenyNevek(language).then(function (response) {\r\n if (response.itemsList.length > 0) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n switch (response.itemsList[i].value) {\r\n case 'OK1':\r\n vm.kedvezmenyokt1 = response.itemsList[i].text;\r\n break;\r\n case 'OK2':\r\n vm.kedvezmenyokt2 = response.itemsList[i].text;\r\n break;\r\n case 'OK3':\r\n vm.kedvezmenyokt3 = response.itemsList[i].text;\r\n break;\r\n case 'OK4':\r\n vm.kedvezmenyokt4 = response.itemsList[i].text;\r\n break;\r\n case 'OK5':\r\n vm.kedvezmenyokt5 = response.itemsList[i].text;\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n function saveKedvezmenyNevek() {\r\n dataservice.KedvezmenyNevekMentes(vm.valasztottNyelv, vm.kedvezmeny1, vm.kedvezmeny2, vm.kedvezmeny3, vm.kedvezmeny4, vm.kedvezmeny5, vm.kedvezmenyokt1, vm.kedvezmenyokt2, vm.kedvezmenyokt3, vm.kedvezmenyokt4, vm.kedvezmenyokt5)\r\n .then(function () {\r\n });\r\n }\r\n\r\n function getAvailableLanguages() {\r\n dataservice.getAvailableLanguages().then(function (response) {\r\n vm.NYELVEK = response.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n if (response.hasOwnProperty('retValue')) {\r\n return response.retValue;\r\n }\r\n return null;\r\n });\r\n }\r\n\r\n function saveSystemSettings() {\r\n var ExpCheckedArray = [];\r\n $('#expNotiList').ejListBox('getCheckedItems').forEach(function (chk) {\r\n ExpCheckedArray.push(chk.index);\r\n });\r\n vm.LEJARODOCERTESITESTKAPNAK = JSON.stringify(ExpCheckedArray);\r\n var attendanceArray = [];\r\n $('#attendanceList').ejListBox('getCheckedItems').forEach(function (chk) {\r\n attendanceArray.push(chk.index);\r\n });\r\n vm.JELENLETNEKSZAMIT = JSON.stringify(attendanceArray);\r\n vm.TAGDIJERTESGYAKORISAG = JSON.stringify({nf1: vm.nf1, nf2: vm.nf2});\r\n $q.all([\r\n saveSystemSetting('TAJKOTELEZO', vm.socialSecurityNumberRequiredValue),\r\n saveSystemSetting('SNYSZKOTELEZO', vm.athleteRegistrationNumberRequiredValue),\r\n saveSystemSetting('BEFSSZKULON', vm.paymentNumberSeparatelyValue),\r\n saveSystemSetting('FOLAPOLVASATLANOK', vm.FOLAPOLVASATLANOK),\r\n saveSystemSetting('FOLAPNYOMTATAS', vm.FOLAPNYOMTATAS),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROJELENLETIK', vm.FOLAPELFOGADASRAVAROJELENLETIK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROHAVITERVEK', vm.FOLAPELFOGADASRAVAROHAVITERVEK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROEVESTERVEK', vm.FOLAPELFOGADASRAVAROEVESTERVEK),\r\n saveSystemSetting('FOLAPKIFIZETETLENTAGDIJAK', vm.FOLAPKIFIZETETLENTAGDIJAK),\r\n saveSystemSetting('FOLAPLINKEK', vm.FOLAPLINKEK),\r\n saveSystemSetting('FOLAPLEJARO', vm.FOLAPLEJARO),\r\n saveSystemSetting('SPORTMINKOTELEZO', vm.SPORTMINKOTELEZO),\r\n saveSystemSetting('SPKORVALTTART', vm.SPKORVALTTART),\r\n saveSystemSetting('HAVIEDZTERVJOVAHAGYKOT', vm.HAVIEDZTERVJOVAHAGYKOT),\r\n saveSystemSetting('HETIEDZTERVJOVAHAGYKOT', vm.HETIEDZTERVJOVAHAGYKOT),\r\n saveSystemSetting('ESZKSPORTOLOKILEP', vm.ESZKSPORTOLOKILEP),\r\n saveSystemSetting('ESZKUSERKILEP', vm.ESZKUSERKILEP),\r\n saveSystemSettingValue('LEJARODOCERTESITESTKAPNAK', vm.LEJARODOCERTESITESTKAPNAK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROHETITERV', vm.FOLAPELFOGADASRAVAROHETITERV),\r\n saveSystemSetting('NINCSOKTDIJ', vm.NINCSOKTDIJ),\r\n saveSystemSetting('INAKTIVMENUREJTES', vm.INAKTIVMENUREJTES),\r\n saveSystemSettingValue('TAGDIJERTESGYAKORISAG', vm.TAGDIJERTESGYAKORISAG),\r\n saveSystemSettingValue('HETIEDZTURELMI', vm.HETIEDZTURELMI),\r\n saveSystemSettingValue('JELENLETNEKSZAMIT', vm.JELENLETNEKSZAMIT)\r\n ]).then(function () {\r\n $rootScope.INAKTIVMENUREJTES = vm.INAKTIVMENUREJTES;\r\n log.successMsg(gettextCatalog.getString('SavedSuccessful'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('SaveUnsuccessful'));\r\n });\r\n if (vm.languageSelected) {\r\n saveKedvezmenyNevek();\r\n }\r\n }\r\n\r\n function saveSystemSetting(valtozo, ertek) {\r\n return dataservice.saveSystemSettings(valtozo, ertek).then(function () {\r\n });\r\n }\r\n\r\n function saveSystemSettingValue(valtozo, ertek) {\r\n return dataservice.saveSystemSettingsValue(valtozo, ertek).then(function () {\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.systemSettings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.systemSettings',\r\n config: {\r\n url: '/systemSettings',\r\n templateUrl: 'app/settings/systemSettings/systemSettings.html',\r\n controller: 'SystemSettingsController',\r\n controllerAs: 'vm',\r\n title: 'SystemSettings',\r\n settings: {\r\n navId: 2105,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Rendszerbeállítások',\r\n orderTitle_en: 'System Settings',\r\n parentId: 5,\r\n content: 'SystemSettings',\r\n activatorPermission: ['\"BEALLITAS\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n UserGroupsManagementController.$inject = [\"$q\", \"paramHelper\", \"gettextCatalog\", \"$state\", \"dataservice\", \"logger\", \"authenticationService\", \"$rootScope\", \"$scope\", \"log\", \"$timeout\"];\r\n angular\r\n .module('app.settings.userGroupsManagement')\r\n .controller('UserGroupsManagementController', UserGroupsManagementController);\r\n\r\n function UserGroupsManagementController($q, paramHelper, gettextCatalog, $state, dataservice, logger, authenticationService, $rootScope, $scope, log, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserGroups');\r\n\r\n vm.data = [];\r\n vm.newgrouptitle = gettextCatalog.getString('AddNewUserGroup');\r\n vm.editgrouptitle = gettextCatalog.getString('EditUserGroup');\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 175, validationRules: {required: true}, validationMessage: {required: gettextCatalog.getString('GroupNameRequrired')}},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Description'), textAlign: 'center', width: 250}\r\n ];\r\n\r\n vm.deleteGroupEnabled = false;\r\n vm.setGroupRightsEnabled = false;\r\n vm.selectedGroupId = -1;\r\n vm.EndAdd = EndAdd;\r\n vm.EndEdit = EndEdit;\r\n vm.selectedRow = selectedRow;\r\n vm.DeleteGroup = DeleteGroup;\r\n vm.ManageRights = ManageRights;\r\n vm.EditGroup = EditGroup;\r\n vm.AddGroup = AddGroup;\r\n vm.newgroupCancel = newgroupCancel;\r\n vm.newgroupSave = newgroupSave;\r\n vm.editgroupCancel = editgroupCancel;\r\n vm.editgroupSave = editgroupSave;\r\n\r\n vm.MEGTFELHCSOP = false;\r\n vm.MODFELHCSOP = false;\r\n vm.UJFELHCSOP = false;\r\n vm.MEGTFELHJOG = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTFELHCSOP'), authenticationService.getRight('MODFELHCSOP'), authenticationService.getRight('UJFELHCSOP'), authenticationService.getRight('MEGTFELHJOG')]).then(function (data) {\r\n $timeout(function () {\r\n vm.MEGTFELHCSOP = data[0];\r\n vm.MODFELHCSOP = data[1];\r\n vm.UJFELHCSOP = data[2];\r\n vm.MEGTFELHJOG = data[3];\r\n }, 10);\r\n if (data[0] || data[1] || data[2]) {\r\n getUserGroupList();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function AddGroup() {\r\n vm.newgroup = {};\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function newgroupCancel() {\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function newgroupSave() {\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n if (vm.newgroup && vm.newgroup.Nev) {\r\n vm.newgroup.Id = -1;\r\n dialogObj.close();\r\n dataservice.addUserGroup(vm.newgroup).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.deleteGroupEnabled = false;\r\n activate();\r\n });\r\n } else {\r\n dialogObj.close();\r\n log.errorMsg(gettextCatalog.getString('NewUserGroupMustHaveNameAndType'));\r\n }\r\n }\r\n\r\n function editgroupCancel() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function editgroupSave() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.close();\r\n dataservice.editUserGroup(vm.editgroup).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.deleteGroupEnabled = false;\r\n activate();\r\n });\r\n }\r\n\r\n function DeleteGroup() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected user group?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this user group'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteUserGroup(vm.selectedGroupId).then(function () {\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function ManageRights() {\r\n paramHelper.setParams([{'usergroupid': vm.selectedGroupId}]);\r\n $state.go('settings.userRights');\r\n }\r\n\r\n function EditGroup() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function selectedRow(args) {\r\n vm.editgroup = args.data;\r\n vm.selectedGroupId = args.data.Id;\r\n vm.deleteGroupEnabled = args != null && vm.MODFELHCSOP;\r\n vm.setGroupRightsEnabled = args != null && vm.MEGTFELHJOG;\r\n $scope.$apply();\r\n }\r\n\r\n function getUserGroupList() {\r\n dataservice.getUserGroupList().then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function EndEdit(args) {\r\n dataservice.editUserGroup(args.data).then(function () {\r\n getUserGroupList();\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n });\r\n }\r\n\r\n function EndAdd(args) {\r\n args.data.Id = -1;\r\n dataservice.addUserGroup(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userGroupsManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userGroupsManagement',\r\n config: {\r\n url: '/userGroups',\r\n templateUrl: 'app/settings/userGroups/userGroupsManagement.html',\r\n controller: 'UserGroupsManagementController',\r\n controllerAs: 'vm',\r\n title: 'UserGroupsManagement',\r\n settings: {\r\n navId: 225,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Felhasználói csoportok kezelése',\r\n orderTitle_en: 'User Groups Management',\r\n parentId: 5,\r\n content: 'UserGroupsManagement',\r\n activatorPermission: ['\"MEGTFELHCSOP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n modifyUserController.$inject = [\"$q\", \"log\", \"VIEW_DATA\", \"dataservice\", \"DOMAIN\", \"authenticationService\", \"$rootScope\", \"AUTH_EVENTS\", \"$scope\", \"gettextCatalog\", \"paramHelper\", \"$state\", \"$filter\", \"$timeout\"];\r\n angular\r\n .module('app.settings.userManagement.modifyUser')\r\n .controller('modifyUserController', modifyUserController);\r\n\r\n function modifyUserController($q, log, VIEW_DATA, dataservice, DOMAIN, authenticationService, $rootScope, AUTH_EVENTS, $scope, gettextCatalog, paramHelper, $state, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyUser');\r\n\r\n // Dropdowns\r\n vm.autoSave = true;\r\n vm.sectionLeaderChangeEnable = false;\r\n vm.sectionLeaderList = [];\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.userGroupList = [];\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.passwordAgain = undefined;\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n vm.formData = {\r\n id: undefined,\r\n name: undefined,\r\n userGroupId: undefined,\r\n loginName: undefined,\r\n email: undefined,\r\n password: undefined,\r\n passwordExpiryDate: undefined,\r\n fileData: null,\r\n fileName: null,\r\n address: undefined,\r\n contact: undefined,\r\n socialSecurityNumber: undefined,\r\n color: '#000000',\r\n monthlyAttendanceRegister: undefined,\r\n activeUser: true,\r\n mainWorkPlace: undefined,\r\n qualifications: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n identityCardNumber: undefined,\r\n sex: undefined,\r\n passportNumber: undefined,\r\n otherInformation: undefined,\r\n autoSave: true\r\n };\r\n\r\n vm.changeUserGroup = changeUserGroup;\r\n vm.colorChanged = colorChanged;\r\n vm.monthlyAttendanceRegisterChanged = monthlyAttendanceRegisterChanged;\r\n vm.activeChange = activeChange;\r\n vm.autoSaveCheckboxChanged = autoSaveCheckboxChanged;\r\n vm.sectionLeaderChecked = sectionLeaderChecked;\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.changeSex = changeSex;\r\n vm.sectionLeader = false;\r\n\r\n vm.selectedItems = [0, 1];\r\n vm.saveUser = saveUser;\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.newAsset = {};\r\n vm.TakeBackComment = '';\r\n vm.IssueComment = '';\r\n vm.chooseEnabled = false;\r\n vm.takebackEnabled = false;\r\n vm.issuedAssets = [];\r\n vm.selectedAssets = [];\r\n vm.types = [];\r\n vm.assetColumns = [\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true, width: 100},\r\n {type: 'checkbox', textAlign: 'center', width: 100},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 150},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 125},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 125},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 125},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var usersAssetGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(usersAssetGrid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(usersAssetGrid);\r\n if (rowSelect.length > 0) {\r\n vm.takebackEnabled = true;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(usersAssetGrid);\r\n if (rowSelect.length == 0) {\r\n vm.takebackEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n });\r\n usersAssetGrid.appendTo('#UsersAssetGrid');\r\n usersAssetGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, usersAssetGrid);\r\n };\r\n\r\n var AssetGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(AssetGrid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(AssetGrid);\r\n if (rowSelect.length > 0) {\r\n vm.chooseEnabled = true;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(AssetGrid);\r\n if (rowSelect.length == 0) {\r\n vm.chooseEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n });\r\n AssetGrid.appendTo('#AssetGrid');\r\n AssetGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, AssetGrid);\r\n };\r\n\r\n vm.IssueAsset = IssueAsset;\r\n vm.Issue = Issue;\r\n vm.IssueNewAsset = IssueNewAsset;\r\n vm.TakeBack = TakeBack;\r\n vm.deleteImg = deleteImg;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.goToFiles = goToFiles;\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.SPORTOLOADATLAP = false;\r\n vm.SZULOADATLAP = false;\r\n vm.GAZDASAGIADATLAP = false;\r\n vm.LIMITEDUSER = false;\r\n vm.SZAKOSZTVEZADATLAP = false;\r\n vm.EDZOADATLAP = false;\r\n vm.ESZKMOZG = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['newUser.userId'], []),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getAuthData(),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ESZKMOZG'),\r\n getSectionLeaderListBox(),\r\n getAgeGroupTreeView()\r\n ])\r\n .then(function (results1) {\r\n if (results1[1] !== true && results1[6] !== true && results1[7] !== true && results1[8] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getUsersUserGroup(results1[0]['newUser.userId'])]).then(function (results2) {\r\n $q.all([getUserGroupDropDownList(results2[0])]).then(function () {\r\n vm.GROUP = results2[0];\r\n vm.EDZO = results1[2];\r\n vm.ADMIN = results1[4];\r\n vm.MODFELH = results1[5];\r\n vm.SZULO = results1[7];\r\n vm.SPORTOLO = results1[8];\r\n vm.SZAKOSZTVEZ = results1[9];\r\n vm.ESZKMOZG = results1[10];\r\n vm.user = results1[3];\r\n vm.userId = results1[0]['newUser.userId'];\r\n getUser(results1[0]['newUser.userId']);\r\n IssuedAssets(vm.userId);\r\n getSystemSettings('TAJKOTELEZO');\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getUserGroupDropDownList(group) {\r\n if (!group || group == '') {\r\n group = 'showall';\r\n }\r\n return dataservice.getFullUserGroupList(group)\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n dataservice.getSystemSettings(arg).then(function (response) {\r\n vm.socialSecurityNumberRequiredValue = response.retValue;\r\n });\r\n }\r\n\r\n function getUsersUserGroup(userid) {\r\n return dataservice.UsersUserGroup(userid)\r\n .then(function (data) {\r\n vm.LIMITEDUSER = false;\r\n for (var i = 0; i < data.data.length; i++) {\r\n switch (data.data[i]) {\r\n case 'SZULO':\r\n vm.SZULOADATLAP = true;\r\n vm.LIMITEDUSER = true;\r\n break;\r\n case 'SPORTOLO':\r\n vm.SPORTOLOADATLAP = true;\r\n vm.LIMITEDUSER = true;\r\n break;\r\n case 'GAZDASAGI':\r\n vm.GAZDASAGIADATLAP = true;\r\n break;\r\n case 'SZAKOSZTVEZ':\r\n vm.SZAKOSZTVEZADATLAP = true;\r\n break;\r\n case 'EDZO':\r\n vm.EDZOADATLAP = true;\r\n break;\r\n default:\r\n }\r\n }\r\n return data.data;\r\n });\r\n }\r\n\r\n function getUser(userId) {\r\n return dataservice.getUserData(userId)\r\n .then(function (data) {\r\n angular.element('#sex').ejDropDownList('selectItemByValue', data.retValue.ferfib);\r\n data.retValue.birthDate = $filter('datetimeFilter')(data.retValue.birthDate);\r\n data.retValue.passwordExpiryDate = $filter('dateStringFilter')(data.retValue.passwordExpiryDate);\r\n vm.formData = data.retValue;\r\n angular.element('#userGroup').ejDropDownList('selectItemByValue', vm.formData.userGroupId);\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n vm.colorValue = vm.formData.color;\r\n angular.forEach(vm.sectionLeaderList, function (section, sectionIndex) {\r\n angular.forEach(vm.formData.sectionsLeader, function (sectionId) {\r\n if (section.value === sectionId) {\r\n angular.element('#sectionListBox').ejListBox('checkItemByIndex', sectionIndex);\r\n }\r\n });\r\n });\r\n angular.forEach(vm.formData.ageGroups, function (ageGroup) {\r\n angular.element('#ageGroupTreeView').ejTreeView('checkNode', angular.element('#' + ageGroup));\r\n });\r\n angular.element('#activeCheckBox').ejCheckBox({checked: data.retValue.activeUser});\r\n angular.element('#monthlyAttendanceRegister').ejCheckBox({checked: data.retValue.monthlyAttendanceRegister});\r\n vm.sectionLeaderChangeEnable = true;\r\n });\r\n }\r\n\r\n function changeUserGroup(args) {\r\n vm.formData.userGroupId = args.value;\r\n dataservice.getSectionHasSectionLeaderRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#sectionListBox').ejListBox('enable');\r\n } else {\r\n angular.element('#sectionListBox').ejListBox('disable');\r\n }\r\n });\r\n dataservice.getSectionHasCoachRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#ageGroupTreeView').ejTreeView({enabled: true});\r\n } else {\r\n angular.element('#ageGroupTreeView').ejTreeView({enabled: false});\r\n }\r\n });\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function monthlyAttendanceRegisterChanged(args) {\r\n vm.formData.monthlyAttendanceRegister = args.value;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.formData.activeUser = args.value;\r\n }\r\n\r\n function autoSaveCheckboxChanged(args) {\r\n vm.formData.autoSave = args.value;\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n return dataservice.getSectionLeaderListBox()\r\n .then(function (data) {\r\n vm.sectionLeaderList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionLeaderChecked(args) {\r\n if (vm.sectionLeaderChangeEnable) {\r\n if (args.isChecked === true) {\r\n if (!args.data.VezetoNev) {\r\n args.data.VezetoNev = gettextCatalog.getString('PrimarySectionLeader');\r\n }\r\n if (!args.data.VezetoNev2) {\r\n args.data.VezetoNev2 = gettextCatalog.getString('SecondarySectionLeader');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('ReplaceQuestion'),\r\n html: '<p>' + gettextCatalog.getString('WhichLeaderDoYouWantToReplace') + '</p><p>' + gettextCatalog.getString('ActualSectionLeadersText') + ': </p><div><button class=\"cts-button\" id=\"leader1\">' + args.data.VezetoNev + '</button>' + '<button class=\"cts-button\" id=\"leader2\">' + args.data.VezetoNev2 + '</button></div><div style=\"text-align: center;\"><br><br><button class=\"cts-button auto-width\" id=\"cancel-button\">' + gettextCatalog.getString('Cancel') + '</button></div>',\r\n showCancelButton: false,\r\n showConfirmButton: false,\r\n closeOnCancel: false,\r\n allowOutsideClick: false\r\n });\r\n angular.element('#leader1').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 1);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#leader2').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 2);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#cancel-button').ejButton({\r\n click: function () {\r\n angular.element('#sectionListBox').ejListBox('uncheckItemByIndex', args.index);\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n vm.sectionLeaderList[args.index].replace = 3;\r\n }\r\n }\r\n }\r\n\r\n function replaceLeader(index, replace) {\r\n vm.sectionLeaderList[index].replace = replace;\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n return dataservice.getAgeGroupTreeView()\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function changeSex(args) {\r\n vm.formData.sex = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.MODFELH || (vm.SZULOADATLAP && vm.SZULO) || (vm.SPORTOLOADATLAP && vm.SPORTOLO)) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'), gettextCatalog.getString('FillTheRequiredFields'));\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n // kiválasztott korosztályok\r\n vm.formData.ageGroupList = [];\r\n var tmp = angular.element('#ageGroupTreeView').ejTreeView('getCheckedNodesIndex');\r\n angular.forEach(tmp, function (value) {\r\n if (vm.ageGroupList[value].hasChild === false) {\r\n vm.formData.ageGroupList.push(vm.ageGroupList[value]);\r\n }\r\n });\r\n // szakosztály, amiknek a vezetője\r\n vm.formData.sectionsLeaderList = vm.sectionLeaderList;\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n vm.formData.socialSecurityNumber = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n dataservice.modifyUser(vm.formData).then(function (data) {\r\n if (data) {\r\n var currentId = parseInt(authenticationService.getAuthData().id);\r\n if (currentId === vm.formData.id) {\r\n $rootScope.$broadcast(AUTH_EVENTS.refreshProfilePic, data.image);\r\n }\r\n log.successMsg('UserModified');\r\n if (vm.SPORTOLOADATLAP || vm.SZULOADATLAP) {\r\n $rootScope.back();\r\n } else {\r\n $state.go('settings.userManagement.userList');\r\n }\r\n }\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToFiles() {\r\n if (vm.MODFELH) {\r\n paramHelper.setParams([{'files.tipus': 'Felhasznalok'}, {'files.tablaId': vm.formData.id}]);\r\n $state.go('other.files');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.formData.ferfib ? 'male' : 'female';\r\n vm.formData.fileName = 'coach_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function IssuedAssets(userid) {\r\n dataservice.IssuedAssets(0, userid).then(function (response) {\r\n usersAssetGrid.dataSource = response.data;\r\n });\r\n }\r\n\r\n function getSelectedAssets() {\r\n var row = $rootScope.getSelectedItems(usersAssetGrid);\r\n usersAssetGrid.refresh();\r\n return vm.selectedAssets;\r\n }\r\n\r\n function getSelectedAssetIds(selectGrid) {\r\n var selectedAssets = $rootScope.getSelectedItems(selectGrid);\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function IssueAsset() {\r\n if (vm.ESZKMOZG) {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n dataservice.AssetsByType(0, 'issuable').then(function (data) {\r\n AssetGrid.dataSource = data.data;\r\n });\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function IssueNewAsset() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n vm.chooseEnabled = false;\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras'), value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar'), value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''},\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', ac: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n var TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n var Megnevezes = document.getElementById('Megnevezes').value;\r\n if (!TipusNev || TipusNev.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n }\r\n if (!Megnevezes || Megnevezes.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = '';\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n vm.newAsset.TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n\r\n dataservice.AssetManager(vm.newAsset).then(function (response) {\r\n dataservice.AssetIssue(response.data.EszkozIdk, vm.userId, 0, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n });\r\n }\r\n });\r\n angular.element('#AutoCompleteSwal').ejAutocomplete({\r\n dataSource: vm.types,\r\n change: function (arg) {\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = arg.value;\r\n },\r\n value: vm.newAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function Issue() {\r\n vm.chooseEnabled = false;\r\n vm.IssueComment = '';\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n dataservice.AssetIssue(getSelectedAssetIds(AssetGrid), vm.userId, 0, vm.IssueComment).then(function () {\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n }\r\n\r\n function TakeBack() {\r\n vm.takebackEnabled = false;\r\n dataservice.AssetTakeBack(getSelectedAssetIds(usersAssetGrid), vm.TakeBackComment).then(function () {\r\n vm.TakeBackComment = '';\r\n log.successMsg('TakenBackSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" >';\r\n arr.forEach(function (item) {\r\n HTMLtext += '<div class=\"row\">';\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + item.text + '</label>';\r\n if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"AutoCompleteSwal\" ej-autocomplete></input><br>';\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"DropDownSwal\" ej-dropdownlist></input><br>';\r\n } else {\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '<input type=\"text\" value=\"' + item.value + '\" id=\"' + item.id + '\"></input><br>';\r\n } else {\r\n HTMLtext += '<input type=\"text\" value=\"\" id=\"' + item.id + '\"></input><br>';\r\n }\r\n }\r\n HTMLtext += '</div>';\r\n });\r\n HTMLtext += '</div><br>';\r\n return HTMLtext;\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userManagement.modifyUser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.modifyUser',\r\n config: {\r\n url: '/modifyUser',\r\n templateUrl: 'app/settings/userManagement/modifyUser/modifyUser.html',\r\n controller: 'modifyUserController',\r\n controllerAs: 'vm',\r\n title: 'ModifyUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n newUserController.$inject = [\"$q\", \"log\", \"VIEW_DATA\", \"dataservice\", \"DOMAIN\", \"authenticationService\", \"$rootScope\", \"$scope\", \"gettextCatalog\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.settings.userManagement.newUser')\r\n .controller('newUserController', newUserController);\r\n\r\n function newUserController($q, log, VIEW_DATA, dataservice, DOMAIN, authenticationService, $rootScope, $scope, gettextCatalog, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('NewUser');\r\n\r\n // Dropdowns\r\n vm.sectionLeaderList = [];\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.userGroupList = [];\r\n vm.selectedItems = [0, 1];\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.displayPhoto = vm.photoUrl;\r\n vm.passwordAgain = undefined;\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n vm.sectionLeader = false;\r\n vm.formData = {\r\n name: undefined,\r\n userGroupId: undefined,\r\n loginName: undefined,\r\n email: undefined,\r\n password: undefined,\r\n passwordExpiryDate: undefined,\r\n fileData: null,\r\n fileName: null,\r\n address: undefined,\r\n contact: undefined,\r\n socialSecurityNumber: undefined,\r\n color: '#000000',\r\n monthlyAttendanceRegister: true,\r\n activeUser: true,\r\n mainWorkPlace: undefined,\r\n qualifications: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n identityCardNumber: undefined,\r\n sex: undefined,\r\n passportNumber: undefined,\r\n otherInformation: undefined\r\n };\r\n\r\n vm.changeUserGroup = changeUserGroup;\r\n vm.colorChanged = colorChanged;\r\n vm.monthlyAttendanceRegisterChanged = monthlyAttendanceRegisterChanged;\r\n vm.activeChange = activeChange;\r\n vm.sectionLeaderChecked = sectionLeaderChecked;\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.changeSex = changeSex;\r\n vm.saveUser = saveUser;\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.deleteImg = deleteImg;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.socialSecurityNumberRequiredValue = false;\r\n\r\n vm.generateAvatar = generateAvatar;\r\n\r\n activate();\r\n\r\n function generateAvatar(nem) {\r\n var ava = 'coach_'+ nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n if (ava == vm.photoUrl) {\r\n generateAvatar(nem);\r\n }\r\n return ava;\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], []), authenticationService.getRight('UJFELH'), getUserGroupDropDownList(), getSectionLeaderListBox(), getAgeGroupTreeView()])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError();\r\n } else {\r\n vm.UJFELH = results[1];\r\n getSystemSettings('TAJKOTELEZO');\r\n }\r\n });\r\n }\r\n\r\n function getUserGroupDropDownList() {\r\n dataservice.getFullUserGroupList()\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n dataservice.getSystemSettings(arg).then(function (response) {\r\n vm.socialSecurityNumberRequiredValue = response.retValue;\r\n });\r\n }\r\n\r\n function changeUserGroup(args) {\r\n vm.formData.userGroupId = args.value;\r\n dataservice.getSectionHasSectionLeaderRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#sectionListBox').ejListBox('enable');\r\n } else {\r\n angular.element('#sectionListBox').ejListBox('disable');\r\n }\r\n });\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function monthlyAttendanceRegisterChanged(args) {\r\n vm.formData.monthlyAttendanceRegister = args.value;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.formData.activeUser = args.value;\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n dataservice.getSectionLeaderListBox()\r\n .then(function (data) {\r\n vm.sectionLeaderList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionLeaderChecked(args) {\r\n if (args.isChecked === true) {\r\n if (!args.data.VezetoNev) {\r\n args.data.VezetoNev = gettextCatalog.getString('PrimarySectionLeader');\r\n }\r\n if (!args.data.VezetoNev2) {\r\n args.data.VezetoNev2 = gettextCatalog.getString('SecondarySectionLeader');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('ReplaceQuestion'),\r\n html: '<p>' + gettextCatalog.getString('WhichLeaderDoYouWantToReplace') + '</p>' + '<div><button class=\"cts-button\" id=\"leader1\">' + args.data.VezetoNev + '</button>' + '<button class=\"cts-button\" id=\"leader2\">' + args.data.VezetoNev2 + '</button></div><div style=\"text-align: center;\"><button class=\"cts-button auto-width\" id=\"cancel-button\">' + gettextCatalog.getString('Cancel') + '</button></div>',\r\n showCancelButton: false,\r\n showConfirmButton: false,\r\n closeOnCancel: false,\r\n allowOutsideClick: false\r\n });\r\n angular.element('#leader1').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 1);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#leader2').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 2);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#cancel-button').ejButton({\r\n click: function () {\r\n angular.element('#sectionListBox').ejListBox('uncheckItemByIndex', args.index);\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n vm.sectionLeaderList[args.index].replace = 3;\r\n }\r\n }\r\n\r\n function replaceLeader(index, replace) {\r\n vm.sectionLeaderList[index].replace = replace;\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n dataservice.getAgeGroupTreeView()\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function changeSex(args) {\r\n if (vm.cropper.sourceImage == null || vm.photoUrl == vm.noImg) {\r\n var nem = args.value ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n }\r\n vm.formData.sex = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.UJFELH) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n // kiválasztott korosztályok\r\n vm.formData.ageGroupList = [];\r\n var tmp = angular.element('#ageGroupTreeView').ejTreeView('getCheckedNodesIndex');\r\n angular.forEach(tmp, function (value) {\r\n if (vm.ageGroupList[value].hasChild === false) {\r\n vm.formData.ageGroupList.push(vm.ageGroupList[value]);\r\n }\r\n });\r\n // szakosztály, amiknek a vezetője\r\n vm.formData.sectionsLeaderList = vm.sectionLeaderList;\r\n // kép küldése, ha választott\r\n vm.formData.fileName = vm.photoUrl;\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n if (vm.photoUrl === (DOMAIN.baseURL + DOMAIN.noImage)) {\r\n vm.formData.fileData = null;\r\n vm.formData.fileName = 'noImg.jpg';\r\n }\r\n vm.formData.socialSecurityNumber = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n dataservice.addUser(vm.formData)\r\n .then(function () {\r\n log.successMsg('UserAdded');\r\n $state.go('settings.userManagement.userList');\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n vm.displayPhoto = vm.photoUrl;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n if (vm.formData.sex != null) {\r\n var nem = vm.formData.sex == 1 ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n vm.cropper.sourceImage = null;\r\n } else {\r\n vm.photoUrl = vm.noImg;\r\n vm.displayPhoto = vm.photoUrl;\r\n vm.cropper.sourceImage = null;\r\n }\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userManagement.newUser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.newUser',\r\n config: {\r\n url: '/newUser',\r\n templateUrl: 'app/settings/userManagement/newUser/newUser.html',\r\n controller: 'newUserController',\r\n controllerAs: 'vm',\r\n title: 'NewUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n userManagementController.$inject = [\"logger\", \"log\", \"$q\", \"$state\", \"dataservice\", \"authenticationService\", \"$rootScope\", \"gettextCatalog\", \"paramHelper\", \"$scope\"];\r\n angular\r\n .module('app.settings.userManagement.userList')\r\n .controller('UserManagementController', userManagementController);\r\n\r\n function userManagementController(logger, log, $q, $state, dataservice, authenticationService, $rootScope, gettextCatalog, paramHelper, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserManagement');\r\n\r\n // Grid's details\r\n vm.columns = [\r\n {\r\n field: 'TeljesNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#uslitemplateDataColumn1', width: 150\r\n },\r\n {field: 'Login', headerText: gettextCatalog.getString('Username'), textAlign: 'center', width: 115},\r\n {\r\n field: 'CsoportNeve',\r\n headerText: gettextCatalog.getString('Group'),\r\n textAlign: 'center',\r\n template: '#uslitemplateDataColumn2', width: 125\r\n },\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true, width: 60\r\n },\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: 150},\r\n {field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: 150},\r\n {\r\n field: 'HaviJelenletiKorosztalyonkent',\r\n headerText: gettextCatalog.getString('MonthlyAttendanceByAgeGroups'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true, width: 175\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#UsersAssetGrid'), $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n grid.clearSelection();\r\n vm.selectedRowData = args.data;\r\n vm.thereIsSelectedTeam = true;\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToGroup = goToGroup;\r\n vm.goToUser = goToUser;\r\n vm.goToUser2 = goToUser2;\r\n vm.details = details;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJFELH'), authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')])\r\n .then(function (results) {\r\n if (results[2] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.UJFELH = results[0];\r\n vm.MODFELH = results[1];\r\n vm.MEGTFELH = results[2];\r\n setTimeout(function () {\r\n getUsers();\r\n }, 100);\r\n }\r\n });\r\n }\r\n\r\n function getUsers() {\r\n dataservice.usersListSelect()\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n grid.appendTo('#Grid');\r\n });\r\n }\r\n\r\n function details() {\r\n log.infoMsg('Details');\r\n }\r\n\r\n function goToNewUser() {\r\n if (vm.UJFELH) {\r\n $state.go('settings.userManagement.newUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToUser() {\r\n if (vm.MODFELH) {\r\n if (vm.selectedRowData && vm.selectedRowData.Id) {\r\n paramHelper.setParams([{'newUser.userId': vm.selectedRowData.Id}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.errorMsg('YouHaveToSelectUser');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToUser2(userId) {\r\n if (vm.MODFELH || vm.MEGTFELH) {\r\n if (userId) {\r\n paramHelper.setParams([{'newUser.userId': userId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToGroup(group) {\r\n paramHelper.setParams([{'usergroupid': group}]);\r\n $state.go('settings.userRights');\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userManagement.userList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.userList',\r\n config: {\r\n url: '/userList',\r\n templateUrl: 'app/settings/userManagement/userList/userList.html',\r\n controller: 'UserManagementController',\r\n controllerAs: 'vm',\r\n title: 'UserManagement',\r\n settings: {\r\n navId: 215,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Felhasználó kezelés',\r\n orderTitle_en: 'Editing User',\r\n parentId: 5,\r\n content: 'UserManagement',\r\n activatorPermission: ['\"MEGTFELH\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement',\r\n config: {\r\n url: '/userManagement',\r\n templateUrl: 'app/settings/userManagement/userManagement.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n userSettingsController.$inject = [\"$q\", \"log\", \"VIEW_DATA\", \"dataservice\", \"DOMAIN\", \"$timeout\", \"authenticationService\", \"$rootScope\", \"AUTH_EVENTS\", \"$scope\", \"gettextCatalog\", \"paramHelper\", \"$state\", \"$filter\"];\r\n angular\r\n .module('app.settings.userManagement.userSettings')\r\n .controller('userSettingsController', userSettingsController);\r\n\r\n function userSettingsController($q, log, VIEW_DATA, dataservice, DOMAIN, $timeout, authenticationService, $rootScope, AUTH_EVENTS, $scope, gettextCatalog, paramHelper, $state, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n vm.AthleteOrParent = undefined;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserSettings');\r\n\r\n // Dropdowns\r\n vm.sectionLeaderChangeEnable = false;\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.passwordAgain = undefined;\r\n vm.recordPerPageList = $rootScope.gridPageSizes;\r\n vm.NotificationChanged = function NotificationChanged() {\r\n $timeout(function() {\r\n if (!vm.PushNotificationEnabled) {\r\n vm.formData.PushNotificationSetting = undefined;\r\n }\r\n }, 100);\r\n };\r\n vm.PushNotificationEnabled = false,\r\n vm.formData = {\r\n id: undefined,\r\n name: undefined,\r\n email: false,\r\n password: undefined,\r\n fileData: null,\r\n fileName: null,\r\n contact: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n otherInformation: undefined,\r\n gridRecordPerPage: undefined,\r\n PushNotificationSetting: {\r\n ErtesitesEdzesJelenletrol: undefined,\r\n ErtesitesEdzesrol: undefined,\r\n ErtesitesEdzoKorosztalyValtasrol: undefined,\r\n ErtesitesEsemenyrol: undefined,\r\n ErtesitesFelmeroEredmenyrol: undefined,\r\n ErtesitesHianyzasrol: undefined,\r\n ErtesitesLejaroDokrol: undefined,\r\n ErtesitesTagdijrol: undefined,\r\n ErtesitesUzenetrol: undefined,\r\n ErtesitesVersenyeredmenyrol: undefined,\r\n Nyelv: undefined\r\n }\r\n };\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.sectionLeader = false;\r\n\r\n vm.selectedItems = [0, 1];\r\n vm.saveUser = saveUser;\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.types = [];\r\n vm.recordPerPageSelect = recordPerPageSelect;\r\n\r\n vm.deleteImg = deleteImg;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SAJATADATMODOSIT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('ATHLETE'),\r\n authenticationService.getRight('PARENT')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.LIMITEDUSER = !results[1];\r\n if (results[1] !== true) {\r\n document.getElementById('generalFieldset').disabled = true;\r\n document.getElementById('personalFieldset').disabled = true;\r\n }\r\n vm.userId = authenticationService.getAuthData().id;\r\n vm.modifyPermission = results[0];\r\n getUser(vm.userId);\r\n }\r\n vm.AthleteOrParent = results[2] || results[3];\r\n console.log('vm.AthleteOrParent', vm.AthleteOrParent);\r\n });\r\n }\r\n\r\n function getUser(userId) {\r\n return dataservice.getUserDataMin(userId)\r\n .then(function (data) {\r\n angular.element('#sex').ejDropDownList('selectItemByValue', data.retValue.ferfib);\r\n data.retValue.birthDate = $filter('datetimeFilter')(data.retValue.birthDate);\r\n $timeout(function() {\r\n vm.formData = data.retValue;\r\n vm.formData.PushNotificationSetting = data.PushNotificationSetting;\r\n var ArrayFromObject = Object.values(vm.formData.PushNotificationSetting);\r\n vm.PushNotificationEnabled = ArrayFromObject.some(function (element) {\r\n if (element == true) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n $scope.$apply();\r\n });\r\n if (vm.formData.fileName && vm.formData.fileName != 'no_image.png') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n } else {\r\n vm.photoUrl = vm.noImg;\r\n }\r\n vm.sectionLeaderChangeEnable = true;\r\n\r\n angular.element('#GridRowNB').ejDropDownList('selectItemByValue', vm.formData.gridRecordPerPage);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n function recordPerPageSelect(args) {\r\n vm.formData.gridRecordPerPage = args.value;\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.modifyPermission) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false && !vm.LIMITEDUSER) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'), gettextCatalog.getString('FillTheRequiredFields'));\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n console.log('vm.formData', vm.formData);\r\n dataservice.modifyUserMin(vm.formData).then(function (data) {\r\n if (data) {\r\n dataservice.SetPushNotificationFromWeb(vm.formData.PushNotificationSetting).then(function () {\r\n });\r\n var currentId = parseInt(authenticationService.getAuthData().id);\r\n if (currentId === vm.formData.id) {\r\n $rootScope.$broadcast(AUTH_EVENTS.refreshProfilePic, data.image);\r\n }\r\n paramHelper.setParams([{'gridRecordPerPage': vm.formData.gridRecordPerPage}]);\r\n $rootScope.pageSettings.pageSize = parseInt(vm.formData.gridRecordPerPage);\r\n log.successMsg('UserModified');\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.formData.ferfib ? 'male' : 'female';\r\n vm.formData.fileData = null;\r\n vm.formData.fileName = 'coach_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userManagement.userSettings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.userSettings',\r\n config: {\r\n url: '/userSettings',\r\n templateUrl: 'app/settings/userManagement/userSettings/userSettings.html',\r\n controller: 'userSettingsController',\r\n controllerAs: 'vm',\r\n title: 'UserSettings'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n UserRightsController.$inject = [\"dataservice\", \"log\", \"authenticationService\", \"gettextCatalog\", \"$rootScope\", \"$q\", \"paramHelper\"];\r\n angular\r\n .module('app.settings.userRights')\r\n .controller('UserRightsController', UserRightsController);\r\n\r\n function UserRightsController(dataservice, log, authenticationService, gettextCatalog, $rootScope, $q, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserRights');\r\n\r\n vm.userGroupList = [];\r\n vm.selectedUserGroup = -1;\r\n vm.changeEventActive = false;\r\n vm.defaultUserGroup = undefined;\r\n\r\n // public functions\r\n vm.userGroupDataBound = userGroupDataBound;\r\n vm.userGroupSelect = userGroupSelect;\r\n vm.groupRightsChange = groupRightsChange;\r\n\r\n vm.accessRights = [];\r\n vm.checkedIndices = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTFELHJOG')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getUserGroupDropDownList().then(function () {\r\n paramHelper.getParams([], ['usergroupid']).then(function (results) {\r\n if (results.usergroupid) {\r\n vm.selectedUserGroup = results.usergroupid;\r\n vm.defaultUserGroup = results.usergroupid;\r\n paramHelper.removeParam('usergroupid');\r\n }\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n // Jogosultsági csoportok lekérése\r\n function getUserGroupDropDownList() {\r\n return dataservice.getUserGroupDropDownList()\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', 6);\r\n });\r\n }\r\n\r\n // Jogok lekérése\r\n function getAccessRights() {\r\n dataservice.getAccessRights().then(function (data) {\r\n vm.accessRights = data.itemsList;\r\n getAndSetUserGroupRights(vm.selectedUserGroup);\r\n });\r\n }\r\n\r\n function userGroupDataBound() {\r\n if (vm.defaultUserGroup) {\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', vm.defaultUserGroup);\r\n vm.selectedUserGroup = vm.defaultUserGroup;\r\n } else {\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', vm.userGroupList[0].value);\r\n vm.selectedUserGroup = vm.userGroupList[0].value;\r\n }\r\n if (vm.userGroupList.length >= 1) {\r\n getAccessRights();\r\n }\r\n }\r\n\r\n // Jogosultsági csoport kiválasztás esemény\r\n function userGroupSelect(selectedGroup) {\r\n vm.changeEventActive = false;\r\n if (vm.accessRights.length > 0) {\r\n getAndSetUserGroupRights(selectedGroup.value);\r\n }\r\n }\r\n\r\n // Beállított jogosuoltságok lekérése és beállítása\r\n function getAndSetUserGroupRights(selectedUserGroup) {\r\n return dataservice.getUserGroupRights(selectedUserGroup).then(function (data) {\r\n // ListBox takarítása\r\n ejListBoxEnable();\r\n vm.checkedIndices = [];\r\n vm.changeEventActive = false; // change refresh disable\r\n\r\n // Jogosultságok indexének megkeresése\r\n angular.forEach(data.itemsList, function (right) {\r\n vm.checkedIndices.push(vm.accessRights.findIndex(function (item, index) {\r\n return item.value === this.IdJog ? index : false;\r\n }, right));\r\n });\r\n\r\n // Jogosultságok beállítása\r\n angular.element('#groupRightsList').ejListBox({checkedIndices: vm.checkedIndices});\r\n vm.changeEventActive = true; // change refresh enable\r\n });\r\n }\r\n\r\n // ListBox elemek aktiválása\r\n function ejListBoxEnable() {\r\n for (var index = 0; index < vm.accessRights.length; index++) {\r\n angular.element('#groupRightsList').ejListBox('enableItemByIndex', index);\r\n }\r\n }\r\n\r\n // Jogosultság checkbox megváltozik\r\n function groupRightsChange(changed) {\r\n if (vm.changeEventActive) {\r\n var shortName = changed.data.shortName;\r\n var name = changed.text;\r\n switch (shortName) {\r\n case 'SPORTOLO':\r\n setSpecialPermission(gettextCatalog.getString('SZULOjog') + ', ' + gettextCatalog.getString('ADMINjog') + ', ' + gettextCatalog.getString('EDZOjog') + ', ' + gettextCatalog.getString('GAZDASAGIjog') + ', ' + gettextCatalog.getString('TECHIGAZGATOjog') + ', ' + ' ' + gettextCatalog.getString('SZAKOSZTVEZjog'), changed);\r\n break;\r\n case 'SZULO':\r\n setSpecialPermission(gettextCatalog.getString('SPORTOLOjog') + ', ' + gettextCatalog.getString('ADMINjog') + ', ' + gettextCatalog.getString('EDZOjog') + ', ' + gettextCatalog.getString('GAZDASAGIjog') + ', ' + gettextCatalog.getString('TECHIGAZGATOjog') + ', ' + ' ' + gettextCatalog.getString('SZAKOSZTVEZjog'), changed);\r\n break;\r\n case 'ADMIN':\r\n case 'EDZO':\r\n case 'GAZDASAGI':\r\n case 'TECHIGAZGATO':\r\n case 'SZAKOSZTVEZ':\r\n setSpecialPermission(gettextCatalog.getString('SZULOjog') + ', ' + gettextCatalog.getString('SPORTOLOjog'), changed);\r\n break;\r\n default:\r\n setUserGroupRight(vm.selectedUserGroup, changed);\r\n }\r\n }\r\n }\r\n\r\n function setUserGroupRight(selectedUserGroup, item) {\r\n vm.changeEventActive = false;\r\n return dataservice.setUserGroupRight(selectedUserGroup, item.value, item.isChecked).then(function (data) {\r\n if (data.retValue !== true) {\r\n if (item.isChecked) {\r\n angular.element('#groupRightsList').ejListBox('uncheckItemByIndex', item.index);\r\n } else {\r\n angular.element('#groupRightsList').ejListBox('checkItemByIndex', item.index);\r\n }\r\n }\r\n vm.changeEventActive = true;\r\n }, function () {\r\n if (item.isChecked === true) {\r\n $('#groupRightsList').ejListBox('uncheckItemByIndex', item.index);\r\n } else {\r\n $('#groupRightsList').ejListBox('checkItemByIndex', item.index);\r\n }\r\n vm.changeEventActive = true;\r\n });\r\n }\r\n\r\n function setSpecialPermission(name, changed) {\r\n if (changed.isChecked) {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSetSpecielPermission?'),\r\n text: gettextCatalog.getString('YourPermissionWillBe') + ' ' + name,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('YesSetPermission'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n //closeOnConfirm: false,\r\n //closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (!isConfirm.value) {\r\n angular.element('#groupRightsList').ejListBox('uncheckItemByIndex', changed.index);\r\n } else if (isConfirm.value) {\r\n angular.element('#groupRightsList').ejListBox('checkItemByIndex', changed.index);\r\n setUserGroupRight(vm.selectedUserGroup, changed).then(function () {\r\n getAndSetUserGroupRights(vm.selectedUserGroup);\r\n });\r\n }\r\n });\r\n } else {\r\n setUserGroupRight(vm.selectedUserGroup, changed);\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.userRights')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userRights',\r\n config: {\r\n url: '/userRights',\r\n templateUrl: 'app/settings/userRights/userRights.html',\r\n controller: 'UserRightsController',\r\n controllerAs: 'vm',\r\n title: 'UserRights',\r\n settings: {\r\n navId: 235,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Felhasználói csoport jogosultságok',\r\n orderTitle_en: 'Group Permissions',\r\n parentId: 5,\r\n content: 'UserRights',\r\n activatorPermission: ['\"MEGTFELHJOG\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n UsersBelongingToAthletesController.$inject = [\"logger\", \"log\", \"dataservice\", \"$q\", \"$rootScope\", \"gettextCatalog\", \"authenticationService\", \"$scope\", \"paramHelper\", \"$state\"];\r\n angular\r\n .module('app.settings.usersBelongingToAthletes')\r\n .controller('UsersBelongingToAthletesController', UsersBelongingToAthletesController);\r\n\r\n function UsersBelongingToAthletesController(logger, log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('UsersBelongingToAthletes');\r\n\r\n activate();\r\n\r\n vm.columns = [\r\n {field: 'UserName', headerText: gettextCatalog.getString('UserName'), textAlign: 'center', width: 115, template: '#usbetoattemplateDataColumn1'},\r\n {field: 'UserTeljesNev', headerText: gettextCatalog.getString('UserFullName'), textAlign: 'center', width: 150},\r\n {field: 'szerep', headerText: gettextCatalog.getString('szerep'), textAlign: 'center', width: 125},\r\n {field: 'csoport', headerText: gettextCatalog.getString('User group'), textAlign: 'center', width: 125},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('PrimarySection'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('PrimaryAgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('SportoloNeve'), textAlign: 'center', width: 150, template: '#usbetoattemplateDataColumn2'},\r\n {field: 'Link', headerText: gettextCatalog.getString('unlinkUserFromAthlete'), textAlign: 'center', width: 150, template: '#usbetoattemplateDataColumn3'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n vm.sectionId = 0;\r\n vm.sectionIdValue = undefined;\r\n vm.ageGroupId = 0;\r\n vm.ageGroupIdValue = undefined;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.unlinkUserFromAthlete = unlinkUserFromAthlete;\r\n vm.openUser = openUser;\r\n vm.openAthlete = openAthlete;\r\n vm.getParentAndAthleteUsers = getParentAndAthleteUsers;\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SPTARTMEGT'), paramHelper.getParams([], ['usersBelongingToAthletes.SzakosztalyId', 'usersBelongingToAthletes.KorcsoportId'])]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n if (result[1]['usersBelongingToAthletes.SzakosztalyId']) {\r\n vm.sectionId = result[1]['usersBelongingToAthletes.SzakosztalyId'];\r\n }\r\n if (result[1]['usersBelongingToAthletes.KorcsoportId']) {\r\n vm.ageGroupId = result[1]['usersBelongingToAthletes.KorcsoportId'];\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length > 0) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getParentAndAthleteUsers() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n }\r\n paramHelper.setParams([\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId},\r\n ]);\r\n dataservice.getParentAndAthleteUsers(vm.sectionId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid, szerep) {\r\n if (szerep == 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink and delete the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinkedAndDeleted'));\r\n getParentAndAthleteUsers();\r\n });\r\n }\r\n });\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinked'));\r\n getParentAndAthleteUsers();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function openUser(userid) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': userid},\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id},\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.settings.usersBelongingToAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.usersBelongingToAthletes',\r\n config: {\r\n url: '/usersBelongingToAthletes',\r\n templateUrl: 'app/settings/usersBelongingToAthletes/usersBelongingToAthletes.html',\r\n controller: 'UsersBelongingToAthletesController',\r\n controllerAs: 'vm',\r\n title: 'UsersBelongingToAthletes',\r\n settings: {\r\n navId: 245,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Sportolókhoz tartozó felhasználók',\r\n orderTitle_en: 'Users Belonging to Athletes',\r\n parentId: 5,\r\n content: 'UsersBelongingToAthletes',\r\n activatorPermission: ['\"SPTARTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n SikerMobileController.$inject = [\"$rootScope\", \"gettextCatalog\", \"authenticationService\"];\r\n angular\r\n .module('app.sikerMobile')\r\n .controller('SikerMobileController', SikerMobileController);\r\n\r\n function SikerMobileController($rootScope, gettextCatalog, authenticationService) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SikerMobileMenu');\r\n // $rootScope.$broadcast('autoCloseSideBar');\r\n vm.changeTab = changeTab;\r\n vm.role = '';\r\n vm.mainTab = undefined;\r\n var language = authenticationService.getLanguage();\r\n\r\n var imgAppStore = document.getElementById('AppStore');\r\n imgAppStore.src = '../../images/NoAppStore_' + language + '.png';\r\n\r\n changeTab('Login');\r\n function changeTab(tabName) {\r\n var coach;\r\n switch (tabName) {\r\n case 'Coaches':\r\n vm.role = 'coach';\r\n coach = true;\r\n vm.mainTab = 'Coaches';\r\n break;\r\n case 'Parents':\r\n vm.role = 'parent';\r\n coach = false;\r\n vm.mainTab = 'Parents';\r\n break;\r\n case 'Athletes':\r\n vm.role = 'athlete';\r\n coach = false;\r\n vm.mainTab = 'Athletes';\r\n break;\r\n default: break;\r\n }\r\n\r\n if (!angular.isUndefined(coach) || tabName === 'Login') {\r\n var mainTablinks = document.getElementsByClassName('mainTablinks');\r\n for (i = 0; i < mainTablinks.length; i++) {\r\n if (mainTablinks[i].title !== tabName) {\r\n mainTablinks[i].className = mainTablinks[i].className.replace(' active', '');\r\n } else {\r\n mainTablinks[i].className = mainTablinks[i].className += ' active';\r\n }\r\n }\r\n }\r\n\r\n var tablinks = document.getElementsByClassName('tablinks');\r\n for (i = 0; i < tablinks.length; i++) {\r\n if (tablinks[i].title !== tabName) {\r\n tablinks[i].className = tablinks[i].className.replace(' active', '');\r\n } else {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n }\r\n\r\n //childTabs\r\n if (coach === false && ['Home', 'Schedule', 'Message'].includes(tablinks[i].title)) {\r\n tablinks[i].style.display = 'block';\r\n if (tablinks[i].title === 'Home') {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n tabName = 'Home';\r\n }\r\n } else if (coach === true && ['Attendance', 'Schedule', 'Message'].includes(tablinks[i].title)) {\r\n tablinks[i].style.display = 'block';\r\n if (tablinks[i].title === 'Attendance') {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n tabName = 'Attendance';\r\n }\r\n } else if (angular.isUndefined(coach) && tabName === 'Login') {\r\n tablinks[i].style.display = 'none';\r\n } else if (!angular.isUndefined(coach)) {\r\n tablinks[i].style.display = 'none';\r\n }\r\n }\r\n\r\n var tabs = document.getElementsByClassName('tabcontent');\r\n for (var i = 0; i < tabs.length; i++) {\r\n tabs[i].style.display = 'none';\r\n if (tabs[i].id === tabName) {\r\n tabs[i].style.display = 'block';\r\n }\r\n }\r\n\r\n var img = document.getElementById('mobilImage');\r\n switch (tabName) {\r\n case 'Home':\r\n img.src = '../../images/Mob1' + language + '.png';\r\n break;\r\n case 'Attendance':\r\n img.src = '../../images/Mob2' + language + '.png';\r\n break;\r\n case 'Schedule':\r\n img.src = '../../images/Mob3' + language + '.png';\r\n break;\r\n case 'Message':\r\n switch (vm.role) {\r\n case 'athlete':\r\n img.src = '../../images/Mob4athlete' + language + '.png';\r\n break;\r\n case 'parent':\r\n img.src = '../../images/Mob4parent' + language + '.png';\r\n break;\r\n case 'coach':\r\n img.src = '../../images/Mob4coach' + language + '.png';\r\n break;\r\n default:\r\n img.src = '../../images/Mob4athlete' + language + '.png';\r\n break;\r\n }\r\n break;\r\n case 'Login':\r\n img.src = '../../images/Mob0' + language + '.png';\r\n break;\r\n default:\r\n }\r\n }\r\n }\r\n})();\r\n\n(function () {\r\n 'use strict';\r\n\n appRun.$inject = [\"routerHelper\"];\r\n angular\r\n .module('app.sikerMobile')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'sikerMobile',\r\n config: {\r\n url: '/sikerMobile',\r\n templateUrl: 'app/sikerMobile/sikerMobile.html',\r\n controller: 'SikerMobileController',\r\n controllerAs: 'vm',\r\n title: 'SikerMobileMenu',\r\n // settings: {\r\n // navId: 10,\r\n // level: 1,\r\n // order: 11,\r\n // parentId: 0,\r\n // content: 'SikerMobileMenu',\r\n // }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n\nangular.module('app.core').run(['$templateCache', function($templateCache) {$templateCache.put('app/administration/administration.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athleteDashboard/athleteDashboard.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/athletes/athletes.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/business/business.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/dashboard/dashboard.html','<section id=dashboard-view class=mainbar><div class=container-fluid><div class=row style=\"margin-top: 2em;\" data-ng-if=\"vm.FOLAPLEJARO && vm.datagridExpiringDocuments.length>0\"><div class=col-md-12><div class=\"panel panel-danger\"><div class=panel-heading><h2 class=page-title translate>Documents expiring inside a month</h2></div><div class=panel-body><div><div id=gridExpiringDocuments name=gridExpiringDocuments class=slim-grid></div></div></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROJELENLETIK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedMonthlyAttendance]\"><h2 class=page-title translate>Monthly presence summarising ones waiting for approval</h2></div><div class=widget-content ng-if=\"vm.dataMonthlyAttendance.length > 0\"><div id=gridMonthlyAttendance name=gridMonthlyAttendance class=slim-grid></div></div><div ng-if=\"vm.dataMonthlyAttendance.length === 0 && vm.allowGetUnAcceptedMonthlyAttendance === true\"><label class=widgetlabel translate>There are not monthly presence summarising ones waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedMonthlyAttendance === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROHAVITERVEK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedMonthlyCompetitionPlan]\"><h2 class=page-title translate>Monthly competition plans waiting for approval</h2></div><div ng-if=\"vm.dataMonthlyCompetitionPlan.length > 0\" class=widget-content allow-collapse=true><div id=gridMonthlyMonthlyCompetitionPlan name=gridMonthlyMonthlyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataMonthlyCompetitionPlan.length === 0 && vm.allowGetUnAcceptedMonthlyCompetitionPlan === true\"><label class=widgetlabel translate>There are not monthly competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedMonthlyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROHETITERV><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedWeeklyCompetitionPlan]\"><h2 class=page-title translate>Weekly competition plans waiting for approval</h2></div><div ng-if=\"vm.dataWeeklyCompetitionPlan.length > 0\" class=widget-content allow-collapse=true><div id=gridWeeklyCompetitionPlan name=gridWeeklyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataWeeklyCompetitionPlan.length === 0 && vm.allowGetUnAcceptedWeeklyCompetitionPlan === true\"><label class=widgetlabel translate>There are no weekly competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedWeeklyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROEVESTERVEK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedYearlyCompetitionPlan]\"><h2 class=page-title translate>Year competition plans waiting for approval</h2></div><div ng-if=\"vm.dataYearlyCompetitionPlan.length>0\" class=widget-content allow-collapse=true><div id=gridYearlyCompetitionPlan name=gridYearlyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataYearlyCompetitionPlan.length===0 && vm.allowGetUnAcceptedYearlyCompetitionPlan === true\"><label class=widgetlabel translate>There are not year competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedYearlyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPKIFIZETETLENTAGDIJAK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnPaidFees || vm.allowGetUnPaidFeesTrainer]\"><h2 class=page-title translate>Sport service fees not paid</h2></div><div ng-if=\"vm.dataUnpaidFees.length>0\" class=widget-content allow-collapse=true><div id=gridUnpaidFees name=gridUnpaidFees></div></div><div ng-if=\"vm.dataUnpaidFeesTrainer.length>0\" class=widget-content allow-collapse=true><div id=gridUnpaidFeesTrainer name=gridUnpaidFeesTrainer class=slim-grid></div></div><div ng-if=\"(vm.dataUnpaidFees.length===0 && vm.allowGetUnPaidFees === true) || (vm.dataUnpaidFeesTrainer.length===0 && vm.allowGetUnPaidFeesTrainer === true)\"><label class=widgetlabel translate>There are not sport service fees not paid.</label></div><div ng-if=\"(vm.dataUnpaidFees.length===0 && vm.allowGetUnPaidFees === false) && (vm.dataUnpaidFeesTrainer.length===0 && vm.allowGetUnPaidFeesTrainer === false)\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div id=folaplinkek data-ng-if=vm.allowFOLAPLINKEK><div class=row style=\"margin-top: 2em;\"><div class=col-md-12><div id=popup><div id=newlink ej-dialog e-height=450px e-minheight=450px e-maxheight=450px e-title={{vm.LinkData}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-target=#folaplinkek e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=LinkAddress label=LinkAddress data-ng-model=vm.newLink.Hivatkozas></cts-text-box><cts-text-box name=LinkDesc label=LinkDesc data-ng-model=vm.newLink.Link></cts-text-box><cts-text-area name=linkComment label=LinkComment data-ng-model=vm.newLink.Megjegyzes></cts-text-area></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.newLinkSave() type=button translate>Save</button> <button class=\"cts-button red\" id=cancel data-ng-click=vm.closenewLinksWindow() type=button translate>Cancel</button></div></div></div></div><div id=popup><div id=editLinks ej-dialog e-height=450px e-minheight=450px e-maxheight=500px e-title={{vm.LinkData}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#folaplinkek><div class=col-md-12><form name=form class=popup><cts-text-box name=LinkAddress label=LinkAddress data-ng-model=vm.editedLink.Hivatkozas></cts-text-box><cts-text-box name=LinkDesc label=LinkDesc data-ng-model=vm.editedLink.Link></cts-text-box><cts-text-area name=linkComment label=LinkComment data-ng-model=vm.editedLink.Megjegyzes></cts-text-area></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.editLinkSave() type=button translate>Save</button> <button class=\"cts-button red\" id=cancel data-ng-click=vm.closeeditLinksWindow() type=button translate>Cancel</button></div></div></div></div><div class=widget><div class=widget-head><h2 class=page-title translate>Useful links</h2></div><div class=widget-content><form class=filter name=form><div class=button-wrapper><button id=addNewLinkbtn class=cts-button ej-button e-click=vm.addNewLink data-ng-if=vm.FOLAPLINKEK translate>AddNewLink</button></div></form><div id=gridLinks name=gridLinks class=slim-grid></div></div></div></div></div></div></div></section><script id=templateColumnETHetiEdzo type=text/x-template><a data-ng-click=\"vm.goToNewUser(${edzoid})\">${edzo}</a></script><script id=datemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script id=datemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAthletes(${SportoloId})\">${SportoloNeve}</a></script><script id=datemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=datemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.goToMonthlyAttendance(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=datemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.goToMonthlyCompetitonPlan(${Id}, ${EdzoId}, ${SzakosztalyId})\" ><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=datemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn9 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script id=datemplateDataColumn10 type=text/x-template><a data-ng-click=\"vm.openSportServiceFeeRegister(${SzakosztalyId},${EdzoId})\" translate>PayIn</a></script><script id=datemplateDataColumn11 type=text/x-template><a data-ng-click=\"vm.openSportServiceFeeArrears(${SzakosztalyId},${EdzoId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn12 type=text/x-template><a data-ng-click=\"vm.goToNewAthletes(${SportoloId})\">${SportoloNeve}</a></script><script id=datemplateDataColumn13 type=text/x-template><div class=\"form-group cts-form-group chkbox\"> <input id=\"${SportoloId}\" ej-checkbox e-enabled=\"false\" e-checked=\"${Aktiv}\"> </div></script><script id=datemplateDataColumn14 type=text/x-template><a href=\"${Link}\" target=\"_blank\">${Hivatkozas}</a></script><script id=datemplateDataColumn15 type=text/x-template><a data-ng-click=\"vm.editLink(${Id})\" translate>Edit</a>    <a data-ng-click=\"vm.deleteLink(${Id})\" translate>Delete</a></script><script id=templateColumnETHetiLink type=text/x-template><a data-ng-click=\"vm.openWeeklyPlan(${tervid})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=printDialog><report report-name=TFolapReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/core/404.html','<section id=dashboard-view class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>404</h2></div><div class=\"widget-content text-center text-info\"><div class=container-fluid><img src=../../images/404_cat.png alt=\"404 cat\" style=\"max-width: 644px; width: 100%; height: auto;\"><p>Az \\xE1ltalad keresett oldal nem tal\\xE1lhat\\xF3!</p><button class=cts-button data-ng-click=back()>Vissza</button> | <button class=cts-button data-ng-if=\"vm.userPermission === \\'5\\'\" ui-sref=parentDashboard>Kezd\\u0151lap</button> <button class=cts-button data-ng-if=\"vm.userPermission !== \\'5\\'\" ui-sref=dashboard>Kezd\\u0151lap</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/layout/shell.html','<div ng-controller=\"ShellController as vm\"><header data-ng-if=vm.isAuthenticated class=clearfix><nav class=\"navbar navbar-fixed-top navbar-inverse\" style=\"height: 50px !important;\"><h1 class=navbar-brand style=\"overflow: hidden\"><a data-ng-click=vm.goToDashboard() style=\"overflow: hidden;display: block;\"><div class=cts-logo style=\"overflow: hidden; float: left; text-align: center; margin: 0 15px 0 15px; padding: 0;\"><img class=logo src=images/logo_min.png style=\"float:left; height: 40px; margin: 5px 15px 5px 0;\"> <img src=images/felirat_min.png style=\"float:left; height: 40px; margin: 5px 0 5px 0;\"></div></a></h1><div style=text-align:center;><img class=logo ng-src=/images/partnerlogo.png onerror=\"this.style.display=\\'none\\'\" style=\"position:absolute; top:0; left:50%; height: 50px !important; margin: 0; padding: 0 0 0 0; vertical-align: top; transform: translate(-50%,0);\" data-ng-class=\"{\\'small-logo\\': vm.partnerLogoSmall === true}\"></div><div class=pull-right><ul class=\"nav pull-right\"><li class=dropdown style=\"float: right; min-width: 160px;\"><a class=dropdown-toggle data-toggle=dropdown aria-haspopup=true aria-expanded=false id=userNav><span><img class=\"img-rounded profile-image\" name=profile-img ng-src={{vm.pictureBasePath}}{{vm.authData.picture}}></span>{{vm.authData.userFullName}}<span class=caret></span></a> <a class=dropdown-toggle data-toggle=dropdown aria-haspopup=true aria-expanded=false id=userNavSM><span><img class=\"img-rounded profile-image\" name=profile-img ng-src={{vm.pictureBasePath}}{{vm.authData.picture}}></span></a><ul class=dropdown-menu><li><a data-ng-click=vm.goToProfile()><i class=\"glyphicon glyphicon-user\"></i><translate>Profile</translate></a></li><li><a ng-click=vm.openPasswordDialog()><i class=\"glyphicon glyphicon-lock\"></i><translate>ChangePassword</translate></a></li><li role=separator class=divider></li><li><a data-ng-click=vm.logout()><i class=\"glyphicon glyphicon-log-out\"></i><translate>Logout</translate></a></li></ul></li></ul></div></nav></header><section style=\"overflow: inherit;\"><div data-ng-class=\"{sideMenuOpened: sideMenuOpened, sideMenuClosed: !sideMenuOpened}\" class=sidebar-include data-ng-if=vm.isAuthenticated ng-include=\"\\'app/layout/sidebar.html\\'\" style=\"position: fixed; z-index: 10; float: left; height: 100%; top:50px;\"></div><div id=mainContent ui-view data-ng-class=\"{sideMenuOpenedContent: sideMenuOpened, sideMenuClosedContent: !sideMenuOpened}\"></div></section></div>');\n$templateCache.put('app/layout/sidebar.html','<div ng-controller=\"SidebarController as vm\" style=\"height: 100%;\"><ht-sidebar when-done-animating=vm.sidebarReady()><div><button data-ng-class=\"{sideMenuOpenedButton: !sideMenuOpened, sideMenuClosedButton: sideMenuOpened}\" style=\"position: absolute; transition: 0.3s all linear; border-radius: 0; top: 0px; right: 0px; width: 50px; height: 40px; z-index: 999; background-color: transparent; border: none; outline: none;\" data-ng-click=sideMenuClose()><span class=\"glyphicon glyphicon-menu-left\"></span></button> <button data-ng-class=\"{sideMenuOpenedButton: sideMenuOpened, sideMenuClosedButton: !sideMenuOpened}\" style=\"background-color: #232D32; border: none; outline: none;\" data-ng-click=sideMenuOpen()><span class=\"glyphicon glyphicon-menu-right\"></span></button></div><div class=sidebar-filler></div><div class=sidebar-dropdown><a href=# translate>Menu</a></div><div class=sidebar-inner><ul class=navi><li class={{vm.isCurrent(r)}} data-ng-repeat=\"r in navRoutes\" data-ng-class=\"{\\'open\\': vm.level1Open === r.settings.navId, \\'disabledMenuItem\\': !vm.checkUserLevel(r.settings.permission) || !vm.checkPermissionGroup(r.settings.activatorPermission)}\" data-ng-if=\"((vm.checkUserLevel(r.settings.permission) && vm.checkPermissionGroup(r.settings.activatorPermission)) || !INAKTIVMENUREJTES) && !vm.hideAnyWay(r.settings.permission)\"><i class=\"fas {{r.settings.faIcon}}\"></i><a data-ng-click=\"vm.menuItemClicked(r, 1)\">{{r.settings.content|translate}} <span class=\"label label-danger\" ng-if=\"r.settings.content == \\'MessageCenter\\' && vm.messageCount > 0\">{{vm.messageCount}}</span></a><ul data-ng-if=\"r.settings.childRoutes !== undefined && r.settings.childRoutes.length !== 0\"><li class=\"fade-selection-animation {{vm.isCurrent(s)}}\" data-ng-repeat=\"s in r.settings.childRoutes\" data-ng-class=\"{\\'open\\': vm.level2Open === s.settings.navId, \\'disabledMenuItem\\': !vm.checkUserLevel(s.settings.permission) || !vm.checkPermissionGroup(s.settings.activatorPermission)}\" data-ng-if=\"vm.authenticated && (vm.checkPermissionGroup(s.settings.activatorPermission) && vm.checkUserLevel(s.settings.permission)) || !INAKTIVMENUREJTES\"><a data-ng-click=\"vm.menuItemClicked(s, 2)\"><span class=\"glyphicon glyphicon-menu-right\" data-ng-if=\"s.settings.childRoutes !== undefined && s.settings.childRoutes.length !== 0\" data-ng-class=\"{\\'open\\' : vm.level2Open === s.settings.navId}\"></span> {{s.settings.content|translate}}</a><ul data-ng-if=\"s.settings.childRoutes !== undefined && s.settings.childRoutes.length !== 0\"><li class=\"fade-selection-animation {{vm.isCurrent(t)}}\" data-ng-repeat=\"t in s.settings.childRoutes\" data-ng-class=\"{\\'disabledMenuItem\\': !vm.checkUserLevel(t.settings.permission) || !vm.checkPermissionGroup(t.settings.activatorPermission)}\" data-ng-if=\"vm.authenticated && (vm.checkUserLevel(t.settings.permission) && vm.checkPermissionGroup(t.settings.activatorPermission)) || !INAKTIVMENUREJTES\"><a data-ng-click=\"vm.menuItemClicked(t, 3)\">{{t.settings.content|translate}}</a></li></ul></li></ul></li></ul><div id=footer><a href=http://www.cts.hu target=_blank><img src=../../images/cts_logo.png width=115></a> <a href=http://www.sikerszoftver.hu target=_blank>{{vm.buildNumber}}</a><div id=App style=\"float: left\"><a data-ng-click=vm.goToMobilePage() style=\"float: left;\"><img id=NoAppStoreSB src=../../images/AppStore.png width=100></a> <a data-ng-click=vm.goToMobilePage() style=\"float: left;\"><img src=../../images/GooglePlay.png width=100></a></div></div></div></ht-sidebar></div>');\n$templateCache.put('app/login/login.html','<div ng-if=!vm.isAuthenticated class=profile-background><div class=loginShowDiv><div class=login-center><div class=container-fluid><div class=\"card-container card\"><span class=loginTitle><translate>AccountLogin</translate></span> <span data-ng-show=vm.sessionTimeout class=sessionTimeout>Munkamenet lej\\xE1rt!</span><form role=form class=form-horizontal name=vm.frmLogin id=frmLogin novalidate data-ng-submit=vm.login()><div class=form-group><input id=loginName type=text class=\"form-control baseInputStyle\" ng-enter=vm.login() placeholder=\"{{\\'Username\\'|translate}}\" name=loginName data-ng-change=vm.changeLoginName() data-ng-model=vm.loginName autofocus ng-maxlength=30 ng-required-err-type=requiredUserName data-ng-blur=vm.loginFocusOut() required></div><div class=form-group><input id=password type=password class=\"form-control baseInputStyle password\" data-ng-change=vm.changePassword() ng-enter=vm.login() placeholder=\"{{\\'Password\\'|translate}}\" name=password data-ng-model=vm.password ng-required-err-type=requiredPassword required></div><div class=form-group><input id=availableLang class=dropDownlist placeholder=\"{{\\'Languages\\'|translate}}\" ej-dropdownlist e-change=vm.changeLanguage e-template=vm.languageTemplate e-width=100% e-datasource=vm.availableLanguages></div><div class=form-group><button class=\"btn btn-primary col-xs-12\" type=submit translate>Login</button></div></form></div></div></div></div><script type=text/javascript>\\r\\n //Background Image Move on Mousemove - START\\r\\n /*\\r\\n $(\\'.profile-background\\').mousemove(function (e) {\\r\\n console.log(e);\\r\\n var moveX = (e.pageX * -1 / 15);\\r\\n var moveY = (e.pageY * -1 / 15);\\r\\n $(this).css(\\'background-position\\', moveX + \\'px \\' + moveY + \\'px\\')\\r\\n });\\r\\n */\\r\\n //Background Image Move on Mousemove - END\\r\\n $(function() {\\r\\n var movementStrength = 25;\\r\\n var height = movementStrength / $(window).height();\\r\\n var width = movementStrength / $(window).width();\\r\\n $(\".profile-background\").mousemove(function(e){\\r\\n //console.log(e);\\r\\n var pageX = e.pageX - ($(window).width() / 2);\\r\\n var pageY = e.pageY - ($(window).height() / 2);\\r\\n var newvalueX = width * pageX * -1 - 25;\\r\\n var newvalueY = height * pageY * -1 - 50;\\r\\n $(\\'.profile-background\\').css(\"background-position\", newvalueX+\"px \"+newvalueY+\"px\");\\r\\n });\\r\\n });\\r\\n </script></div>');\n$templateCache.put('app/other/other.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/messageCenter/messageCenter.html','<section class=\"mainbar borderless\" style=\"margin-top: -1px;\"><div class=row style=padding:0;><div style=\"padding: 0;\"><form name=form class=filter><div id=mainPage-message-wrapper><div class=\"col-lg-2 col-sm-3 col-xs-2\" id=message-list><h3 class=msgHeading translate>msgMsgList</h3><button class=msgButton data-ng-click=\"vm.toolbarClick(\\'new_msg\\')\" translate>NewMessage</button><div class=message-list-item ng-repeat=\"mess in vm.dataMessages track by $index\" data-ng-click=vm.messageClicked($index) data-ng-if=\"mess.FeladoId != mess.CimzettId\" data-ng-class=\"{selected: (mess.TargyId === vm.openedMessageTargyId)}\"><div class=message-list-item-main><div id=avatar><p id=newBadge ng-if=\"mess.Olvasott == false\" translate>New</p><img data-ng-src={{vm.profileImgBaseUrl}}{{mess.KivelKep}} width=30 height=30 data-ng-if=\"mess.KivelId.length == 1\"> <img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30 data-ng-if=\"mess.KivelId.length > 1\"></div><div><p id=recipient ng-class=\"{\\'message-list-item-header\\': mess.Olvasott === false}\">{{mess.Kivel}}</p><p class=message-list-item-date>| {{mess.MobilDatum}}</p></div><p id=message ng-class=\"{\\'message-list-item-header\\': mess.Olvasott === false}\" class=message-list-item-short-message>{{mess.Uzenet}}</p></div></div></div><div class=\"col-lg-8 col-sm-6 col-xs-10\" id=message-body><div id=message-options class=row><button class=recipientsBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.recipientsListSm(\\'open\\')\" translate>recipients</button> <button class=delBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.toolbarClick(\\'del_msg\\')\" translate>HideMessage</button> <button class=unSubBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false && vm.userid != vm.topicStarter) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.toolbarClick(\\'unsub_msg\\')\" translate>UnsubMsg</button></div><div id=message-detail><div id=startPage ng-if=\"vm.SelectedMessageDateSource==null && vm.newMessage == false && vm.openedMessageTargyId == null\"><div id=letter-parent><div id=letter-guy></div></div><h3>{{vm.unreadCount}} <span translate>MsgUnreadMessages</span></h3><h3 translate>MsgSelectAMessage</h3><h3><a ng-click=\"vm.toolbarClick(\\'new_msg\\')\" translate>MsgWriteNewMessage</a></h3></div><div id=messages-body ng-if=\"vm.SelectedMessageDateSource!=null\"><div ng-repeat=\"Message in vm.SelectedMessageDateSource track by $index\" ng-init=\"$last ? vm.finished() : angular.noop()\" style=\"text-align: left;\"><div class=messenger-message-item ng-class=\"{\\'sender\\': Message.Kuldott === true}\"><p class=nev>{{Message.Felado}}</p><div><img class=felado data-ng-src={{vm.profileImgBaseUrl}}{{Message.FeladoKep}} width=30 height=30><div class=message-wrapper ng-class=\"{\\'last\\': $last}\"><p class=message data-ng-if=\"Message.images == null || (!Message.Uzenet.startsWith(\\'K\\xE9p\\') && !Message.Uzenet.startsWith(\\'Image\\'))\">{{Message.Uzenet}}</p><div class=message-images ng-if=\"Message.images != null\"><div data-ng-repeat=\"image in Message.images\" class=message-image><a href={{vm.messageImagesUrl}}{{image}}><img data-ng-src={{vm.messageImagesUrl}}{{image}}></a> <img id=deleteImage src=../../images/Uzenetek/msg_del.png width=15 height=15 data-ng-click=\"vm.deleteImage(image, Message.FeladoId)\" ng-show=\"Message.Kuldott === true\"></div></div><p class=datum>{{Message.MobilDatum}}</p><div class=seenBox><span ng-if=\"Message.SeenByImgs !== null\" ng-repeat=\"seenImg in Message.SeenByImgs track by $index\"><img ng-if=\"Message.SeenBy[$index] != vm.userid\" class=seenByImg data-ng-src={{vm.profileImgBaseUrl}}{{seenImg}} title={{vm.getSeenName(Message.SeenBy[$index])}}></span></div></div></div></div></div></div></div><div id=message-write-container ng-show=\"vm.SelectedMessageDateSource != null || vm.newMessage || vm.openedMessageTargyId != null\"><div id=msgImg><div data-ng-repeat=\"image in files\" class=msgImgDisplay><div><a data-ng-click=vm.deleteAttachedImg($index)><img class=delCross src=../../images/Uzenetek/msg_del.png width=50px height=50px title=\"{{\\'Delete\\'|translate}}\"></a> <img src={{imageDatas[$index]}} width=50 height=50></div></div></div><input id=addFile name=addFile type=file ng-file-select=vm.onFileSelect($files) style=\"display: none;\" multiple accept=.jpg,.png><div class=input-group><span class=input-group-btn><label for=addFile style=\"display: inline-block !important;\" id=attachment_btn class=\"btn btn-default\"><span class=\"glyphicon glyphicon-paperclip\"></span></label></span> <input type=text class=form-control placeholder=\"{{\\'Message\\'|translate}}\" data-ng-model=vm.Message id=messageInput> <span class=input-group-btn><button class=\"btn btn-default\" type=button data-ng-click=vm.messageSend() data-ng-if=\"vm.SelectedMessageDateSource != null || vm.newMessage || vm.openedMessageTargyId != null\"><span class=\"glyphicon glyphicon-send\"></span></button></span></div></div></div><div class=\"col-lg-2 col-sm-3\" id=recipients-wrapper><div id=recipient-container><h3 class=msgHeading data-ng-if=\"vm.SelectedMessageDateSource != null\" translate>recipients</h3><div style=\"text-align: center;\"><button class=\"msgButton red\" id=closeBtn data-ng-click=\"vm.recipientsListSm(\\'close\\')\" translate>Close</button> <button class=msgButton data-ng-if=\"vm.userid == vm.topicStarter && vm.SelectedMessageDateSource != null\" data-ng-click=vm.addUser() translate>Add</button></div><div data-ng-repeat=\"recipient in vm.recipients track by $index\" ng-if=\"vm.SelectedMessageDateSource != null\"><div class=recipient-images data-ng-if=\"recipient.value != vm.userid\"><a data-ng-click=vm.removeUser($index)><img class=delCross src=../../images/Uzenetek/msg_del.png width=24 height=24></a> <img data-ng-src={{vm.profileImgBaseUrl}}{{recipient.fenykep}} width=30 height=30> <span>{{recipient.text}}</span><br></div></div></div><div id=addUser><h3 class=msgHeading translate>msgUsers</h3><div class=row style=\"border: none; padding: 0;\"><div class=col-md-6><button class=\"msgButton green\" data-ng-click=vm.addUserDone() data-ng-if=\"vm.newMessage === false\" translate>Save</button></div><div class=col-md-6><button class=\"msgButton red\" data-ng-click=vm.addUserCancel() translate>msgCancel</button></div></div><input type=text id=searchInput ng-model=vm.searchInput placeholder=\"{{\\'Select\\'|translate}}...\" ng-change=vm.searchUsers(vm.searchInput)><div id=searchResult ng-if=\"vm.searchInput != \\'\\'\"><ul style=\"display: block;\"><li ng-repeat=\"res in vm.results track by $index\" data-ng-click=vm.selectUser(res) data-ng-class=\"{\\'green\\': vm.tempRec.includes(res)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{res.fenykep}} width=30 height=30>{{res.text}}</li></ul></div><div ng-show=\"vm.searchInput == \\'\\'\"><div><span class=cimjegyzek translate>msgUsers</span><ul><li data-ng-if=\"(user.group == \\'Felhaszn\\xE1l\\xF3k\\' || user.group == \\'Users\\') && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgUserGroups</span><ul><li data-ng-if=\"user.group == \\'Felhaszn\\xE1l\\xF3i csoportok\\' || user.group == \\'User Groups\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div><span class=cimjegyzek translate>msgAthletes</span><ul><li data-ng-if=\"user.group == \\'Sportol\\xF3k\\' && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div><span class=cimjegyzek translate>msgParents</span><ul><li data-ng-if=\"user.group == \\'Sz\\xFCl\\u0151k\\' && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgSectionsCoaches</span><ul><li data-ng-if=\"user.group == \\'Szakoszt\\xE1ly edz\\u0151i\\' || user.group == \\'Section\\\\\\'s coaches\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgTeamAthletes</span><ul><li data-ng-if=\"user.group == \\'Csapat sportol\\xF3i\\' || user.group == \\'Team\\\\\\'s Athletes\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgTeamAthletesParents</span><ul><li data-ng-if=\"user.group == \\'Szakoszt\\xE1ly edz\\u0151i\\' || user.group == \\'Team\\\\\\'s Parents\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgAgegroupAthletes</span><ul><li data-ng-if=\"user.group == \\'Koroszt\\xE1ly sportol\\xF3i\\' || user.group == \\'Age Group\\\\\\'s Athletes\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgAgeGroupParents</span><ul><li data-ng-if=\"user.group == \\'Koroszt\\xE1ly sz\\xFCl\\u0151i\\' || user.group == \\'Age Group\\\\\\'s Parents\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div></div></div></div></div></form></div></div></section>');\n$templateCache.put('app/paint/paint.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content paint\"><div><form class=filter novalidate name=form enctype=multipart/form-data><div class=button-wrapper style=\"padding: 0;\"><button data-ng-click=vm.deleteAll() title=\"{{\\'paintNewFigure\\'|translate}}\" style=\"background: url(\\'/images/new.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button> <button data-ng-click=vm.save() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSaveFigure\\'|translate}}\" style=\"background: url(\\'/images/save.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button> <button data-ng-click=vm.deletePaint() data-ng-disabled=!vm.deleteEnabled title=\"{{\\'paintDeleteFigure\\'|translate}}\" style=\"background: url(\\'/images/trash.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button></div><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.sectionDropDownEnabled></cts-dropdown-list><cts-dropdown-list name=agegroupDropDown label=AgeGroup value=vm.agegroupId datasource=vm.ageGroupList databound=vm.agegroupDataBound select=vm.agegroupSelect validation-rules=\"{required: false}\" enabled=vm.sectionDropDownEnabled></cts-dropdown-list><cts-text-box name=paintName label=Name data-ng-model=vm.paintName validation-rules=\"{required: true}\" owndisabled=!vm.sectionDropDownEnabled></cts-text-box><cts-check-box name=publicCheckBox label=\"{{\\'Public\\'|translate}}\" checked=vm.public change=vm.publicCheckboxChanged enabled=vm.checkBoxEnabled></cts-check-box></form></div><div class=\"row pull-left\" style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.undo() data-ng-disabled=\"!(vm.stateId > 0) || !vm.checkBoxEnabled\" title=\"{{\\'paintUndo\\'|translate}}\" style=\"background: url(\\'/images/undo.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.redo() data-ng-disabled=\"!vm.redoEnable || !vm.checkBoxEnabled\" title=\"{{\\'paintRedo\\'|translate}}\" style=\"background: url(\\'/images/redo.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button style=\"background: url(\\'/images/pipe.png\\'); background-size: cover; width: 20px; height: 40px; border-color: #fff !important;cursor: default;\"></button> <button data-ng-class=\"{active: vm.activeMode === 0}\" data-ng-click=vm.pen() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintPenTool\\'|translate}}\" style=\"background: url(\\'/images/pen.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 1}\" data-ng-click=vm.select() title=\"{{\\'paintSelectTool\\'|translate}}\" data-ng-disabled=\"vm.activeMode === 1 || !vm.checkBoxEnabled\" style=\"background: url(\\'/images/select.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.deleteObject() title=\"{{\\'paintDeleteObject\\'|translate}}\" data-ng-disabled=\"vm.activeMode === 0 || !vm.clickedElement || !vm.checkBoxEnabled\" style=\"background: url(\\'/images/delete.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 2}\" data-ng-click=vm.resizeObject() title=\"{{\\'paintResizeObject\\'|translate}}\" data-ng-disabled=\"(vm.activeMode === 2 || !vm.checkBoxEnabled) || vm.enabledResizeRotate === false\" style=\"background: url(\\'/images/resize.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 3}\" data-ng-click=vm.rotateObject() title=\"{{\\'paintRotateObject\\'|translate}}\" data-ng-disabled=\"(vm.activeMode === 3 || !vm.checkBoxEnabled) || vm.enabledResizeRotate === false\" style=\"background: url(\\'/images/rotate.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addRect() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintRectangular\\'|translate}}\" style=\"background: url(\\'/images/rect.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addTriangle() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintTriangle\\'|translate}}\" style=\"background: url(\\'/images/triangle.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addPentagon() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintPentagon\\'|translate}}\" style=\"background: url(\\'/images/sokszog.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addCircle() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintCircle\\'|translate}}\" style=\"background: url(\\'/images/circle.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addLine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintLine\\'|translate}}\" style=\"background: url(\\'/images/line.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addDashedLine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintDottedLine\\'|translate}}\" style=\"background: url(\\'/images/dline.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addDashedLine2() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintDashedLine\\'|translate}}\" style=\"background: url(\\'/images/dline2.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addArrow() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintArrow\\'|translate}}\" style=\"background: url(\\'/images/arrow.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addSine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintSine\\'|translate}}\" style=\"background: url(\\'/images/sine.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addFootball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintFootball\\'|translate}}\" style=\"background: url(\\'/images/football_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addBasketball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintBasketball\\'|translate}}\" style=\"background: url(\\'/images/basketball_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addHandball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintHandball\\'|translate}}\" style=\"background: url(\\'/images/handball_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addHockeyPuck() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintHockeyPuck\\'|translate}}\" style=\"background: url(\\'/images/hockey_puck.png\\') no-repeat center center; background-size: 20px 20px; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addCone() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintCone\\'|translate}}\" style=\"background: url(\\'/images/cone.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addGoal1() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintGoal\\'|translate}}\" style=\"background: url(\\'/images/goal1.png\\'); background-size: cover; width: 20px; height: 40px;\"></button></div><div class=row style=\"clear: both;\"><div class=pull-left><input type=text id=Background placeholder=paintBackground></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=LineSize placeholder=\"{{\\'paintLineWidth\\'|translate}}\"></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=Color></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=TextColor></div><button class=pull-left data-ng-click=vm.getColor() data-ng-disabled=\"vm.activeMode === 0 || !vm.clickedElement || (vm.clickedElement && !vm.clickedElement.color) || !vm.checkBoxEnabled\" title=\"{{\\'paintColorPicker\\'|translate}}\" style=\"background: url(\\'/images/eyedropper.png\\'); background-size: cover; width: 40px; height: 40px; margin-top: 0; margin-left: 1em;\"></button><form style=\"margin-left: 0.5em; overflow: hidden; float: left;\"><input type=text class=form-control data-ng-model=vm.label data-ng-disabled=\"vm.clickedElement === null\" style=\"width: 20em; margin-top: 0.3em; float: left;\" placeholder=\"{{\\'paintLabel\\'|translate}}\"> <button data-ng-click=vm.changedLabel() data-ng-disabled=\"vm.clickedElement === null || !vm.checkBoxEnabled\" title=\"{{\\'paintSaveLabel\\'|translate}}\" style=\"background: url(\\'/images/save.png\\'); background-size: cover; width: 40px; height: 40px; float: left; margin-left: 0.5em;\"></button></form></div><div class=row style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.saveAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSaveFrame\\'|translate}}\" style=\"background: url(\\'/images/saveAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.addAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintAddFrame\\'|translate}}\" style=\"background: url(\\'/images/addAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.deleteAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintDeleteFrame\\'|translate}}\" style=\"background: url(\\'/images/deleteAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(3) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay\\'|translate}}\" style=\"background: url(\\'/images/play1.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(2) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay2x\\'|translate}}\" style=\"background: url(\\'/images/play2.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(1) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay3x\\'|translate}}\" style=\"background: url(\\'/images/play3.png\\'); background-size: cover; width: 40px; height: 40px;\"></button></div><div class=row style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.selectAnimation($index) data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSelectFrame\\'|translate}}\" data-ng-repeat=\"animation in vm.animationStates track by $index\" style=\"width: 40px; height: 40px;\">{{$index + 1}}</button></div><div id=canvasWrapper><canvas id=canvas style=\"background-color: #FAFAFA;\">This text is displayed if your browser does not support HTML5 Canvas.</canvas></div><div class=col-sm-12 style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/parentDashboard/parentDashboard.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><cts-dropdown-list name=athletesofuser label=Athlete datasource=vm.athletesofuser value=vm.selectedAthlete ng-if=vm.SZULO></cts-dropdown-list><div class=button-wrapper><button class=cts-button data-ng-if=\"vm.selectedAthlete>0 || vm.SPORTOLO\" ej-button e-click=vm.modifyAthleteData translate>ModifyAthleteData</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/parentMonthlyAttendance/parentMonthlyAttendance.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=row><h2 translate>HianyzasBejelentese</h2><form name=form class=filter><cts-dropdown-list name=athleteDropDown value=vm.athleteId label=Athlete datasource=vm.athleteList databound=vm.athleteDataBound select=vm.athleteSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepicker label=HianyzasNapja value=vm.dateValue validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.saveDate translate>Igazolom</button></div></form></div><div class=row><div class=col-xs-12><h2 translate>Hianyzasok</h2><div id=Grid name=Grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/reports/reports.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/schedule/schedule.html','<section class=mainbar><div class=container-fluid><div class=row><div id=popup><div id=directory ej-dialog e-height=690px e-minheight=690px e-maxheight=690px e-width=900px e-title={{vm.EditMessageText}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div id=toolbarPopup ej-toolbar e-datasource=vm.toolbarPopupItems e-fields-tooltiptext=tooltiptext e-enable-separator=true e-fields-id=empid e-fields-spritecssclass=spriteCss e-click=vm.toolbarPopupClick></div><div id=defaultTab ej-tab><ul><li><a href=#users><img src=../images/Uzenetek/Users.png><span translate>Users</span></a></li><li><a ng-hide=vm.SZULOUSER href=#athletes><img src=../images/Uzenetek/athletes.png><span translate>Athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#parents><img src=../images/Uzenetek/Parents.png><span translate>Parents</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#usergroups><img src=../images/Uzenetek/UserGroups.png><span translate>UserGroups</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#sections><img src=../images/Uzenetek/sections.png><span translate>SectionsCoaches</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#teams><img src=../images/Uzenetek/Team.png><span translate>Team\\'s athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#teamParents><img src=../images/Uzenetek/Parents.png><span translate>Team\\'s athletes parents</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#ageGroups><img src=../images/Uzenetek/agegroup.png><span translate>Agegroup\\'s athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#ageGroupsParents><img src=../images/Uzenetek/Parents.png><span translate>Agegroup\\'s athletes parents</span></a></li></ul><div id=users><form name=formUser class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllUsers label=SelectAll checked=false change=vm.userCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchUserParam label=Search change=vm.searchUser></cts-text-box></div></div><div class=row><cts-list-box name=usersListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.usersList show-checkbox=true check-change=vm.usersListChecked></cts-list-box></div></form></div><div id=athletes ng-hide=vm.SZULOUSER><form name=formAthlete class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAthletes label=SelectAll checked=false change=vm.athleteCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAthleteParam label=Search change=vm.searchAthlete></cts-text-box></div></div><div class=row><cts-list-box name=athletesListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.athletesList show-checkbox=true></cts-list-box></div></form></div><div id=usergroups><form name=formUserGroup class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllUserGroup label=SelectAll checked=false change=vm.usersGroupCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchUserGroupParam label=Search change=vm.searchUserGroup></cts-text-box></div></div><div class=row><cts-list-box name=usersGroupListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.usersGroupList show-checkbox=true></cts-list-box></div></form></div><div id=sections><form name=formSections class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllSections change=vm.sectionsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchSectionParam change=vm.searchSection label=Search></cts-text-box></div></div><div class=row><cts-list-box name=sectionsListBox datasource=vm.sectionsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=parents><form name=formParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllParents change=vm.parentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchParentParam change=vm.searchParent label=Search></cts-text-box></div></div><div class=row><cts-list-box name=parentsListBox datasource=vm.parentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=teams><form name=formTeams class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllTeams change=vm.teamsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchTeamsAthletesParam change=vm.searchTeamsAthletes label=Search></cts-text-box></div></div><div class=row><cts-list-box name=teamsAthletesListBox datasource=vm.teamsAthletesList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=teamParents><form name=formTeamParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllTeamParents change=vm.teamParentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchTeamsParentParam change=vm.searchTeamsParents label=Search></cts-text-box></div></div><div class=row><cts-list-box name=teamParentsListBox datasource=vm.teamParentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=ageGroups><form name=formAgeGroups class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAgeGroups change=vm.ageGroupsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAgeGroupsAthletesParam change=vm.searchAgeGroupAthletes label=Search></cts-text-box></div></div><div class=row><cts-list-box name=ageGroupsListBox datasource=vm.ageGroupsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=ageGroupsParents><form name=formAgeGroupsParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAgeGroupsParents change=vm.ageGroupsParentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAgeGroupsParentParam change=vm.searchAgeGroupParents label=Search></cts-text-box></div></div><div class=row><cts-list-box name=ageGroupsParentsListBox datasource=vm.ageGroupsParentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div></div></div></div><div class=widget><ht-widget-header title={{title}} text-id=scheduleHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect ng-show=vm.sectionDropDownVisible></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=trainingCheckBox label=OnlyTrainings checked=vm.training change=vm.trainingCheckboxChanged style=\"width: 250px;\"></cts-check-box></div><div class=row><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.print translate>Print</button> <button type=button class=cts-button ej-button e-click=vm.exportAllToIcs translate>Export</button></div></div></form><script id=apptemplate type=text/x-template><div class=\"max-size-workcells\" style=\"background-color: {{:Color}};border-style: solid 2px; border-color: {{:Color}}; color:{{:FontColor}}\"> <div style=\"float:left; margin: 0 5px 0 0;\"> {{if AllDay === false}} {{:(\\'0\\' + StartTime.getHours()).slice(-2) + \":\" + (\\'0\\' + StartTime.getMinutes()).slice(-2)}} {{/if}} </div> <div> {{if Subject !== \\'\\'}} <div style=\"text-overflow: ellipsis;overflow: hidden;\">{{:Subject}}</div> {{else}} <div>N\\xE9vtelen esem\\xE9ny</div> {{/if}} </div> </div></script><div id=Schedule1></div><div style=\"margin-top: 1rem; text-align: center;\"><span data-ng-style=\"{\\'background-color\\': vm.eventColor}\" style=\"display: inline-block; margin-left: 0.25rem; padding: 0.25rem; color: #ffffff; min-width: 115px; text-align: center;\">{{vm.eventText}}</span> <span data-ng-style=\"{\\'background-color\\': vm.trainingColor}\" style=\"display: inline-block; margin-left: 0.25rem; padding: 0.25rem; color: #ffffff; min-width: 115px; text-align: center;\">{{vm.trainingText}}</span> <span data-ng-repeat=\"(key, value) in vm.sections\" data-ng-style=\"{\\'background-color\\': value.color, \\'color\\': value.color2}\" style=\"display: inline-block; margin: 0.25rem; padding: 0.25rem; min-width: 115px; text-align: center;\">{{value.text}}</span></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/settings.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/search/search.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/sikerMobile/sikerMobile.html','<section class=\"mainbar borderless\"><div class=mobile-background><div class=\"col-12 introSlide\"><div class=header-content-container><h1 class=display-1 translate>SikerMobileApp</h1></div></div><div class=\"mobile-background empty-space-content\"></div><div class=\"col-md-12 infoSlide\"><div class=row><div class=\"col-sm-12 col-md-8 col-lg-9 align-self-center text-right\"><div class=\"description-content-container align-self-flex-end\"><h1 class=display-1 translate>Introduction</h1><h3 class=display-2 translate>Mobile-Describing-1</h3><div class=tab><button class=\"mainTablinks active\" data-ng-click=\"vm.changeTab(\\'Login\\')\" title=Login type=button translate>Login</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Parents\\')\" title=Parents type=button translate>Parents</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Athletes\\')\" title=Athletes type=button translate>Athletes</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Coaches\\')\" title=Coaches type=button translate>Coaches</button></div><div class=tab><button class=tablinks data-ng-click=\"vm.changeTab(\\'Home\\')\" title=Home type=button translate>Dashboard</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Attendance\\')\" title=Attendance type=button translate>dailyAttendance</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Schedule\\')\" title=Schedule type=button translate>Schedule</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Message\\')\" title=Message type=button translate>Message</button></div><div id=Login class=tabcontent style=\"display: block;\"><h1 class=display-3 translate>Login-function-1</h1><ol><li><h4 class=\"display-3 list\" translate>SelectChangeLanguage</h4></li><li><h4 class=\"display-3 list\" translate>EnterOrganizationCode</h4></li><li><h4 class=\"display-3 list\" translate>LogInToMobile</h4></li></ol></div><div id=Coaches class=tabcontent><h4 class=display-3 translate>Coaches-functions-1</h4></div><div id=Parents class=tabcontent><h4 class=display-3 translate>Parents-functions-1</h4></div><div id=Athletes class=tabcontent><h4 class=display-3 translate>Athletes-functions-1</h4></div><div id=Home class=tabcontent><h4 class=display-3 translate>HomePageReview</h4></div><div id=Attendance class=tabcontent><h4 class=display-3 translate>AttendancePageReview</h4></div><div id=Schedule class=tabcontent><h4 class=display-3 translate>SchedulePageReview</h4></div><div id=Message class=tabcontent><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Coaches\\'\" translate>MessagePageReviewCoachs</h4><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Parents\\'\" translate>MessagePageReviewParents</h4><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Athletes\\'\" translate>MessagePageReviewAthletes</h4></div></div></div><div class=\"col-sm-12 col-md-4 col-lg-3 align-self-center\"><img id=mobilImage></div></div></div><div class=\"col-md-12 darkLight\"><div class=row><h2 class=display-1 style=\"padding: 0px;\" translate>WithDarkAndLightTemplate</h2></div></div><div class=\"col-md-12 downloadSlide\"><div class=row><div><a><img id=AppStore src=../../images/AppStore.png></a></div><div><a href=\"https://play.google.com/store/apps/details?id=hu.cts.sikermobil\"><img src=../../images/GooglePlay.png></a></div></div></div></div></section>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/assetManagement/assetManagement.html','<section class=mainbar id=popupHolder><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=assetManagementHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=col-md-12><label translate>AssetTypes</label><form class=filter><div style=\"overflow: hidden;\"><div class=button-wrapper><button class=cts-button ej-button e-click=vm.AddAssetType id=AddAssetTypeBtn e-enabled=vm.AddAssetTypeEnabled translate>AddAssetType</button> <button class=cts-button ej-button e-click=vm.EditAssetType id=EditAssetTypeBtn e-enabled=vm.EditAssetTypeEnabled translate>EditAssetType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteAssetType id=DeleteAssetTypeBtn e-enabled=vm.DeleteAssetTypeEnabled translate>DeleteAssetType</button></div></div></form><div id=TypeGrid2></div></div><div class=col-md-12 style=\"margin-top: 25px;\" data-ng-show=vm.typeSelected><label translate>Assets</label><form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=ShowAssets datasource=vm.assetFilterList value=vm.filter select=vm.filterSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.AddAsset id=AddAssetBtn e-enabled=vm.AddAssetEnabled translate>Add</button> <button class=cts-button ej-button e-click=vm.EditAsset id=EditAssetBtn e-enabled=vm.EditAssetEnabled translate>Edit</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteAsset id=DeleteAssetBtn e-enabled=vm.DeleteAssetEnabled translate>Delete</button> <button class=cts-button ej-button e-click=vm.UndeleteAsset id=UndeleteAssetBtn e-enabled=vm.UndeleteAssetEnabled translate>UndeleteAsset</button> <button class=cts-button ej-button e-click=vm.IssuePopup id=IssueBtn e-enabled=vm.IssueEnabled translate>Issue</button> <button class=cts-button ej-button e-click=vm.TakeBack id=TakeBackBtn e-enabled=vm.TakeBackEnabled translate>TakeBack</button> <button class=\"cts-button doubleBtn\" ej-button e-click=vm.SelectAll id=SelectAllBtn translate>SelectAll</button> <button class=\"cts-button doubleBtn\" ej-button e-click=vm.clearSelection id=UnselectAllBtn translate>UnselectAll</button></div></div></form><div id=AssetGrid2></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-minheight=445px e-maxheight=635px e-allowkeyboardnavigation=false e-width=900px e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder style=\"overflow: auto !important;\"><div class=row><div style=\"width:50%; float:left;\"><cts-dropdown-list name=IssueTo label=IssueTo datasource=vm.athletecoachList value=vm.issueto select=vm.issueToSelect></cts-dropdown-list></div><div style=\"width:50%; float:right;\" ng-if=vm.issueToAthlete><cts-dropdown-list name=sectionorusergroup label=Section value=vm.groupId datasource=vm.groupList databound=vm.dropdownDataBound select=vm.groupSelect></cts-dropdown-list></div><div style=\"width:50%; float:right;\" ng-if=vm.issueToCoach><cts-dropdown-list name=sectionorusergroup label=UserGroup value=vm.groupId datasource=vm.groupList databound=vm.dropdownDataBound select=vm.groupSelect></cts-dropdown-list></div><div style=margin-bottom:20px; ng-if=vm.chooseEnabled><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn2 translate>Issue</button></div></div><div class=row><div id=AthleteGrid2 ng-show=vm.issueToAthlete style=width:800px></div><div id=CoachGrid2 ng-show=vm.issueToCoach style=width:800px></div></div></div></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/dailyAttendance/dailyAttendance.html','<style>\\r\\n.presence1_off {\\r\\n background: url(../images/dailyAttendance/presence1_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence1_on {\\r\\n background: url(../images/dailyAttendance/presence1_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence2_off {\\r\\n background: url(../images/dailyAttendance/presence2_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence2_on {\\r\\n background: url(../images/dailyAttendance/presence2_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence3_off {\\r\\n background: url(../images/dailyAttendance/presence3_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence3_on {\\r\\n background: url(../images/dailyAttendance/presence3_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence1 {\\r\\n background: url(../images/dailyAttendance/presence1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence0 {\\r\\n background: url(../images/dailyAttendance/presence0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.absence0 {\\r\\n background: url(../images/dailyAttendance/absence0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.absence1 {\\r\\n background: url(../images/dailyAttendance/absence1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.competition0 {\\r\\n background: url(../images/dailyAttendance/competition0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.competition1 {\\r\\n background: url(../images/dailyAttendance/competition1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.holiday0 {\\r\\n background: url(../images/dailyAttendance/holiday0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.holiday1 {\\r\\n background: url(../images/dailyAttendance/holiday1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.sickness0 {\\r\\n background: url(../images/dailyAttendance/sickness0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.sickness1 {\\r\\n background: url(../images/dailyAttendance/sickness1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.injury0 {\\r\\n background: url(../images/dailyAttendance/injury0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.injury1 {\\r\\n background: url(../images/dailyAttendance/injury1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.proven0 {\\r\\n background: url(../images/dailyAttendance/proven0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.proven1 {\\r\\n background: url(../images/dailyAttendance/proven1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.dotdotdot {\\r\\n background: url(../images/dailyAttendance/dotdotdot.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.clear {\\r\\n background: url(../images/dailyAttendance/clear.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n</style><section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content ng-click=\"vm.DDClick(-1,\\'open\\')\"><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list data-ng-if=vm.allAgeGroupfill name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.loadAttendance translate>ChooseIt</button></div></div></form><br><div id=containerDiv class=container-fluid style=margin-bottom:0;><div class=col-lg-6><table class=table style=\"width: 100%\"><tr ng-repeat=\"item in vm.editedAttendance.tetelek\" ng-if=item.activeToday><td style=\"width: 100%;text-align: right;\"><div style=\"vertical-align: center; margin-bottom: 1em; border:1px red;\" id=IMG_{{item.IdSportolo}}><table style=\"vertical-align: center\"><tr><td rowspan=2><img ng-src={{item.img}} height=96 class=img-rounded style=\"margin-right: 10px;\"></td><td style=\"vertical-align: bottom; text-align: left; font-weight: bold;\">{{item.SportoloNev}}</td></tr><tr><td style=\"vertical-align: top; text-align: left; font-style: italic; text-indent: 15px;\">({{item.SzuletesiDatum}})</td></tr></table></div><div style=\"vertical-align: center\"><label style=margin-left:0; ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.PRESENCE)\" title={{vm.presenceText}}><div ng-if=\"item.selectedIcon <= vm.b.ABSENCE || item.selectedIcon == vm.b.NOTPRESSED\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><div ng-if=\"item.today == \\' \\'\"><div class=presence1_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence0 ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 1\"><div class=presence1_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence1_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 2\"><div class=presence2_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence2_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 3\"><div class=presence3_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence3_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div></div><div ng-if=\"item.selectedIcon > vm.b.ABSENCE && item.selectedIcon != vm.b.NOTPRESSED\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><div class=presence0></div></div></label><label style=margin-left:1em; ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.ABSENCE)\" title={{vm.absenceText}}><div class=absence1 ng-if=\"item.selectedIcon == vm.b.ABSENCE\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"></div><div class=absence0 ng-if=\"item.selectedIcon != vm.b.ABSENCE\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"></div></label><label class=dropdown style=margin-left:1em id=DDL{{item.IdSportolo}}><div aria-haspopup=true aria-expanded=true ng-click=\"vm.DDClick(item.IdSportolo,\\'toggle\\')\"><div class=dotdotdot ng-if=\"item.selectedIcon <= vm.b.ABSENCE || item.selectedIcon == vm.b.NOTPRESSED\"></div><div class=proven1 ng-if=\"item.selectedIcon == vm.b.PROVENABSENCE\"></div><div class=competition1 ng-if=\"item.selectedIcon == vm.b.COMPETITION\"></div><div class=sickness1 ng-if=\"item.selectedIcon == vm.b.SICKNESS\"></div><div class=injury1 ng-if=\"item.selectedIcon == vm.b.INJURY\"></div><div class=holiday1 ng-if=\"item.selectedIcon == vm.b.HOLIDAY\"></div></div><ul class=dropdown-menu style=\"min-width: 0; left:-20px;\"><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.PROVENABSENCE)\" title={{vm.provenabsenceText}}><div class=proven0 ng-if=\"item.selectedIcon != vm.b.PROVENABSENCE\"></div><div class=proven1 ng-if=\"item.selectedIcon == vm.b.PROVENABSENCE\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.COMPETITION)\" title={{vm.competitionText}}><div class=competition0 ng-if=\"item.selectedIcon != vm.b.COMPETITION\"></div><div class=competition1 ng-if=\"item.selectedIcon == vm.b.COMPETITION\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.SICKNESS)\" title={{vm.sicknessText}}><div class=sickness0 ng-if=\"item.selectedIcon != vm.b.SICKNESS\"></div><div class=sickness1 ng-if=\"item.selectedIcon == vm.b.SICKNESS\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.INJURY)\" title={{vm.injuryText}}><div class=injury0 ng-if=\"item.selectedIcon != vm.b.INJURY\"></div><div class=injury1 ng-if=\"item.selectedIcon == vm.b.INJURY\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.HOLIDAY)\" title={{vm.holidayText}}><div class=holiday0 ng-if=\"item.selectedIcon != vm.b.HOLIDAY\"></div><div class=holiday1 ng-if=\"item.selectedIcon == vm.b.HOLIDAY\"></div></a></li></ul></label></div></td></tr></table><div ng-if=vm.thereIsIncativeAthlete><hr><label translate>AthletesPresentOnMonthlyAttendanceButIncativeToday</label><table class=\"table table-striped\" style=\"width: 100%\"><tr ng-repeat=\"item in vm.editedAttendance.tetelek\" ng-if=!item.activeToday><td style=\"width: 20%\">{{item.SportoloNev}} ({{item.SzuletesiDatum}})</td></tr></table></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveAttendance ng-if=\"vm.editedAttendance.tetelek.length>0 && vm.allowEdit === true\" translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div><div data-ng-hide=true><div class=presence1_off></div><div class=presence1_on></div><div class=presence2_off></div><div class=presence2_on></div><div class=presence3_off></div><div class=presence3_on></div><div class=presence1></div><div class=presence0></div><div class=absence0></div><div class=absence1></div><div class=competition0></div><div class=competition1></div><div class=holiday0></div><div class=holiday1></div><div class=sickness0></div><div class=sickness1></div><div class=injury0></div><div class=injury1></div><div class=proven0></div><div class=proven1></div><div class=dotdotdot></div><div class=clear></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/administration/exercises/exercises.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendance.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/quickCompetitionResults/quickCompetitionResults.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=quickCompetitionResultsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound change=vm.ageGropChange select=vm.ageGroupSelect></cts-dropdown-list></div><div class=row style=margin-top:2rem><script type=text/x-template id=qcrname><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><div id=Grid></div></div><div class=button-wrapper><button type=button id=save class=cts-button ej-button e-click=vm.save translate>Save</button></div></form></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/administration/resultReportAthletes/resultReportAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=resultReportAthletesHelp right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi eredm\\xE9nyjelent\\u0151 m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-xs-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierResultReportAthletesWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierResultReportAthletesWindow() type=button>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=form novalidate id=form><div class=col-md-6><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.editedReportResult.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.editedReportResult.KorcsoportId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSportolo label=Athlete value=vm.editedReportResult.SportoloId datasource=vm.athleteList databound=vm.athleteDataBound select=vm.athleteSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo label=PartnerAthlete value=vm.editedReportResult.TarsEredmenySportolo datasource=vm.athleteListPartner1 databound=vm.athleteDataBoundPartner select=vm.athleteSelectPartner enabled=vm.editable ng-if=\"vm.editedReportResult.SportoloId>0\" clear=vm.clearTars1></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo2 label=PartnerAthlete2 value=vm.editedReportResult.TarsEredmenySportolo2 datasource=vm.athleteListPartner2 databound=vm.athleteDataBoundPartner2 select=vm.athleteSelectPartner2 enabled=vm.editable ng-if=\"vm.editedReportResult.TarsEredmenySportolo>0\" clear=vm.clearTars2></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo3 label=PartnerAthlete3 value=vm.editedReportResult.TarsEredmenySportolo3 datasource=vm.athleteListPartner3 databound=vm.athleteDataBoundPartner3 select=vm.athleteSelectPartner3 enabled=vm.editable ng-if=\"vm.editedReportResult.TarsEredmenySportolo2>0\" clear=vm.clearTars3></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.editedReportResult.DatumTol validation-rules=\"{required: true}\" enabled=vm.editable></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.editedReportResult.DatumIg enabled=vm.editable></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-area name=txEredmSzoveg label=Result(Text) ng-model=vm.editedReportResult.EredmenySzoveg disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=txEredmPontGol label=Result(ScoreGoal) cts-placeholder=ResultScoreGoal value=vm.editedReportResult.EredmenyPont decimalplaces=2 enabled=vm.editable></cts-numeric-text-box><cts-mask-box name=txEredmIdo label=Result(time) value=vm.editedReportResult.EredmenyIdo mask-format=99:99:99.999 enabled=vm.editable title=hh:mm:ss.ttt></cts-mask-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txEredmCm label=Result(Cm) ng-model=vm.editedReportResult.EredmenyTavolsag change=vm.cmChange disabled=!vm.editable></cts-text-box><cts-text-box name=txEredmM label=Result(M) ng-model=vm.editedReportResult.EredmenyTavolsagM change=vm.mChange disabled=!vm.editable></cts-text-box><cts-text-box name=txHelyezes label=Position ng-model=vm.editedReportResult.Helyezes validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-auto-complete name=maVersenyJelleg label=CharacterOfACompetition value=vm.editedReportResult.Jellege datasource=vm.competitionList validation-rules=\"{required: true}\" enabled=vm.editable></cts-auto-complete><cts-text-box name=txVersenyNeve label=CompetitionName ng-model=vm.editedReportResult.VersenyLeiras validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txVersenyszam label=Event ng-model=vm.editedReportResult.Versenyszam addnewtext=true disabled=!vm.editable></cts-text-box><cts-text-area name=txSzovegesErtekeles label=\"textual valuation\" ng-model=vm.editedReportResult.Ertekeles disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txLocation label=Location ng-model=vm.editedReportResult.Helyszin addnewtext=true disabled=!vm.editable></cts-text-box><cts-rating name=mosRating label=Rating value=vm.editedReportResult.Eredmeny enabled=vm.editable></cts-rating><label>*<span translate>MustSpecifyAtLeastOne</span>!</label></div></div><div class=col-md-6><button id=olderReportsCopy class=cts-button ej-button e-enabled=vm.editable style=float:right; e-click=vm.goToOlderAnnualSeasonPlanReports data-ng-enabled=vm.editable translate>OlderResultReportCopy</button><div><br><label translate>picture</label><br><div><div class=profileImg><img ng-src={{vm.editedReportResult.Foto}} style=\"height:350px;width: auto;\"></div><div><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.deleteImg() translate>Delete</button></div></div><div><br><label translate>textual valuation</label><br><div id=Grid name=Grid></div><br><div id=UploadDefault></div></div></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=reset class=cts-button ej-button e-enabled=vm.CanCreateNew data-ng-disabled=!vm.CanCreateNew data-ng-click=vm.createResultReport() style=\"margin-top: 5px; float: left\" translate>New</button> <button type=button class=cts-button ej-button data-ng-click=vm.modifyResultReport() e-enabled=vm.CanModify data-ng-disabled=!vm.CanModify style=\"margin-top: 5px; margin-left:5px; float: left\" translate>Modify</button> <button type=submit form=form class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.saveResultReport() style=\"margin-top: 5px;\" translate>Save</button> <button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div></div></div></div></section><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=650 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=600 height=600 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=600 crop-height=600 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><script id=rereattemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script>');\n$templateCache.put('app/administration/resultReportTeam/resultReportTeam.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=resultReportTeamHelp right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi eredm\\xE9nyjelent\\u0151 m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierResultReportTeamWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierResultReportTeamWindow() type=button>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=form novalidate id=form><div class=col-md-12><div class=\"col-xs-12 col-md-6\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.editedReportResult.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.editedReportResult.KorcsoportId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maCsapat label=Team value=vm.editedReportResult.CsapatId datasource=vm.teamList databound=vm.teamDataBound select=vm.teamSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.editedReportResult.DatumTol validation-rules=\"{required: true}\" enabled=vm.editable></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.editedReportResult.DatumIg enabled=vm.editable></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-area name=txEredmSzoveg label=Result ng-model=vm.editedReportResult.EredmenySzoveg disabled=!vm.editable validation-rules=\"{required: true}\"></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txHelyezes label=Position ng-model=vm.editedReportResult.Helyezes validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-auto-complete name=maVersenyJelleg label=CharacterOfACompetition value=vm.editedReportResult.Jellege datasource=vm.competitionList validation-rules=\"{required: true}\" enabled=vm.editable></cts-auto-complete><cts-text-box name=txVersenyNeve label=CompetitionName ng-model=vm.editedReportResult.VersenyLeiras validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txVersenyszam label=Event ng-model=vm.editedReportResult.Versenyszam addnewtext=true disabled=!vm.editable></cts-text-box><cts-text-area name=txSzovegesErtekeles label=\"textual valuation\" ng-model=vm.editedReportResult.Ertekeles disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txLocation label=Location ng-model=vm.editedReportResult.Helyszin addnewtext=true disabled=!vm.editable></cts-text-box><cts-rating name=mosRating label=Rating value=vm.editedReportResult.Eredmeny enabled=vm.editable></cts-rating></div></div><div class=col-md-6><button id=olderReportsCopy type=button class=cts-button ej-button e-enabled=vm.editable style=float:right; e-click=vm.goToOlderAnnualSeasonPlanReports data-ng-enabled=vm.editable translate>OlderResultReportCopy</button><div><br><label translate>picture</label><br><div><div class=profileImg><img ng-src={{vm.editedReportResult.Foto}} style=\"height:350px;width: auto;\"></div><div><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.deleteImg() translate>Delete</button></div></div><div><br><label translate>textual valuation</label><br><div id=Grid name=Grid style=margin-top:5px;></div><br><div id=UploadDefault></div></div></div></div></div><div class=col-md-12><div id=GridAthletes name=GridAthletes></div><div style=\"overflow: hidden;\"><button type=button class=\"cts-button red\" ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.removeAthletesFromResultReport() style=\"margin-top: 20px; margin-left: 5px; float: left\" translate>Remove</button></div></div></form><div class=col-md-12><form class=filter><div><br><hr><p translate>\\xC1tj\\xE1tsz\\xF3 sportol\\xF3k hozz\\xE1ad\\xE1sa/t\\xF6rl\\xE9se:</p></div><div class=row><cts-dropdown-list name=korosztaly label=AgeGroup value=vm.AtjatszoAgeGroup datasource=vm.AtjatszoAgeGroupList select=vm.atjatszoAgeGroupSelect></cts-dropdown-list><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.addAtjatszok() style=\"margin-top: 20px; float: left\" translate>Add</button></div><div class=row><div id=GridAtjatszo></div></div></form></div></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button ej-button e-enabled=vm.CanCreateNew data-ng-disabled=!vm.CanCreateNew data-ng-click=vm.createResultReport() style=\"margin-top: 5px;\" translate>New</button> <button type=button class=cts-button ej-button data-ng-click=vm.modifyResultReport() e-enabled=vm.CanModify data-ng-disabled=!vm.CanModify style=\"margin-top: 5px; margin-left:5px;\" translate>Modify</button> <button type=submit form=form class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.saveResultReport() style=\"margin-top: 5px;\" translate>Save</button> <button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=650 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=600 height=600 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=600 crop-height=600 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50 style=\"margin-top: 5px;\"></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" style=\"min-width: 100px;\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><script id=reretetemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script></div></div></section>');\n$templateCache.put('app/administration/sportSpecificTest/sportSpecificTest.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/trainingDiary/trainingDiary.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=trainingDiaryHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=edzo label=Coach value=vm.selectedCoach datasource=vm.coachList enabled=false></cts-dropdown-list><cts-dropdown-list name=szakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList enabled=false></cts-dropdown-list><cts-dropdown-list data-ng-if=\"vm.selectedAgeGroup>0\" name=korosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList enabled=false></cts-dropdown-list></div><div class=row><cts-dropdown-list name=ev label=Year value=vm.yearValue datasource=vm.years enabled=false></cts-dropdown-list><cts-dropdown-list name=honap label=Month value=vm.monthValue datasource=vm.months enabled=false></cts-dropdown-list><cts-date-picker name=MadeOn label=MadeOn value=vm.keszult></cts-date-picker><div class=button-wrapper ng-if=!vm.lezart><button type=button id=add class=cts-button ej-button e-click=vm.addRow e-enabled=vm.addEnabled translate>AddNewEntryForThisDay</button> <button type=button id=add class=cts-button ej-button e-click=vm.removeRow e-enabled=vm.removeEnabled translate>RemoveEntryForThisDay</button></div></div><div class=row><div id=Grid></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.Save ng-if=!vm.lezart translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=TKepzesiNaplo report-parameters=vm.reportParameters></report></div></div></div></div></section>');\n$templateCache.put('app/administration/trainingPlan/trainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/athletes/ageGroups/ageGroups.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view class=crossfade></div></div></div></div></section>');\n$templateCache.put('app/athletes/athletesManagement/athletesManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view class=crossfade style=\"position: relative; overflow: hidden;\"></div></div></div></div></section>');\n$templateCache.put('app/athletes/sections/sections.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sectionListHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><div class=button-wrapper><button id=AddSection class=cts-button ej-button e-click=vm.AddSection translate>AddSection</button> <button id=EditSection class=cts-button ej-button e-click=vm.EditSection translate>EditSection</button></div></div></div></form><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/athletes/teams/teams.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualeducationalfeebyathletecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${SportoloNeve}</a></script><script type=text/x-template id=annualeducationalfeebyathletecolumnTemplate2><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualeducationalfeebycoachcolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByOneSectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList select=vm.sectionSelect></cts-dropdown-list></div></form><script type=text/x-template id=annualeducationalfeebyonesectioncolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualsportservicefeebyathletecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${SportoloNeve}</a></script><script type=text/x-template id=annualsportservicefeebyathletecolumnTemplate2><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-jsrender id=annualsportservicefeebycoachcolumnTemplate><a class=\\'bind\\' data-ng-click=\\'vm.openCoach(${Id})\\'>${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>;');\n$templateCache.put('app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByOneSectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList select=vm.sectionSelect></cts-dropdown-list></div></form><script type=text/x-template id=annualsportservicefeebyonesectioncolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div class=row><div id=Grid class=slim-grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/checkPayment/checkPayment.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=checkPaymentHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form novalidate><div class=row><cts-text-box name=checkNumber label=PayerId data-ng-model=vm.checkNumber validation-rules=\"{required: true}\"></cts-text-box><cts-numeric-text-box name=payment label=Payment value=vm.payment validation-rules=\"{required: true}\"></cts-numeric-text-box><div class=button-wrapper><button type=submit class=cts-button ej-button e-click=vm.getCheck translate>GetCheck</button></div></div><div class=row data-ng-if=\"vm.hasCheck === true\"><cts-text-box name=athletesName label=AthletesName data-ng-model=vm.actualPayment.Versenyzo owndisabled=true></cts-text-box><cts-text-box name=section label=Section data-ng-model=vm.actualPayment.Szakosztaly owndisabled=true></cts-text-box></div><div class=row data-ng-if=\"vm.hasCheck === true\"><cts-text-box name=coach label=Coach data-ng-model=vm.actualPayment.Edzo owndisabled=true></cts-text-box><cts-text-box name=amount label=PaidAmount data-ng-model=vm.actualPayment.Osszeg owndisabled=true></cts-text-box><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.pay translate>Pay</button> <button type=button class=cts-button ej-button e-click=vm.removePayment translate>RemovePayment</button></div></div></form><div class=row><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.save translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/checkPrintingExport/checkPrintingExport.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=checkPrintExportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datefrom label=DateFrom value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect value=vm.sectionId validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach datasource=vm.coachList value=vm.coachId databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=checkprintingexportcolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Id})\">${SportoloNeve}</a></script><script type=text/x-template id=checkprintingexportcolumnTemplate2><a data-ng-click=\"vm.openCoach(${IdEdzo})\">${Edzo}</a></script><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/csvPayment/csvPayment.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=csvPaymentHelp right-text=rightText></ht-widget-header><div class=widget-content><div id=step1 ng-show=\"vm.step == 1\"><form class=filter name=form id=csvuploadform novalidate><label translate>Step 1. Select CSV File!</label><div class=row><div class=col-sm-5><div class=posupload translate>Selectfile</div><div class=button-wrapper><div id=UploadButton></div></div></div></div></form></div><div id=step2 class=row ng-show=\"vm.step == 2\"><label style=margin-bottom:2em; translate>Step 2. Select Header Row!</label><div id=WGridHeaderSelector></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label><div class=button-wrapper style=margin-top:2em;><button class=cts-button ej-button e-click=vm.noHeader translate>noHeader</button></div></div><div id=step3 class=row ng-show=\"vm.step == 3\"><label ng-if=\"vm.step == 3\" style=margin-bottom:2em; translate>Step 3. Select ENCODING!</label><div id=WGridEnc></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label></div><div id=step4 class=row ng-show=\"vm.step >= 4 && vm.step <= 7\"><label ng-if=\"vm.step == 4\" style=margin-bottom:2em; translate>Step 4. Select Comment Column!</label> <label ng-if=\"vm.step == 5\" style=margin-bottom:2em; translate>Step 5. Select Date Column!</label> <label ng-if=\"vm.step == 6\" style=margin-bottom:2em; translate>Step 6. Select Depositor Column!</label> <label ng-if=\"vm.step == 7\" style=margin-bottom:2em; translate>Step 7. Select Amount Column!</label><div id=WGridColumnSelector></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label><div class=button-wrapper style=margin-top:2em;><button ng-if=\"vm.step == 6\" class=cts-button ej-button e-click=vm.noDepositor translate>noDepositor</button></div></div><div class=row ng-show=\"vm.step == 8\"><label style=margin-bottom:2em; translate>Step 8. To save time CSV Settings can be saved.</label><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.StartAgain translate>StartAgain</button> <button class=cts-button ej-button e-click=vm.SaveSettings translate>SaveSettings</button> <button class=cts-button ej-button e-click=vm.Continue translate>Continue</button></div></div><div class=row ng-show=\"vm.step == 9\"><label style=margin-bottom:2em; translate>Step 9. Select CSV Process mode!</label><div class=\"listbox frame\"><ul id=modes ej-listbox e-datasource=vm.processModes e-fields-text=modeName e-height=200px e-select=vm.modeSelect e-width=350px></ul></div></div><div class=row ng-show=\"vm.step >= 10\"><label ng-if=\"vm.step == 10\" style=margin-bottom:2em; translate>Step 10. Check the checkboxes next to payments!</label> <label ng-if=\"vm.step == 11\" style=margin-bottom:2em; translate>Step 11. Please print unprocessed payments and process them manually!</label><div class=row><div id=GridFinal></div></div></div><div class=row><div class=\"col-sm-12 back\" style=\"text-align: center\" data-ng-if=\"vm.data.length !== 0\"><div ng-if=\"vm.step == 10\"><button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button ej-button e-click=vm.StartAgain translate>Cancel</button> <button class=cts-button ej-button e-click=vm.save e-enabled=vm.saveEnabled translate>Save</button></div><div ng-if=\"vm.step == 11\"><div class=row><label ng-if=\"vm.step == 11\" style=margin-bottom:2em; translate>Note: Now only the unprocessed payments are shown in the list above!</label></div><div class=row><button class=cts-button ej-button e-click=back translate>Back</button></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyEducationalFeePaymentsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=number label=Number value=vm.selectedNumber datasource=vm.numberList databound=vm.numberDataBound select=vm.numberSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepick label=Date value=vm.dateValue change=vm.dateChange enabled=vm.dateEnabled validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><div class=row><script type=text/x-template id=dailyeducationalfeepaymentscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=dailyeducationalfeepaymentscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=printDialog><report report-name=TNapiTagdijBefizetesek report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyEducationalFeesPerCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter novalidate name=form enctype=multipart/form-data><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.selectCoach validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=yearDropDownFrom label=DateFrom value=vm.datumTol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=yearDropDownTo label=DateTo value=vm.datumIg validation-rules=\"{required: true}\"></cts-date-picker></div><div class=button-wrapper><button id=lekeres class=cts-button type=submit ej-button e-click=vm.getFeeDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div><div class=row><div class=col-md-4></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailySpoerServicePaymentsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=number label=Number value=vm.selectedNumber datasource=vm.numberList databound=vm.numberDataBound select=vm.numberSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepick label=Date value=vm.dateValue change=vm.dateChange enabled=vm.dateEnabled validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><div class=row><script type=text/x-template id=dailysportservicefeepaymentscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=dailysportservicefeepaymentscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=printDialog><report report-name=TNapiTagdijBefizetesek report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailySportServiceFeesPerCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter novalidate name=form enctype=multipart/form-data><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.selectCoach validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=yearDropDownFrom label=DateFrom value=vm.datumTol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=yearDropDownTo label=DateTo value=vm.datumIg validation-rules=\"{required: true}\"></cts-date-picker></div><div class=button-wrapper><button id=lekeres class=cts-button type=submit ej-button e-click=vm.getFeeDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/educationalFeeRegister/educationalFeeRegister.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=educationalFeeRegisterHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>Month</label><div class=input-group><input type=text id=monthDropDownList name=monthDropDownList></div></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=col-sm-12><script type=text/x-template id=educationalfeeregistercolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=educationalfeeregistercolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=Grid class=slim-grid></div><div id=remarks><div class=col-sm-12 style=\"margin-top:10px; float:left;text-align:left; margin-right:-10px;\"><p translate>NotationSportServiceFeeRegister</p></div><div class=col-sm-12><p><span translate>EducationalFee</span>: {{vm.EducationalFee}}</p><p><span translate>{{vm.kedvezmenyNevek[0]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD}}</p><p><span translate>{{vm.kedvezmenyNevek[1]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD2}}</p><p><span translate>{{vm.kedvezmenyNevek[2]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD3}}</p><p><span translate>{{vm.kedvezmenyNevek[3]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD4}}</p><p><span translate>{{vm.kedvezmenyNevek[4]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD5}}</p></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveWithoutNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>Save</button> <button class=cts-button ej-button e-click=vm.saveWithNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>SaveWithNumbers</button> <button class=cts-button ej-button e-click=vm.goToDailyPayments data-ng-if=\"vm.atletesList.length !== 0\" translate>DailyPayments</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/modifyFees/modifyFees.html','<section class=mainbar><div class=container-fluid><div class=row><div class=col-xs-12><div class=widget><ht-widget-header title={{title}} text-id=modifyFeesHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><div class=row><div id=Grid name=Grid></div></div></div></div></div></div><div class=row><form name=form style=\"margin-top: 2em;\"><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>FeeSettings</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-numeric-text-box name=toleranceDays label=ToleranceDays value=vm.toleranceDays validation-rules=\"{required: true, minlength: 1, maxlength: 300}\"></cts-numeric-text-box></div><div class=widget-foot><button class=cts-button ej-button data-ng-click=vm.saveData() translate>Save</button><div class=clearfix></div></div></div></div><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>MeteOutSave</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-date-picker name=fromDate label=FromDate value=vm.fromDate></cts-date-picker><cts-check-box name=onlyNew label=onlyNew checked=vm.onlyNew></cts-check-box></div><div class=widget-foot><button class=cts-button ej-button data-ng-click=vm.meteOut() translate>MeteOut</button><div class=clearfix></div></div></div></div><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>YearClosing</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-dropdown-list name=ddlYear label=Year datasource=vm.nonClosedYears value=vm.selectedYear select=vm.yearSelect></cts-dropdown-list><label data-ng-if=vm.yearclosed translate>YearIsAlreadyClosed</label></div><div class=widget-foot><button class=cts-button ej-button translate e-click=vm.closeYear e-enabled=vm.closeYearEnabled>Close Year</button><div class=clearfix></div></div></div></div><div class=row><div class=col-md-4></div></div></form></div></div></section>');\n$templateCache.put('app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=monthlyAttendanceArrearsHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=row><script type=text/x-template id=monthlyattendancearrearscolumnTemplate><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><div id=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/sportServiceFeeArrears/sportServiceFeeArrears.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sportServiceFeeArrearsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=feearrearscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${VersenyzoId})\">${VersenyzoNeve}</a></script><script type=text/x-template id=feearrearscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/sportServiceFeeRegister/sportServiceFeeRegister.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sportServiceFeeRegisterHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>Month</label><div class=input-group><input type=text id=monthDropDownList name=monthDropDownList></div></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=col-sm-12><script type=text/x-template id=sportservicefeeregistercolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=sportservicefeeregistercolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=Grid class=slim-grid></div><div id=remarks><div class=col-sm-12 style=\"margin-top:10px; float:left;text-align:left; margin-right:-10px;\"><p translate>NotationSportServiceFeeRegister</p></div><div class=col-sm-12><p><span translate>SportServiceFee</span>: {{vm.SportServiceFee}}</p><p><span translate>{{vm.kedvezmenyNevek[0]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD}}</p><p><span translate>{{vm.kedvezmenyNevek[1]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD2}}</p><p><span translate>{{vm.kedvezmenyNevek[2]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD3}}</p><p><span translate>{{vm.kedvezmenyNevek[3]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD4}}</p><p><span translate>{{vm.kedvezmenyNevek[4]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD5}}</p></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveWithoutNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>Save</button> <button class=cts-button ej-button e-click=vm.saveWithNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>SaveWithNumbers</button> <button class=cts-button ej-button e-click=vm.goToDailyPayments data-ng-if=\"vm.atletesList.length !== 0\" translate>DailyPayments</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/other/files/files.html','<div class=widget-head><h2 class=page-title>{{vm.title}}</h2></div><div class=widget-content><div style=\"position: relative;\"><div id=UploadDefault></div><button class=\"cts-button red\" style=\"position: absolute; top: 0px; left: 130px;\" id=delete data-ng-click=vm.deleteFile() type=button translate>Delete</button></div><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div><script id=fitemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script>');\n$templateCache.put('app/reports/absenceReport/absenceReport.html','<ht-widget-header title={{title}} text-id=absenceReportHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section value=vm.SelectedSectionID datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach value=vm.SelectedCoachID datasource=vm.coachList databound=vm.coachDropDownListDataBound select=vm.coachSelect></cts-dropdown-list><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.fromDateSelect validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.toDateSelect validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></div></form><div class=col-lg-12><script id=abretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=abretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoID})\">${EdzoNeve}</a></script><div id=Grid name=Grid></div></div>*<label translate>PercentageCalculationAndTotalNumberOfTrainingsIsPreciseOnlyWhenWholeMonthIsSelected</label></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/anthropometryTestPrinting/anthropometryTestPrinting.html','<ht-widget-header title={{title}} text-id=anthropometryTestPrintingHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button id=print class=cts-button ej-button e-click=vm.printSelection e-enabled=vm.printEnabled translate>Print</button></div></div></form><div class=row><script type=text/x-template id=anthropometryTestPrintingcolumnTemplate><a data-ng-click=\"vm.goToAthlete(${SportoloId})\">${SportoloNeve}</a></script><div id=Grid name=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialoganthtest><report report-name=TAntropometriaNyomtatasReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.html','<ht-widget-header title={{title}} text-id=assetInventoryReportByUserHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=row><form class=filter name=form><cts-dropdown-list name=searchType label=SearchType value=vm.sectionIdValue datasource=vm.athletecoachList databound=vm.searchTypeDateBound select=vm.searchTypeSelect></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound enabled=vm.searchTypeAthlete select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound enabled=vm.searchTypeAthlete select=vm.ageGroupSelect></cts-dropdown-list><div class=button-wrapper><button style=\"width:30%; float:left;\" id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></form></div><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/assetInventoryReportByType/AssetInventoryReportByType.html','<ht-widget-header title={{title}} text-id=assetInventoryReportByTypeHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list style=\"width: auto\" name=AssetTypeDropDown label=AssetType value=vm.assetTypeId field-value=TipusId field-text=TipusNev datasource=vm.assetTypeList databound=vm.AssetTypeDataBound select=vm.assetTypeSelect></cts-dropdown-list><cts-check-box name=Active label=Active checked=vm.active enabled=vm.checkboxEnabled></cts-check-box><cts-check-box name=Expend label=Kiadva checked=vm.expend enabled=vm.checkboxEnabled></cts-check-box><cts-check-box name=All label=All checked=vm.all change=vm.selectAll></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/assetInventoryReports/assetInventoryReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/athleteTransfer/athleteTransfer.html','<ht-widget-header title={{title}} text-id=athleteTransferReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=attrcolumnTemplate1><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=columnTemplate2><a data-ng-click=\"vm.goToNewAthlete(${SportoloId})\">${SportoloNeve}</a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.html','<ht-widget-header title={{title}} text-id=awayBudgetPlanSummaryHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=onlyStartDate label=OnlyStartDate checked=vm.onlyStartDate change=vm.onlyStartDateChanged></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script id=rowtemplate type=text/x-template><tr role=\"row\" class=\"e-row ng-scope\"> ${if (Megnevezes == \\'Terv\\')} <td class=\"e-rowcell\" style=\"width: 90px;\" rowspan=\"4\">${VersenySorszam}</td> <td class=\"e-rowcell\" style=\"width: 125px;\" rowspan=\"4\">${Szakosztaly}</td> <td class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\" rowspan=\"4\">${VersenyKezdesIdopont}</td> <td class=\"e-rowcell\" style=\"width: 150px;\" rowspan=\"4\">${VersenyBefejezesIdopont}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> <td class=\"e-rowcell\" style=\"width: 120px;\" rowspan=\"3\">${ElolegOsszege}</td> ${/if} ${if (Megnevezes == \\'Teny\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px; \">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> ${/if} ${if (Megnevezes == \\'Szolg.\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> ${/if} ${if (Megnevezes == \\'Megjegyz\\xE9s\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\" colspan=\"8\">${UtazasiKoltseg}</td> ${/if} </tr></script><div class=row><div id=Grid name=Grid style=\"overflow: hidden\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/duplicatedAthletes/duplicatedAthletes.html','<ht-widget-header title={{title}} text-id=duplicatedAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-check-box name=InactivesToo label=SearchInInactivesToo checked=vm.InactivesToo change=vm.InactivesChange></cts-check-box></div></form><script type=text/x-template id=duplicatedcolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=duplicatedcolumnTemplate2><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid name=Grid></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/expiringDocuments/expiringDocuments.html','<ht-widget-header title={{title}} text-id=expiringDocumentsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=agegroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=spc label=SearchForExpiringSportPhysicalCertificate checked=vm.searchSPC></cts-check-box><cts-check-box name=passp label=SearchForExpiringPassort checked=vm.searchPP></cts-check-box><cts-check-box name=pid label=SearchForExpiringPersonalIdentity checked=vm.searchPID></cts-check-box><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></div></form><div class=row><script id=exdotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=exdotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoID})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.html','<ht-widget-header title={{title}} text-id=monthlyCompetitivePlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=moncompplacolumnTemplate1><a data-ng-click=\"vm.goToMonthlyCompetitivePlan(${planId})\" translate><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=monthlyCompetitivePlanscolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=monthlyCompetitivePlanscolumnTemplate2><a data-ng-click=\"vm.openCoach(${JovahagytaId})\">${JovahagytaNeve}</a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/managementReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/healthReport/healthReport.html','<ht-widget-header title={{title}} text-id=healthReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.changeDateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.changeDateTo validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=MainTypeDropDown label=MainType value=vm.mainType datasource=vm.healthMainType select=vm.MainTypeSelect databound=vm.mainTypeDataBound validation-rules=\"{required: false}\"></cts-dropdown-list><cts-dropdown-list name=SubTypeDropDown label=SubType value=vm.subType datasource=vm.filteredSubTypes databound=vm.subTypeDataBound validation-rules=\"{required: false}\"></cts-dropdown-list></div><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></form><div class=row><script type=text/x-template id=healthedit><a data-ng-click=\"vm.goToModifyHealthEvent(${EgeszsegEsetId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/playUpAndDown/playUpAndDown.html','<ht-widget-header title={{title}} text-id=playUpAbdDownHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script type=text/x-template id=puadath><a data-ng-click=\"vm.openAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=puadcoach><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/statisticalReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/sportSpecificReport/sportSpecificReport.html','<ht-widget-header title={{title}} text-id=sportSpecificReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionIdValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=tipusDropDown label=FelmeroTipus value=vm.tipusIdValue datasource=vm.tipusList databound=vm.tipusDataBound select=vm.tipusSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.getData validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.getData validation-rules=\"{required: true}\"></cts-date-picker></div></form><div class=col-lg-12><div id=Grid2></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/trainingAttendanceReport/trainingAttendanceReport.html','<ht-widget-header title={{title}} text-id=trainingAttendanceReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><script type=text/x-template id=trainingAttendanceReportcolumnTemplate><a data-ng-click=\"vm.goToAthlete(${SportoloID})\">${SportoloNeve}</a></script><div id=Grid name=Grid></div>*<label translate>PercentageCalculationAndTotalNumberOfTrainingsIsPreciseOnlyWhenWholeMonthIsSelected</label></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/weeklyTrainingReport/weeklyTrainingReport.html','<ht-widget-header title={{title}} text-id=weeklyTreiningReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-auto-complete name=Place label=Place value=vm.place validation-rules=\"{required: false}\" datasource=vm.places></cts-auto-complete><cts-check-box name=ShowWeeks label=ShowWeeks checked=vm.showWeeks change=vm.showWeeksChange></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><script type=text/x-template id=wtro><a data-ng-click=\"vm.openPlan(${hetiedzestervid})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/weeklyTravelReport/weeklyTravelReport.html','<ht-widget-header title={{title}} text-id=weeklyTravelReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom change=vm.fromDateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo change=vm.toDateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=typeDropDown label=Type value=vm.typeId datasource=vm.typeList databound=vm.typeDataBound select=vm.typeSelect></cts-dropdown-list></div><div class=row><cts-dropdown-list name=BusOwnerDropDown label=BusOwner value=vm.busOwnerId datasource=vm.busOwners databound=vm.busOwnersDataBound select=vm.busOwnerSelect></cts-dropdown-list><cts-check-box name=onlyStartDate label=OnlyStartDate change=vm.onlyStartDateChanged></cts-check-box></div><div class=row><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script type=text/x-template id=WTRPlanOpenTemplate><a data-ng-click=\"vm.openPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/ageGroupChange/ageGroupChange.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=ageGroupChangeHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ng-if=\"vm.actualAthleteId>0 && vm.which==1\" class=\"form-group cts-form-group\"><label for=actualSection>{{\"ActualSection\"|translate}}</label> <label id=actualSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><div ng-if=\"vm.actualAthleteId>0 && vm.which==2\" class=\"form-group cts-form-group\"><label for=actualSection>{{\"ActualSection\"|translate}}</label> <label id=actualSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyNev}}</label></div><cts-dropdown-list ng-if=\"vm.actualAthleteId==0\" name=actualSectionDropDown value=vm.actualSectionId label=ActualSection datasource=vm.actualSectionList databound=vm.actualSectionDataBound select=vm.actualSectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div ng-if=\"vm.actualAthleteId>0 && vm.which==1\" class=\"form-group cts-form-group\"><label for=actualCoach>{{\"ActualCoach\"|translate}}</label> <label id=actualCoach style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.JelenlegiEdzoNev}}</label></div><div ng-if=\"vm.actualAthleteId>0 && vm.which==2\" class=\"form-group cts-form-group\"><label for=actualCoach>{{\"ActualCoach\"|translate}}</label> <label id=actualCoach style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyEdzoNev}}</label></div><cts-dropdown-list ng-if=\"vm.actualAthleteId==0\" name=actualCoachDropDown value=vm.actualCoachId label=ActualCoach datasource=vm.actualCoachList databound=vm.actualCoachDataBound select=vm.actualCoachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepick label=DateTransfer value=vm.dateValue change=vm.dateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=ageGroupDropDown value=vm.ageGroupId label=NewAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button type=submit class=cts-button ej-button e-click=vm.transferAthletes translate>Transfer</button></div></div></form><div class=row><script type=text/x-template id=agegroupchangecolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=agegroupchangecolumnTemplate2><a data-ng-click=\"vm.goToAthlete(${SportolokId})\">${Nev}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><script id=checkboxTemplateAktiv type=text/x-template><input data-ng-if=\"\\'${Aktiv}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Aktiv}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/settings/athleteTransfer/athleteTransfer.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=athleteTransferHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=actualSectionDropDown value=vm.actualSectionId label=ActualSection datasource=vm.actualSectionList databound=vm.actualSectionDataBound select=vm.actualSectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=actualCoachDropDown value=vm.actualCoachId label=ActualCoach datasource=vm.actualCoachList databound=vm.actualCoachDataBound select=vm.actualCoachSelect></cts-dropdown-list></div><div class=row><cts-dropdown-list name=sectionDropDown value=vm.sectionId label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown value=vm.coachId label=Coach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown value=vm.ageGroupId label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepick label=DateTransfer value=vm.dateValue change=vm.dateChange></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.transferAthletes translate>Transfer</button></div></div></form><script type=text/x-template id=athltransfercolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=athltransfercolumnTemplate2><a data-ng-click=\"vm.goToAthlete(${SportolokId})\">${Nev}</a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/createSportSpecificTest/createSportSpecificTest.html','<style>\\r\\n.flex-container {\\r\\n display: -webkit-flex;\\r\\n display: flex;\\r\\n flex-wrap: wrap;\\r\\n}\\r\\n.flex-item {\\r\\n width: 80px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n}\\r\\n.flex-iteminf {\\r\\n width: 20px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n margin-top: 25px;\\r\\n}\\r\\n.flex-itemcp {\\r\\n width: 80px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n margin-top: 4px;\\r\\n margin-right:-41px;\\r\\n}\\r\\n</style><section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=createSportSpecificTestHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=section label=Section datasource=vm.sectionList value=vm.sectionValue select=vm.sectionSelect databound=vm.sectionDataBound></cts-dropdown-list><div class=button-wrapper><div ng-if=vm.UJSPFELM><button id=newFelmeroElemFej class=cts-button ej-button e-click=vm.NewFelmeroTipus data-ng-if=\"vm.sectionValue>0\" translate>NewSportSpecificTestTemplate</button></div></div></div></form><div data-ng-show=\"vm.sectionValue > 0\"><label translate>FelmeroTipusokSzakosztalyonkent</label><div id=GridFelmeroTipus2></div><br><div class=button-wrapper ng-if=vm.UJSPFELM><button id=copyFelmeroElemFej class=cts-button ej-button e-click=vm.CopyFelmeroTipus e-enabled=vm.copyButtonEnabled translate>copyFelmeroElemFej</button> <button id=deleteFelmeroElemFej class=cts-button ej-button e-click=vm.DeleteFelmeroTipus e-enabled=vm.deleteButtonEnabled translate>deleteFelmeroElemFej</button> <button id=activateFelmeroElemFej class=cts-button ej-button e-click=vm.ActivateFelmeroTipus ng-if=\"!vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve\" translate>activate</button> <button id=inactivateFelmeroElemFej class=cts-button ej-button e-click=vm.InactivateFelmeroTipus ng-if=\"vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve\" translate>inactivate</button></div></div><div data-ng-show=\"vm.selectedFelmeroElemFej > 0\" style=\"margin-top: 25px;\"><label>{{vm.felmNev}}  </label><label translate>FelmeroElemei</label><div id=GridFelmeroElem2></div><div class=\"alert alert-warning\" ng-if=vm.saveBeforeColorWarning><label translate>PleaseSaveFelmeroElemBeforeChoosingColors</label></div><label ng-if=vm.colordivenabled style=margin-top:20px;>{{vm.felmElemNev}}  </label><label ng-if=vm.colordivenabled translate>FelmeroElemSzinei</label><div class=\"panel panel-default\" ng-if=vm.colordivenabled><div><p style=\"padding: 1em 1em 0; margin: 0;\"><span style=\"background-color: {{vm.color1}}; padding: 0.25em 2em;\">-\\u221E - {{vm.num1}}</span> <span style=\"background-color: {{vm.color12}}; padding: 0.25em 2em;\">>{{vm.num1}} - {{vm.num2}}</span> <span style=\"background-color: {{vm.color23}}; padding: 0.25em 2em;\">>{{vm.num2}} - {{vm.num3}}</span> <span style=\"background-color: {{vm.color34}}; padding: 0.25em 2em;\">>{{vm.num3}} - {{vm.num4}}</span> <span style=\"background-color: {{vm.color45}}; padding: 0.25em 2em;\">>{{vm.num4}} - {{vm.num5}}</span> <span style=\"background-color: {{vm.color5}}; padding: 0.25em 2em;\">>{{vm.num5}} - +\\u221E</span></p></div><div class=flex-container><div class=flex-iteminf><label>-\\u221E<label></label></label></div><div class=flex-itemcp><cts-color-picker name=colorPick1 value=vm.color1 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num1 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num1 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num1 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num1 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick12 value=vm.color12 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num2 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num2 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num2 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num2 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick23 value=vm.color23 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num3 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num3 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num3 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num3 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick34 value=vm.color34 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num4 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num4 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num4 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num4 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick45 value=vm.color45 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num5 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num5 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num5 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num5 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick5 value=vm.color5 select=vm.applyColor></cts-color-picker></div><div class=flex-iteminf><label>+\\u221E<label></label></label></div></div><div class=button-wrapper style=\"margin-left: 50px;margin-bottom: 30px;\"><button id=clearColors class=cts-button ej-button e-click=vm.clearColors e-enabled=true translate>clearColors</button> <button id=setDefaultColors class=cts-button ej-button e-click=vm.setDefaultColors e-enabled=true translate>setDefaultColors</button></div></div><label>{{vm.editableHint}}</label> <label>{{vm.saveOrDiscardeHint}}</label><br><div class=button-wrapper ng-if=vm.UJSPFELM><button id=saveFelmeroElem class=cts-button ej-button e-click=vm.SaveFelmeroElemek e-enabled=vm.modified translate>saveFelmeroElem</button> <button id=discardFelmeroElem class=cts-button ej-button e-click=vm.DiscardFelmeroElem e-enabled=vm.modified translate>discardFelmeroElem</button></div></div><br><br><div class=well><div ng-repeat=\"hint in vm.typeHint\"><label style=color:rgb(128,128,128)>{{hint}}</label></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/editHealthType/editHealthType.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=editHealthTypeHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><div class=col-md-6><form class=filter><div class=row><div style=\"margin-top: 2em;\" class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddMainType id=addMainType e-enabled=vm.EGESZSMOD translate>addMainType</button> <button class=cts-button ej-button e-click=vm.EditMainType id=editeMainType e-enabled=vm.editDeleteMainTypeEnabled translate>editMainType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteMainType id=deleteMainType e-enabled=vm.editDeleteMainTypeEnabled translate>deleteMainType</button></div></div></form><div><div id=MainTypeGrid name=MainTypeGrid></div></div></div><div class=col-md-6><form class=filter><div class=row><div style=\"margin-top: 2em;\" class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddSubType id=addSubType e-enabled=vm.addNewSubType translate>addSubType</button> <button class=cts-button ej-button e-click=vm.EditSubType id=editeSubType e-enabled=vm.editDeleteSubTypeEnabled translate>editSubType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteSubType id=deleteSubType e-enabled=vm.editDeleteSubTypeEnabled translate>deleteSubType</button></div></div></form><div id=SubTypeGrid name=SubTypeGrid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/editSection/editSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate id=form name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-text-box name=Section label=Section ng-model=vm.section.SzakosztalyNeve validation-rules=\"{required: true, minlength: 4 }\"></cts-text-box><cts-dropdown-list name=leader1DropDown label=PrimarySectionLeader value=vm.section.SzakosztalyVezetoId1 datasource=vm.sectionLeaders databound=vm.leader1DataBound select=vm.leader1Select validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=leader2DropDown label=SecondarySectionLeader value=vm.section.SzakosztalyVezetoId2 datasource=vm.sectionLeaders2 databound=vm.leader2DataBound select=vm.leader2Select validation-rules=\"{required: true}\"></cts-dropdown-list></div></div><div class=row><div class=col-lg-8><cts-check-box label=Active checked=vm.section.Aktiv></cts-check-box><cts-check-box label=IndividualSport checked=vm.section.Egyeni></cts-check-box><cts-check-box label=TeamSport checked=vm.section.Csapat></cts-check-box></div></div><hr><div class=row><div class=col-md-12 style=\"text-align: center;\"><label translate>TextColor</label></div><div class=col-lg-8 style=\"clear: both;\"><cts-color-picker name=TextColor label=TextColor value=vm.section.SzovegSzin style=margin-top:5px;></cts-color-picker><cts-color-picker name=BackgroundColor label=BackgroundColor value=vm.section.Szin style=margin-top:5px;></cts-color-picker></div></div><hr><div class=row><div class=col-md-12 style=\"text-align: center;\"><label style=margin-left:40px; translate>ClothesUsedInSection</label></div><div class=col-lg-8><cts-check-box label=Slippers checked=vm.section.RuhaPapucs></cts-check-box><cts-check-box label=Shoe checked=vm.section.RuhaCipo></cts-check-box><cts-check-box label=Jogging checked=vm.section.RuhaMelegito></cts-check-box><cts-check-box label=BathRobe checked=vm.section.RuhaFurdokopeny></cts-check-box><cts-check-box label=Coat checked=vm.section.RuhaKabat></cts-check-box></div></div><hr><div class=row><div class=col-lg-8><cts-check-box label=ArmorPant checked=vm.section.RuhaPancelnadrag></cts-check-box><cts-check-box label=Shirt checked=vm.section.RuhaPolo></cts-check-box><cts-check-box label=Short checked=vm.section.RuhaSort></cts-check-box><cts-check-box label=SwimmingPant checked=vm.section.RuhaUszonadrag></cts-check-box></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center; margin-bottom:15px;\"><button class=cts-button ej-button e-click=vm.save type=submit form=form translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/schoolManagement/schoolManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/settings/systemSettings/systemSettings.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=systemSettingsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=\"col-xs-12 col-lg-6\"><cts-check-box name=socialSecurityNumberRequired label=SocialSecurityNumberRequired checked=vm.socialSecurityNumberRequiredValue></cts-check-box><cts-check-box name=athleteRegistrationNumberRequired label=AthleteRegistrationNumberRequired checked=vm.athleteRegistrationNumberRequiredValue></cts-check-box><cts-check-box name=paymentNumberSeparately label=PaymentNumberSeparately checked=vm.paymentNumberSeparatelyValue></cts-check-box><cts-check-box name=SPORTMINKOTELEZO label=AthleteRequiredMinDatas checked=vm.SPORTMINKOTELEZO></cts-check-box><cts-check-box name=SPKORVALTTART label=AthleteTransferWithDebit checked=vm.SPKORVALTTART></cts-check-box><cts-check-box name=HAVIEDZTERVJOVAHAGYKOT label=MonthlyTrainingPlanApproveRequired checked=vm.HAVIEDZTERVJOVAHAGYKOT></cts-check-box><cts-check-box name=HETIEDZTERVJOVAHAGYKOT label=WeeklyTrainingPlanApproveRequired checked=vm.HETIEDZTERVJOVAHAGYKOT></cts-check-box><cts-check-box name=ESZKSPORTOLOKILEP label=AbleToExitAthleteWithAsset checked=vm.ESZKSPORTOLOKILEP></cts-check-box><cts-check-box name=ESZKUSERKILEP label=AbleToExitUserWithAsset checked=vm.ESZKUSERKILEP></cts-check-box><cts-check-box name=NINCSOKTDIJ label=NINCSOKTDIJ checked=vm.NINCSOKTDIJ></cts-check-box><cts-check-box name=INAKTIVMENUREJTES label=INAKTIVMENUREJTES checked=vm.INAKTIVMENUREJTES></cts-check-box></div><div class=\"col-xs-12 col-lg-6\"><cts-check-box name=FOLAPELFOGADASRAVAROJELENLETIK label=FOLAPELFOGADASRAVAROJELENLETIK checked=vm.FOLAPELFOGADASRAVAROJELENLETIK></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROHAVITERVEK label=FOLAPELFOGADASRAVAROHAVITERVEK checked=vm.FOLAPELFOGADASRAVAROHAVITERVEK></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROHETITERV label=FOLAPELFOGADASRAVAROHETITERV checked=vm.FOLAPELFOGADASRAVAROHETITERV></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROEVESTERVEK label=FOLAPELFOGADASRAVAROEVESTERVEK checked=vm.FOLAPELFOGADASRAVAROEVESTERVEK></cts-check-box><cts-check-box name=FOLAPKIFIZETETLENTAGDIJAK label=FOLAPKIFIZETETLENTAGDIJAK checked=vm.FOLAPKIFIZETETLENTAGDIJAK></cts-check-box><cts-check-box name=FOLAPLINKEK label=FOLAPLINKEK checked=vm.FOLAPLINKEK></cts-check-box><cts-check-box name=FOLAPLEJARO label=FOLAPLEJARO checked=vm.FOLAPLEJARO></cts-check-box></div></div><div class=row><div class=col-sm-6><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ReducedFeeNames</label></div><cts-dropdown-list name=languages label=Languages value=vm.valasztottNyelv datasource=vm.NYELVEK select=vm.languageSelect></cts-dropdown-list><cts-text-box name=k1 label=ReducedFee1 data-ng-model=vm.kedvezmeny1></cts-text-box><cts-text-box name=k2 label=ReducedFee2 data-ng-model=vm.kedvezmeny2></cts-text-box><cts-text-box name=k3 label=ReducedFee3 data-ng-model=vm.kedvezmeny3></cts-text-box><cts-text-box name=k4 label=ReducedFee4 data-ng-model=vm.kedvezmeny4></cts-text-box><cts-text-box name=k5 label=ReducedFee5 data-ng-model=vm.kedvezmeny5></cts-text-box><cts-text-box name=ok1 label=ReducedEducationalFee1 data-ng-model=vm.kedvezmenyokt1></cts-text-box><cts-text-box name=ok2 label=ReducedEducationalFee2 data-ng-model=vm.kedvezmenyokt2></cts-text-box><cts-text-box name=ok3 label=ReducedEducationalFee3 data-ng-model=vm.kedvezmenyokt3></cts-text-box><cts-text-box name=ok4 label=ReducedEducationalFee4 data-ng-model=vm.kedvezmenyokt4></cts-text-box><cts-text-box name=ok5 label=ReducedEducationalFee5 data-ng-model=vm.kedvezmenyokt5></cts-text-box></div><div class=col-sm-6><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ExpiredDocNotificationGroup</label></div><div align=left style=margin-right:100px;><div class=row><cts-list-box name=expNotiList label css-class=scroller-fix datasource=vm.expNotiList show-checkbox=true checkedindices=vm.expNotiChecked height=170></cts-list-box></div><div class=row><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ExpiredDocNotificationFrequencyForParentsAndAthletes</label></div><cts-dropdown-list name=nf1 label=NotificationFrequency value=vm.nf1 datasource=vm.nf1list select=vm.nf1Select databound=vm.nf1databound></cts-dropdown-list><cts-dropdown-list name=nf2 label=NotificationOn value=vm.nf2 datasource=vm.nf2list select=vm.nf2Select databound=vm.nf2databound></cts-dropdown-list></div></div><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>DeadlineSettings</label></div><div align=left style=margin-right:100px;><cts-numeric-text-box name=WtpGracePeriod label=WtpGracePeriod value=vm.HETIEDZTURELMI validation-rules=\"{required: false, minlength: -365, maxlength: 365}\"></cts-numeric-text-box></div></div></div><div class=row><div class=col-sm-6></div><div class=col-sm-6><div class=row><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>CountsAsAttendance</label></div><div style=margin-right:100px;><cts-list-box name=attendanceList label css-class=scroller-fix datasource=vm.attendanceList show-checkbox=true checkedindices=vm.attendanceChecked height=170></cts-list-box></div></div></div></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSystemSettings translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/reports/raceResultsReport/raceResultsReport.html','<ht-widget-header title={{title}} text-id=raceResultsReportHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev change=vm.nameChange enabled=false></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.birthDate clear=vm.clearYear change=vm.selectBirthDate></cts-date-picker><cts-dropdown-list name=Team label=Team datasource=vm.teamsList databound=vm.teamsDataBound clear=vm.clearTeam select=vm.teamsSelect></cts-dropdown-list><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom clear=vm.clearSelectdateFrom change=vm.selectdateFromChange></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound clear=vm.clearSection select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound clear=vm.clearAgeGroup select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach datasource=vm.coachList databound=vm.coachDropDownListDataBound clear=vm.clearCoach select=vm.coachSelect></cts-dropdown-list><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo clear=vm.clearSelectdateTo change=vm.selectdateToChange></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-box name=athleteRatings label=CoachRating data-ng-model=vm.requestedData.Ertekeles></cts-text-box><cts-text-box name=athleteRanking label=AthleteRanking data-ng-model=vm.requestedData.Helyezes></cts-text-box><cts-text-box name=athleteResults label=ResultText data-ng-model=vm.requestedData.EredmenySzoveg></cts-text-box><div class=\"form-group cts-form-group\"><label for=coachRating><label translate>CoachRating</label></label><div id=coachRating><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio1 value=-2 e-change=vm.radioButtonChecked> <label for=Radio1 class=labelBtn>1</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio2 value=-1 e-change=vm.radioButtonChecked> <label for=Radio2 class=labelBtn>2</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio3 value=0 e-change=vm.radioButtonChecked> <label for=Radio3 class=labelBtn>3</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio4 value=1 e-change=vm.radioButtonChecked> <label for=Radio4 class=labelBtn>4</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio5 value=2 e-change=vm.radioButtonChecked> <label for=Radio5 class=labelBtn>5</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio6 value=2 e-change=vm.radioButtonClear> <label for=Radio6 class=labelBtn>-</label></div></div></div></div><div style=\"overflow: hidden;\"><cts-text-box name=location label=Location data-ng-model=vm.requestedData.Helyszin></cts-text-box><cts-text-box name=competitionType label=Jellege data-ng-model=vm.requestedData.Jellege></cts-text-box><cts-text-box name=competition label=VersenyLeiras data-ng-model=vm.requestedData.VersenyLeiras></cts-text-box><cts-text-box name=Versenyszam label=Versenyszam data-ng-model=vm.requestedData.Versenyszam></cts-text-box></div><div class=button-wrapper style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.searchTeam translate>SearchTeam</button> <button class=cts-button ej-button e-click=vm.searchAthlete translate>SearchAthlete</button> <button id=deleteResult class=cts-button e-enabled=vm.showDelButton ej-button e-click=vm.deleteResult translate>deleteResult</button></div><script id=rareretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><script id=rareretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.open(${Id})\" translate><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></a></script><script id=rareretemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.printAthleteResult(${Id})\" translate>Print</a></script></form><div class=row style=\"margin-top: 2em; clear: both;\"><div data-ng-show=\"vm.searched === \\'athlete\\'\"><div class=col-lg-12><div id=Grid class=slim-grid></div></div></div><script id=rareretemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openTeam(${CsapatId})\">${CsapatNev}</a></script><script id=rareretemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.open(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=rareretemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.printTeamResult(${Id})\" translate>Print</a></script><div data-ng-show=\"vm.searched === \\'team\\'\"><div class=col-lg-12><div id=Grid2 class=slim-grid></div></div></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=back translate>Back</button></div></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialogA ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenySportoloReport report-parameters=vm.reportParameters></report></div><div id=printDialogT ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenyCsapatReport report-parameters=vm.reportParameters2></report></div>');\n$templateCache.put('app/settings/userGroups/userGroupsManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div id=popup><div id=newgroup ej-dialog e-height=385px e-minheight=385px e-maxheight=385px e-title={{vm.newgrouptitle}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=newgroupName label=Name data-ng-model=vm.newgroup.Nev></cts-text-box><cts-text-box name=newgroupDesc label=Description data-ng-model=vm.newgroup.Leiras></cts-text-box></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.newgroupSave() type=button translate>Save</button> <button class=cts-button id=cancel data-ng-click=vm.newgroupCancel() type=button translate>Cancel</button></div></div></div></div><div id=popup><div id=editgroup ej-dialog e-height=385px e-minheight=385px e-maxheight=385px e-title={{vm.editgrouptitle}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=editgroupName label=Name data-ng-model=vm.editgroup.Nev></cts-text-box><cts-text-box name=editgroupDesc label=Description data-ng-model=vm.editgroup.Leiras></cts-text-box></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=cancel data-ng-click=vm.editgroupCancel() type=button translate>Cancel</button> <button class=cts-button id=done data-ng-click=vm.editgroupSave() type=button translate>Save</button></div></div></div></div><div class=widget><ht-widget-header title={{title}} text-id=userGroupsHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\" /> </div></script><div class=widget-content><form class=filter><div class=row><div class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddGroup id=addGroup e-enabled=vm.UJFELHCSOP translate>addGroup</button> <button class=cts-button ej-button e-click=vm.EditGroup id=deleteGroup e-enabled=vm.deleteGroupEnabled translate>editGroup</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteGroup id=deleteGroup e-enabled=vm.deleteGroupEnabled translate>deleteGroup</button> <button class=cts-button ej-button e-click=vm.ManageRights id=manageRights e-enabled=vm.setGroupRightsEnabled translate>manageRights</button></div></div></form><div><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/userRights/userRights.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=userRightsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><div class=row><div class=\"col-md-12 col-lg-8\"><form class=listboxkozepre><cts-dropdown-list name=userGroupDropDown label=\"User group\" value=vm.selectedUserGroup datasource=vm.userGroupList databound=vm.userGroupDataBound select=vm.userGroupSelect></cts-dropdown-list><cts-list-box enabled=vm.changeEventActive name=groupRightsList label=\"User group rights\" css-class=scroller-fix datasource=vm.accessRights show-checkbox=true check-change=vm.groupRightsChange checkedindices=vm.checkedIndices height=400></cts-list-box></form></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/userManagement/userManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/settings/usersBelongingToAthletes/usersBelongingToAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=usersBelongingToAthletesHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList value=vm.sectionIdValue databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=addTeam class=cts-button ej-button e-click=vm.getParentAndAthleteUsers translate>GetDatas</button></div></div></div></form><script id=usbetoattemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openUser(${UserID})\">${UserName}</a></script><script id=usbetoattemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=usbetoattemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.unlinkUserFromAthlete(${UserID},${SportoloID},${szerepint})\" translate=\"\">unlinkUserFromAthlete</a></script><div id=Grid></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/search/athletes/athletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/search/user/user.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div id=Grid name=Grid></div></form></div><div class=widget-foot><button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=back() translate>Back</button><div class=clearfix></div></div><script id=ansepllitemplateDataColumn1 type=text/x-template><input type=\"checkbox\" data-ng-if=\"\\'${EgyeniTerv}\\' === \\'true\\'\" checked=\"checked\" disabled/> <input type=\"checkbox\" data-ng-if=\"\\'${EgyeniTerv}\\' !== \\'true\\'\" disabled/></script><script id=ansepllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${KorosztalyNeve}</a></script><script id=ansepllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToNewCoach(${IdEdzo})\">${EdzoNeve}</a></script><script id=ansepllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${EdzoLezarta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${EdzoLezarta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=ansepllitemplateDataColumn5 type=text/x-template><input data-ng-if=\"\\'${SzakosztalyvezetoJovahagyta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${SzakosztalyvezetoJovahagyta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=ansepllitemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPageHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><br><button type=button id=olderReports class=cts-button style=float:right; ej-button e-click=vm.goToOlderAnnualSeasonPlanReports translate>OlderAnnualSeasonReports</button></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=teKapcsolat label=Contact data-ng-model=vm.coachContact owndisabled=true></cts-text-box><cts-dropdown-list name=maKorabbi enabled=vm.maKorabbiEditable label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect data-ng-hide=vm.noAnnualSeasonPlan></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=teEmail label=Email data-ng-model=vm.coachEmail owndisabled=true></cts-text-box></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><br><button type=button id=annualSeasonPlanReportSelect class=cts-button ej-button e-click=vm.annualSeasonPlanReportSelect style=margin-left:15px translate>Select</button> <button type=button id=annualSeasonPlanReportCreate class=cts-button e-enabled=vm.noAnnualSeasonPlan ej-button e-click=vm.annualSeasonPlanReportCreate translate>CreateNewAnnualSeasonPlanReport</button></div><div class=\"alert alert-danger\" data-ng-show=vm.noAnnualSeasonPlan translate>ThereIsntAnnualSeasonPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasAnnualSeasonPlan translate>ThereIsAnnualSeasonPlanReport</div><div class=\"alert alert-warning\" data-ng-show=vm.hasSignedAnnualSeasonPlan translate>TherIsSignedAnnualSeasonPlanReport</div><div class=\"alert alert-success\" data-ng-show=vm.hasAcceptedAnnualSeasonPlan translate>ThereIsSignedAndAcceptedAnnualSeasonPlanReport</div><label translate>TheMostImportantDataOfAGroupsMembers</label><div id=Grid name=Grid></div></form></div><div class=widget-foot style=\"text-align: center;\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshData() data-ng-show=vm.hasAnnualSeasonPlan translate>RefreshData</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() data-ng-show=\"vm.hasAnnualSeasonPlan || vm.hasSignedAnnualSeasonPlan || vm.hasAcceptedAnnualSeasonPlan\" translate>NextPage</button></div><script id=anseplrepa1templateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNeve}</a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage2Help right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><label translate>AthleteStartOfOfficialTrainingAndPastTrainers</label><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>PreconditioningAndCompetitionPast</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshData() data-ng-hide=vm.disable translate>RefreshData</button><br><button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div><script id=anseplrepa2templateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNeve}</a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage3Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=270px e-minheight=270px e-maxheight=435px e-title=\"V\\xE1lassza ki a kiemelked\\u0151 eredm\\xE9nyt a list\\xE1b\\xF3l!\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-position-y=20% e-position-x=25%><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button ng-if=!vm.same type=submit class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults(false)>Rendben</button> <button ng-if=vm.same type=submit class=\"cts-button red doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults(true)>Rendben</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeOutstandingResultsWindow()>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>PreparationAndCompetitionPast</label><br><label translate>OutstandingResults</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.newAthletesNewRow() data-ng-hide=vm.disable translate>NewAthletesNewRow</button> <button disabled id=oldNew type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.oldAthletesNewRow() data-ng-hide=vm.disable translate>OldAthletesNewRow</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=vm.disable translate>Search</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search2() data-ng-hide=vm.disable translate>Search same</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage4Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=435px e-minheight=435px e-maxheight=435px e-title=\"Kor\\xE1bbi versenyeztet\\xE9si tervek\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button type=button class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectEarlierAnnualSeasonPlan() translate>OK</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeEarlierAnnualSeasonPlanWindow() translate>Cancel</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><label translate>CapitalObjectives</label><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>NumberOfWeeklyTrainings</label><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teSpSpec label=SpSpec value=vm.data.HetiEdzesSportag change=vm.numberChange enabled=vm.editable></cts-numeric-text-box></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teAddTraining label=AdditionalTraining value=vm.data.HetiEdzesKiegeszito change=vm.numberChange enabled=vm.editable></cts-numeric-text-box></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teWeeklyTotal label=WeeklyTotalTraining value=vm.data.HetiEdzesOsszesen enabled=false></cts-numeric-text-box></div><hr><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=TechnicalTrainingObjectives data-ng-model=vm.data.TechKepzesFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox1 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.TechKepzesFeladatokFile && vm.editable\"></div><button type=button class=\"cts-button doubleBtn\" ej-button e-click=vm.openTechnicalTrainingObjectives data-ng-show=vm.data.TechKepzesFeladatokFile translate>OpenDocument</button> <button type=button class=\"cts-button doubleBtn\" ej-button e-click=vm.removeTechnicalTrainingObjectives data-ng-show=vm.data.TechKepzesFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=SportSpecificTrainingObjectives data-ng-model=vm.data.SportagSpecFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox6 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.SportagSpecFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openSportSpecificTrainingObjectives data-ng-show=vm.data.SportagSpecFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.removeSportSpecificTrainingObjectives data-ng-show=vm.data.SportagSpecFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=TacticalTrainingObjectives data-ng-model=vm.data.TaktikaiKepzesFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox2 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.TaktikaiKepzesFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openTacticalTrainingObjectives data-ng-show=vm.data.TaktikaiKepzesFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeTacticalTrainingObjectives data-ng-show=vm.data.TaktikaiKepzesFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=AbilitydevelopmentObjectives data-ng-model=vm.data.KepessegFejlFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox3 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.KepessegFejlFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openAbilitydevelopmentObjectives data-ng-show=vm.data.KepessegFejlFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeAbilitydevelopmentObjectives data-ng-show=vm.data.KepessegFejlFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=EducationalObjectivesAndTasks data-ng-model=vm.data.NevelesiFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox4 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.NevelesiFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openEducationalObjectives data-ng-show=vm.data.NevelesiFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeEducationalObjectives data-ng-show=vm.data.NevelesiFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 10px; margin-bottom: 20px\"><cts-text-area name=comment label=EfficiencyObjectives data-ng-model=vm.data.EredmenyessegiFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox5 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.EredmenyessegiFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openEfficiencyObjectives data-ng-show=vm.data.EredmenyessegiFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeEfficiencyObjectives data-ng-show=vm.data.EredmenyessegiFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=vm.disable translate>CopyFromOlderAnnualSeasonPlan</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage5Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=270px e-minheight=270px e-maxheight=435px e-title=\"Kor\\xE1bbi versenyeztet\\xE9si tervek\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button type=button class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults() translate>OK</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeOutstandingResultsWindow() translate>Cancel</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>CompetitionPlansAndObjectives</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.newRow() data-ng-hide=!vm.editable translate>NewRow</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.removeRow() data-ng-hide=!vm.editable translate>RemoveRow</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=!vm.editable translate>CopyFromOldCompetitionPlan</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage6Help right-text=rightText></ht-widget-header><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>YearlyTablePlan</label><div id=Grid></div><div id=Grid2 name=Grid2></div><cts-text-area name=comment label=OtherObjectivesPlansTasks data-ng-model=vm.head.EgyebCelkituzesek disabled=!vm.editable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.closePlan() data-ng-show=vm.editable translate>CloseYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.rejectPlan() data-ng-hide=\"vm.editable || vm.closed\" translate>RejectYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.acceptPlan() data-ng-hide=\"vm.editable || vm.closed\" translate>AcceptYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.gotoMainPage() translate>Close</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.print() translate>Print</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshCompetition() data-ng-show=vm.editable translate>RefreshCompetition</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.savePlan() data-ng-show=vm.editable translate>Save</button></div><div id=popup><div id=rejectAttendanceWindow ej-dialog e-height=215px e-minheight=215px e-maxheight=215px e-title=\"\\xC9ves versenyeztet\\xE9si terv visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel>Adja meg a visszautas\\xEDt\\xE1s ok\\xE1t:</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectAttendanceText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button type=button class=\"btn btn-primary post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow()>M\\xE9gsem</button> <button type=button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectAttendance()>Rendben</button></div></div></div></div></div><div id=printDialog><report report-name=TEvesVersTerv report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate><div class=row style=\"margin: auto;\"><div class=col-xs-12 style=margin-top:1em;><h3 style=\"text-align: center;\">{{vm.title}}</h3></div><div class=col-xs-12><div class=button-wrapper><button class=cts-button ej-button e-click=vm.openPlan ng-if=\"(vm.terv != true && vm.teny)\" translate>OpenPlan</button> <button class=cts-button ej-button e-click=vm.openFact ng-if=\"(vm.teny != true && vm.tenyId > 0)\" translate>OpenFact</button></div></div></div><div class=row style=margin-top:2em;><div class=col-lg-5><cts-dropdown-list name=sectionDropDown label=Section value=vm.data.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.data.EdzoIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.edzoSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list></div><div class=col-lg-5><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.data.KorosztalyId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list></div><div class=col-lg-5><cts-text-box name=coachContact label=CoachContact data-ng-model=vm.EdzoElerhetosege owndisabled=true></cts-text-box></div></div><hr><div class=row><div class=col-lg-5><cts-text-box name=competitionName label=CompetitionName data-ng-model=vm.data.VersenyNeve validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div><div class=col-lg-5><cts-text-box name=competitionPlace label=CompetitionPlace data-ng-model=vm.data.VersenyHelye validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div></div><div class=row><div class=col-lg-5><cts-date-picker name=CompetitionStart label=CompetitionStart value=vm.data.VersenyKezdete validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker></div><div class=col-lg-5><cts-date-picker name=CompetitionEnd label=CompetitionEnd value=vm.data.VisszaindulasIdopontja validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker></div></div><div class=row><div class=col-lg-5><cts-text-box name=CompetitionDepartmentPlace label=CompetitionDepartmentPlace data-ng-model=vm.data.BuszKiallasHelye validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div><div class=col-lg-5><cts-date-time-picker name=CompetitionDepartmentTime label=CompetitionDepartmentTime value=vm.data.BuszKiallasIdopontja interval=15 validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-time-picker></div></div><div class=row><div class=col-lg-5><cts-auto-complete name=Bus label=Bus value=vm.data.SzallitoJarmu datasource=vm.busLists validation-rules=\"{required: true, maxlength: 50}\" owndisabled=!vm.allowEdit show-popup-button=true></cts-auto-complete></div><div class=col-lg-5><cts-auto-complete name=BusOwner label=BusOwner validation-rules=\"{required: true, maxlength: 50}\" value=vm.data.SzallitoJarmuTulajdonos datasource=vm.busOwners owndisabled=!vm.allowEdit style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div></div><div class=row><div class=col-lg-5><cts-numeric-text-box name=Advance label=Advance value=vm.data.ElolegOsszege validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box></div><div class=col-lg-5></div></div><h3 style=\"text-align: center;margin: 2em;\" translate>DetailedBudget</h3><div class=budgetPlanContainer><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>TravelCost</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=TravelCostAmount label=TravelCostAmount value=vm.data.UtazasiKoltsegOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.UtazasiKoltsegOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=TravelCostProvider label=TravelCostProvider data-ng-model=vm.data.UtazasiKoltsegSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=TravelCostDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.travelCostDivide e-width=100% translate>TravelCostDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Meal</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=MealAmount label=MealAmount value=vm.data.EtkezesOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.EtkezesOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=MealProvider label=MealProvider data-ng-model=vm.data.EtkezesSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=MealDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.mealDivide e-width=100% translate>MealDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Accommodation</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=AccommodationAmount label=AccommodationAmount value=vm.data.SzallasOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.SzallasOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=AccommodationProvider label=AccommodationProvider data-ng-model=vm.data.SzallasSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=AccommodationDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.accommodationDivide e-width=100% translate>AccommodationDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>RegistrationFee</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=RegistrationFeeAmount label=RegistrationFeeAmount value=vm.data.NevezesiOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.NevezesiOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=RegistrationFeeProvider label=RegistrationFeeProvider data-ng-model=vm.data.NevezesiDijSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=RegistrationFeeDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.registrationFeeDivide e-width=100% translate>RegistrationFeeDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>SecondmentCost</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=SecondmentCostAmount label=SecondmentCostAmount value=vm.data.KikuldetesiKoltsegOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.KikuldetesiKoltsegOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=SecondmentCostProvider label=SecondmentCostProvider data-ng-model=vm.data.KikuldetesiKoltsegSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=SecondmentCostDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.secondmentCostDivide e-width=100% translate>SecondmentCostDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Other</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=OtherAmount label=OtherAmount value=vm.data.EgyebOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.EgyebOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=OtherProvider label=OtherProvider data-ng-model=vm.data.EgyebSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=OtherDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.otherDivide e-width=100% translate>OtherDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Sum</p><cts-numeric-text-box name=Sum label=Sum value=vm.data.OsszesenOszeg validation-rules=\"{required: false}\" enabled=false inputonly=true></cts-numeric-text-box></div></div><cts-text-area name=Comment label=Comment data-ng-model=vm.data.Megjegyzes css=\"padding-left:0; padding-right:0; width: 95%; margin: auto;\" disabled=!vm.allowEdit inputonly=true></cts-text-area><h3 style=\"text-align: center;margin: 2em;\" translate>DetailedPeople</h3><div class=row ng-show=vm.allowEdit><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>MoreAgeGroups</label><div class=input-group><input type=text id=MoreAgeGroups name=MoreAgeGroups></div></div></div><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>Athlete</label><div class=input-group><input type=text id=AthleteDropDownMS name=AthleteDropDownMS></div></div></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddAthlete class=cts-button ej-button e-click=vm.addAthlete e-enabled=vm.allowEdit translate>Add</button> <button type=button id=AddAllAthlete class=cts-button ej-button e-click=vm.addAllAthlete e-enabled=vm.allowEdit translate>AddAll</button></div><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>User</label><div class=input-group><input type=text id=UserDropDownMS name=UserDropDownMS></div></div></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddUser class=cts-button ej-button e-click=vm.addUser e-enabled=vm.allowEdit translate>Add</button></div><div class=col-lg-8><cts-text-box name=OtherPersonName label=OtherPersonName data-ng-model=vm.otherPersonName owndisabled=!vm.allowEdit></cts-text-box><cts-numeric-text-box name=OtherPersonYear label=OtherPersonYear value=vm.otherPersonYear enabled=vm.allowEdit></cts-numeric-text-box></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddOther class=cts-button ej-button e-click=vm.addOtherPersonName e-enabled=vm.allowEdit translate>Add</button></div><div class=\"col-lg-12 smCenter\"><button type=button id=DeleteSelected class=cts-button ej-button e-click=vm.deleteSelected e-enabled=vm.allowEdit translate>DeleteSelected</button></div></div><div class=row style=margin-top:0.5rem><div id=Grid></div></div><div class=button-wrapper style=\"text-align: center; margin-top: 2em; width: 100%;\"><div class=row><button type=submit name=saveAwayBudgetPlan id=search class=cts-button ej-button e-click=vm.save e-enabled=vm.allowEdit translate>Save</button> <button type=button id=delete class=cts-button ej-button e-click=vm.deletePlan ng-if=\"vm.data.Id > 0 && !vm.forceDisableEdit && !vm.teny && vm.allowEdit\" translate>DeletePlan</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=vm.excel ng-if=\"vm.data.Id>0\" translate>Excel Export</button></div><div class=row><button class=cts-button ej-button e-click=vm.close ng-if=vm.allowClose translate>ClosePlan</button> <button class=cts-button ej-button e-click=vm.open ng-if=\"vm.allowOpen && vm.forceDisableEdit == false\" translate>ReOpenPlan</button> <button class=cts-button ej-button ng-if=\"vm.allowOpen && vm.forceDisableEdit == true && vm.teny == false\" e-enabled=false translate>UnableToReOpenPlan</button> <button class=cts-button ej-button e-click=vm.finalize ng-if=\"vm.allowFinalize == true && vm.forceDisableEdit == false\" translate>Finalize</button></div><div class=row ng-hide=\"vm.terv && vm.tenyId > 0\"><button ej-button class=cts-button e-enabled=vm.Accept1Enabled e-click=vm.IWillAccept1 ng-if=\"vm.allowIWillAccept1 && !vm.allowAccept1 && !vm.allowUndoAccept1\" translate>IWillAccept1</button> <button ej-button class=cts-button e-enabled=vm.Accept1Enabled e-click=vm.accept1 ng-if=\"!vm.allowIWillAccept1 && vm.allowAccept1 && !vm.allowUndoAccept1\" translate>Accept1</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept1Enabled e-click=vm.UndoAccept1 ng-if=\"!vm.allowIWillAccept1 && !vm.allowAccept1 && vm.allowUndoAccept1\" translate>UndoAccept1</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept1 && !vm.allowAccept1 && !vm.allowUndoAccept1\" translate>UnableAccept1</button> <button ej-button class=cts-button e-enabled=vm.Accept2Enabled e-click=vm.IWillAccept2 ng-if=\"vm.allowIWillAccept2 && !vm.allowAccept2 && !vm.allowUndoAccept2\" translate>IWillAccept2</button> <button ej-button class=cts-button e-enabled=vm.Accept2Enabled e-click=vm.accept2 ng-if=\"!vm.allowIWillAccept2 && vm.allowAccept2 && !vm.allowUndoAccept2\" translate>Accept2</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept2Enabled e-click=vm.UndoAccept2 ng-if=\"!vm.allowIWillAccept2 && !vm.allowAccept2 && vm.allowUndoAccept2\" translate>UndoAccept2</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept2 && !vm.allowAccept2 && !vm.allowUndoAccept2\" translate>UnableAccept2</button> <button ej-button class=cts-button e-enabled=vm.Accept3Enabled e-click=vm.IWillAccept3 ng-if=\"vm.allowIWillAccept3 && !vm.allowAccept3 && !vm.allowUndoAccept3\" translate>IWillAccept3</button> <button ej-button class=cts-button e-enabled=vm.Accept3Enabled e-click=vm.accept3 ng-if=\"!vm.allowIWillAccept3 && vm.allowAccept3 && !vm.allowUndoAccept3\" translate>Accept3</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept3Enabled e-click=vm.UndoAccept3 ng-if=\"!vm.allowIWillAccept3 && !vm.allowAccept3 && vm.allowUndoAccept3\" translate>UndoAccept3</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept3 && !vm.allowAccept3 && !vm.allowUndoAccept3\" translate>UnableAccept3</button></div></div><div class=row><table class=table><tbody><tr><td><label>Szakmai j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle1}}</td></tr><tr><td><label>Gazdas\\xE1gi j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle2}}</td></tr><tr><td><label>Vezet\\u0151i j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle3}}</td></tr></tbody></table></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog style=\"height: 100%;\"><report report-name=TIdegenbeliKoltsegvetesiTervReport report-parameters=vm.reportParameters style=\"height: 100%;\"></report></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.html','<ht-widget-header title={{title}} text-id=awayBudgetPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-dropdown-list name=typeDropDown label=Type value=vm.typeId datasource=vm.typeList databound=vm.typeDataBound select=vm.typeSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=DateFrom label=DateFrom value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=DateTo label=DateTo value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-auto-complete name=competitionPlace label=CompetitionPlace value=vm.competitionPlace datasource=vm.competitionPlaceList multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=onlyStartDate label=OnlyStartDate checked=vm.onlyStartDate></cts-check-box></div><div class=row><div class=button-wrapper><button type=button id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=button id=create class=cts-button ej-button e-click=vm.create translate>Create</button> <button type=button id=delete class=\"cts-button red\" ej-button e-click=vm.delete translate>Delete</button></div></div><div class=row style=margin-top:2rem><script type=text/x-template id=PlanOpenTemplate><a data-ng-click=\"vm.openPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.html','<ht-widget-header title={{title}} text-id=competitionMonthlyPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year value=vm.selectedYear select=vm.yearChanged datasource=vm.years databound=vm.yearDataBound validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><script type=text/x-template id=coachColumnTemplate><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script type=text/x-template id=openDeleteColumnTemplate><a data-ng-click=\"vm.goToCompetitiveMonthlyPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div><div class=col-xs-9><hr><button class=cts-button ej-button data-ng-if=\"vm.selectedCoach!==undefined && vm.selectedCoach!==null && vm.selectedCoach!==0 && vm.selectedSection!==undefined && vm.selectedSection!==null && vm.selectedSection!==0 && vm.selectedSection!==null && vm.allowAddNew.individual\" data-ng-click=\"vm.goToNewCompetitiveMonthlyPlan(\\'egyeni\\')\" translate>\\xDAj havi versenyterv k\\xE9sz\\xEDt\\xE9se (egy\\xE9ni)</button> <button class=cts-button ej-button data-ng-if=\"vm.selectedCoach!==undefined && vm.selectedCoach!==null && vm.selectedCoach!==0 && vm.selectedSection!==undefined && vm.selectedSection!==null && vm.selectedSection!==0 && vm.selectedSection!==null && vm.allowAddNew.teams\" data-ng-click=\"vm.goToNewCompetitiveMonthlyPlan(\\'csapat\\')\" translate>\\xDAj havi versenyterv k\\xE9sz\\xEDt\\xE9se (csapat)</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedMonthlyPlan.fej.EdzoNeve owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedMonthlyPlan.fej.SzakosztalyNeve owndisabled=true></cts-text-box><cts-text-box name=txTipusI label=Type owndisabled=true ng-model=vm.individualText ng-if=vm.egyeni></cts-text-box><cts-text-box name=txTipusT label=Type owndisabled=true ng-model=vm.teamText ng-if=!vm.egyeni></cts-text-box><div class=smCenter><button id=olderReports style=margin-top:10px class=cts-button ej-button e-click=vm.goToOlderMonthlyCompetitiveReports data-ng-hide={{vm.editedMonthlyPlan.fej.Vegleges}} translate>OlderMonthlyCompetitveReports</button></div></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect databound=vm.yearDatabound enabled=\"vm.Id===0\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months select=vm.monthSelect databound=vm.monthDatabound enabled=\"vm.Id===0\"></cts-dropdown-list></div><br><div style=\"overflow: hidden;\"><div class=\"alert alert-info\" data-ng-show=vm.noMonthlyPlan translate>ThereIsntMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasMonthlyPlan translate>ThereIsMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasSignedMonthlyPlan translate>TherIsSignedMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasAcceptedMonthlyPlan translate>ThereIsSignedAndAcceptedAMonthlyPlanReport</div><cts-text-box name=\"Finalized on\" label=\"Finalized on\" data-ng-model=vm.leadvaStr css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=true></cts-text-box><cts-text-box name=\"Accepted on\" label=\"Accepted on\" data-ng-model=vm.elfogadvaStr css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=true></cts-text-box></div><div class=row><p><span translate>LastEditedValue</span>: {{vm.editedColumnValue}}<button id=CopyCellToColumn class=cts-button e-enabled={{vm.readOnlyMonthlyPlan}} ej-button e-click=vm.CopyCellToColumn style=\"margin-left: 2em;\" translate>CopyCellToColumn</button></p></div><div class=row style=\"position: relative;\"><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=GridNew name=GridNew class=slim-grid></div></div><br><cts-text-area name=comment label=Comment data-ng-model=vm.editedMonthlyPlan.fej.Megjegyzes owndisabled=vm.readOnlyMonthlyPlan css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{maxLenght: 255}\"></cts-text-area><div class=col-sm-12 style=\"text-align: center\"><button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && !vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.closeMonthlyPlan translate>MonthlyPlanReportClose</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && vm.leadvaStr.length>0 && vm.editedMonthlyPlan.fej.Elfogadas1 == null\" class=cts-button ej-button e-click=vm.acceptMonthlyPlan translate>SectionLeaderApprove</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.rejectMonthlyPlan translate>Deny</button> <button class=cts-button ej-button e-click=vm.printMonthlyPlan translate>Print</button> <button class=cts-button ej-button e-enabled=vm.saveButton e-click=vm.saveMonthlyPlan translate>Save</button> <button class=cts-button ej-button e-click=back translate>Close</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && !vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.deletePlan translate>Delete</button></div></form><br><br><div class=button-wrapper><button id=ShowYearlyPlan class=cts-button ej-button e-enabled=vm.MEGTEVVERST data-toggle=collapse data-target=#yearlyplan translate>ShowYearlyPlan</button></div><div id=yearlyplan class=collapse><div style=\"overflow: hidden;\"><cts-dropdown-list name=AgeGroupForAnnual label=AgeGroupForAnnual select=vm.ageGroupSelect datasource=vm.coachsAgeGroups></cts-dropdown-list></div><br><div id=GridYear name=GridYear></div></div><div id=popup><div id=rejectAttendanceWindow ej-dialog e-width=80% e-title=\"Havi vers enyeztet\\xE9si terv visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-allowsorting=true e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel translate>ReasonForRejection</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectMonthlyPlanText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectMonthlyPlanOk() type=button translate>Rendben</button> <button class=\"btn btn-primary post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow() type=button translate>M\\xE9gsem</button></div></div></div></div></div><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi versenyeztet\\xE9si terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierCompetitvePlanWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierCompetitvePlanWindow() type=button>M\\xE9gsem</button></div></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div><div data-ng-if=\"vm.egyeni==true\" id=printDialogE><report report-name=THaviVersenytervEgyeni2 report-parameters=vm.reportParameters></report></div><div data-ng-if=\"vm.egyeni!=true\" id=printDialogCS><report report-name=THaviVersenytervCsapat2 report-parameters=vm.reportParameters></report></div><script type=text/x-template id=cmpropenathlete><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${KorosztalySportolo}</a></script><script type=text/x-template id=cmpropenteam><a data-ng-click=\"vm.openTeam(${CsapatId},${KorosztalyId},${SzakosztalyId})\">${KorosztalyCsapat}</a></script><script type=text/x-template id=columnTemplate1><div><cts-text-box/><button type=\"button\">|</button></div></script>');\n$templateCache.put('app/administration/exercises/exercisesList/exercisesList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.KorosztalyId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.EdzoId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-auto-complete name=BodyParts label=BodyParts value=vm.bodyPartValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Testresz multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesType label=Type value=vm.TypeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Tipus multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=individualTeam label=individualTeam value=vm.individualTeamValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Jellege multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesAsset label=Assets value=vm.AssetValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Felszerelesek multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Difficulty label=Difficulty value=vm.difficultyValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Nehezseg multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Time label=TimeLength value=vm.timeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Ido multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=NecessaryArea label=Space value=vm.necessaryAreaValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.SzuksegesTerulet multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=Video label=Video checked=vm.withVideo style=\"width: 125px;\"></cts-check-box><cts-check-box name=Pattern label=Pattern checked=vm.withPattern style=\"width: 125px;\"></cts-check-box><cts-check-box name=Paint label=Paint checked=vm.withPaint style=\"width: 200px;\"></cts-check-box><cts-check-box name=Public label=Public checked=vm.public style=\"width: 125px;\"></cts-check-box></div><div class=row><div class=button-wrapper><button type=submit ej-button class=cts-button e-click=vm.create translate>Create</button> <button class=cts-button ej-button e-click=vm.getDatas translate>Show</button></div></div></form><div class=row style=margin-top:1rem><div id=Grid name=Grid></div><script type=text/x-template id=teamlistcolumnTemplate3><a data-ng-click=\"vm.deleteExercise(${GyakorlatId})\" ng-show=\"vm.MODGYAKORLAT\" translate>Delete</a></script><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"> <img src=\"${Mintakep}\" align=\"center\" height=\"64px\" width=\"64px\" style=\"object-fit: cover;\"/> </div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.goToExercise(${GyakorlatId})\">${Nev}</a></div></script></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/exercises/exercisesCreate/exercisesCreate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><h4 style=\"text-align: center; margin-bottom: 1.5em;\" translate>ExerciseDetails</h4><cts-text-box name=exerciseName label=ExerciseName data-ng-model=vm.formdata.exerciseName validation-rules=\"{required: true, maxlength: 50}\"></cts-text-box><cts-dropdown-list name=sectionId label=Section value=vm.formdata.sectionId datasource=vm.sectionList validation-rules=\"{required: true}\" databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupId label=AgeGroup value=vm.formdata.ageGroupId datasource=vm.ageGroupList validation-rules=\"{required: true}\" databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachId label=Coach value=vm.formdata.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-auto-complete name=bodyParts label=BodyParts value=vm.formdata.bodyParts datasource=vm.bodyPartsList show-popup-button=true change=vm.bodyPartsChange validation-rules=\"{required: true}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-auto-complete name=type label=Type value=vm.formdata.type datasource=vm.typeList show-popup-button=true change=vm.typeChange validation-rules=\"{required: true}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-auto-complete name=individualTeam label=IndividualTeam value=vm.formdata.individualTeam datasource=vm.individualTeamList show-popup-button=true change=vm.individualTeamChange validation-rules=\"{required: true, maxlength: 50}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-numeric-text-box name=time label=TimeLength value=vm.formdata.time></cts-numeric-text-box><cts-numeric-text-box name=difficulty label=Difficulty value=vm.formdata.difficulty></cts-numeric-text-box><cts-text-box name=players label=Players data-ng-model=vm.formdata.players validation-rules=\"{maxlength: 20}\"></cts-text-box><cts-text-box name=space label=Space data-ng-model=vm.formdata.space></cts-text-box><cts-auto-complete name=asserts label=Asserts value=vm.formdata.asserts datasource=vm.assertsList show-popup-button=true change=vm.assertsChange multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-text-box name=youtube label=Youtube data-ng-model=vm.youtube change=vm.youtubeChanged></cts-text-box><div class=\"form-group cts-form-group\"><label></label><div class=input-group><button type=button class=\"btn btn-link\" style=\"padding-left: 0; padding-top: 0;\" data-ng-click=vm.deleteVideo() translate>DeleteVideo</button></div></div><cts-dropdown-list name=paintId label=PaintLabel value=vm.formdata.paintId datasource=vm.paintList databound=vm.paintDataBound select=vm.paintSelect open=vm.openPaint></cts-dropdown-list><div class=\"form-group cts-form-group\"><label></label><div class=input-group><button type=button class=\"btn btn-link\" style=\"padding-left: 0; padding-top: 0;\" data-ng-click=vm.goToCreatePaint() translate>NewPaint</button></div></div><cts-check-box name=public label=Public change=vm.publicChanged></cts-check-box><cts-text-area width=100% label=Description rows=5 cols=30 ng-model=vm.formdata.Leiras></cts-text-area></div><div class=col-lg-6><h4 style=\"text-align: center; margin-bottom: 1em;\" translate data-ng-show=vm.formdata.youtube>YoutubeVideo</h4><div id=playerWrapper class=auto-clear style=\"text-align: center;\" data-ng-show=vm.formdata.youtube></div><h4 style=\"text-align: center; margin-bottom: 1em;\" translate>UploadedImages</h4><div class=auto-clear><div class=col-xs-12><div class=\"col-xs-12 col-md-6 col-lg-4\" ng-repeat=\"image in vm.formdata.savedImageList track by $index\" style=\"margin-bottom: 2em; width: 235px;\"><label style=\"overflow: hidden; -ms-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;\">{{image.fileName}}</label><div style=\"height: 100%;\"><a class=gallery-item href={{image.fileUrl}}><img src={{image.fileUrl}} style=\"width: 100%;\"></a></div><div style=\"text-align: center;\"><button class=cts-button translate style=\"float: left;\" ng-click=vm.makeToThumb($index) ng-disabled=\"image.thumbnail == true\"><img style=\"height: 24px; width: 24px;\" src={{imageThumb}}></button> <button class=cts-button translate style=\"float: right;\" ng-click=vm.deleteExistingImg($index)><img style=\"height: 24px; width: 24px;\" src={{dustbin}}></button></div></div></div></div><div class=col-xs-12><div class=dropzone file-dropzone style=\"text-align: center; height: 150px; width: 100%; border: 2px dashed #333333; position: relative;\"><p style=\"position: relative; top: 40px; text-align: center; width: 100%;\" translate>ImageDropZoneText</p><label for=addFile style=\"position: relative; top: 40px;\"><div class=cts-button><i class=\"fa fa-file-image-o\" aria-hidden=true></i> <span translate>AddImages</span></div></label></div><input id=addFile name=addFile type=file ng-file-select=vm.onFileSelect($files) style=\"display: none;\" multiple accept=.jpg,.jpeg,.bmp,.png,.gif></div><div class=col-xs-12><h4 style=\"margin-top: 2em; text-align: center;\" translate>UploadingImages</h4></div><div class=auto-clear><div class=\"col-xs-12 col-md-6 col-lg-4\" ng-repeat=\"image in files track by $index\" style=\"margin-bottom: 2em;\"><label style=\"overflow: hidden; -ms-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;\">{{files[$index].name}}</label><div style=\"height: 100%;\"><img ng-src={{imageDatas[$index]}} style=\"width: 100%;\"></div><div style=\"text-align: center;\"><button class=cts-button translate style=\"width: 100%;\" ng-click=vm.deleteImg($index) ng-class=\"{fullWidthThis: image.thumbnail == true}\"><img style=\"height: 24px; width: 24px;\" src={{dustbin}}></button></div></div></div></div><div class=col-xs-12><div class=col-sm-12 style=\"text-align: center; margin-top: 2em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.html','<ht-widget-header title={{title}} text-id=monthlyAttendanceListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months cts-placeholder=AllMonth validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maMode label=Mode value=vm.selectedMode datasource=vm.modeList></cts-dropdown-list><div class=button-wrapper><button type=submit class=cts-button ej-button data-ng-click=vm.refreshData() translate>Keres</button></div></div></form><div id=Grid name=Grid></div><div class=\"col-sm-12 col-md-12 col-lg-12\"><hr><button class=cts-button ej-button data-ng-show=\"(!vm.hasSignedAttendance && !vm.hasAcceptedAttendance) && vm.HJFELVIHET\" data-ng-click=vm.createNewAttendance() translate>\\xDAj havi jelenl\\xE9ti \\xF6sszes\\xEDt\\u0151 k\\xE9sz\\xEDt\\xE9se</button> <button class=cts-button style=margin-right:20px; ej-button data-ng-click=back() translate>Bez\\xE1r\\xE1s</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=moatlitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${Korosztaly}</a></script><script id=moatlitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=moatlitemplateDataColumn3 type=text/x-template><input data-ng-if=\"\\'${EdzoLezarta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${EdzoLezarta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=moatlitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${SzakvezJovahagyta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${SzakvezJovahagyta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=moatlitemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.goToMonthlyAttendance(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.html','<div class=widget><ht-widget-header title={{title}} text-id=monthlyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list data-ng-if=vm.allAgeGroupfill name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=olderReports class=cts-button ej-button e-click=vm.goToOlderMonthlyAttendanceReports translate>OlderMonthlyAttendanceReports</button></div></div><div><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect validation-rules=\"{required: true}\" databound=vm.yearDataBound></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months select=vm.monthSelect validation-rules=\"{required: true}\" databound=vm.monthDataBound></cts-dropdown-list><div class=button-wrapper><button id=attendanceSelect class=cts-button ej-button e-click=vm.attendanceSelect translate>ChooseIt</button></div></div><div><cts-check-box name=autoSaveCheckBox label=AutoSave checked=vm.autoSave data-ng-if=\"vm.autoSave != undefined && vm.saveButton\" change=vm.autoSaveCheckboxChanged></cts-check-box></div><div class=\"alert alert-info\" data-ng-show=\"vm.noAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsntAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasSignedAttendance && vm.editedAttendance.tetelek.length > 0\" translate>TherIsSignedAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasAcceptedAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsSignedAndAcceptedAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.noAttendance && vm.editedAttendance.tetelek.length <= 0\" translate>NoAthletesInSelectedMonthlyAttendanceReport</div><div data-ng-show=\"vm.editedAttendance.tetelek.length > 0\"><div class=monthlyAttendanceContainer><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Monday</p><input type=text class=monthlyAttendanceItemInput name=maHetfoHely id=maHetfoHely data-ng-model=vm.dayz.HetfoHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maHetfoIdo id=maHetfoIdo data-ng-model=vm.dayz.HetfoIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Tuesday</p><input type=text class=monthlyAttendanceItemInput name=maKeddHely id=maKeddHely data-ng-model=vm.dayz.KeddHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maKeddIdo id=maKeddIdo data-ng-model=vm.dayz.KeddIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Wednesday</p><input type=text class=monthlyAttendanceItemInput name=maSzerdaHely id=maSzerdaHely data-ng-model=vm.dayz.SzerdaHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maSzerdaIdo id=maSzerdaIdo data-ng-model=vm.dayz.SzerdaIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Thursday</p><input type=text class=monthlyAttendanceItemInput name=maCsutHely id=maCsutHely data-ng-model=vm.dayz.CsutortokHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maCsutIdo id=maCsutIdo data-ng-model=vm.dayz.CsutortokIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Friday</p><input type=text class=monthlyAttendanceItemInput name=maPentekHely id=maPentekHely data-ng-model=vm.dayz.PentekHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maPentekIdo id=maPentekIdo data-ng-model=vm.dayz.PentekIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Saturday</p><input type=text class=monthlyAttendanceItemInput name=maSzombatHely id=maSzombatHely data-ng-model=vm.dayz.SzombatHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maSzombatIdo id=maSzombatIdo data-ng-model=vm.dayz.SzombatIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Sunday</p><input type=text class=monthlyAttendanceItemInput name=mavasarnapHely id=mavasarnapHely data-ng-model=vm.dayz.VasarnapHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maVasarnapIdo id=maVasarnapIdo data-ng-model=vm.dayz.VasarnapIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div></div><form name=formsetforall class=filter><div style=\"overflow: hidden;\" ng-if=!vm.editedAttendance.fej.EdzoAlairta><cts-numeric-text-box name=pmtn label=PlannedMonthlyTrainingsNumbers value=vm.plannedTrainings></cts-numeric-text-box><div class=button-wrapper><button id=SetForAll class=cts-button ej-button e-click=vm.SetForAll translate>SetForAll</button></div></div></form><div class=attendance-report-div><p><span translate>NumberOfAthletes</span>: {{vm.editedAttendance.fej.CsoportLetszam}}</p><p><span translate>Entered</span>: {{vm.editedAttendance.fej.Erkezett}}</p><p><span translate>Leave</span>: {{vm.editedAttendance.fej.Tavozott}}</p></div><div class=attendance-report-div><p><span translate>LastEditedValue</span>: {{vm.editedColumnValue}} <button id=CopyCellToColumn class=cts-button ej-button e-click=vm.CopyCellToColumn style=\"margin-left: 2em;\" translate>CopyCellToColumn</button></p></div><script type=text/x-template id=columnTemplate><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNev}</a></script><div class=row><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=GridNew name=GridNew class=slim-grid></div></div><div class=col-sm-6 style=\"margin-top:10px; margin-left: -15px\"><p><b><span translate>SumPresence</span>: {{vm.presencePercentSum}}%</b></p></div><div class=col-sm-6 style=\"margin-top:10px; float:right;text-align:right; margin-right:-10px;\"><p translate>NotationMonthlyAttendanceReport</p></div><cts-text-area name=comment label=Comment data-ng-model=vm.editedAttendance.fej.Megjegyzes disabled=vm.readOnlyAttendance css=\"padding-left:0; padding-right:0; width: 100%; margin-top:10px\"></cts-text-area><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button data-ng-if=vm.closeButton e-click=vm.CopyTimeAndPlaceFromWeeklyPlan translate>CopyTimeAndPlaceFromWeeklyPlan</button> <button class=cts-button ej-button data-ng-if=vm.closeButton e-click=vm.closeMonthlyAttendance translate>AttendanceReportClose</button> <button class=cts-button ej-button data-ng-if=vm.acceptButton e-click=vm.acceptMonthlyAttendance translate>SectionLeaderApprove</button> <button class=cts-button ej-button data-ng-if=vm.rejectButton e-click=vm.rejectMonthlyAttendance translate>Deny</button> <button class=cts-button ej-button e-click=vm.print data-ng-if=\"vm.editedAttendance.fej.Id>0\" translate>Print</button><button class=cts-button ej-button data-ng-if=vm.saveButton e-click=vm.saveAttendance e-enabled=vm.saveButtonEnabled translate>Save</button> <button class=cts-button ej-button data-ng-if=\"vm.editedAttendance.fej.Id>0\" e-click=vm.openTrainingDiary translate>openTrainingDiary</button></div></div></form><div id=popup><div id=rejectAttendanceWindow ej-dialog e-height=235px e-minheight=235px e-maxheight=235px e-title=\"Havi jelenl\\xE9ti \\xF6sszes\\xEDt\\u0151 visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel>Adja meg a visszautas\\xEDt\\xE1s ok\\xE1t:</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectAttendanceText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button class=\"btn btn-danger post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow() type=button>M\\xE9gsem</button> <button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectAttendance() type=button>Rendben</button></div></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div><div id=printDialog><report report-name=THaviJelenleti report-parameters=vm.reportParameters></report></div><script id=datetemplate type=text/x-template><div style=\"\">Order Date</div></script><style>\\r\\n .e-columnheader .e-headercell .e-headercelldiv {\\r\\n height: 170px;\\r\\n text-align: left !important;\\r\\n display: table-cell;\\r\\n }\\r\\n\\r\\n .e-columnheader .e-headercell .e-headercelldiv #gridheaderverticalcenter {\\r\\n margin-top: 85px;\\r\\n margin-bottom: -85px;\\r\\n }\\r\\n\\r\\n .e-columnheader .e-headercell .e-headercelldiv .e-headertext {\\r\\n vertical-align: center;\\r\\n }\\r\\n\\r\\n .e-grid .e-headercelldiv {\\r\\n line-height: 0 !important;\\r\\n }\\r\\n</style>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.html','<ht-widget-header title={{title}} text-id=monthlyTrainingPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound validation-rules=\"{required: true}\" select=vm.ageGroupChanged></cts-dropdown-list><cts-dropdown-list name=maEv label=Year datasource=vm.years value=vm.selectedYear select=vm.yearChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=txTartalom label=textSearch ng-model=vm.textSearch></cts-text-box><div class=button-wrapper><button type=submit e-height=34px ej-button class=cts-button data-ng-click=vm.refreshData() translate>Search</button></div></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button class=cts-button e-height=34px ej-button data-ng-click=vm.createNewWeeklyTrainingPlan() translate>New</button> <button data-ng-disabled=!vm.delEnabled class=cts-button e-height=34px ej-button e-enabled=vm.delEnabled data-ng-click=vm.deleteWeeklyTrainingPlan() translate>deleteWeeklyTrainingPlan</button> <button class=cts-button e-height=34px ej-button data-ng-click=back() translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=motrpllitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=motrpllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorcsoport})\">${Korosztaly}</a></script><script id=motrpllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\" ><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=motrpllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${Jovahagyott}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Jovahagyott}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div id=popup><div id=searchWindow ej-dialog e-height=435px e-minheight=435px e-maxheight=900px e-minwidth=600px e-title=\"Kor\\xE1bbi heti edz\\xE9s terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=60% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=\"cts-button post\" id=cancel data-ng-click=vm.closeEarlierMonthlyPlanWindow() type=button translate>Cancel</button> <button class=\"cts-button post\" id=done data-ng-click=vm.selectEarlierMonthlyPlanWindow() type=button translate>Rendben</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden; text-align:right; margin-right:15px\"><button class=cts-button id=korabbiMasol data-ng-show=vm.copyEnabled data-ng-click=vm.copyFromOldPlan() type=button translate>OlderMonthlyCompetitveReports</button></div><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedMTP.EdzoNev owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedMTP.SzakosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txKorosztaly label=AgeGroup ng-model=vm.editedMTP.KorosztalyNev owndisabled=true></cts-text-box></div><hr><div style=\"overflow: hidden;\"><cts-numeric-text-box name=txMakrociklus label=Makrociklus value=vm.editedMTP.Makrociklus disabled=false validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-numeric-text-box name=txTervEdzesszam label=PlannedNumberOfTrainings value=vm.editedMTP.TervezettEdzesszam disabled=false validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-dropdown-list name=maEv label=Year value=vm.editedMTP.Ev datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.editedMTP.HonapSzama datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list></div><br><p class=text-center translate>NAPDATUMEDZESTERV</p><table class=\"attendance-report-table table-no-margin\"><thead><tr><th translate class=text-center>TrainingPlan</th></tr></thead><tbody><tr><td><cts-text-area name=HetfoDe ng-model=vm.editedMTP.Tartalom css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area></td></tr><tr></tr></tbody></table><p data-ng-if=vm.JOVAHAGYOTT translate>MonthlyTraningPlanApproved</p><div class=form-group><button class=\"cts-button post pull-left\" id=mentes data-ng-click=vm.save() type=button translate>Save</button> <button class=\"cts-button post pull-left\" id=SectionLeaderApprove data-ng-if=vm.HAVIEDZTERVJOVAHAGY data-ng-click=vm.SectionLeaderApprove() type=button translate>SectionLeaderApprove</button> <button class=\"cts-button post pull-left\" id=vissza data-ng-click=back() type=button translate>Back</button> <button class=\"cts-button post pull-left\" id=fileok ng-if=\"vm.trainingPlanId>0\" data-ng-click=vm.files() type=button translate>Files</button> <button class=\"cts-button post pull-left\" id=print data-ng-click=vm.print() type=button data-ng-show=\"vm.trainingPlanId>0\" translate>Print</button></div><label style=margin-top:2em;>{{vm.numberOfPaintsLabel}}</label></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=THaviEdzesTervReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionIdValue datasource=vm.sectionList databound=vm.sectionDataBound enabled=false></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound enabled=false></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound enabled=false></cts-dropdown-list></div><div class=row><cts-dropdown-list name=felmeroTipusDropDown label=FelmeroTipus value=vm.felmeroElemFejIdValue datasource=vm.felmeroElemFejList databound=vm.felmeroDataBound validation-rules=\"{required: true}\" enabled=\"vm.felmeroFejId<0 && !vm.test.length>0\"></cts-dropdown-list><cts-date-picker name=datepicker label=Date value=vm.dateValue validation-rules=\"{required: true}\" enabled=\"vm.felmeroFejId<0\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.CreateTest data-ng-if=vm.createButtonEnabled translate>Create</button></div></div><div class=row><div class=button-wrapper><button class=cts-button ej-button e-click=vm.CreateTestType data-ng-if=\"!vm.test.length>0\" translate>CreateNewSportSpecificTestTemplate</button> <button class=cts-button ej-button e-click=vm.EditTestType data-ng-if=vm.editTestTypeButtonEnabled translate>EditTestType</button></div></div><script type=text/x-template id=sstname><a data-ng-click=\"vm.openAthlete({{:SportoloID}})\">{{:SportoloNeve}}</a></script><div style=\"overflow: hidden;\" data-ng-show=\"vm.test.length>0\"><cts-text-area name=coachRating label=CoachRating data-ng-model=vm.edzoertekeles css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 200}\" owndisabled=!vm.UJSPFELM></cts-text-area></div><div class=row data-ng-show=\"vm.test.length>0\"><div id=Grid2></div><label>{{vm.cellHint}}</label></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button data-ng-if=\"vm.test.length>0 && vm.UJSPFELM\" ej-button e-click=vm.SaveTest translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button data-ng-if=\"vm.felmeroFejId>0 && vm.UJSPFELM\" ej-button e-click=vm.DeleteTest translate>Delete</button></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><cts-check-box label=ShowColors change=vm.colorCheckBoxChange checked=vm.showColors data-ng-if=\"vm.felmeroFejId>0\" id=sportagSpecifikus></cts-check-box></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.html','<ht-widget-header title={{title}} text-id=newSportSpecificTestListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ng-if=\"vm.Highlight==-1\" style=\"overflow: hidden;\"><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datefrom label=DateFrom change=vm.dateFromChange value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo change=vm.dateToChange value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker></div><div ng-if=\"vm.Highlight==-1\" style=\"overflow: hidden;\"><div class=button-wrapper><button id=addFelmero class=cts-button ej-button e-click=vm.newTest translate>NewTest</button></div></div></div><script type=text/x-template id=sstlTest><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\">${Datum}</a></script><script type=text/x-template id=sstlCoach><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNev}</a></script><script type=text/x-template id=sstlOpen><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div class=row><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.html','<ht-widget-header title={{title}} text-id=trainingPlanCreateHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><div class=col-lg-8><form novalidate id=form name=form enctype=multipart/form-data><cts-dropdown-list name=trainingSectionDropDown label=Section value=vm.trainingSectionId datasource=vm.trainingSectionList databound=vm.trainingSectionDataBound select=vm.trainingSectionSelect enabled=vm.allowSave></cts-dropdown-list><cts-dropdown-list name=trainingAgeGroupDropDown label=AgeGroup value=vm.trainingAgeGroupId datasource=vm.trainingAgeGroupList databound=vm.trainingAgeGroupDataBound select=vm.trainingAgeGroupSelect enabled=vm.allowSave></cts-dropdown-list><cts-text-box name=TrainingName label=TrainingName ng-model=vm.trainingName validation-rules=\"{required: true, maxlength: 50}\" owndisabled=!vm.allowSave></cts-text-box><cts-text-box name=TrainingDescription label=Description ng-model=vm.trainingDescription owndisabled=!vm.allowSave></cts-text-box><cts-check-box name=Public label=Public checked=vm.public enabled=vm.allowSave></cts-check-box><div class=\"cts-form-group gorm-group\"><label translate>TrainingTimeLength</label><div><p>{{vm.timeLength}}</p></div></div></form></div><div class=col-md-12><div id=MainGrid name=MainGrid></div><h3 style=\"text-align: center\" translate>TrainingSearch</h3><form class=filter name=Form2><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-auto-complete name=BodyParts label=BodyParts value=vm.bodyPartValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Testresz multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesType label=Type value=vm.TypeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Tipus multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=individualTeam label=individualTeam value=vm.individualTeamValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Jellege multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesAsset label=Assets value=vm.AssetValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Felszerelesek multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Difficulty label=Difficulty value=vm.difficultyValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Nehezseg multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Time label=TimeLength value=vm.timeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Ido multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=NecessaryArea label=Space value=vm.necessaryAreaValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.SzuksegesTerulet multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=Video label=Video checked=vm.withVideo></cts-check-box><cts-check-box name=Pattern label=Pattern checked=vm.withPattern></cts-check-box><cts-check-box name=Paint label=Paint checked=vm.withPaint></cts-check-box></form><div id=TrainingGrid name=TrainingGrid class=slim-grid></div><div class=button-wrapper style=\"margin-top: 1em\"><button id=lekeres class=cts-button ej-button e-click=vm.showExercises translate>Show</button> <button id=add class=cts-button ej-button e-enabled=vm.addEnabled e-click=vm.addRow translate>AddSelected</button> <button ej-button e-enabled=vm.addNewPermission class=cts-button e-click=vm.createNewTrainingPlan translate>NewTrainingPlan</button></div><div class=row><div class=col-lg-12 style=\"text-align: center; margin: 1em\"><button type=submit class=cts-button ej-button e-click=vm.save e-enabled=vm.allowSave form=form translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp \"><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\" style=\"white-space: normal !important;\">${Nev}</a></div></script></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form name=form class=form novalidate enctype=multipart/form-data><div class=col-lg-8><cts-dropdown-list name=trainingSectionDropDown label=Section value=vm.trainingSectionId datasource=vm.trainingSectionList databound=vm.trainingSectionDataBound select=vm.trainingSectionSelect enabled=false></cts-dropdown-list><cts-dropdown-list name=trainingAgeGroupDropDown label=AgeGroup value=vm.trainingAgeGroupId datasource=vm.trainingAgeGroupList databound=vm.trainingAgeGroupDataBound select=vm.trainingAgeGroupSelect enabled=false></cts-dropdown-list><cts-text-box name=TrainingName label=TrainingName ng-model=vm.trainingName validation-rules=\"{required: true}\" disabled=true></cts-text-box><cts-text-box name=TrainingDescription label=Description ng-model=vm.trainingDescription disabled=true></cts-text-box><cts-check-box name=Public label=Public checked=vm.public enabled=false></cts-check-box><div class=\"cts-form-group gorm-group\"><label translate>TrainingTimeLength</label><div><p>{{vm.timeLength}}</p></div></div></div></form><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\">${Nev}</a></div></script><div class=\"panel-body col-lg-12\"><div id=GridTraining name=GridTraining></div></div><div class=row><div class=col-lg-12 style=\"text-align: center; margin: 1em\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanList/trainingPlanList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=row><form class=filter><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button ej-button e-enabled=vm.addNewPermission class=cts-button e-height=34px e-click=vm.createNewTrainingPlan translate>New</button> <button e-enabled=vm.deletePermission ej-button class=cts-button e-height=34px e-click=vm.deleteTrainingPlan translate>Delete</button></div></div><script id=wtro type=text/x-template><a data-ng-click=\"vm.openTrainingPlan(${EdzesFejId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\" ><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\">${Nev}</a></div></script></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.html','<ht-widget-header title={{title}} text-id=weeklyTrainingPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year datasource=vm.years select=vm.yearChanged></cts-dropdown-list><cts-text-box name=txTartalom label=textSearch ng-model=vm.textSearch></cts-text-box><div class=button-wrapper><button type=submit e-height=34px ej-button class=cts-button data-ng-click=vm.refreshData() translate>Keres</button></div></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button class=cts-button e-height=34px ej-button data-ng-click=vm.createNewWeeklyTrainingPlan() translate>New</button> <button data-ng-disabled=!vm.delEnabled class=cts-button e-height=34px ej-button data-ng-click=vm.deleteWeeklyTrainingPlan() e-enabled=vm.delEnabled translate>Delete</button> <button class=cts-button e-height=34px ej-button data-ng-click=back() translate>Close</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=wetrpllitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=wetrpllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${Korosztaly}</a></script><script id=wetrpllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=wetrpllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${Jovahagyott}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Jovahagyott}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedWTP.EdzoNev owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedWTP.SzakosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txKorosztaly label=AgeGroup ng-model=vm.editedWTP.KorosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txEv label=Made ng-model=vm.editedWTP.Keszult owndisabled=true></cts-text-box></div><hr><div style=\"overflow: hidden;\"><cts-date-picker name=deHetfo label=Monday value=vm.editedWTP.Hetfo ng-model=vm.editedWTP.Hetfo enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\" change=vm.MondayChange></cts-date-picker><cts-text-box name=deVasarnap label=Sunday owndisabled=true ng-model=vm.editedWTP.Vasarnap></cts-text-box><cts-numeric-text-box name=txMakrociklus label=Makrociklus value=vm.editedWTP.Makrociklus enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-numeric-text-box name=txHetSzama label=FelkHetSzam value=vm.editedWTP.HetSzama ng-model=vm.editedWTP.HetSzama enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\"></cts-numeric-text-box></div><hr><label translate>NAPDATUMEDZESTERV</label><div class=container-fluid><div class=row><div style=\"padding: 1em;\"><div style=\"float:left; margin-bottom:15px;\"><button type=button class=cts-button ej-button e-click=vm.addNew e-enabled=\"vm.editEnabled == false && vm.JOVAHAGYOTT == false\" id=addBtn translate>Add</button> <button ej-button class=cts-button id=korabbiMasol e-click=vm.copyFromOldPlan e-enabled=\"vm.JOVAHAGYOTT == false\" type=button translate>OlderMonthlyCompetitveReports</button></div></div></div><script type=text/x-template id=wtpropentemp><a data-ng-click=\"vm.openTemplate({{:EdzesFejId}})\">{{:Sablon}}</a></script><div id=Grid name=Grid></div></div><div class=container-fluid ng-show=vm.editEnabled><hr><label translate>TrainingDetails</label><div class=row style=\"padding: 2em 0;\"><div class=col-md-3 style=margin-top:-14px;><div style=\"margin-top: 1em;\"><div><label translate>Days</label><div ng-if=!vm.JOVAHAGYOTT><input ej-dropdownlist id=Napok e-value=vm.edit.NapSzam e-datasource=vm.days e-databound=vm.NapokDataBound e-select=vm.NapSelect e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input ej-dropdownlist id=Napok e-value=vm.edit.NapSzam e-datasource=vm.days e-databound=vm.NapokDataBound e-select=vm.NapSelect e-enabled=false e-width=100%></div></div></div><div style=\"margin-top: 1em;\"><label translate>Place</label> <input id=Hely class=form-control type=text data-ng-model=vm.edit.Hely e-width=100% ng-if=!vm.JOVAHAGYOTT> <input class=form-control type=text data-ng-model=vm.edit.Hely e-width=100% ng-if=vm.JOVAHAGYOTT disabled></div><div style=\"margin-top: 1em;\"><label translate>From</label><div ng-if=!vm.JOVAHAGYOTT><input id=Tol ej-timepicker e-timeformat=HH:mm e-value=vm.edit.Tol e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input class=form-control type=text data-ng-model=vm.edit.Tol e-width=100% disabled></div></div><div style=\"margin-top: 1em;\"><label translate>To</label><div ng-if=!vm.JOVAHAGYOTT><input id=Ig ej-timepicker e-timeformat=HH:mm e-value=vm.edit.Ig e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input class=form-control type=text data-ng-model=vm.edit.Ig e-width=100% disabled></div></div></div><div class=col-md-3><label translate>Map</label><iframe id=map style=width:100%;height:15em; frameborder=0 scrolling=no marginheight=0 marginwidth=0 ng-src={{vm.Helyek}}></iframe></div><div class=col-md-6><label translate>Description</label><div ng-if=!vm.JOVAHAGYOTT><textarea rows=10 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.edit.Leiras></textarea></div><div ng-if=vm.JOVAHAGYOTT><textarea rows=10 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.edit.Leiras disabled></textarea></div></div></div><div ng-if=\"vm.edit.EdzesFejId>0\"><label translate>OpenTrainingTemplate</label><a style=margin-left:7px; ng-click=vm.openTemplate()>{{vm.edit.Sablon}}</a></div><div class=row><div style=\"padding: 1em;\"><button type=button class=cts-button ej-button e-click=vm.ok id=ok e-enabled=\"vm.JOVAHAGYOTT == false\" translate>Ok</button> <button type=button class=cts-button ej-button e-click=vm.cancel id=cancel translate>Cancel</button> <button type=button class=cts-button ej-button e-click=vm.del e-enabled=vm.deleteBtnEnabled id=deleteBtn translate>Delete</button> <button type=button class=cts-button ej-button e-click=vm.chooseTraining e-enabled=\"vm.JOVAHAGYOTT == false\" id=ct name=ct translate>ChooseTraining</button> <button type=button class=cts-button ej-button e-click=vm.claimAsset id=ca e-enabled=vm.caBtnEnabled translate>ClaimAsset</button></div></div><hr></div><div class=row><hr><label translate>AthletesOnWeeklyPlan</label><div style=\"padding: 1em;\"><button type=button class=cts-button ej-button e-click=vm.selectAll id=selectAll e-enabled=\"vm.JOVAHAGYOTT == false\" translate>SelectAll</button> <button type=button class=cts-button ej-button e-click=vm.deleteSelection id=unselectAll e-enabled=\"vm.JOVAHAGYOTT == false\" translate>UnselectAll</button></div><cts-list-box name=athletesList label=Athletes css-class=scroller-fix datasource=vm.athletes show-checkbox=true check-change=vm.athletesChange checkedindices=vm.checkedIndices height=vm.athleteListHeight enabled=!vm.JOVAHAGYOTT style=\"width: 100%;\"></cts-list-box><hr></div><p data-ng-if=vm.JOVAHAGYOTT translate>WeeklyTraningPlanApproved</p><div class=form-group style=\"text-align: center;\"><button class=\"cts-button post left-padding\" id=mentes data-ng-disabled=vm.JOVAHAGYOTT data-ng-click=vm.save(false) type=button translate>Save</button> <button class=\"cts-button post left-padding\" id=SectionLeaderApprove data-ng-if=vm.HETIEDZTERVJOVAHAGY data-ng-click=vm.SectionLeaderApprove() type=button translate>SectionLeaderApprove</button> <button class=\"cts-button post left-padding\" id=vissza data-ng-click=vm.back() type=button translate>Back</button> <button class=\"cts-button post left-padding\" id=fileok ng-if=\"vm.trainingPlanId>0\" data-ng-click=vm.files() type=button translate>Files</button> <button class=\"cts-button post left-padding\" id=print data-ng-click=vm.print() type=button data-ng-show=\"vm.trainingPlanId>0\" translate>Print</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=THetiEdzesTerv report-parameters=vm.reportParameters></report></div><div id=printDialog2><report report-name=TEszkozIgenyek report-parameters=vm.reportParameters2></report></div><script>\\r\\n var searchBox = undefined;\\r\\n\\r\\n function initAutocomplete() {\\r\\n console.log(\\'initAutocomplete\\');\\r\\n searchBox = new google.maps.places.SearchBox(document.getElementById(\\'Hely\\'));\\r\\n searchBox.addListener(\\'places_changed\\', function () {\\r\\n var places = searchBox.getPlaces();\\r\\n if (places.length == 0) {\\r\\n return;\\r\\n }\\r\\n console.log(\\'places\\',places);\\r\\n var name;\\r\\n if (places[0].url)\\r\\n {\\r\\n document.getElementById(\\'map\\').src = places[0].url + \\'&output=embed\\';\\r\\n } else {\\r\\n name = places[0].name;\\r\\n document.getElementById(\\'map\\').src = \\'https://maps.google.com/?q=\\' + name + \\'&output=embed\\';\\r\\n }\\r\\n console.log(\\'name\\',name);\\r\\n if (name) {\\r\\n $(\\'#Hely\\').val(name);\\r\\n }\\r\\n });\\r\\n }\\r\\n</script><script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBqa3knjWCrkKD0OS3XIBNlPanwR2Z8cP8&libraries=places&callback=initAutocomplete\" async defer></script><div id=popup2><div id=ChooseTrainingWindow ej-dialog e-height=635px e-title=\"Edz\\xE9s sablon v\\xE1laszt\\xE1sa\" e-showoninit=false e-enablemodal=true e-backgroundscroll=true e-enableresize=true e-allowkeyboardnavigation=true e-closeonescape=true e-isresponsive=true e-content=#popup2 e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=row><div class=col-sm-12 style=margin-bottom:15px;><label translate>EdzesSablonok</label> <input id=TrainingTemplate ej-autocomplete></div></div><div class=row><div class=col-md-8><label translate>EdzesTetelek</label><div id=GridEdzesTetelek name=GridEdzesTetelek></div></div><div class=col-md-4><label translate>Description</label> <textarea rows=5 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.EdzesTetelLeiras disabled></textarea></div></div><div class=form-group style=\"margin-top: 10px;\"><button class=cts-button id=cancel data-ng-click=vm.chooseTrainingCancel() type=button translate>Cancel</button> <button class=cts-button id=cancel data-ng-click=vm.createTrainingTemplate() type=button translate>CreateTrainingTemplate</button> <button class=cts-button id=done data-ng-click=\"vm.chooseTrainingAccept(\\'copy\\')\" type=button ng-if=\"vm.editedWTP.Id > 0\" translate>AcceptCopy</button> <button class=cts-button id=done data-ng-click=\"vm.chooseTrainingAccept(\\'append\\')\" type=button translate>AcceptAppend</button></div></div></div><div id=popup><div id=searchWindow ej-dialog e-height=435px e-title=\"Kor\\xE1bbi heti edz\\xE9s terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=\"cts-button post\" id=cancel data-ng-click=vm.closeEarlierWeeklyPlanWindow() type=button translate>Cancel</button> <button class=\"cts-button post\" id=done data-ng-click=vm.selectEarlierWeeklyPlanWindow() type=button translate>Rendben</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/ageGroups/addAgeGroup/addAgeGroup.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-dropdown-list name=sectionDropDown label=Section value=vm.formData.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=ageGroupName label=AgeGroup data-ng-model=vm.formData.AgeGroupName validation-rules=\"{required: true}\"></cts-text-box><cts-dropdown-list name=yearFromDropDown label=yearFrom value=vm.formData.SelectedYearFrom datasource=vm.yearList change=vm.yearFromDropDownChanged></cts-dropdown-list><cts-dropdown-list name=yearToDropDown label=yearTo value=vm.formData.SelectedYearTo datasource=vm.yearListTo change=vm.yearToDropDownChanged clear=vm.clearDropdown></cts-dropdown-list><cts-color-picker name=colorPick label=CalendarColor value=vm.formData.Color change=vm.colorChanged validation-rules=\"{required: true}\"></cts-color-picker><cts-text-box name=comment label=Comment data-ng-model=vm.formData.Comment></cts-text-box><cts-check-box name=activeCheckBox label=ActiveAgeGroup checked=vm.formData.ActiveAgeGroup change=vm.activeCheckboxChanged></cts-check-box></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.saveAgeGroup translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><div class=button-wrapper style=\"float: left;\"><button class=cts-button id=addToTheNewAgeGroup ej-button e-click=vm.goToAgeGroupChange translate>ChangeAgeGroup</button></div></div></form><script id=aggrmelitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${SportolokID})\">${Nev}</a></script><script id=aggrmelitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><div class=row><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/ageGroupsList/ageGroupsList.html','<ht-widget-header title={{title}} text-id=ageGroupListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list></div><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.copyAllAgeGroup id=copyAllAgeGroup translate>CopyAllAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToAddAgeGroup id=addTeam translate>AddAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToModifyAgeGroupButton id=modifyAgeGroup e-enabled=vm.thereIsSelectedAgeGroup translate>ModifyAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToAgeGroupMembersList id=ageGroupMembersList e-enabled=vm.thereIsSelectedAgeGroup translate>MembersOfAgeGroup</button></div></form><script id=templateData type=text/x-template><a data-ng-click=\"vm.goToModifyAgeGroup(${id})\">${nev}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-dropdown-list name=sectionDropDown label=Section value=vm.formData.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=false></cts-dropdown-list><cts-text-box name=ageGroupName label=AgeGroup data-ng-model=vm.formData.ageGroupName validation-rules=\"{required: true}\" owndisabled=!vm.MODKOROKEZ></cts-text-box><cts-dropdown-list name=yearFromDropDown label=yearFrom value=vm.formData.selectedYearFrom datasource=vm.yearList change=vm.yearFromDropDownChanged enabled=vm.MODKOROKEZ></cts-dropdown-list><cts-dropdown-list name=yearToDropDown label=yearTo value=vm.formData.selectedYearTo datasource=vm.yearListTo change=vm.yearToDropDownChanged enabled=vm.MODKOROKEZ clear=vm.clearDropdown></cts-dropdown-list><cts-color-picker name=colorPick label=CalendarColor value=vm.formData.color change=vm.colorChanged validation-rules=\"{required: true}\" enabled=vm.MODKOROKEZ></cts-color-picker><cts-text-box name=comment label=Comment data-ng-model=vm.formData.comment owndisabled=!vm.MODKOROKEZ></cts-text-box><cts-check-box name=activeCheckBox label=ActiveAgeGroup checked=vm.formData.activeAgeGroup change=vm.activeCheckboxChanged enabled=vm.MODKOROKEZ></cts-check-box></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.modifyAgeGroup data-ng-if=vm.MODKOROKEZ translate>Modify</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteModify.html','<div class=widget-head style=\"padding-left: 0.2em;padding-right: 0.2em;\"><div class=athleteWidget><span class=widgetItem data-ng-click=vm.openAthleteMenu() style=\"cursor: pointer;\"><div id=AthleteMenuButton class=\"hamburger hamburger--spring\" style=\"padding-top: 10px;\"><span class=hamburger-box><span class=hamburger-inner></span></span></div></span><h2 class=widgetItem>{{title}}</h2><span class=widgetItem data-ng-click=vm.openPrintMenu() style=\"cursor: pointer; padding-top: 10px;\"><img src=images/print.png style=\"width: 27px; margin-right: 0.75em;\"></span></div></div><div id=athleteModifyWidgetContent class=\"widget-content form\"><div id=athleteMenu data-ng-class=\"{\\'is-activate\\': vm.athleteMenuOpened}\"><ul><li data-ng-repeat=\"item in vm.athleteMenuItems\" id={{item.name}} data-ng-if=\"item.enabled == true\"><a data-ng-click=vm.openAthletePage(item) data-ng-class=\"{disabled: item.enabled === false}\">{{item.name}}</a></li></ul></div><div id=printMenu data-ng-class=\"{\\'is-activate\\': vm.printMenuOpened}\"><ul><li data-ng-repeat=\"item in vm.printMenuItems\" id={{item.name}}><a data-ng-click=vm.printPage(item) data-ng-class=\"{disabled: item.enabled === false}\">{{item.name}}</a></li></ul></div><div ui-view style=\"min-height: 700px;\"></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialogDatasheet><report report-name=TSportoloAdatlapNyomtatasReport report-parameters=vm.reportParameters></report></div><div id=printDialogSchoolRequesting><report report-name=TIskolaiKikeroReport report-parameters=vm.reportParametersSchoolRequesting></report></div><div id=printDialogHealth><report report-name=TEgeszseg report-parameters=vm.reportParametersEgeszsegProfil></report></div>');\n$templateCache.put('app/athletes/athletesManagement/athletesList/athletesList.html','<ht-widget-header title={{title}} text-id=athleteListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.selectedAgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=active label=OnlyInactives enabled=vm.checkboxEnabled checked=vm.inactiveAthletes change=vm.inactiveChange></cts-check-box></div><div class=row><div class=button-wrapper><button class=cts-button id=newAthletes ej-button e-click=vm.goToNewAthlete translate>NewAthlete</button><button class=cts-button id=modifyAthletes ej-button e-click=vm.modifyAthletesButton translate>ModifyAthletes</button><button class=cts-button id=goneAthletes ej-button e-click=vm.goneAthletesBtn e-enabled=vm.exitAthletesEnabled translate>goneAthletes</button><button class=cts-button id=competitionResult ej-button e-click=vm.competitionResult translate>RaceResultsReport</button></div></div></form><script id=templateDataRow1 type=text/x-template><a data-ng-click=\"vm.modifyAthletes(${SportolokId})\">${Nev}</a></script><script id=templateDataRow2 type=text/x-template><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div class=col-sm-12><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteNew/athleteNew.html','<div class=widget-head><h2>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data prevent-enter-submit><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion name=accordion><h3><a href=# translate>AthleteDatasheet</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev validation-rules=\"{required: true, minlength: 5, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=gender label=Sex value=vm.athleteData.Neme datasource=vm.sexList select=vm.sexSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.displayPhoto}} id=profilePic><div style=\"position: relative;\"><button class=cts-button type=button data-ng-click=vm.openCropDialog() translate>Modify</button> <button class=\"cts-button red\" type=button data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><div class=\"form-group cts-form-group\"><label for=sectionValue>{{\"Section\"|translate}}</label> <label id=sectionValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.athleteData.Korcsoport datasource=vm.ageGroupList databound=vm.ageGroupDataBound validation-rules=\"{required: true}\" select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachName label=CoachName value=vm.athleteData.JelenlegiEdzo datasource=vm.coachList select=vm.coachSelect databound=vm.coachDropDownListDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=secondSectionDropDown label=SecondSection value=vm.athleteData.MasodlagosSzakosztaly datasource=vm.secondSectionList databound=vm.secondSelectedSectionId validation-rules=\"{required: false}\" clear=vm.clearSecondSection enabled=vm.ADMIN select=vm.secondSectionSelect></cts-dropdown-list><cts-dropdown-list name=secondAgeGroupDropDown label=SecondAgeGroup value=vm.athleteData.MasodlagosKorcsoport datasource=vm.secondAgeGroupList databound=vm.secondAgeGroupDataBound validation-rules=\"{required: false}\" clear=vm.clearSecondAgeGroup enabled=vm.ADMIN select=vm.secondAgeGroupSelect></cts-dropdown-list><cts-dropdown-list name=secondCoachName label=SecondCoachName value=vm.athleteData.MasodlagosEdzo datasource=vm.secondCoachList select=vm.secondCoachSelect databound=vm.secondCoachDropDownListDataBound clear=vm.clearSecondCoach enabled=vm.ADMIN validation-rules=\"{required: false}\"></cts-dropdown-list><cts-text-box name=bpcountry label=BirthPlaceCountry cts-placeholder=BirthPlaceCountry data-ng-model=vm.athleteData.SzuletesiHelyOrszag validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=bpcity label=BirthPlaceCity cts-placeholder=BirthPlaceCity data-ng-model=vm.athleteData.SzuletesiHelyVaros validation-rules=\"{required: true}\"></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.athleteData.SzuletesiIdo validation-rules=\"{required: true}\"></cts-date-picker><cts-text-box name=motherBirthName data-ng-if=!vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: true, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box name=motherBirthName data-ng-if=vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=citizenship data-ng-if=!vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=citizenship data-ng-if=vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: false}\"></cts-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag validation-rules=\"{required: true, minlength: 1}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly validation-rules=\"{required: true, minlength: 1}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-dropdown-list name=betterHandDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezB datasource=vm.betterHandList select=vm.betterHandSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=betterHandDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezB datasource=vm.betterHandList select=vm.betterHandSelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabB datasource=vm.betterFootList select=vm.betterFootSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabB datasource=vm.betterFootList select=vm.betterFootSelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-date-picker name=startSportDate data-ng-if=!vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=startSportDate data-ng-if=vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: false}\"></cts-date-picker><cts-date-picker name=startMemberDate value=vm.athleteData.DSITagsagKezdete label=StartMemberDate validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=active label=Active enabled=false checked=vm.athleteData.Aktiv change=vm.activeChange></cts-check-box><cts-text-box-taj-szam data-ng-if=vm.socialSecurityNumberRequiredValue name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: true}\"></cts-text-box-taj-szam><cts-text-box-taj-szam data-ng-if=!vm.socialSecurityNumberRequiredValue name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-date-picker name=medicalCertificateExpirationDate label=medicalCertificateExpirationDate value=vm.athleteData.SportorvosIgazolasLejarat></cts-date-picker><cts-text-area name=coachDetails data-ng-if=!vm.athleteRequiredMinimumDatas label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: true, maxlength: 4096}\"></cts-text-area><cts-text-area name=coachDetails data-ng-if=vm.athleteRequiredMinimumDatas label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-dropdown-list name=feeOfEducation label=FeeOfEducation value=vm.athleteData.TagdijasText datasource=vm.feeOfEducationList databound=vm.feeOfEducationBound enabled=vm.noSelectedAthlete></cts-dropdown-list><cts-text-box data-ng-if=vm.athleteRegistrationNumberRequiredValue name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: true }\"></cts-text-box><cts-text-box data-ng-if=!vm.athleteRegistrationNumberRequiredValue name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: false }\"></cts-text-box><div class=\"cts-form-group form-group\"><div class=\"col-lg-6 col-lg-offset-6\"><button class=cts-button type=button id=regnumgen ej-button e-click=vm.generateRegNum translate>GenerateRegNum</button></div></div><cts-text-box name=JatekEngedelySzama label=JatekEngedelySzama data-ng-model=vm.athleteData.JatekEngedelySzama></cts-text-box></fieldset><h3><a href=# translate>Contact</a></h3><fieldset class=\"panel col-lg-8\"><cts-dropdown-list name=county data-ng-if=!vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=!vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: true, minlength: 2, maxlength: 10}\"></cts-text-box><cts-text-box name=city data-ng-if=!vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: true, minlength: 2, maxlength: 50}\"></cts-text-box><cts-text-box name=street data-ng-if=!vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-text-box><cts-text-box name=streetNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-text-box><cts-dropdown-list name=county data-ng-if=vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: false, maxlength: 10}\"></cts-text-box><cts-text-box name=city data-ng-if=vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=street data-ng-if=vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=streetNumber data-ng-if=vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=phoneNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=phoneNumber data-ng-if=vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: false}\"></cts-text-box><cts-text-box-email name=eMail label=Email data-ng-model=vm.athleteData.EmailCim></cts-text-box-email></fieldset><h3><a href=# translate>IdentificationNumbers</a></h3><fieldset class=\"panel col-lg-8\"><cts-text-box name=personalId label=PersonalId data-ng-model=vm.athleteData.SzemIgSzam></cts-text-box><cts-date-picker name=personalIdExpiration label=PersonalIdExpiration value=vm.athleteData.SzemelyiErvenyessege></cts-date-picker><cts-text-box-tax-id name=taxId label=taxId data-ng-model=vm.athleteData.AdoSzam></cts-text-box-tax-id><cts-text-box-passport-number name=passportNumber label=PassportNumber data-ng-model=vm.athleteData.UtlevelSzam></cts-text-box-passport-number><cts-date-picker name=passportExpiration label=PassportExpiration value=vm.athleteData.UtlevelErvenyessege></cts-date-picker></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset class=\"panel col-lg-8\"><div><cts-text-box name=slippersSize label=SlippersSize data-ng-model=vm.athleteData.PapucsMerete ng-show=vm.RUHA.PAPUCS></cts-text-box></div><div><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.athleteData.CipoMerete ng-show=vm.RUHA.CIPO></cts-text-box></div><div><cts-text-box name=joggingSuitSize label=JoggingSize data-ng-model=vm.athleteData.MelegitoMerete ng-show=vm.RUHA.MELEGITO></cts-text-box></div><div><cts-text-box name=bathrobeSize label=BathrobeSize data-ng-model=vm.athleteData.FurdokopenyMerete ng-show=vm.RUHA.FURDOKOPENY></cts-text-box></div><div><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.athleteData.KabatMerete ng-show=vm.RUHA.KABAT></cts-text-box></div><div><cts-text-box name=armorPantSize label=ArmorPantSize data-ng-model=vm.athleteData.PancelNadragMerete ng-show=vm.RUHA.PANCELNADRAG></cts-text-box></div><div><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.athleteData.PoloMerete ng-show=vm.RUHA.POLO></cts-text-box></div><div><cts-text-box name=shortDressSize label=ShortsSize data-ng-model=vm.athleteData.SortMerete ng-show=vm.RUHA.SORT></cts-text-box></div><div><cts-text-box name=swimmingPantSize label=SwimmingPantSize data-ng-model=vm.athleteData.UszoNadragMerete ng-show=vm.RUHA.USZONADRAG></cts-text-box></div></fieldset><h3><a href=# translate>SchoolDatas</a></h3><fieldset class=col-sm-12><div class=\"panel col-lg-8\"><div class=\"col-lg-12 col-lg-offset-6\"><button class=cts-button type=button id=changeSchool ej-button e-click=vm.selectSchools translate>SelectSchool</button></div></div><br><div class=hidedContent id=hidedContent><div class=form-group><div class=slim-grid id=Grid></div></div></div><br><div class=\"panel col-lg-8\"><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.athleteData.IskolaNeve change=vm.schoolNameChanged data-ng-model-options=\"{debounce: 500}\"></cts-text-box><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.athleteData.IskolaIrSzam></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.athleteData.IskolaVaros></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.athleteData.IskolaUtca></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.athleteData.IskolaHazszam></cts-text-box><cts-text-box name=directorName label=DirectorName data-ng-model=vm.athleteData.IskolaIgazgatoNeve></cts-text-box><cts-auto-complete name=classMaster label=ClassMaster value=vm.athleteData.OsztalyFonokNeve datasource=vm.classMasterDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectOf></cts-auto-complete><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.athleteData.OfTel></cts-text-box><cts-text-box-email name=classMasterEmail label=ClassMasterEmail data-ng-model=vm.athleteData.OfEmail></cts-text-box-email><cts-auto-complete name=gymTeacher label=GymTeacher value=vm.athleteData.TestneveloNeve datasource=vm.gymTeacherDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectTesiTanar></cts-auto-complete><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.athleteData.TestneveloElerhetosege></cts-text-box><cts-text-box-email name=gymTeacherEmail label=GymTeacherEmail data-ng-model=vm.athleteData.TestneveloEmail></cts-text-box-email><cts-dropdown-list name=course label=Course value=vm.athleteData.IskolaEvfolyam datasource=vm.courseList select=vm.courseSelect></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.athleteData.IskolaOsztaly datasource=vm.classList select=vm.classSelect></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-auto-complete name=motherName label=MothersName value=vm.athleteData.AnyjaNeve datasource=vm.motherNames emptyresulttext=vm.emptyResultText show-popup-button=true disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectMother></cts-auto-complete><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.athleteData.Szulo1Elerhetosege validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=motherEmail label=MotherEmail data-ng-model=vm.athleteData.AnyaEmail disabled=!vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=motherHeightDropDown label=Height value=vm.athleteData.AnyjaTestmagassaga validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.athleteData.SportoloiMultAnya css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.athleteData.AnyjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.athleteData.AnyaMunkahely validation-rules=\"{required: false}\"></cts-text-box><cts-auto-complete name=fatherName label=FatherName value=vm.athleteData.SzuloNeve datasource=vm.fatherNames emptyresulttext=vm.emptyResultText show-popup-button=true disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectFather></cts-auto-complete><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.athleteData.Szulo2Elerhetosege validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=fatherEmail label=FatherEmail data-ng-model=vm.athleteData.ApaEmail disabled=!vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=fatherHeightDropDown label=Height value=vm.athleteData.ApjaTestmagassaga validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=FatherSportHistory data-ng-model=vm.athleteData.SportoloiMultApa css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.athleteData.ApjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.athleteData.ApaMunkahely validation-rules=\"{required: false}\"></cts-text-box></fieldset><h3><a href=# translate>OtherDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-numeric-text-box name=AtigazolasiDij label=AtigazolasiDij value=vm.athleteData.AtigazolasiDij validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-date-picker name=trainingStart label=TrainingStart value=vm.athleteData.EdzesreJarasKezdete validation-rules=\"{required: false}\"></cts-date-picker><cts-text-area name=Notes label=Notes data-ng-model=vm.athleteData.Megjegyzes css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-area name=SportAssociation label=SportAssociation data-ng-model=vm.athleteData.EddigiSpEgyesuletei css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=childAgeSport label=ChildageSport data-ng-model=vm.athleteData.GyermekkoriSport validation-rules=\"{required: false, minlength: 1, maxlength: 30}\"></cts-text-box><cts-text-box name=origin label=Origin data-ng-model=vm.athleteData.FajiEredet validation-rules=\"{required: false, minlength: 3, maxlength: 30}\"></cts-text-box><cts-text-box name=howSpentFreeTime label=HowSpentFreeTime data-ng-model=vm.athleteData.SzunideiElfoglaltsag validation-rules=\"{required: false, minlength: 1, maxlength: 30}\"></cts-text-box><cts-text-box name=birthName label=BirthName data-ng-model=vm.athleteData.LeanykoriNev validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-date-picker name=pubertasEndTime label=PubertasEndTime value=vm.athleteData.PubertasVege validation-rules=\"{required: false}\"></cts-date-picker></fieldset></div></div></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\" translate>ChooseImage</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper min-width=50 min-height=50 image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=submit style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/addTeam/addTeam.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><cts-text-box name=TeamName label=TeamName data-ng-model=vm.formData.TeamName validation-rules=\"{required: true, maxlength: 200}\"></cts-text-box><cts-text-box name=Comment label=Comment data-ng-model=vm.formData.Comment validation-rules=\"{maxlength: 255}\"></cts-text-box><cts-dropdown-list name=SectionId label=Section value=vm.formdata.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=AgeGroupId label=AgeGroup value=vm.formdata.AgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=CoachId label=Coach value=vm.formdata.CoachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=\"col-sm-12 col-md-12 col-lg-6 overflow-hidden pull-lg-left\"><div class=image-preview style=\"width: 210px;\"><img ng-src={{vm.photoUrl}} id=profileImg class=\"thumb pull-left\" style=\"clear: both; margin-bottom: 2px;\"> <button type=button data-ng-click=vm.openCropDialog() class=\"cts-button pull-left\" style=\"display: block; clear: both; float: left; margin-right: 2px;\" translate>Modify</button> <button type=button data-ng-disabled=\"vm.noImg === vm.photoUrl\" data-ng-click=vm.deleteImg() id=deleteImgBtn class=\"cts-button red pull-left\" style=\"display: block; float: left\" translate>Delete</button></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.simpleSave translate>Save</button> <button type=submit class=cts-button ej-button e-click=vm.saveTeamAndAddMembers e-enabled=vm.MEGTCSOPORT translate>SaveAndManageTeamMember</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=FileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=FileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-right pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/addTeamMember/addTeamMember.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.addTeamMemberToTeam id=addTeamMember translate>AddToTeam</button></div></div></form><script id=adtemetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${Id})\">${Name}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/teams/modifyTeam/modifyTeam.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><cts-text-box name=TeamName label=TeamName data-ng-model=vm.formData.TeamName validation-rules=\"{required: true, maxlength: 200}\" owndisabled=!vm.MODCSOPORT></cts-text-box><cts-text-box name=Comment label=Comment data-ng-model=vm.formData.Comment validation-rules=\"{maxlength: 255}\" owndisabled=!vm.MODCSOPORT></cts-text-box><cts-dropdown-list name=sectionDropDown label=Section value=vm.formdata.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.formdata.AgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.formdata.CoachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-check-box name=activeCheckBox label=Active checked=vm.formdata.ActiveTeam change=vm.activeCheckboxChanged enabled=vm.MODCSOPORT></cts-check-box></div><div class=\"col-sm-12 col-md-12 col-lg-6 overflow-hidden pull-lg-left\"><div class=image-preview style=\"width: 210px;\"><img ng-src={{vm.photoUrl}} id=profileImg class=\"thumb pull-left\" style=\"clear: both; margin-bottom: 2px;\"> <button data-ng-if=vm.MODCSOPORT data-ng-click=vm.openCropDialog() class=\"cts-button pull-left\" style=\"display: block; clear: both; float: left; margin-right: 2px;\" translate>Modify</button> <button data-ng-if=vm.MODCSOPORT data-ng-disabled=\"vm.noImg === vm.photoUrl\" data-ng-click=vm.deleteImg() id=deleteImgBtn class=\"cts-button red pull-left\" style=\"display: block; float: left\" translate>Delete</button></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit data-ng-if=vm.MODCSOPORT class=cts-button ej-button e-click=vm.simpleModifyTeam translate>Modify</button> <button name=modifyTeamAndAddMembersButton type=button data-ng-if=vm.MODCSOPORT class=cts-button ej-button e-enabled=vm.modifyTeamAndAddMembersButtonEnabled e-click=vm.modifyTeamAndAddMembers translate>ModifyAndManageTeamMember</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=FileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=FileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/teamMembersList/teamMembersList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepick label=TeamMemberDate value=vm.dateValue change=vm.dateChange></cts-date-picker></div><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.goToAddTeamMember id=addTeamMember translate>AddTeamMember</button> <button type=button class=\"cts-button red\" ej-button e-click=vm.deleteTeamMember id=deleteTeamMember translate>DeleteTeamMembers</button></div></form><script id=temelitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${Id})\">${Name}</a></script><div class=row><h3 style=\"text-align: center;\">{{vm.sectionName}} ({{vm.ageGroupName}}) - {{vm.teamName}}</h3><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/teams/teamList/teamList.html','<ht-widget-header title={{title}} text-id=teamListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList change=vm.sectionChange></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList change=vm.ageGroupChange></cts-dropdown-list><cts-check-box name=active label=InactivesToo enabled=vm.checkboxEnabled checked=vm.inactiveTeams change=vm.inactiveChange></cts-check-box></div><div class=button-wrapper><button type=button id=addTeam class=cts-button ej-button e-click=vm.goToAddTeam translate>NewTeam</button> <button type=button id=modifyTeam class=cts-button ej-button e-click=vm.goToModifyTeam translate>Modify</button> <button type=button id=deleteTeam class=\"cts-button red\" ej-button e-click=vm.deleteTeam translate>Delete</button> <button type=button id=teamMembersList class=cts-button ej-button e-click=vm.goToTeamMembersList translate>TeamMembers</button> <button type=button id=teamResults class=cts-button ej-button e-click=vm.openTeamResults translate>TeamResults</button></div></form><script type=text/x-template id=teamlistcolumnTemplate1><a data-ng-click=\"vm.goToTeamMembersList(${szakosztalyId}, ${korosztalyId}, ${csapatId}, ${aktiv})\">${csapatNev}</a></script><script type=text/x-template id=teamlistcolumnTemplate2><a data-ng-click=\"vm.openCoach(${edzoId})\">${edzoNeve}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsBySectionsHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form novalidate class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly databound=vm.sectionDataBound label=Section value=vm.selectedSection datasource=vm.sectionList required select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></div><script type=text/x-template id=columnTemplate><a data-ng-click=\"vm.goToNewCoach(${VersenyzoId})\">${VersenyzoNeve}</a></script><div><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsBySportSchoolHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\" < cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></cts-dropdown-list></div><div class=row><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsByTrainersHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div class=row><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList select=vm.sectionSelect databound=vm.sectionDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList select=vm.ageGroupSelect databound=vm.ageGroupDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachSelect databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.html','<ht-widget-header title={{title}} text-id=annualCompetitivePlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=ancoplcolumnTemplate1><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=ancopopencoach><a data-ng-click=\"vm.openCoach(${IdEzdo})\">${EdzoNeve}</a></script><script type=text/x-template id=ancopfiltersection><a data-ng-click=\"vm.filterSection(${IdSzakosztaly})\">${SzakosztalyNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.html','<ht-widget-header title={{title}} text-id=monthlyAttendaceReportsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=marsection><a data-ng-click=\"vm.clickOnSection(${Szakosztaly_Id})\">${SzakosztalyNeve}</a></script><script type=text/x-template id=marcoach><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><script type=text/x-template id=moatrecolumnTemplate1><a data-ng-click=\"vm.goToMonthlyAttendance(${attendaceId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.html','<ht-widget-header title={{title}} text-id=monthlyCompetitivePlansManagementReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=mocomplcolumnTemplate1><a data-ng-click=\"vm.goToMonthlyCompetitivePlan(${Id.Id}, ${Id.Egyeni})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=mocomplcolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=mocomplcolumnTemplate3><a data-ng-click=\"vm.openCoach(${JovahagytaId})\">${JovahagytaNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.html','<ht-widget-header title={{title}} text-id=trainingDiaryReportsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=tdrcoach><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><script type=text/x-template id=tdropentd><a data-ng-click=\"vm.openTrainingDiary(${attendaceId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.html','<ht-widget-header title={{title}} text-id=weeklyTrainingPlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\" change=vm.dateChange></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\" change=vm.dateChange2></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=wetrplcolumnTemplate1><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=wetrplcolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.html','<ht-widget-header title={{title}} text-id=activeAthletesByAgeHelp right-text=rightText></ht-widget-header><div class=widget-content><script type=text/x-template id=aaba_year><a data-ng-click=\"vm.openBirthYear(${SzuletesiEv})\">${SzuletesiEv}</a></script><script type=text/x-template id=aaba_ops01><a data-ng-click=\"vm.openSection(${1},${SzuletesiEv})\">${_sz_01}</a></script><script type=text/x-template id=aaba_ops02><a data-ng-click=\"vm.openSection(${2},${SzuletesiEv})\">${_sz_02}</a></script><script type=text/x-template id=aaba_ops03><a data-ng-click=\"vm.openSection(${3},${SzuletesiEv})\">${_sz_03}</a></script><script type=text/x-template id=aaba_ops04><a data-ng-click=\"vm.openSection(${4},${SzuletesiEv})\">${_sz_04}</a></script><script type=text/x-template id=aaba_ops05><a data-ng-click=\"vm.openSection(${5},${SzuletesiEv})\">${_sz_05}</a></script><script type=text/x-template id=aaba_ops06><a data-ng-click=\"vm.openSection(${6},${SzuletesiEv})\">${_sz_06}</a></script><script type=text/x-template id=aaba_ops07><a data-ng-click=\"vm.openSection(${7},${SzuletesiEv})\">${_sz_07}</a></script><script type=text/x-template id=aaba_ops08><a data-ng-click=\"vm.openSection(${8},${SzuletesiEv})\">${_sz_08}</a></script><script type=text/x-template id=aaba_ops09><a data-ng-click=\"vm.openSection(${9},${SzuletesiEv})\">${_sz_09}</a></script><script type=text/x-template id=aaba_ops10><a data-ng-click=\"vm.openSection(${10},${SzuletesiEv})\">${_sz_10}</a></script><script type=text/x-template id=aaba_ops11><a data-ng-click=\"vm.openSection(${11},${SzuletesiEv})\">${_sz_11}</a></script><script type=text/x-template id=aaba_ops12><a data-ng-click=\"vm.openSection(${12},${SzuletesiEv})\">${_sz_12}</a></script><script type=text/x-template id=aaba_ops13><a data-ng-click=\"vm.openSection(${13},${SzuletesiEv})\">${_sz_13}</a></script><script type=text/x-template id=aaba_ops14><a data-ng-click=\"vm.openSection(${14},${SzuletesiEv})\">${_sz_14}</a></script><script type=text/x-template id=aaba_ops15><a data-ng-click=\"vm.openSection(${15},${SzuletesiEv})\">${_sz_15}</a></script><script type=text/x-template id=aaba_ops16><a data-ng-click=\"vm.openSection(${16},${SzuletesiEv})\">${_sz_16}</a></script><script type=text/x-template id=aaba_ops17><a data-ng-click=\"vm.openSection(${17},${SzuletesiEv})\">${_sz_17}</a></script><script type=text/x-template id=aaba_ops18><a data-ng-click=\"vm.openSection(${18},${SzuletesiEv})\">${_sz_18}</a></script><script type=text/x-template id=aaba_ops19><a data-ng-click=\"vm.openSection(${19},${SzuletesiEv})\">${_sz_19}</a></script><script type=text/x-template id=aaba_ops20><a data-ng-click=\"vm.openSection(${20},${SzuletesiEv})\">${_sz_20}</a></script><script type=text/x-template id=aaba_ops21><a data-ng-click=\"vm.openSection(${21},${SzuletesiEv})\">${_sz_21}</a></script><script type=text/x-template id=aaba_ops22><a data-ng-click=\"vm.openSection(${22},${SzuletesiEv})\">${_sz_22}</a></script><script type=text/x-template id=aaba_ops23><a data-ng-click=\"vm.openSection(${23},${SzuletesiEv})\">${_sz_23}</a></script><script type=text/x-template id=aaba_ops24><a data-ng-click=\"vm.openSection(${24},${SzuletesiEv})\">${_sz_24}</a></script><script type=text/x-template id=aaba_ops25><a data-ng-click=\"vm.openSection(${25},${SzuletesiEv})\">${_sz_25}</a></script><script type=text/x-template id=aaba_ops26><a data-ng-click=\"vm.openSection(${26},${SzuletesiEv})\">${_sz_26}</a></script><script type=text/x-template id=aaba_ops27><a data-ng-click=\"vm.openSection(${27},${SzuletesiEv})\">${_sz_27}</a></script><script type=text/x-template id=aaba_ops28><a data-ng-click=\"vm.openSection(${28},${SzuletesiEv})\">${_sz_28}</a></script><script type=text/x-template id=aaba_ops29><a data-ng-click=\"vm.openSection(${29},${SzuletesiEv})\">${_sz_29}</a></script><script type=text/x-template id=aaba_ops30><a data-ng-click=\"vm.openSection(${30},${SzuletesiEv})\">${_sz_30}</a></script><script type=text/x-template id=aaba_ops31><a data-ng-click=\"vm.openSection(${31},${SzuletesiEv})\">${_sz_31}</a></script><script type=text/x-template id=aaba_ops32><a data-ng-click=\"vm.openSection(${32},${SzuletesiEv})\">${_sz_32}</a></script><script type=text/x-template id=aaba_ops33><a data-ng-click=\"vm.openSection(${33},${SzuletesiEv})\">${_sz_33}</a></script><script type=text/x-template id=aaba_ops34><a data-ng-click=\"vm.openSection(${34},${SzuletesiEv})\">${_sz_34}</a></script><script type=text/x-template id=aaba_ops35><a data-ng-click=\"vm.openSection(${35},${SzuletesiEv})\">${_sz_35}</a></script><script type=text/x-template id=aaba_ops36><a data-ng-click=\"vm.openSection(${36},${SzuletesiEv})\">${_sz_36}</a></script><script type=text/x-template id=aaba_ops37><a data-ng-click=\"vm.openSection(${37},${SzuletesiEv})\">${_sz_37}</a></script><script type=text/x-template id=aaba_ops38><a data-ng-click=\"vm.openSection(${38},${SzuletesiEv})\">${_sz_38}</a></script><script type=text/x-template id=aaba_ops39><a data-ng-click=\"vm.openSection(${39},${SzuletesiEv})\">${_sz_39}</a></script><script type=text/x-template id=aaba_ops40><a data-ng-click=\"vm.openSection(${40},${SzuletesiEv})\">${_sz_40}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.html','<ht-widget-header title={{title}} text-id=activeAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker label=Date change=vm.dateChange value=vm.queryDate></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=acatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId},${SzakosztalyId})\">${EdzoNeve}</a></script><script id=acatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=acatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=acatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=acatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.html','<ht-widget-header title={{title}} text-id=activeAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker label=Date change=vm.dateChange value=vm.queryDate></cts-date-picker><div class=button-wrapper><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></div></form><script id=acatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${Szam}</a></script><script id=acatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamFiu}</a></script><script id=acatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.html','<ht-widget-header title={{title}} text-id=activeAthletesByMonthHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker></div></form><script type=text/x-template id=aabm_allgender><a data-ng-click=\"vm.openAthletes(${id},0)\">${Szam}</a></script><script type=text/x-template id=aabm_male><a data-ng-click=\"vm.openAthletes(${id},1)\">${SzamFiu}</a></script><script type=text/x-template id=aabm_female><a data-ng-click=\"vm.openAthletes(${id},2)\">${SzamLany}</a></script><script type=text/x-template id=aabm_joined><a data-ng-click=\"vm.openJoined(${id})\">${SzamErkezett}</a></script><script type=text/x-template id=aabm_leaving><a data-ng-click=\"vm.openLeaving(${id})\">${SzamKilepett}</a></script><script type=text/x-template id=aabm_ops1><a data-ng-click=\"vm.openSection(${1},${id})\">${c1}</a></script><script type=text/x-template id=aabm_ops2><a data-ng-click=\"vm.openSection(${2},${id})\">${c2}</a></script><script type=text/x-template id=aabm_ops3><a data-ng-click=\"vm.openSection(${3},${id})\">${c3}</a></script><script type=text/x-template id=aabm_ops4><a data-ng-click=\"vm.openSection(${4},${id})\">${c4}</a></script><script type=text/x-template id=aabm_ops5><a data-ng-click=\"vm.openSection(${5},${id})\">${c5}</a></script><script type=text/x-template id=aabm_ops6><a data-ng-click=\"vm.openSection(${6},${id})\">${c6}</a></script><script type=text/x-template id=aabm_ops7><a data-ng-click=\"vm.openSection(${7},${id})\">${c7}</a></script><script type=text/x-template id=aabm_ops8><a data-ng-click=\"vm.openSection(${8},${id})\">${c8}</a></script><script type=text/x-template id=aabm_ops9><a data-ng-click=\"vm.openSection(${9},${id})\">${c9}</a></script><script type=text/x-template id=aabm_ops10><a data-ng-click=\"vm.openSection(${10},${id})\">${c10}</a></script><script type=text/x-template id=aabm_ops11><a data-ng-click=\"vm.openSection(${11},${id})\">${c11}</a></script><script type=text/x-template id=aabm_ops12><a data-ng-click=\"vm.openSection(${12},${id})\">${c12}</a></script><script type=text/x-template id=aabm_ops13><a data-ng-click=\"vm.openSection(${13},${id})\">${c13}</a></script><script type=text/x-template id=aabm_ops14><a data-ng-click=\"vm.openSection(${14},${id})\">${c14}</a></script><script type=text/x-template id=aabm_ops15><a data-ng-click=\"vm.openSection(${15},${id})\">${c15}</a></script><script type=text/x-template id=aabm_ops16><a data-ng-click=\"vm.openSection(${16},${id})\">${c16}</a></script><script type=text/x-template id=aabm_ops17><a data-ng-click=\"vm.openSection(${17},${id})\">${c17}</a></script><script type=text/x-template id=aabm_ops18><a data-ng-click=\"vm.openSection(${18},${id})\">${c18}</a></script><script type=text/x-template id=aabm_ops19><a data-ng-click=\"vm.openSection(${19},${id})\">${c19}</a></script><script type=text/x-template id=aabm_ops20><a data-ng-click=\"vm.openSection(${20},${id})\">${c20}</a></script><script type=text/x-template id=aabm_ops21><a data-ng-click=\"vm.openSection(${21},${id})\">${c21}</a></script><script type=text/x-template id=aabm_ops22><a data-ng-click=\"vm.openSection(${22},${id})\">${c22}</a></script><script type=text/x-template id=aabm_ops23><a data-ng-click=\"vm.openSection(${23},${id})\">${c23}</a></script><script type=text/x-template id=aabm_ops24><a data-ng-click=\"vm.openSection(${24},${id})\">${c24}</a></script><script type=text/x-template id=aabm_ops25><a data-ng-click=\"vm.openSection(${25},${id})\">${c25}</a></script><script type=text/x-template id=aabm_ops26><a data-ng-click=\"vm.openSection(${26},${id})\">${c26}</a></script><script type=text/x-template id=aabm_ops27><a data-ng-click=\"vm.openSection(${27},${id})\">${c27}</a></script><script type=text/x-template id=aabm_ops28><a data-ng-click=\"vm.openSection(${28},${id})\">${c28}</a></script><script type=text/x-template id=aabm_ops29><a data-ng-click=\"vm.openSection(${29},${id})\">${c29}</a></script><script type=text/x-template id=aabm_ops30><a data-ng-click=\"vm.openSection(${30},${id})\">${c30}</a></script><script type=text/x-template id=aabm_ops31><a data-ng-click=\"vm.openSection(${31},${id})\">${c31}</a></script><script type=text/x-template id=aabm_ops32><a data-ng-click=\"vm.openSection(${32},${id})\">${c32}</a></script><script type=text/x-template id=aabm_ops33><a data-ng-click=\"vm.openSection(${33},${id})\">${c33}</a></script><script type=text/x-template id=aabm_ops34><a data-ng-click=\"vm.openSection(${34},${id})\">${c34}</a></script><script type=text/x-template id=aabm_ops35><a data-ng-click=\"vm.openSection(${35},${id})\">${c35}</a></script><script type=text/x-template id=aabm_ops36><a data-ng-click=\"vm.openSection(${36},${id})\">${c36}</a></script><script type=text/x-template id=aabm_ops37><a data-ng-click=\"vm.openSection(${37},${id})\">${c37}</a></script><script type=text/x-template id=aabm_ops38><a data-ng-click=\"vm.openSection(${38},${id})\">${c38}</a></script><script type=text/x-template id=aabm_ops39><a data-ng-click=\"vm.openSection(${39},${id})\">${c39}</a></script><script type=text/x-template id=aabm_ops40><a data-ng-click=\"vm.openSection(${40},${id})\">${c40}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.html','<ht-widget-header title={{title}} text-id=activeAthletesInSectionByMonthHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.dateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.dateTo></cts-date-picker></div></form><script id=acatinsebymotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthletes(${id})\">${Szam}</a></script><script id=acatinsebymotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openBoys(${id})\">${SzamFiu}</a></script><script id=acatinsebymotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openGirls(${id})\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter><div class=row></div></form><script id=atbybiyetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},0)\">${Szam}</a></script><script id=atbybiyetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},1)\">${SzamFiu}</a></script><script id=atbybiyetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesByYear/athletesByYear.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter><div class=row></div></form><script id=atbyyetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script id=atbyyetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToCoach(${EdzoId})\">${EdzoNeve}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.html','<ht-widget-header title={{title}} text-id=athletesNotPresentOnMonthlyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker></div></form><script type=text/x-template id=anpomaathlete><a data-ng-click=\"vm.goToAthlete(${IdSportolo})\">${MezoSportoloNev}</a></script><script type=text/x-template id=anpomacoach><a data-ng-click=\"vm.goToCoach(${IdEdzo})\">${MezoEdzoNev}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div><label translate>hintAthletesNotPresentOnMonthlyAttendance</label></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.html','<ht-widget-header title={{title}} text-id=joinedAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=joatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=joatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=joatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=joatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=joatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.html','<ht-widget-header title={{title}} text-id=joinedAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.DateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.DateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=joatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${SzamErkezett}</a></script><script id=joatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamBelepettFiuk}</a></script><script id=joatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamBelepettLanyok}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.html','<ht-widget-header title={{title}} text-id=leavingAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=leatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=leatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=leatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=leatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=leatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.html','<ht-widget-header title={{title}} text-id=leavingAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateChange value=vm.queryDate></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateChange2 value=vm.queryDate2></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=leatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${SzamKilepett}</a></script><script id=leatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamFiu}</a></script><script id=leatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/listAthletes/listAthletes.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><script type=text/x-template id=laopenath><a data-ng-click=\"vm.openAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=laopencoach><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=laopenfee><a data-ng-click=\"vm.openSportServiceFee(${SportolokID})\">${Egyenleg}</a></script><div class=form-group><div class=col-sm-12><div id=Grid2></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/addSchool/addSchool.html','<div class=widget-head><h2>{{title}}</h2></div><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><br><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.newSchool.IskolaNeve validation-rules=\"{required: true, maxlength:100}\"></cts-text-box><cts-text-box name=SchoolZipCode label=SchoolZipCode data-ng-model=vm.newSchool.IskolaIrSzam validation-rules=\"{required: false, maxlength:5}\"></cts-text-box><cts-text-box name=SchoolCity label=SchoolCity data-ng-model=vm.newSchool.IskolaVaros validation-rules=\"{required: true, maxlength:50}\"></cts-text-box><cts-text-box name=SchoolStreet label=SchoolStreet data-ng-model=vm.newSchool.IskolaUtca validation-rules=\"{required: false, maxlength:60}\"></cts-text-box><cts-text-box name=SchoolHouseNumber label=SchoolHouseNumber data-ng-model=vm.newSchool.IskolaHazszam validation-rules=\"{required: false, maxlength:20}\"></cts-text-box><cts-text-box name=SchoolDirectorName label=SchoolDirectorName data-ng-model=vm.newSchool.IskolaIgazgatoNeve validation-rules=\"{required: false, maxlength:60}\"></cts-text-box></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.saveSchool translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/editSchool/editSchool.html','<div class=widget-head><h2>{{title}}</h2></div><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><br><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.params.IskolaNeve validation-rules=\"{required: true, maxlength:100}\"></cts-text-box><cts-text-box name=SchoolZipCode label=SchoolZipCode data-ng-model=vm.params.IskolaIrSzam validation-rules=\"{required: false, maxlength:5}\"></cts-text-box><cts-text-box name=SchoolCity label=SchoolCity data-ng-model=vm.params.IskolaVaros validation-rules=\"{required: true, maxlength:50}\"></cts-text-box><cts-text-box name=SchoolStreet label=SchoolStreet data-ng-model=vm.params.IskolaUtca validation-rules=\"{required: false, maxlength:60}\"></cts-text-box><cts-text-box name=SchoolHouseNumber label=SchoolHouseNumber data-ng-model=vm.params.IskolaHazszam validation-rules=\"{required: false, maxlength:20}\"></cts-text-box><cts-text-box name=SchoolDirectorName label=SchoolDirectorName data-ng-model=vm.params.IskolaIgazgatoNeve validation-rules=\"{required: false, maxlength:60}\"></cts-text-box></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.ModifySchool translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/schoolList/schoolList.html','<ht-widget-header title={{title}} text-id=schoolListHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><button class=cts-button ej-button e-click=vm.goToAddSchool id=addSchool translate>addSchool</button> <button class=cts-button ej-button e-click=vm.goToEditSchool id=editSchool e-enabled=vm.editSchoolButtonEnabled translate>editSchool</button> <button class=cts-button ej-button e-click=vm.DeleteSchool id=deleteSchool e-enabled=vm.editSchoolButtonEnabled translate>deleteSchool</button><div class=row><br><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/userManagement/modifyUser/modifyUser.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\" id=popupHolder><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>UserInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 3, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=userGroup label=UserGroup datasource=vm.userGroupList value=vm.formData.userGroupId change=vm.changeUserGroup validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-dropdown-list><cts-text-box name=loginName label=LoginName data-ng-model=vm.formData.loginName validation-rules=\"{required: true, minlength: 2, maxlength: 30}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-date-picker name=passwordExpiryDate label=PasswordExpiryDate value=vm.formData.passwordExpiryDate></cts-date-picker><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, minlength: 1, maxlength: 1000}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: true, minlength: 9, maxlength: 11}\" data-ng-if=\"!vm.LIMITEDUSER && vm.socialSecurityNumberRequiredValue\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: false}\" data-ng-if=\"!vm.LIMITEDUSER && !vm.socialSecurityNumberRequiredValue\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box-taj-szam><cts-color-picker name=colorPick label=CalendarColor value=vm.colorValue change=vm.colorChanged validation-rules=\"{required: true}\"></cts-color-picker><cts-check-box name=monthlyAttendanceRegister label=monthlyAttendanceRegister change=vm.monthlyAttendanceRegisterChanged></cts-check-box><cts-check-box name=autoSaveCheckBox label=AutoSave checked=vm.formData.autoSave change=vm.autoSaveCheckboxChanged></cts-check-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex validation-rules=\"{required: true}\"></cts-dropdown-list><cts-check-box name=activeCheckBox label=Active checked=vm.activeValue change=vm.activeChange></cts-check-box></fieldset><h3><a href=# translate>ProfessionalInformation</a></h3><fieldset class=col-lg-8><cts-list-box name=sectionListBox label=SectionLeaderHere css-class=scroller-fix datasource=vm.sectionLeaderList show-checkbox=true check-change=vm.sectionLeaderChecked ng-show=vm.SZAKOSZTVEZADATLAP></cts-list-box><div ng-show=vm.EDZOADATLAP class=\"form-group cts-form-group\"><label for=ageGroupTreeView translate>CoachHere</label><div class=input-group><div id=ageGroupTreeView name=ageGroupTreeView ej-treeview e-fields-datasource=vm.ageGroupList e-showcheckbox=true placeholder={{CoachHere|translate}} e-enabled=true e-height=200></div></div></div><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: true, maxlength: 500}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: true, maxlength: 500}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-box name=identityCardNumber label=IdentityCardNumber data-ng-model=vm.formData.identityCardNumber></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset><h3><a href=# translate>IssuedAssets</a></h3><fieldset class=col-lg-10><div class=col-sm-12 style=\"margin-top: 1.5em;\"><div class=row><div id=UsersAssetGrid></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><div style=\"width:50%; float:left;text-align:right\"><cts-text-box name=TakeBackComment ng-if=vm.takebackEnabled label=TakeBackAssetComment data-ng-model=vm.TakeBackComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box></div><div style=\"width:50%; float:right;\"><button e-enabled=vm.takebackEnabled type=button class=cts-button ej-button e-click=vm.TakeBack translate>TakeBack</button></div></div></div></fieldset></div></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button> <button type=button class=cts-button ej-button e-click=vm.goToFiles translate>Contracts</button> <button type=button class=cts-button e-enabled=vm.formData.activeUser ej-button e-click=vm.IssueAsset translate>IssueAsset</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa felhaszn\\xE1l\\xF3nak\" e-showoninit=false e-enablemodal=true e-enableresize=false e-height=690px e-minheight=690px e-maxheight=690px e-allowkeyboardnavigation=false e-width=900px e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><cts-text-box name=IssueComment ng-if=\"vm.assets.length>0\" label=IssueAssetComment data-ng-model=vm.IssueComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn e-enabled=vm.chooseEnabled translate>Issue</button> <button class=cts-button ej-button e-click=vm.IssueNewAsset id=IssueNewBtn translate>IssueNew</button></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><div id=AssetGrid name=AssetGrid></div></div></div></div>');\n$templateCache.put('app/settings/userManagement/newUser/newUser.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>UserInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 5, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=userGroup label=UserGroup datasource=vm.userGroupList value=vm.formData.userGroupId change=vm.changeUserGroup validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=loginName label=LoginName data-ng-model=vm.formData.loginName validation-rules=\"{required: true, minlength: 2, maxlength: 30}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 30}\"></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: true, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: true, minlength: 5, maxlength: 10}\"></cts-text-box><cts-date-picker name=passwordExpiryDate label=PasswordExpiryDate value=vm.formData.passwordExpiryDate></cts-date-picker><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.displayPhoto}} id=profilePic><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: true, maxlength: 50}\"></cts-text-box><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, maxlength: 100}\"></cts-text-area><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber data-ng-if=vm.socialSecurityNumberRequiredValue validation-rules=\"{required: true, minlength: 9, maxlength: 11}\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber data-ng-if=!vm.socialSecurityNumberRequiredValue validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-check-box name=monthlyAttendanceRegister label=monthlyAttendanceRegister change=vm.monthlyAttendanceRegisterChanged></cts-check-box><cts-check-box name=activeCheckBox label=Active checked=vm.activeValue change=vm.activeChange></cts-check-box></fieldset><h3><a href=# translate>ProfessionalInformation</a></h3><fieldset class=col-lg-8><cts-list-box name=sectionListBox label=SectionLeaderHere css-class=scroller-fix datasource=vm.sectionLeaderList show-checkbox=true check-change=vm.sectionLeaderChecked></cts-list-box><div class=\"form-group cts-form-group\"><label for=ageGroupTreeView translate>CoachHere</label><div class=input-group><div id=ageGroupTreeView name=ageGroupTreeView ej-treeview e-fields-datasource=vm.ageGroupList e-showcheckbox=true placeholder={{CoachHere|translate}} e-height=200></div></div></div><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: true, maxlength: 500}\"></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: true, maxlength: 500}\"></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-box name=identityCardNumber label=IdentityCardNumber data-ng-model=vm.formData.identityCardNumber></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset></div></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/settings/userManagement/userList/userList.html','<ht-widget-header title={{title}} text-id=userListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><div class=\"button-wrapper no-margin-top\"><button id=NewUser class=cts-button ej-button e-click=vm.goToNewUser data-ng-enabled=vm.UJFELH translate>NewUser</button> <button id=SelectedDetails class=cts-button ej-button e-click=vm.goToUser data-ng-enabled=vm.MODFELH translate>Modify</button></div></div></form><script id=uslitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToUser2(${Id})\">${TeljesNev}</a></script><script id=uslitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToGroup(${CsoportId})\">${CsoportNeve}</a></script><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\" /> </div></script><div class=row data-ng-if=\"vm.userList.length !== 0\"><div id=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/userManagement/userSettings/userSettings.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>NotificationSettings</a></h3><fieldset class=col-lg-8><cts-check-box name=pushNotification label=PushNotification checked=vm.PushNotificationEnabled change=vm.NotificationChanged></cts-check-box><div ng-class=\"{\\'disabled\\': !vm.PushNotificationEnabled}\"><cts-check-box name=notificationsFromTrainings label=NotificationsFromTrainings checked=vm.formData.PushNotificationSetting.ErtesitesEdzesrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationTrainingPresents data-ng-if=vm.AthleteOrParent label=NotificationTrainingPresents checked=vm.formData.PushNotificationSetting.ErtesitesEdzesJelenletrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromAgegroupChanges data-ng-if=vm.AthleteOrParent label=NotificationsFromAgegroupChanges checked=vm.formData.PushNotificationSetting.ErtesitesEdzoKorosztalyValtasrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromEvents label=NotificationsFromEvents checked=vm.formData.PushNotificationSetting.ErtesitesEsemenyrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromTests data-ng-if=vm.AthleteOrParent label=NotificationsFromTests checked=vm.formData.PushNotificationSetting.ErtesitesFelmeroEredmenyrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromAbsences data-ng-if=vm.AthleteOrParent label=NotificationsFromAbsences checked=vm.formData.PushNotificationSetting.ErtesitesHianyzasrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromExpDocuments label=NotificationsFromExpDocuments checked=vm.formData.PushNotificationSetting.ErtesitesLejaroDokrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromFees data-ng-if=vm.AthleteOrParent label=NotificationsFromFees checked=vm.formData.ErtesitesTagdijrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromMessages label=NotificationsFromMessages checked=vm.formData.PushNotificationSetting.ErtesitesUzenetrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromResults data-ng-if=vm.AthleteOrParent label=NotificationsFromResults checked=vm.formData.PushNotificationSetting.ErtesitesEdzesrol enabled=vm.PushNotificationEnabled></cts-check-box></div></fieldset><h3><a href=# translate>SurfaceSettings</a></h3><fieldset class=col-lg-8><div><cts-check-box name=autoSaveInCheckBox label=AutoSaveInmonthlyAttendance checked=vm.formData.autoSave change=vm.autoSaveCheckboxChanged></cts-check-box></div><div><cts-dropdown-list name=GridRowNB label=gridRecordPerPage datasource=vm.recordPerPageList select=vm.recordPerPageSelect></cts-dropdown-list></div></fieldset><h3><a href=# translate>UserInformation</a></h3><fieldset id=generalFieldset name=generalFieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 3, maxlength: 80}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><div style=\"position: relative\"><img ng-src={{vm.photoUrl}} id=profilePic> <button type=button class=cts-button data-ng-click=vm.openCropDialog() style=\"top: 10px;\" translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" style=\"top: 50px;\" translate>Delete</button></div></div></div></div><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, minlength: 1, maxlength: 1000}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset id=personalFieldset name=personalFieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/search/athletes/memberList/memberList.html','<ht-widget-header title={{title}} text-id=memberListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><label><span translate>SearchWithTheFollowingParameters</span></label><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=Name label=AthleteName data-ng-model=vm.query.nev change=vm.nameChange></cts-text-box><cts-check-box name=NameExactMatch label=exactMatch change=vm.NameExactMatch checked=vm.NameExactMatchChecked enabled=\"vm.query.nev.length>0\"></cts-check-box><cts-check-box name=NotMatching label=notMatching change=vm.NameNotMatching checked=vm.NameNotMatchingChecked enabled=\"vm.query.nev.length>0\"></cts-check-box></div><div class=row><cts-dropdown-list name=active label=activeAthlete datasource=vm.yesno value=vm.query.aktiv></cts-dropdown-list></div><div class=row><cts-dropdown-list name=sectionId label=Section datasource=vm.sectionList value=vm.query.szakosztalyId select=vm.sectionSelect></cts-dropdown-list><cts-check-box name=MemberOfSection label=memberOfSection change=vm.MemberOfSection checked=vm.MemberOfSectionChecked enabled=\"vm.query.szakosztalyId>0\"></cts-check-box><cts-check-box name=NotMemberOfSection label=notMemberOfSection change=vm.NotMemberOfSection checked=vm.NotMemberOfSectionChecked enabled=\"vm.query.szakosztalyId>0\"></cts-check-box></div><div class=row><cts-dropdown-list name=korosztalyId label=AgeGroup datasource=vm.ageGroupList value=vm.query.korosztalyId select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=MemberOfAgeGroup label=memberOfAgegroup change=vm.MemberOfAgeGroup checked=vm.MemberOfAgeGroupChecked></cts-check-box><cts-check-box name=NotMemberOfAgeGroup label=notMemberOfAgegroup change=vm.NotMemberOfAgeGroup checked=vm.NotMemberOfAgeGroupChecked></cts-check-box></div><div class=row><cts-dropdown-list name=edzoId label=Coach datasource=vm.coachList value=vm.query.edzoId select=vm.coachSelect></cts-dropdown-list><cts-check-box name=BelongsToCoach label=belongsToCoach change=vm.BelongsToCoach checked=vm.BelongsToCoachChecked></cts-check-box><cts-check-box name=NotBelongsToCoach label=notBelongsToCoach change=vm.NotBelongsToCoach checked=vm.NotBelongsToCoachChecked></cts-check-box></div><div class=row><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.query.tol></cts-date-picker><cts-dropdown-list name=muvtol datasource=vm.muv_DATE value=vm.query.muvtol></cts-dropdown-list><cts-date-picker name=birthDateTo label=birthDateTo value=vm.query.ig data-ng-if=\"vm.query.muvtol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-dropdown-list name=neme label=gender datasource=vm.genderList value=vm.query.neme></cts-dropdown-list></div><div class=row><cts-text-box name=Nationality label=Nationality data-ng-model=vm.query.allamp></cts-text-box></div><div class=row><cts-date-picker name=versenySportKezdeteTol label=competitiveSportFrom value=vm.query.vspTol></cts-date-picker><cts-dropdown-list name=muvvspTol datasource=vm.muv_DATE value=vm.query.muvvspTol></cts-dropdown-list><cts-date-picker name=versenySportKezdeteTol label=competitiveSportTo value=vm.query.vspIg data-ng-if=\"vm.query.muvvspTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-text-box name=leanykoriNev label=MaidenName data-ng-model=vm.query.leanykoriNev></cts-text-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-text-box name=lakcimMegye label=County data-ng-model=vm.query.lakcimMegye></cts-text-box></div><div class=row><cts-text-box name=lakcimIrSzam label=ZipCode data-ng-model=vm.query.lakcimIrSzam></cts-text-box></div><div class=row><cts-text-box name=lakcimVaros label=City data-ng-model=vm.query.lakcimVaros></cts-text-box></div><div class=row><cts-text-box name=lakcimUtca label=Street data-ng-model=vm.query.lakcimUtca></cts-text-box></div><div class=row><cts-text-box name=lakcimHazszam label=housenumber data-ng-model=vm.query.lakcimHazszam></cts-text-box></div><div class=row><cts-text-box name=elerhetoseg label=Contact data-ng-model=vm.query.elerh></cts-text-box></div><div class=row><cts-text-box name=email label=Email data-ng-model=vm.query.email></cts-text-box></div><div class=row><cts-check-box name=NotMatchingContact label=contactNotMatching change=vm.ContactNotMatching checked=vm.ContactNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.query.iskNev></cts-text-box></div><div class=row><cts-text-box name=SchoolZIP label=SchoolZipCode data-ng-model=vm.query.iskIrSzam></cts-text-box></div><div class=row><cts-text-box name=SchoolVaros label=SchoolCity data-ng-model=vm.query.iskVaros></cts-text-box></div><div class=row><cts-text-box name=SchoolUtca label=SchoolStreet data-ng-model=vm.query.iskUtca></cts-text-box></div><div class=row><cts-text-box name=SchoolHazszam label=SchoolHouseNumber data-ng-model=vm.query.iskHazszam></cts-text-box></div><div class=row><cts-text-box name=SchoolPrincipal label=SchoolNameOfPrincipal data-ng-model=vm.query.igNeve></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloNeve label=SchoolPETeacherName data-ng-model=vm.query.testnev></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloElerh label=SchoolPETeacherContact data-ng-model=vm.query.testnevElerh></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloEmail label=GymTeacherEmail data-ng-model=vm.query.testnevEmail></cts-text-box></div><div class=row><cts-text-box name=SchoolEvfolyam label=SchoolYear data-ng-model=vm.query.evfolyam></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztaly label=SchoolClass data-ng-model=vm.query.osztaly></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoNev label=SchoolHeadTeacherName data-ng-model=vm.query.osztFoNeve></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoTel label=ClassMasterTel data-ng-model=vm.query.OfTel></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoEmail label=ClassMasterEmail data-ng-model=vm.query.OfEmail></cts-text-box></div><div class=row><cts-check-box name=NotMatchingSchool label=schoolNotMatching change=vm.SchoolNotMatching checked=vm.SchoolNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset><div class=row><cts-text-box name=MotherName label=motherName data-ng-model=vm.query.anyjaNeve></cts-text-box></div><div class=row><cts-text-box name=MotherContact label=motherContact data-ng-model=vm.query.anyjaElerh></cts-text-box></div><div class=row><cts-text-box name=MotherEmail label=MotherEmail data-ng-model=vm.query.AnyaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=MotherHeightFrom label=motherHeightFrom value=vm.query.anyjaMagTol></cts-numeric-text-box><cts-dropdown-list name=muvanyjaMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvanyjaMagTol></cts-dropdown-list><cts-numeric-text-box name=MotherHeightTo label=motherHeightTo value=vm.query.anyjaMagIg data-ng-if=\"vm.query.muvanyjaMagTol===\\'K\\xF6z\\xF6tt\\' && !vm.ParentNotMatchingChecked\"></cts-numeric-text-box></div><div class=row><cts-text-box name=MotherSport label=motherAthletesPast data-ng-model=vm.query.anyjaSpMult></cts-text-box></div><div class=row><cts-text-box name=MotherMaidenName label=motherMaidenName data-ng-model=vm.query.anyjaLeanyNeve></cts-text-box></div><div class=row><cts-text-box name=MotherJob label=motherJob data-ng-model=vm.query.anyjaFoglalkozasa></cts-text-box><cts-text-box name=MothersWorkplace label=MothersWorkplace data-ng-model=vm.query.AnyaMunkahely></cts-text-box></div><div class=row><cts-text-box name=FatherName label=FatherName data-ng-model=vm.query.apaNeve></cts-text-box></div><div class=row><cts-text-box name=FatherContact label=FatherContact data-ng-model=vm.query.apaElerh></cts-text-box></div><div class=row><cts-text-box name=FatherEmail label=FatherEmail data-ng-model=vm.query.ApaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=FatherHeightFrom label=FatherHeightFrom value=vm.query.apaMagTol></cts-numeric-text-box><cts-dropdown-list name=muvapaMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvapaMagTol></cts-dropdown-list><cts-numeric-text-box name=FatherHeightTo label=FatherHeightTo value=vm.query.apaMagIg data-ng-if=\"vm.query.muvapaMagTol===\\'K\\xF6z\\xF6tt\\' && !vm.ParentNotMatchingChecked\"></cts-numeric-text-box></div><div class=row><cts-text-box name=FatherSport label=fatherAthletePast data-ng-model=vm.query.apaSpMult></cts-text-box></div><div class=row><cts-text-box name=FatherJob label=fatherJob data-ng-model=vm.query.apaFoglalkozasa></cts-text-box><cts-text-box name=FathersWorkplace label=FathersWorkplace data-ng-model=vm.query.AnyaMunkahely></cts-text-box></div><div class=row><cts-check-box name=NotMatchingParent label=parentNotMatching change=vm.ParentNotMatching checked=vm.ParentNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>BodyShape</a></h3><fieldset><div class=row><cts-numeric-text-box name=HeightFrom label=HeightFrom value=vm.query.testMagTol></cts-numeric-text-box><cts-dropdown-list name=muvtestMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvtestMagTol></cts-dropdown-list><cts-numeric-text-box name=HeightTo label=HeightTo value=vm.query.testMagIg data-ng-if=\"vm.query.muvtestMagTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=WeightFrom label=WeightFrom value=vm.query.testsulyTol></cts-numeric-text-box><cts-dropdown-list name=testsulyTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvtestsulyTol></cts-dropdown-list><cts-numeric-text-box name=WeightTo label=WeightTo value=vm.query.testSulyIg data-ng-if=\"vm.query.muvtestsulyTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=BMI label=BMIfrom value=vm.query.bmi></cts-numeric-text-box><cts-dropdown-list name=muvbmi label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvbmi></cts-dropdown-list><cts-numeric-text-box name=BMIig label=BMIto value=vm.query.bmiig data-ng-if=\"vm.query.muvbmi===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActHeightFrom label=actualHeightFrom value=vm.query.acttestMagTol></cts-numeric-text-box><cts-dropdown-list name=muvacttestMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvacttestMagTol></cts-dropdown-list><cts-numeric-text-box name=ActHeightTo label=actualHeightTo value=vm.query.acttestMagIg data-ng-if=\"vm.query.muvacttestMagTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActWeightFrom label=actualWeightFrom value=vm.query.acttestSulyTol></cts-numeric-text-box><cts-dropdown-list name=muvacttestSulyTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvacttestSulyTol></cts-dropdown-list><cts-numeric-text-box name=ActWeightTo label=actualWeightTo value=vm.query.acttestSulyIg data-ng-if=\"vm.query.muvacttestSulyTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActBMI label=actualBMIfrom value=vm.query.actbmi></cts-numeric-text-box><cts-dropdown-list name=muvactbmi label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvactbmi></cts-dropdown-list><cts-numeric-text-box name=ActBMIig label=actualBMIto value=vm.query.actbmiig data-ng-if=\"vm.query.muvactbmi===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-dropdown-list name=BetterHand label=BetterHand datasource=vm.leftrightboth value=vm.query.ugyKez></cts-dropdown-list><cts-dropdown-list name=muvugyKez datasource=vm.muv_EGYEZIK_NEMEGYZIK value=vm.query.muvugyKez></cts-dropdown-list></div><div class=row><cts-dropdown-list name=BetterFoot label=BetterFoot datasource=vm.leftrightboth value=vm.query.ugyLab></cts-dropdown-list><cts-dropdown-list name=muvugyLab datasource=vm.muv_EGYEZIK_NEMEGYZIK value=vm.query.muvugyLab></cts-dropdown-list></div><div class=row><cts-check-box name=NotMatchingBodyShape label=bodyshapeNotMatching change=vm.BodyShapeNotMatching checked=vm.BodyShapeNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>IdNumbers</a></h3><fieldset><div class=row><cts-text-box name=personalID label=PersonalID data-ng-model=vm.query.szemIgSzam></cts-text-box></div><div class=row><cts-text-box-taj-szam name=SocialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.query.tajSzam></cts-text-box-taj-szam></div><div class=row><cts-text-box name=TaxNumber label=TaxNumber data-ng-model=vm.query.adoSzam></cts-text-box></div><div class=row><cts-text-box name=PassportNumber label=PassportNumber data-ng-model=vm.query.utlevelSzam></cts-text-box></div><div class=row><cts-text-box name=SchoolRegSzam label=SchoolRegistrationNumber data-ng-model=vm.query.regszam></cts-text-box></div><div class=row><cts-check-box name=NotMatchingIdNumbers label=idNumbersNotMatching change=vm.IdNumbersNotMatching checked=vm.IdNumbersNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-text-box name=Other label=Others data-ng-model=vm.query.egyeb></cts-text-box></div><div class=row><cts-dropdown-list name=havidijas label=HaviDijas datasource=vm.yesno value=vm.query.havidijas></cts-dropdown-list></div><div class=row><cts-dropdown-list name=oktdijas label=oktataDijas datasource=vm.yesno value=vm.query.oktdijas></cts-dropdown-list></div><div class=row><cts-text-box name=ChildhoodSport label=ChildhoodSport data-ng-model=vm.query.gyereksport></cts-text-box></div><div class=row><cts-text-box name=VacationActivity label=VacationActivity data-ng-model=vm.query.szunidElfogl></cts-text-box></div><div class=row><cts-text-box name=ChosenSports label=ChosenSports data-ng-model=vm.query.valSportagak></cts-text-box></div><div class=row><cts-date-picker name=SchoolKezdeteTol label=registrationTimeFrom value=vm.query.dsiKezdTol></cts-date-picker><cts-dropdown-list name=muvdsiKezdTol datasource=vm.muv_REL_KOZ value=vm.query.muvdsiKezdTol></cts-dropdown-list><cts-date-picker name=SchoolKezdeteIg label=registrationTimeTo value=vm.query.dsiKezdIg data-ng-if=\"vm.query.muvdsiKezdTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-date-picker name=SchoolKilepesTol label=exitTimeFrom value=vm.query.kiDatTol></cts-date-picker><cts-dropdown-list name=muvkiDatTol datasource=vm.muv_REL_KOZ value=vm.query.muvkiDatTol></cts-dropdown-list><cts-date-picker name=SchoolKilepesIg label=exitTimeTo value=vm.query.kiDatIg data-ng-if=\"vm.query.muvkiDatTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-text-box name=SchoolKilepesIndoka label=exitReason data-ng-model=vm.query.kilepIndoka></cts-text-box></div><div class=row><cts-text-box name=SchoolEddigiEdzoi label=FormerCoaches data-ng-model=vm.query.eddigiEdzoi></cts-text-box></div><div class=row><cts-text-box name=SchoolSportEgyesuletei label=fromerSportclubMemberships data-ng-model=vm.query.eddigiSpEgyes></cts-text-box></div><div class=row><cts-date-picker name=SchoolEdzesKezdTol label=trainingStartFrom value=vm.query.edzesKezdTol></cts-date-picker><cts-dropdown-list name=muvedzesKezdTol datasource=vm.muv_REL_KOZ value=vm.query.muvedzesKezdTol></cts-dropdown-list><cts-date-picker name=SchoolEdzesKezdIg label=trainingStartTo value=vm.query.edzesKezdIg data-ng-if=\"vm.query.muvedzesKezdTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset><div class=row><cts-text-box name=SlippersSize label=SlipperSize data-ng-model=vm.query.papucsMerete></cts-text-box></div><div class=row><cts-text-box name=JoggingSize label=JoggingSize data-ng-model=vm.query.melegitoMerete></cts-text-box></div><div class=row><cts-text-box name=BathrobeSize label=BathrobeSize data-ng-model=vm.query.furdokopenyMerete></cts-text-box></div><div class=row><cts-text-box name=CoatSize label=CoatSize data-ng-model=vm.query.kabatMerete></cts-text-box></div><div class=row><cts-text-box name=ArmorPantsSize label=ArmorPantsSize data-ng-model=vm.query.pancelNadragMerete></cts-text-box></div><div class=row><cts-text-box name=ShirtSize label=ShirtSize data-ng-model=vm.query.poloMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.sortMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.cipoMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.uszonadragMerete></cts-text-box></div></fieldset></div><br><label><span translate>ColumnsOfResultTable</span></label><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-check-box name=G1SzulHely label=BirthPlace checked=vm.query.kellSzulHely></cts-check-box><cts-check-box name=G1Szakosztaly label=Section checked=vm.query.kellszakosztalyId></cts-check-box><cts-check-box name=G1Korosztaly label=AgeGroup checked=vm.query.kellkorosztalyId></cts-check-box><cts-check-box name=G1Edzo label=Coach checked=vm.query.kelledzoId></cts-check-box><cts-check-box name=G1Neme label=Sex checked=vm.query.kellneme></cts-check-box><cts-check-box name=G1Nationality label=Nationality checked=vm.query.kellallamp></cts-check-box><cts-check-box name=\"G1Le\\xE1nykori N\\xE9v\" label=MaidenName checked=vm.query.kellLeanykNev></cts-check-box><cts-check-box name=G1Aktiv label=Active checked=vm.query.kellaktiv></cts-check-box><cts-check-box name=G1Megjegyz\\xE9s label=Comment checked=vm.query.kellmegjegyzes></cts-check-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-check-box name=G2KellLakcim label=Address checked=vm.query.kelllakcim></cts-check-box><cts-check-box name=G2KellElerhetoseg label=Contact checked=vm.query.kellelerh></cts-check-box><cts-check-box name=G2KellEmail label=Email checked=vm.query.kellEmail></cts-check-box></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-check-box name=G3__01 label=SchoolName checked=vm.query.kelliskNev></cts-check-box><cts-check-box name=G3__03 label=SchoolAddress checked=vm.query.kelliskCim></cts-check-box><cts-check-box name=G3__06 label=SchoolDirectorName checked=vm.query.kelligNeve></cts-check-box><cts-check-box name=G3__10 label=ClassMaster checked=vm.query.kellof></cts-check-box><cts-check-box name=G3__07 label=GymTeacher checked=vm.query.kelltestnev></cts-check-box><cts-check-box name=G3__08 label=GymTeacherContact checked=vm.query.kelltestnevElerh></cts-check-box><cts-check-box name=G3__09 label=CoursePerClass checked=vm.query.kellevfolyam></cts-check-box></div></fieldset><h3><a href=# translate>Parent\\'s details</a></h3><fieldset><div class=row><cts-check-box name=G4mother label=MothersDetails checked=vm.query.kellAnyjaAdatai></cts-check-box><cts-check-box name=G4father label=FathersDetails checked=vm.query.kellApjaAdatai></cts-check-box></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-check-box name=G5 label=PhysicalConditions checked=vm.query.kelltestiAdottsagok></cts-check-box><cts-check-box name=G6 label=IDNumbers checked=vm.query.kellAzonositok></cts-check-box><cts-check-box name=G7_1 label=Fees checked=vm.query.kellhavidijas></cts-check-box><cts-check-box name=G7_2 label=ChildhoodSport checked=vm.query.kellGyermSp></cts-check-box><cts-check-box name=G7_3 label=VacationActivity checked=vm.query.kellSzunidei></cts-check-box><cts-check-box name=G3__11 label=StartMemberDate checked=vm.query.kellDSIKezd></cts-check-box><cts-check-box name=G3__12 label=TimeAndCauseOfLeaving checked=vm.query.kellKilepesDatum></cts-check-box><cts-check-box name=G3__14 label=CoachDetails checked=vm.query.kellEddigiEdzo></cts-check-box><cts-check-box name=G3__15 label=SportAssociation checked=vm.query.kellEddigiSp></cts-check-box><cts-check-box name=G3__16 label=RegistrationNumber checked=vm.query.kellNyilvSzam></cts-check-box><cts-check-box name=G3__17 label=SportServiceFee checked=vm.query.kellTagdijas></cts-check-box><cts-check-box name=G3__18 label=TrainingStart checked=vm.query.kellEdzJaras></cts-check-box></div></fieldset><h3><a href=# translate>Clothes</a></h3><fieldset><div class=row><cts-check-box name=G8_1 label=SlippersDetails checked=vm.query.kellpapucs></cts-check-box><cts-check-box name=G8_2 label=JoggingDetails checked=vm.query.kellmelegito></cts-check-box><cts-check-box name=G8_3 label=BathRobeDetails checked=vm.query.kellfurdokopeny></cts-check-box><cts-check-box name=G8_4 label=CoatDetails checked=vm.query.kellkabat></cts-check-box><cts-check-box name=G8_5 label=ArmorPantsDetails checked=vm.query.kellpancelNadrag></cts-check-box><cts-check-box name=G8_6 label=ShirtDetails checked=vm.query.kellpolo></cts-check-box><cts-check-box name=G8_7 label=ShortsDetails checked=vm.query.kellsort></cts-check-box><cts-check-box name=G8_7 label=ShoeDetails checked=vm.query.kellcipo></cts-check-box><cts-check-box name=G8_7 label=SwimmingPantDetails checked=vm.query.kelluszonadrag></cts-check-box></div></fieldset></div></div></form><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.resetQueryDetails translate>ResetForm</button></div></div></form><script type=text/x-template id=searchmemberlistgotoathlete><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/search/athletes/simple/simple.html','<ht-widget-header title={{title}} text-id=simpleHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=name label=Name data-ng-model=vm.formData.name></cts-text-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex clear=vm.cleaSex></cts-dropdown-list><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box></div><div class=row><cts-dropdown-list name=sectionId label=Section value=vm.formData.sectionId databound=vm.sectionDataBound datasource=vm.sectionList select=vm.sectionSelect clear=vm.clearSection></cts-dropdown-list><cts-dropdown-list name=ageGroupId label=AgeGroup value=vm.formData.ageGroupId databound=vm.ageGroupDataBound datasource=vm.ageGroupList clear=vm.clearAgeGroup></cts-dropdown-list><cts-dropdown-list name=coachId label=Coach value=vm.formData.coachId databound=vm.coachDataBound datasource=vm.coachList clear=vm.clearCoach></cts-dropdown-list></div><div class=row><cts-text-box name=birthPlace label=BirthPlace data-ng-model=vm.formData.birthPlace></cts-text-box><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.formData.birthDateFrom></cts-date-picker><cts-date-picker name=birthDateTo label=BirthDateTo value=vm.formData.birthDateTo></cts-date-picker></div><div class=row><cts-date-picker name=competitiveSportStart label=CompetitiveSportStart value=vm.formData.competitiveSportStart></cts-date-picker><cts-date-picker name=competitiveSportEnd label=CompetitiveSportEnd value=vm.formData.competitiveSportEnd></cts-date-picker></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-dropdown-list name=county label=County value=vm.formData.county datasource=vm.countyList clear=vm.clearCounty></cts-dropdown-list><cts-text-box name=zipCode label=zipCode data-ng-model=vm.formData.zipCode></cts-text-box><cts-text-box name=city label=City data-ng-model=vm.formData.city></cts-text-box></div><div class=row><cts-text-box name=street label=Street data-ng-model=vm.formData.street></cts-text-box><cts-text-box name=streetNumber label=StreetNumber data-ng-model=vm.formData.StreeNumber></cts-text-box></div><div class=row><cts-text-box name=phoneNumber label=phoneNumber data-ng-model=vm.formData.contact></cts-text-box><cts-text-box-email name=email label=Email data-ng-model=vm.formData.email></cts-text-box-email></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.formData.schoolName></cts-text-box></div><div class=row><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.formData.schoolZipCode></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.formData.schoolCity></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.formData.schoolStreet></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.formData.schoolStreetNumber></cts-text-box></div><div class=row><cts-text-box name=directorName label=DirectorName data-ng-model=vm.formData.directorName></cts-text-box><cts-text-box name=classMaster label=ClassMaster data-ng-model=vm.formData.classMaster></cts-text-box><cts-text-box name=classMasterEmail label=ClassMasterEmail data-ng-model=vm.formData.OfEmail></cts-text-box><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.formData.OfTel></cts-text-box><cts-text-box name=gymTeacher label=GymTeacher data-ng-model=vm.formData.gymTeacher></cts-text-box><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.formData.gymTeacherContact></cts-text-box><cts-text-box name=gymTeacherEmail label=GymTeacherEmail data-ng-model=vm.formData.TestneveloEmail></cts-text-box></div><div class=row><cts-dropdown-list name=course label=Course value=vm.formData.course clear=vm.clearCourse datasource=vm.courseList></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.formData.schoolClass clear=vm.clearClass datasource=vm.classList></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset><div class=row><cts-text-box name=motherName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.formData.motherContact></cts-text-box><cts-text-box name=motherEmail label=MotherEmail data-ng-model=vm.formData.AnyaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=motherHeightFrom label=MotherHeightFrom value=vm.formData.motherHeightFrom></cts-numeric-text-box><cts-numeric-text-box name=motherHeightTo label=MotherHeightTo value=vm.formData.motherHeightTo></cts-numeric-text-box><cts-text-box name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.formData.motherSportHistory></cts-text-box><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.formData.mothersJob></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.formData.AnyaMunkahely></cts-text-box></div><div class=row><cts-text-box name=fatherName label=FatherName data-ng-model=vm.formData.fatherName></cts-text-box><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.formData.fatherContact></cts-text-box><cts-text-box name=fatherEmail label=FatherEmail data-ng-model=vm.formData.ApaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=fatherHeightFrom label=FatherHeightFrom value=vm.formData.fatherHeightFrom></cts-numeric-text-box><cts-numeric-text-box name=fatherHeightTo label=FatherHeightTo value=vm.formData.fatherHeightTo></cts-numeric-text-box><cts-text-box name=MotherSportHistory label=FatherSportHistory data-ng-model=vm.formData.fatherSportHistory></cts-text-box><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.formData.fatherJob></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.formData.ApaMunkahely></cts-text-box></div></fieldset><h3><a href=# translate>BodyShape</a></h3><fieldset><div class=row><cts-numeric-text-box name=athleteHeightFrom label=HeightFrom value=vm.formData.heightFrom></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightTo label=HeightTo value=vm.formData.heightTo></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=athleteWeightFrom label=WeightFrom value=vm.formData.weightFrom></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightTo label=WeightTo value=vm.formData.weightTo></cts-numeric-text-box></div><div class=row><cts-dropdown-list name=betterHand label=BetterHand value=vm.formData.betterHand datasource=vm.betterHandList></cts-dropdown-list><cts-dropdown-list name=betterFoot label=BetterFoot value=vm.formData.betterFoot datasource=vm.betterFootList></cts-dropdown-list></div></fieldset><h3><a href=# translate>IdNumbers</a></h3><fieldset><div class=row><cts-text-box name=personalId label=PersonalId data-ng-model=vm.formData.identityNumber></cts-text-box><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber></cts-text-box-taj-szam><cts-text-box-tax-id name=taxId label=taxId data-ng-model=vm.formData.taxNumber></cts-text-box-tax-id><cts-text-box-passport-number name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box-passport-number></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-text-area name=Notes label=Notes data-ng-model=vm.formData.notes></cts-text-area><cts-check-box name=active label=Active checked=vm.formData.active></cts-check-box><cts-check-box name=inactive label=Inactive checked=vm.formData.inactive></cts-check-box><cts-check-box name=sportServiceFee label=SportServiceFee checked=vm.formData.sportServiceFee></cts-check-box><cts-check-box name=educationalFee label=EducationalFee checked=vm.formData.educationalFee></cts-check-box></div></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset><cts-text-box name=slippersSize label=SlipperSize data-ng-model=vm.formData.slipperSize></cts-text-box><cts-text-box name=joggingSuitSize label=JoggingSuitSize data-ng-model=vm.formData.joggingSuitSize></cts-text-box><cts-text-box name=bathrobeSize label=BathrobeSize data-ng-model=vm.formData.bathrobeSize></cts-text-box><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.formData.coatSize></cts-text-box><cts-text-box name=armorPantSize label=ArmorPantSize data-ng-model=vm.formData.armorPantSize></cts-text-box><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.formData.tShirtSize></cts-text-box><cts-text-box name=shortDressSize label=ShortDressSize data-ng-model=vm.formData.shortDressSize></cts-text-box><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.formData.shoeSize></cts-text-box><cts-text-box name=swimmingPantSize label=SwimmingPantSize data-ng-model=vm.formData.swimmingPantSize></cts-text-box></fieldset></div><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.reset translate>ResetForm</button></div></div></form><script type=text/x-template id=simplecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=simplecolumnTemplate2><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/search/user/searchuser/searchuser.html','<ht-widget-header title={{title}} text-id=searchUserHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=name label=FullName data-ng-model=vm.formData.nev></cts-text-box><cts-text-box name=username label=Username data-ng-model=vm.formData.loginNev></cts-text-box></div><div class=row><cts-dropdown-list name=usergroup label=\"User group\" datasource=vm.usergroups databound=vm.userGroupDatabound value=vm.formData.idCsoport></cts-dropdown-list><cts-dropdown-list name=gender label=Gender datasource=vm.genderList value=vm.formData.neme></cts-dropdown-list></div><div class=row><cts-text-box name=pobcountry label=\"Place of birth (Country)\" data-ng-model=vm.formData.szulHelyOrszag></cts-text-box><cts-text-box name=pobcity label=\"Place of birth (City)\" data-ng-model=vm.formData.szulHelyVaros></cts-text-box></div><div class=row><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.formData.szulTol></cts-date-picker><cts-date-picker name=birthDateTo label=birthDateTo value=vm.formData.szulIg></cts-date-picker></div><div class=row><cts-dropdown-list name=active label=\"Active user\" datasource=vm.yesno value=vm.formData.aktiv></cts-dropdown-list><cts-text-box name=Nationality label=Nationality data-ng-model=vm.formData.allamp></cts-text-box></div><div class=row><cts-check-box name=isc label=\"Individual sport coach\" checked=vm.formData.egyeniSport></cts-check-box><cts-check-box name=tsc label=\"Team sport coach\" checked=vm.formData.csapatSport></cts-check-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-text-box name=email label=Email data-ng-model=vm.formData.email></cts-text-box><cts-text-box name=address label=Address data-ng-model=vm.formData.lakcim></cts-text-box></div><div class=row><cts-text-box name=contact label=Contact data-ng-model=vm.formData.elerhetoseg></cts-text-box><cts-text-box name=mothersname label=\"Mother\\'s name\" data-ng-model=vm.formData.anyjaNeve></cts-text-box></div><div class=row><cts-text-box name=CoachQualification label=\"Coach qualification\" data-ng-model=vm.formData.edzKep></cts-text-box><cts-text-box name=MainWorkplace label=\"Main workplace\" data-ng-model=vm.formData.foallMh></cts-text-box></div></fieldset><h3><a href=# translate>ID numbers and bodyShape</a></h3><fieldset><div class=row><cts-text-box name=personalID label=PersonalID data-ng-model=vm.formData.szemSzam></cts-text-box></div><div class=row><cts-text-box-taj-szam name=SocialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.tajSzam></cts-text-box-taj-szam></div><div class=row><cts-text-box name=PassportNumber label=PassportNumber data-ng-model=vm.formData.utlevel></cts-text-box></div><div class=row><cts-text-box name=HeightFrom label=\"Height (From)\" data-ng-model=vm.formData.magTol></cts-text-box><cts-text-box name=HeightTo label=\"Height (To)\" data-ng-model=vm.formData.magIg></cts-text-box></div><div class=row><cts-text-box name=WeightFrom label=\"Weight (From)\" data-ng-model=vm.formData.testTol></cts-text-box><cts-text-box name=WeightTo label=\"Weight (To)\" data-ng-model=vm.formData.testIg></cts-text-box></div></fieldset></div><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.reset translate>ResetForm</button></div></div></form><script type=text/x-template id=searchusergotouser><a data-ng-click=\"vm.goToUser(${Id})\">${Nev}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.html','<form class=filter name=form novalidate><div class=row style=\"margin-bottom: 1.5em;\"><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.newAnthropometryTest translate>NewAnthropometryTest</button> <button type=button class=cts-button ej-button e-click=vm.oldAnthropometryTest translate>OldAnthropometryTests</button></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-12><p><b translate>AthletesData:</b></p></div><div class=col-sm-6><cts-text-box name=athletesName label=AthletesName data-ng-model=vm.formData.SportoloNeve validation-rules=\"{required: true}\" style=\"width: 100%;\"></cts-text-box><cts-text-box name=athletesAddress label=AthletesAddress data-ng-model=vm.formData.SportoloLakcim style=\"width: 100%;\"></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.SzuletesiIdo style=\"width: 100%;\"></cts-date-picker><cts-date-picker name=endOfPuberty label=EndOfPuberty value=vm.formData.PubertaskorVege style=\"width: 100%;\"></cts-date-picker></div><div class=col-sm-6><cts-text-area name=chosenSports label=ChosenSports data-ng-model=vm.formData.ValasztottSportagak style=\"width: 100%;\"></cts-text-area></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-12><p><b translate>testDetails:</b></p></div><div class=col-sm-6><cts-text-box name=testsName label=TestsName data-ng-model=vm.formData.Felmeres style=\"width: 100%\"></cts-text-box><cts-text-box name=group label=Group data-ng-model=vm.formData.Csoport style=\"width: 100%;\"></cts-text-box><cts-date-picker name=testsDate label=TestsDate value=vm.formData.MeresDatuma style=\"width: 100%;\" validation-rules=\"{required: true}\"></cts-date-picker></div><div class=col-sm-6><div class=\"form-group cts-form-group\" style=\"width: 100%;\"><label translate>Logo</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic width=32 height=32><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div></div><div class=col-sm-12><cts-text-area name=clubsNameAddress label=ClubsNameAddress data-ng-model=vm.formData.VizsgalatotKeroNeveCime style=\"width: 100%;\"></cts-text-area></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-9><div class=row><p><b translate>habitDatas:</b></p></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TTM label=TTM value=vm.formData.TTM tab-index=1 validation-rules=\"{required: true, minlength: 40, maxlength: 250}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=VAS label=VAS value=vm.formData.VAS tab-index=5 validation-rules=\"{required: true, minlength: 15, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MKK label=MKK value=vm.formData.MKK tab-index=9 validation-rules=\"{required: true, minlength: 40, maxlength: 150}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=KZK label=KZK value=vm.formData.KZK tab-index=14 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TTS label=TTS value=vm.formData.TTS tab-index=2 validation-rules=\"{required: true, minlength: 15, maxlength: 150}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MKS label=MKS value=vm.formData.MKS tab-index=6 validation-rules=\"{required: true, minlength: 15, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=FFK label=FFK value=vm.formData.FFK tab-index=10 validation-rules=\"{required: true, minlength: 10, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=COK label=COK value=vm.formData.COK tab-index=15 validation-rules=\"{required: true, minlength: 20, maxlength: 80}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=HUS label=HUS value=vm.formData.HUS tab-index=3 validation-rules=\"{required: true, minlength: 3, maxlength: 15}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MMG label=MMG value=vm.formData.MMG tab-index=7 validation-rules=\"{required: true, minlength: 3, maxlength: 30}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=FK label=FK value=vm.formData.FK tab-index=11 validation-rules=\"{required: true, minlength: 10, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=ASK label=ASK value=vm.formData.ASK tab-index=16 validation-rules=\"{required: true, minlength: 15, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TDS label=TDS value=vm.formData.TDS tab-index=4 validation-rules=\"{required: true, minlength: 5, maxlength: 20}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=CRS label=CRS value=vm.formData.CRS tab-index=8 validation-rules=\"{required: true, minlength: 19, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=AKK label=AKK value=vm.formData.AKK tab-index=12 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=BOK label=BOK value=vm.formData.BOK tab-index=17 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=\"col-sm-3 col-sm-offset-6\"><cts-numeric-text-box name=CUK label=CUK value=vm.formData.CUK tab-index=13 validation-rules=\"{required: true, minlength: 7, maxlength: 30}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=BR label=BR value=vm.formData.BR tab-index=18 validation-rules=\"{required: true, minlength: 1, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=TR label=TR value=vm.formData.TR tab-index=19 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=LPR label=LPR value=vm.formData.LR tab-index=20 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=CSR label=CSR value=vm.formData.CSR tab-index=21 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=HR label=HR value=vm.formData.HR tab-index=22 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=COR label=COR value=vm.formData.COR tab-index=23 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MSR label=MSR value=vm.formData.MSR tab-index=24 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div></div><div class=col-sm-2><div class=row><p><b translate>H-C komp.:</b></p></div><div class=row><cts-numeric-text-box name=endomorfia label=Endomorph value=vm.formData.Endomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=mezomorfia label=Mesomorph value=vm.formData.Mezomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ektomorfia label=Ectomorph value=vm.formData.Ektomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row style=\"margin-top: 109px;\"><p style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\"><b translate>Conradindexes:</b></p></div><div class=row><cts-numeric-text-box name=metrikus label=Metric value=vm.formData.MetrikusConradIndex style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=plasztikus label=Plastic value=vm.formData.PlasztikusConradIndex style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=row><p><b translate>Drinkwaterfunctions:</b></p></div><div class=\"row drinkWaterContainer\"><div class=drinkWaterItem><cts-numeric-text-box name=DFDC label=DC value=vm.formData.DFDC style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFTZSSzazalek label=TZSPercent value=vm.formData.DFTZSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFTTS label=TTS value=vm.formData.DFTTS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDelta label=Delta value=vm.formData.DFDelta style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZS label=BZS value=vm.formData.DFBZS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBCS label=BCS value=vm.formData.DFBCS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBI label=BI value=vm.formData.DFBI style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSR label=BZSR value=vm.formData.DFBZSR style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div><div class=\"row drinkWaterContainer\"><div class=drinkWaterItem><cts-numeric-text-box name=DFBF label=BF value=vm.formData.DFBF style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDCBF label=DC-BF value=vm.formData.DFDCBF style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFVTM label=VTM value=vm.formData.DFVTM style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBTTS label=BTTS value=vm.formData.DFBTTS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDELTASzazalek label=DELTAPercent value=vm.formData.DFDELTASzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSSzazalek label=BZSPercent value=vm.formData.DFBZSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBCSSzazalek label=BCSPercent value=vm.formData.DFBCSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBISzazalek label=BIPercent value=vm.formData.DFBISzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSRSzazalek label=VBZSRPercent value=vm.formData.DFBZSRSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=row><p><b translate>Rating:</b></p></div><cts-text-box name=testalkat label=Physique data-ng-model=vm.formData.Testalkat disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=sulyfelesleg label=Overweight data-ng-model=vm.formData.Sulyfelesleg disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=erosithetoseg label=Hardenability data-ng-model=vm.formData.Erosithetoseg disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=varhatoTestmagassag label=HeightForAge data-ng-model=vm.formData.VarhatoTestmagassag disabled=!vm.ANTRKIERT></cts-text-box></div><div class=row><div class=row><p><b translate>NotionSuggession:</b></p></div><div class=col-sm-6><cts-text-area name=szakertoiVelemeny label=ExpertOpinion data-ng-model=vm.formData.SzakertoiVelemeny style=\"width: 100%;\" disabled=!vm.ANTRKIERT></cts-text-area></div><div class=col-sm-6><cts-text-area name=ajanlottSportagak label=RecommendedSports data-ng-model=vm.formData.AjanlottSportagak style=\"width: 100%;\" disabled=!vm.ANTRKIERT></cts-text-area></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.saveForm tabindex=25 translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button id=print ej-button e-click=vm.print type=button data-ng-if=vm.REGIFELMERES translate>Print</button></div><div id=printDialoganthtest2><report report-name=TAntropometriaNyomtatasReport report-parameters=vm.reportParameters></report></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div><div id=oldAnthropometryTestsWindow ej-dialog e-title=vm.oldAnthropometryTestTitle e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-close=vm.closeWindow e-content=#dialogContainer e-enableanimation=true e-width=800px e-showroundedcorner=false><div class=modal-body><div class=text-center><div id=GridPopup class=slim-grid></div></div></div><div class=text-center><button class=cts-button id=done ej-button e-click=vm.selectTest type=button>Rendben</button> <button class=\"cts-button red\" id=cancel ej-button e-click=vm.closeWindow type=button>M\\xE9gsem</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.html','<div class=row><script type=text/x-template id=feearrearscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${VersenyzoId})\">${VersenyzoNeve}</a></script><script type=text/x-template id=feearrearscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid class=slim-grid></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.html','<form name=form class=filter><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerfrom label=DateFrom change=vm.dateFromChanged value=vm.dateFrom></cts-date-picker><cts-date-picker name=datepickerto label=DateTo change=vm.dateToChanged value=vm.dateTo></cts-date-picker></div></form><div id=Grid class=slim-grid></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.html','<div class=row id=kiadottoldal><h4 translate style=\"padding-left: 1em;\">AthletesAssets</h4><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa sportol\\xF3nak\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-width=80% e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false><div class=col-xs-12 style=\"text-align: center; margin: 1.5em 0;\"><cts-text-box name=IssueComment label=IssueAssetComment data-ng-model=vm.IssueComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn translate>Issue</button> <button class=cts-button ej-button e-click=vm.IssueNewAsset id=IssueNewBtn translate>IssueNew</button></div><div class=col-xs-12><div id=AssetGrid class=slim-grid></div></div></div></div><div class=col-sm-12 style=\"margin-top: 1.5em;\"><div id=AthletesAssetGrid class=slim-grid></div><div class=row style=\"margin-top: 1.5em;\"><div class=col-xs-12><cts-text-box name=TakeBackComment label=TakeBackAssetComment data-ng-model=vm.TakeBackComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button type=button class=cts-button ej-button e-click=vm.TakeBack translate>TakeBack</button> <button type=button class=cts-button ej-button e-click=vm.IssueAsset translate>IssueAsset</button></div></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.html','<div id=Tooltip1 style=\"display: none;\"><div id=icon><div id=tticon></div></div><div id=value><div><label id=date> #point.x#</label><br><label id=tt1> #point.y#</label></div></div></div><div style=height:800px ej-chart id=Chart name=Chart data-ng-if=\"vm.data.length > 0\" e-title-text=vm.chartText e-commonseriesoptions-marker-shape=circle e-commonseriesoptions-marker-size-height=5 e-commonseriesoptions-marker-size-width=5 e-commonseriesoptions-marker-visible=true e-commonseriesoptions-tooltip-visible=true e-commonseriesoptions-tooltip-template=Tooltip1 e-primaryxaxis-labelrotation=315><e-series><e-series e-name=vm.cm e-datasource=vm.data e-xname=datum e-yname=cm type=line fill=#00B711></e-series><e-series e-name=vm.kg e-datasource=vm.data e-xname=datum e-yname=kg type=line fill=#E63311></e-series><e-series e-name=vm.bmi e-datasource=vm.data e-xname=datum e-yname=bmi type=line fill=#0080FF></e-series></e-series></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.html','<form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><cts-date-picker name=datefrom label=DateFrom change=vm.dateFromChange value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo change=vm.dateToChange value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker></div></div><script type=text/x-template id=sstlCoach><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNev}</a></script><script type=text/x-template id=sstlOpen><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\">{{\\'Megnyit\\xE1s\\'|translate}}</a></script><div class=row><div id=Grid class=slim-grid></div></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.html','<form class=filter name=form style=\"overflow: hidden;\"><div class=row><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound change=vm.sectionSelect value=vm.sectionId></cts-dropdown-list><cts-dropdown-list name=ageGroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound change=vm.ageGroupSelect value=vm.ageGroupId></cts-dropdown-list><cts-dropdown-list name=discipline label=Discipline datasource=vm.disciplineList databound=vm.disciplineDataBound change=vm.disciplineSelect value=vm.discipline></cts-dropdown-list></div><div class=row><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.selectdateFromChange></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.selectdateToChange></cts-date-picker></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.filter translate>Filter</button></div></form><div class=row><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart1 name=Chart1></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart2 name=Chart2></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart3 name=Chart3></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart4 name=Chart4></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.html','<form name=form novalidate enctype=multipart/form-data prevent-enter-submit><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion name=accordion><h3><a href=# translate>AthleteDatasheet</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev validation-rules=\"{required: true, minlength: 5, maxlength: 80}\" disabled=!vm.allowEdit></cts-text-box><cts-dropdown-list name=gender label=Sex value=vm.sexNum datasource=vm.sexList select=vm.sexSelect databound=vm.sexDatabound validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic><div style=\"position: relative;\"><button ng-show=\"vm.displayButtons && vm.allowEdit\" class=cts-button type=button data-ng-click=vm.openCropDialog() translate>Modify</button> <button ng-show=\"vm.displayButtons && vm.allowEdit\" class=\"cts-button red\" type=button data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><div class=\"form-group cts-form-group\"><label for=sectionValue>{{\"Section\"|translate}}</label> <label id=sectionValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><div class=\"form-group cts-form-group\"><label for=ageGroupValue>{{\"AgeGroup\"|translate}}</label> <label id=ageGroupValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.KorcsoportNeve}}</label></div><div ng-if=vm.MODKOROKEZ ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeAgeGroup ej-button e-click=vm.changeAgeGroup ng-show=vm.allowEdit translate>ChangeAgeGroup</button></div></div><div class=\"form-group cts-form-group\"><label for=coachName>{{\"CoachName\"|translate}}</label> <label id=coachName style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.JelenlegiEdzoNev}}</label></div><div class=\"cts-form-group form-group\" ng-if=\"vm.UJEDZVALT && vm.allowEdit\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeCoach ej-button e-click=vm.selectCoachBtn translate>ChangeCoach</button></div></div><div ng-if=vm.isSecondCoach class=\"form-group cts-form-group\"><label for=secondSection>{{\"SecondSection\"|translate}}</label> <label id=secondSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyNev}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondSectionDropDown label=SecondSection value=athleteData.MasodlagosSzakosztaly datasource=vm.secondSectionList select=vm.secondSectionSelect clear=vm.clearSecondSection validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=vm.isSecondCoach class=\"form-group cts-form-group\"><label for=secondAgeGroup>{{\"SecondAgeGroup\"|translate}}</label> <label id=secondAgeGroup style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosKorcsoportNev}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondAgeGroupDropDown label=SecondAgeGroup value=vm.athleteData.MasodlagosKorcsoport datasource=vm.secondAgeGroupList select=vm.secondAgeGroupSelect clear=vm.clearSecondAgeGroup validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=\"vm.isSecondCoach && vm.athleteData.MasodlagosbolKileptetett == false\" ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeSecondAgeGroup ej-button e-click=vm.changeSecondAgeGroup e-enabled=vm.isSecondCoach translate>ChangeSecondAgeGroup</button></div></div><div ng-if=\"vm.isSecondCoach && vm.allowEdit\" class=\"form-group cts-form-group\"><label for=secondCoachName>{{\"SecondCoachName\"|translate}}</label> <label id=secondCoachName style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyEdzoNev}}</label></div><div ng-if=vm.athleteData.MasodlagosbolKileptetett id=dateSpan class=\"form-group cts-form-group\"><label for=secondExitDate>Kil\\xE9ptet\\xE9s d\\xE1tuma</label> <label id=secondExitDate style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosbolKileptetesDatuma}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondCoachNameDropDown label=SecondCoachName value=vm.athleteData.MasodlagosSzakosztalyEdzoId datasource=vm.secondCoachList clear=vm.clearSecondCoach validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=\"vm.isSecondCoachChange && vm.allowEdit && vm.athleteData.MasodlagosbolKileptetett == false\" ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeSecondCoach ej-button e-click=vm.selectSecondCoachBtn e-enabled=vm.isSecondCoach translate>ChangeSecondCoach</button> <button class=cts-button type=button id=changeSecondCoach ej-button e-click=vm.exitingSecondSectionBtn e-enabled=vm.isSecondCoach translate>ExitingSecondSection</button></div></div><cts-text-box name=bpcountry label=BirthPlaceCountry cts-placeholder=BirthPlaceCountry data-ng-model=vm.athleteData.SzuletesiHelyOrszag validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=bpcity label=BirthPlaceCity cts-placeholder=BirthPlaceCity data-ng-model=vm.athleteData.SzuletesiHelyVaros validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.athleteData.SzuletesiIdo validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker><cts-text-box name=motherBirthName data-ng-if=!vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: true, minlength: 5, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=motherBirthName data-ng-if=vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=citizenship data-ng-if=!vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=citizenship data-ng-if=vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag datasource=vm.heightList select=vm.changeHeight validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag datasource=vm.heightList select=vm.changeHeight validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=currentHeight label=CurrentHeight enabled=false value=vm.athleteData.AktTestmagassag></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly datasource=vm.weightList select=vm.changeWeight validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly datasource=vm.weightList select=vm.changeWeight validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=currentWeight label=CurrentWeight enabled=false value=vm.athleteData.AktTestsuly></cts-numeric-text-box><cts-dropdown-list name=betterHandDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezT datasource=vm.betterHandList select=vm.betterHandSelect change=vm.betterHandSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterHandDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezT datasource=vm.betterHandList select=vm.betterHandSelect change=vm.betterHandSelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabT datasource=vm.betterFootList select=vm.betterFootSelect change=vm.betterFootSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabT datasource=vm.betterFootList select=vm.betterFootSelect change=vm.betterFootSelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-date-picker name=startSportDate data-ng-if=!vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker><cts-date-picker name=startSportDate data-ng-if=vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-date-picker name=startMemberDate value=vm.athleteData.DSITagsagKezdete label=StartMemberDate validation-rules=\"{required: true}\" enabled=\"vm.allowEdit && !vm.SPORTOLO\"></cts-date-picker><cts-check-box name=active label=Active enabled=false checked=vm.athleteData.Aktiv></cts-check-box><cts-text-box-taj-szam name=socialSecurityNumber data-ng-if=\"vm.socialSecurityNumberRequiredValue && vm.allowEdit\" label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: true}\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber data-ng-if=\"!vm.socialSecurityNumberRequiredValue && vm.allowEdit\" label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-text-box data-ng-if=\"vm.athleteRegistrationNumberRequiredValue && vm.allowEdit\" name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: true}\"></cts-text-box><cts-date-picker name=medicalCertificateExpirationDate label=medicalCertificateExpirationDate value=vm.athleteData.SportorvosIgazolasLejarat enabled=\"vm.allowEdit && !vm.SPORTOLO\"></cts-date-picker><cts-text-area ng-show=\"vm.allowEdit && !vm.SPORTOLO\" data-ng-if=!vm.athleteRequiredMinimumDatas name=coachDetails label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: true, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-area ng-show=\"vm.allowEdit && !vm.SPORTOLO\" data-ng-if=vm.athleteRequiredMinimumDatas name=coachDetails label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><div class=\"form-group cts-form-group\"><label for=feeOfEducation>{{\"FeeOfEducation\"|translate}}</label> <label id=feeOfEducation style=\"text-align: left; padding-left: 12px\">{{vm.feeOfEducationValue}}</label></div><div class=\"cts-form-group form-group\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeFee ej-button e-click=vm.changeFeeOfEducationBtn ng-show=\"vm.allowEdit && !vm.SPORTOLO\" translate>ChangeFeeBtn</button></div></div><cts-text-box data-ng-if=\"!vm.athleteRegistrationNumberRequiredValue && vm.allowEdit\" name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: false}\"></cts-text-box><div class=\"cts-form-group form-group\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=regnumgen ej-button e-click=vm.generateRegNum ng-show=\"vm.allowEdit && !vm.SPORTOLO\" translate>GenerateRegNum</button></div></div><cts-text-box name=JatekEngedelySzama label=JatekEngedelySzama data-ng-model=vm.athleteData.JatekEngedelySzama disabled=!vm.allowEdit></cts-text-box></fieldset><h3><a href=# translate>Contact</a></h3><fieldset class=\"panel col-lg-8\"><cts-dropdown-list name=county data-ng-if=!vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=county data-ng-if=vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=!vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: true, minlength: 2, maxlength: 10}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=zipCode data-ng-if=vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: false, maxlength: 10}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=city data-ng-if=!vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: true, minlength: 2, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=city data-ng-if=vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=street data-ng-if=!vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=street data-ng-if=vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=streetNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=streetNumber data-ng-if=vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=phoneNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=phoneNumber data-ng-if=vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box-email name=eMail label=Email data-ng-model=vm.athleteData.EmailCim enabled=vm.allowEdit></cts-text-box-email></fieldset><h3><a href=# translate>IdentificationNumbers</a></h3><fieldset class=\"panel col-lg-8\"><cts-text-box name=personalId label=PersonalId data-ng-model=vm.athleteData.SzemIgSzam disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=personalIdExpiration label=PersonalIdExpiration value=vm.athleteData.SzemelyiErvenyessege enabled=vm.allowEdit></cts-date-picker><cts-text-box name=taxId label=taxId data-ng-model=vm.athleteData.AdoSzam disabled=!vm.allowEdit></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.athleteData.UtlevelSzam disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=passportExpiration label=PassportExpiration value=vm.athleteData.UtlevelErvenyessege enabled=vm.allowEdit></cts-date-picker></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset class=\"panel col-lg-8\"><div><cts-text-box name=slippersSize label=SlipperSize ng-show=vm.RUHA.PAPUCS data-ng-model=vm.athleteData.PapucsMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.athleteData.CipoMerete ng-show=vm.RUHA.CIPO disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=joggingSuitSize label=JoggingSize ng-show=vm.RUHA.MELEGITO data-ng-model=vm.athleteData.MelegitoMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=bathrobeSize label=BathrobeSize ng-show=vm.RUHA.FURDOKOPENY data-ng-model=vm.athleteData.FurdokopenyMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.athleteData.KabatMerete ng-show=vm.RUHA.KABAT disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=armorPantSize label=ArmorPantSize ng-show=vm.RUHA.PANCELNADRAG data-ng-model=vm.athleteData.PancelNadragMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.athleteData.PoloMerete ng-show=vm.RUHA.POLO disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=shortDressSize label=ShortsSize ng-show=vm.RUHA.SORT data-ng-model=vm.athleteData.SortMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=swimmingPantSize label=SwimmingPantSize ng-show=vm.RUHA.USZONADRAG data-ng-model=vm.athleteData.UszoNadragMerete disabled=!vm.allowEdit></cts-text-box></div></fieldset><h3><a href=# translate>SchoolDatas</a></h3><fieldset class=col-sm-12><div class=\"panel col-lg-8\" ng-show=vm.displayButtons><div class=\"col-lg-12 col-lg-offset-6\"><button class=cts-button type=button id=changeSchool ej-button e-click=vm.selectSchools ng-if=vm.allowEdit translate>SelectSchool</button></div></div><div class=hidedContent id=hidedContent><div class=slim-grid id=Grid></div></div><div class=\"panel col-lg-8\"><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.athleteData.IskolaNeve change=vm.schoolNameChanged data-ng-model-options=\"{debounce: 500}\" validation-rules=\"{required: false, maxlength: 100}\"></cts-text-box><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.athleteData.IskolaIrSzam validation-rules=\"{required: false, maxlength: 5}\"></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.athleteData.IskolaVaros></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.athleteData.IskolaUtca></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.athleteData.IskolaHazszam></cts-text-box><cts-text-box name=directorName label=DirectorName data-ng-model=vm.athleteData.IskolaIgazgatoNeve></cts-text-box><cts-auto-complete name=classMaster label=ClassMaster value=vm.athleteData.OsztalyFonokNeve datasource=vm.classMasterDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectOf></cts-auto-complete><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.athleteData.OfTel></cts-text-box><cts-text-box-email name=classMasterEmail label=ClassMasterEmail enabled=vm.allowEdit data-ng-model=vm.athleteData.OfEmail></cts-text-box-email><cts-auto-complete name=gymTeacher label=GymTeacher value=vm.athleteData.TestneveloNeve datasource=vm.gymTeacherDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectTesiTanar></cts-auto-complete><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.athleteData.TestneveloElerhetosege></cts-text-box><cts-text-box-email name=gymTeacherEmail label=GymTeacherEmail enabled=vm.allowEdit data-ng-model=vm.athleteData.TestneveloEmail></cts-text-box-email><cts-dropdown-list name=course label=Course value=vm.athleteData.IskolaEvfolyam datasource=vm.courseList enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.athleteData.IskolaOsztaly datasource=vm.classList enabled=vm.allowEdit></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-auto-complete name=motherName label=MothersName value=vm.athleteData.AnyjaNeve datasource=vm.motherNames emptyresulttext=vm.emptyResultText show-popup-button=true enabled=vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectMother></cts-auto-complete><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.athleteData.Szulo1Elerhetosege disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=motherEmail label=MotherEmail data-ng-model=vm.athleteData.AnyaEmail enabled=vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=motherHeightDropDown label=Height value=vm.athleteData.AnyjaTestmagassaga validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.athleteData.SportoloiMultAnya css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=!vm.allowEdit validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.athleteData.AnyjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.athleteData.AnyaMunkahely validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-auto-complete name=fatherName label=FatherName value=vm.athleteData.SzuloNeve datasource=vm.fatherNames emptyresulttext=vm.emptyResultText show-popup-button=true enabled=vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectFather></cts-auto-complete><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.athleteData.Szulo2Elerhetosege disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=fatherEmail label=FatherEmail data-ng-model=vm.athleteData.ApaEmail enabled=vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=fatherHeightDropDown label=Height value=vm.athleteData.ApjaTestmagassaga validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-text-area name=fatherSportHistory label=FatherSportHistory data-ng-model=vm.athleteData.SportoloiMultApa css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.athleteData.ApjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.athleteData.ApaMunkahely validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box></fieldset><h3><a href=# translate>OtherDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-numeric-text-box name=AtigazolasiDij label=AtigazolasiDij value=vm.athleteData.AtigazolasiDij validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-date-picker name=trainingStart label=TrainingStart value=vm.athleteData.EdzesreJarasKezdete validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-text-area name=Notes label=Notes data-ng-model=vm.athleteData.Megjegyzes css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-area name=SportAssociation label=SportAssociation data-ng-model=vm.athleteData.EddigiSpEgyesuletei css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-box name=childAgeSport label=ChildageSport data-ng-model=vm.athleteData.GyermekkoriSport validation-rules=\"{required: false, minlength: 1, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=origin label=Origin data-ng-model=vm.athleteData.FajiEredet validation-rules=\"{required: false, minlength: 3, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=howSpentFreeTime label=HowSpentFreeTime data-ng-model=vm.athleteData.SzunideiElfoglaltsag validation-rules=\"{required: false, minlength: 1, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=birthName label=BirthName data-ng-model=vm.athleteData.LeanykoriNev validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=pubertasEndTime label=PubertasEndTime value=vm.athleteData.PubertasVege validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-text-area name=AthleteExitNote label=AthleteExitNote data-ng-model=vm.athleteData.KilepesIndoka css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=true></cts-text-area><cts-date-picker name=athleteExitTime label=athleteExitTime value=vm.athleteData.KilepesDatuma data-ng-model=vm.athleteData.KilepesDatuma enabled=false validation-rules=\"{required: false}\"></cts-date-picker><cts-date-picker name=athleteReEnterTime label=athleteReEnterTime value=vm.athleteData.VisszalepesDatuma data-ng-model=vm.athleteData.VisszalepesDatuma enabled=false validation-rules=\"{required: false}\"></cts-date-picker></fieldset><h3><a href=# translate>AthleteMoveStory</a></h3><fieldset class=col-sm-12><script id=atmotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${Edzo}</a></script><div class=col-sm-12><div class=slim-grid id=Grid123></div></div></fieldset><h3><a href=# translate>UsersBelongingToAthlete</a></h3><fieldset class=col-sm-12><div class=col-sm-12 data-ng-if=\"!vm.SPORTOLO && !vm.SZULO && vm.allowEdit\"><ul style=\"border: none;\" id=userRegMenuEvents ej-menu e-isresponsive=false data-ng-if=vm.UJFELH><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForAthlete() translate>CreateLoginForAthlete</a></li><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForParents() translate>CreateLoginForParents</a></li><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForExistingParent() translate>CreateLoginForExistingParent</a></li></ul></div><script id=atmotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoach(${UserID})\">${UserTeljesNev}</a></script><script id=atmotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.unlinkUserFromAthlete(${UserID},${SportoloID},${szerepint})\" translate>unlinkUserFromAthlete</a></script><div class=form-group><div class=col-sm-12><div class=slim-grid id=GridUsersOfAthlete></div></div></div></fieldset></div></div></div><div class=col-lg-12 ng-show=vm.displayButtons style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\" translate>ChooseImage</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper min-width=50 min-height=50 image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=submit style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/files/files.html','<div class=widget-content><div style=\"position: relative;\"><div id=UploadDefault></div><button class=\"cts-button red\" id=delete data-ng-click=vm.deleteFile() type=button translate style=\"position: absolute; top: 0px; left: 130px;\">Delete</button></div><div class=row><script id=fitemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script><div id=Grid class=slim-grid></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/health.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/psychology.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.html','<script id=rareretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><script id=rareretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openResultReportAthletes(${Id})\" translate>OpenIt</a></script><script id=rareretemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.printAthleteResult(${Id})\" translate>Print</a></script><div class=row><h4 translate style=\"padding-left: 1em;\">AthleteResults</h4><div class=col-lg-12><div id=Grid class=slim-grid></div></div></div><div class=row style=\"margin-top: 2em;\"><h4 translate style=\"padding-left: 1em;\">TeamResults</h4><script id=rareretemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openTeam(${CsapatId})\">${CsapatNev}</a></script><script id=rareretemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.openResultReportTeam(${Id})\" translate>OpenIt</a></script><script id=rareretemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.printTeamResult(${Id})\" translate>Print</a></script><div class=col-lg-12><div id=Grid2 class=slim-grid></div></div></div><div id=printDialogA ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenySportoloReport report-parameters=vm.reportParameters></report></div><div id=printDialogT ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenyCsapatReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.html','<form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years></cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></div><script type=text/x-template id=AthleteColumnTemplate><a data-ng-click=\"vm.modifyAthletes(${VersenyzoId}, ${SzakosztalyId}, ${KorosztalyId})\">${VersenyzoNeve}</a></script><div id=Grid class=slim-grid></div><div translate>TheReportContainsTheClosedDatas</div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/healthList/healthList.html','<form name=form class=filter><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Athlete ng-model=vm.athleteName owndisabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=BirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.dateFrom change=vm.dateFromChange></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.dateTo change=vm.dateToChange></cts-date-picker><div class=button-wrapper style=\"clear: both;\"><button ej-button id=addData class=cts-button type=button e-click=vm.goToNewHealthEvent e-enabled=vm.allowAddNew translate>AddNewEntry</button></div></div><script type=text/x-template id=healteditcolumnTemplate><a data-ng-click=\"vm.goToModifyHealthEvent(${Id})\">{{vm.editText}}</a></script><div id=Grid class=slim-grid></div><div class=button-wrapper style=\"clear: both;\"><button type=submit class=cts-button ej-button e-click=vm.backToDatasheet translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.html','<form name=form class=filter><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Name ng-model=vm.athleteName validation-rules=\"{required: true}\" disabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=BirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.params.Mettol change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.params.Meddig change=vm.dateToChange validation-rules=\"{required: false}\"></cts-date-picker></div><div style=\"overflow: hidden\"><cts-auto-complete name=MainType label=HealthEventType value=vm.params.Tipus change=vm.MainTypeSelected validation-rules=\"{required: true}\" datasource=vm.healthMainType style=\"width: 100%\" show-popup-button=true></cts-auto-complete><cts-auto-complete name=SubType label=HealthEventSubType value=vm.params.AlTipus datasource=vm.SubType style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div><div style=\"overflow: hidden\"><cts-text-area name=description label=Description data-ng-model=vm.params.Leiras css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area><cts-text-area name=therapy label=Therapy data-ng-model=vm.params.Kezeles css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area></div><div class=button-wrapper><button type=submit id=saveDatas class=cts-button ej-button e-click=vm.saveDatas translate>Save</button> <button type=button id=documents class=cts-button ej-button e-click=vm.fileUpload translate>Documents</button> <button type=button id=back class=cts-button ej-button e-click=back translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.html','<form name=form class=filter novalidate><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Name ng-model=vm.athleteName owndisabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=athleteBirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.params.Mettol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.params.Meddig validation-rules=\"{required: false}\"></cts-date-picker><cts-auto-complete name=MainType label=HealthEventType value=vm.params.Tipus change=vm.MainTypeSelected validation-rules=\"{required: true}\" datasource=vm.healthMainType style=\"width: 100%\" show-popup-button=true></cts-auto-complete><cts-auto-complete name=SubType label=HealthEventSubType value=vm.params.AlTipus datasource=vm.SubType style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div><div style=\"overflow: hidden\"><cts-text-area name=description label=Description data-ng-model=vm.params.Leiras css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area><cts-text-area name=therapy label=Therapy data-ng-model=vm.params.Kezeles css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area></div><div class=button-wrapper><button type=submit id=saveDatas class=cts-button ej-button e-click=vm.saveDatas translate>Save</button> <button type=button id=documents class=cts-button ej-button e-click=vm.fileUpload translate>Documents</button> <button type=button id=back class=cts-button ej-button e-click=back translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.html','<div class=psycho-test><div class=psycho-test-body><div class=description translate>PerformanceMotivationTestDescription</div><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\" data-ng-click=\"vm.answers[$index] = 1\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\" data-ng-click=\"vm.answers[$index] = 2\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\" data-ng-click=\"vm.answers[$index] = 3\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\" data-ng-click=\"vm.answers[$index] = 4\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\" data-ng-click=\"vm.answers[$index] = 5\"><span>5</span></td></tr></table><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSurvey translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.html','<div class=psycho-test><div class=psycho-test-body><div class=test-header><p>{{\\'Name\\'|translate}}: {{vm.sportolo.nev}}</p><p>{{\\'BirthDate\\'|translate}}: {{vm.sportolo.szuletesiDatum}}</p><p>{{\\'HisHerMothersName\\'|translate}}: {{vm.sportolo.anyjaNeve}}</p><p>{{\\'DateOfCompletion\\'|translate}}: {{vm.kitoltesDatuma}}</p><p data-ng-if=\"vm.edit === true\">{{\\'DateOfEvaluation\\'|translate}}: {{vm.kiertekelesDatuma}}</p></div><table class=test-survey><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\"><span>5</span></td></tr></table><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Procrastination\\'|translate}}: {{vm.kiertekelesSzam[0]}}</p><p>{{\\'FearOfSuccess\\'|translate}}: {{vm.kiertekelesSzam[1]}}</p><p style=\"margin-bottom: 1em !important;\">{{\\'Toughness\\'|translate}}: {{vm.kiertekelesSzam[2]}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.html','<div class=\"psycho-test pieron\"><div class=psycho-test-body><div class=test-header><p>{{\\'Name\\'|translate}}: {{vm.sportolo.nev}}</p><p>{{\\'BirthDate\\'|translate}}: {{vm.sportolo.szuletesiDatum}}</p><p>{{\\'HisHerMothersName\\'|translate}}: {{vm.sportolo.anyjaNeve}}</p><p style=\"margin-bottom: 1em !important;\">{{\\'Age\\'|translate}}: {{vm.age}}</p><p>{{\\'DateOfCompletion\\'|translate}}: {{vm.kitoltesDatuma}}</p><p data-ng-if=\"vm.edit === true\">{{\\'DateOfEvalueation\\'|translate}}: {{vm.kiertekelesDatuma}}</p></div><table class=pieron-table style=\"margin-top: 1em;\"><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=answer data-ng-repeat=\"image in question\" data-ng-class=\"{selected: vm.answers[$parent.$index][$index] === 1, \\'selected-green\\': vm.answers[$parent.$index][$index] === 2 || vm.answers[$parent.$index][$index] === 3, \\'selected-red\\': vm.answers[$parent.$index][$index] === -1 || vm.answers[$parent.$index][$index] === 4, \\'selected-minutes-good\\': vm.answers[$parent.$index][$index] === 3, \\'selected-minutes-bad\\': vm.answers[$parent.$index][$index] === 4, \\'selected-minutes\\': vm.answers[$parent.$index][$index] === 5}\" data-ng-click=\"vm.clicked($parent.$index, $index)\"><span><img src={{image.url}}></span></td></tr></table><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Seen\\'|translate}}: {{vm.seen}} - {{vm.ertek[0]}}</p><p>{{\\'tNumber\\'|translate}}: {{vm.tNumber}} - {{vm.ertek[1]}}</p><p>{{\\'wrongAnswersNumber\\'|translate}}: {{vm.wrongAnswersNumber}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.html','<div class=\"psycho-test pieron\"><div class=psycho-test-body><div class=description><label for=testTime style=\"float: left; margin-right: 1em; margin-top: 0.3em\" translate>TestsTime</label> <input id=testTime ej-numerictextbox e-value=vm.time e-minvalue=1 e-maxvalue=15 e-change=vm.timeChanged type=text style=\"float:left; margin-top: 0.15em;\"> <button class=cts-button ej-button e-click=vm.startInterval data-ng-if=\"vm.started === false\" style=\"margin-left: 1em;\" translate>Start</button> <button class=cts-button ej-button e-click=vm.stopInterval data-ng-if=\"vm.started === true && vm.finished === false\" style=\"margin-left: 1em;\" translate>Stop</button> <button class=cts-button ej-button e-click=vm.saveSurvey data-ng-if=\"vm.started === true && vm.finished === true\" style=\"margin-left: 1em;\" translate>Save</button> <button class=cts-button ej-button e-click=back style=\"margin-left: 1em;\" translate>Back</button></div><h2 data-ng-if=\"vm.started === true && vm.finished === false\" style=\"margin: 1em 0; clear: both;\" translate>PieronTestStarted</h2><p style=\"margin-bottom: 1em; margin-top: 0.5em;\"><span translate>TimeLeft</span>: {{vm.timeLeftMinutes}}:{{vm.timeLeftSeconds}}</p><p><span translate>FindThese</span>: <img src=images/pieron1.png><img src=images/pieron4.png><img src=images/pieron7.png><img src=images/pieron5.png></p><table class=pieron-table style=\"margin-top: 1em;\"><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=answer data-ng-repeat=\"image in question\" data-ng-class=\"{selected: vm.answers[$parent.$index][$index] === 1, \\'selected-green\\': vm.answers[$parent.$index][$index] === 2 || vm.answers[$parent.$index][$index] === 3, \\'selected-red\\': vm.answers[$parent.$index][$index] === -1 || vm.answers[$parent.$index][$index] === 4, \\'selected-minutes-good\\': vm.answers[$parent.$index][$index] === 3, \\'selected-minutes-bad\\': vm.answers[$parent.$index][$index] === 4, \\'selected-minutes\\': vm.answers[$parent.$index][$index] === 5}\" data-ng-click=\"vm.clicked($parent.$index, $index)\"><span><img src={{image.url}}></span></td></tr></table></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/summary/summary.html','<div class=button-wrapper style=\"margin-bottom: 1rem;\"><div class=dropdown style=\"width: fit-content;\"><button class=\"cts-button dropdown-toggle\" type=button id=dropdownMenu data-toggle=dropdown aria-haspopup=true aria-expanded=true><i class=\"glyphicon glyphicon-plus\"></i> <span translate>NewPsychologyTest</span> <span class=caret></span></button><ul class=\"dropdown-menu revertLeft\" aria-labelledby=dropdownMenu \"><li><a data-ng-click=vm.goToPerformanceMotivation() translate>PerformanceMotivation</a></li><li><a data-ng-click=vm.goToTenessee() translate>Tenessee</a></li><li><a data-ng-click=vm.goToPieron() translate>Pieron</a></li><li><a href=images/wartegg.jpg target=_blank data-ng-click=vm.addWartegTest() download translate>Wartegg</a></li></ul></div></div><script id=sutemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToShowFilledTest(${Id}, ${typeId}, false)\" >{{vm.open}}</a></script><script id=sutemplateDataColumn2 type=text/x-template><span >${dateOfAssessment}</span></script><script id=sutemplateDataColumn3 type=text/x-template><span ><a data-ng-click=\"vm.goToShowFilledTest(${Id}, ${typeId}, true, ${documentOfAssessmentBool})\">${documentOfAssessment}</a></span></script><div class=row><div id=Grid class=slim-grid></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.html','<div class=psycho-test><div class=psycho-test-body><div class=description translate>TenesseeSelfImageScaleDescription</div><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\" data-ng-click=\"vm.answers[$index] = 1\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\" data-ng-click=\"vm.answers[$index] = 2\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\" data-ng-click=\"vm.answers[$index] = 3\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\" data-ng-click=\"vm.answers[$index] = 4\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\" data-ng-click=\"vm.answers[$index] = 5\"><span>5</span></td></tr></table><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSurvey translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.html','<div class=psycho-test><div class=psycho-test-body><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\"><span>5</span></td></tr></table><br><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Testkep\\'|translate}}: {{vm.kiertekelesSzam[0]}} ( <b>{{vm.kiertekelesSzamMagyarazat[0]}}</b> )</p><p>{{\\'MoralisEnkep\\'|translate}}: {{vm.kiertekelesSzam[1]}} ( <b>{{vm.kiertekelesSzamMagyarazat[1]}}</b> )</p><p>{{\\'IndividualisEnkep\\'|translate}}: {{vm.kiertekelesSzam[2]}} ( <b>{{vm.kiertekelesSzamMagyarazat[2]}}</b>)</p><p>{{\\'CsaladiEnkep\\'|translate}}: {{vm.kiertekelesSzam[3]}} ( <b>{{vm.kiertekelesSzamMagyarazat[3]}}</b> )</p><p>{{\\'SzocialisEnkep\\'|translate}}: {{vm.kiertekelesSzam[4]}} ( <b>{{vm.kiertekelesSzamMagyarazat[4]}}</b> )</p><p>{{\\'Enkep\\'|translate}}: {{vm.kiertekelesSzam[5]}} ( <b>{{vm.kiertekelesSzamMagyarazat[5]}}</b> )</p><p style=\"margin-bottom: 1em !important;\">{{\\'Onkritika\\'|translate}}: {{vm.kiertekelesSzam[5]}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=\"col-sm-12 col-md-12 col-lg-12\"><form style=\"text-align:center; width:100%\"><img data-ng-show=vm.kiertekelt src={{vm.kepfajl}} style=\"width:500px; margin:0 0 1rem 0;\" alt=wartegg.jpg> <input data-ng-show=!vm.kiertekelt name=file id=file type=file style=\"margin:0 0 1rem 0;\"> <textarea ej-rte e-width=100% id=rteSample rows=10 cols=30 e-enabled=vm.allowEdit></textarea><div style=\"margin-top: 1rem;\"><button class=cts-button ej-button e-click=vm.upload e-enabled=vm.allowEdit translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></form></div></div>');}]);","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanList',\r\n config: {\r\n url: '/annualSeasonPlanList',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.html',\r\n controller: 'AnnualSeasonPlanListController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlanList',\r\n settings: {\r\n navId: 284,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Éves felkészítési és versenyeztetési terv lista',\r\n orderTitle_en: 'Annual Preparation and Competition Plan List',\r\n parentId: 4,\r\n content: 'AnnualSeasonPlanList',\r\n activatorPermission: ['\"MEGTEVVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.layout')\r\n .run(function ($trace, $transitions, authenticationService, localStorageService, $q, $rootScope, gettextCatalog, routerHelper, DOMAIN) {\r\n $rootScope.availableLanguages = ['hu', 'en', 'ro', 'fr'];\r\n $transitions.onBefore({}, function () {\r\n return $q(function (resolve) {\r\n var states = routerHelper.getStates();\r\n\r\n function getNavRoutes() {\r\n return $q(function (resolve) {\r\n var authData = authenticationService.getAuthData();\r\n\r\n var lang = $rootScope.availableLanguages[0];\r\n if (authData) {\r\n lang = authenticationService.getAuthData().language;\r\n }\r\n\r\n $rootScope.navRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 1 && !r.settings.parentId && r.settings.navId && r.settings.navId === 1;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 1 && !r.settings.parentId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n return r1.settings.order - r2.settings.order;\r\n });\r\n angular.forEach($rootScope.navRoutes, function (value) {\r\n if (value.settings) {\r\n value.settings.childRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 2 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId && r.settings.navId === 24;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 2 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n if (r1.settings['orderTitle_' + lang]) {\r\n return r1.settings['orderTitle_' + lang].localeCompare(r2.settings['orderTitle_' + lang]);\r\n } else {\r\n return r1.settings.order - r2.settings.order;\r\n }\r\n });\r\n angular.forEach(value.settings.childRoutes, function (value) {\r\n if (value.settings) {\r\n value.settings.childRoutes = states.filter(function (r) {\r\n if (DOMAIN.justPsycho === 1) {\r\n return r.settings && r.settings.level && r.settings.level === 3 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId && r.settings.navId === 24;\r\n } else {\r\n return r.settings && r.settings.level && r.settings.level === 3 && r.settings.parentId && r.settings.parentId === value.settings.navId && r.settings.navId;\r\n }\r\n }).sort(function (r1, r2) {\r\n if (r1.settings['orderTitle_' + lang]) {\r\n return r1.settings['orderTitle_' + lang].localeCompare(r2.settings['orderTitle_' + lang]);\r\n } else {\r\n return r1.settings.order - r2.settings.order;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n });\r\n resolve();\r\n });\r\n }\r\n\r\n $rootScope.setLanguage = function setLanguage(language) {\r\n return $q(function (resolve) {\r\n var defaultLang = true;\r\n for (var i = 0; i < $rootScope.availableLanguages.length; i++) {\r\n if (language.toLowerCase().indexOf($rootScope.availableLanguages[i]) >= 0) {\r\n language = $rootScope.availableLanguages[i];\r\n defaultLang = false;\r\n }\r\n }\r\n\r\n if (defaultLang) {\r\n language = $rootScope.availableLanguages[0];\r\n }\r\n\r\n if (language.value) {\r\n language = language.value;\r\n }\r\n $rootScope.language = language;\r\n\r\n var a1 = gettextCatalog.getString('Item');\r\n var a2 = gettextCatalog.getString('Items');\r\n\r\n gettextCatalog.loadRemote('/languages/' + language + '.json').then(function () {\r\n gettextCatalog.setCurrentLanguage(language);\r\n\r\n ej2.base.L10n.load({\r\n 'hu-HU': {\r\n 'grid': {\r\n // 'EmptyRecord': 'Nincs megjeleníthető adat!',\r\n EmptyRecord: gettextCatalog.getString('EmptyRecord'),\r\n BatchSaveConfirm: gettextCatalog.getString('BatchSaveConfirm'),\r\n SaveButton: gettextCatalog.getString('Save'),\r\n OkButton: 'Rendben',\r\n CancelButton: gettextCatalog.getString('Cancel'),\r\n ConfirmDelete: gettextCatalog.getString('ChangesAutomaticallySaved'),\r\n BatchSaveLostChanges: gettextCatalog.getString('Unsaved changes will be lost. Are you sure you want to continue?'),\r\n Item: gettextCatalog.getString('Item'),\r\n Items: gettextCatalog.getString('Item'),\r\n GroupDropArea: gettextCatalog.getString('GroupDropArea'),\r\n Print: gettextCatalog.getString('Print'),\r\n Add: gettextCatalog.getString('Add'),\r\n Edit: gettextCatalog.getString('Edit'),\r\n Update: gettextCatalog.getString('Change'),\r\n Cancel: gettextCatalog.getString('Cancel'),\r\n Delete: gettextCatalog.getString('Delete'),\r\n ExcelExport: 'Excel Export',\r\n Search: gettextCatalog.getString('Search'),\r\n DatePickerWaterMark: gettextCatalog.getString('SelectTheDate'),\r\n },\r\n 'pager': {\r\n currentPageInfo: '{0}. ' + gettextCatalog.getString('gridPage') + ': {1} ' + gettextCatalog.getString('gridPages'),\r\n totalItemsInfo: '(' + gettextCatalog.getString('allItems') + ': {0})',\r\n pagerDropDown: gettextCatalog.getString('RecordPerPage'),\r\n pagerInfo: gettextCatalog.getString('pagerInfo'), // \"{0} {1} lapok ({2} elem)\",\r\n firstPageTooltip: gettextCatalog.getString('firstPageTooltip'), // \"Ugrás az első oldalra\",\r\n lastPageTooltip: gettextCatalog.getString('lastPageTooltip'), //\"Ugrás az utolsó oldalra\",\r\n nextPageTooltip: gettextCatalog.getString('nextPageTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPageTooltip: gettextCatalog.getString('previousPageTooltip'), //\"Ugrás az előző oldalra\",\r\n nextPagerTooltip: gettextCatalog.getString('nextPagerTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPagerTooltip: gettextCatalog.getString('previousPagerTooltip'), //\"Ugrás az előző oldalra\"\r\n }\r\n }\r\n });\r\n\r\n ej.Pager.Locale['hu-HU'] = {\r\n pagerInfo: '{0}/{1} ' + gettextCatalog.getString('Page') + ' (' + gettextCatalog.getString('ResultsNumber') + ': {2})'\r\n };\r\n ej.DatePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('ChooseDate'),\r\n buttonText: gettextCatalog.getString('Today')\r\n };\r\n ej.Autocomplete.Locale['hu-HU'] = {\r\n addNewText: gettextCatalog.getString('addNewText'),// \"Új hozzáadása\",\r\n emptyResultText: gettextCatalog.getString('emptyResultText') // \"Nincs javaslat\",\r\n };\r\n ej.CurrencyTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText') // \"Írja be az értéket\",\r\n };\r\n ej.DatePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('datePickerWatermarkText'), //\"Válassza ki a dátumot\",\r\n buttonText: 'Ma',\r\n };\r\n ej.DateTimePicker.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('dateTimePickerWatermarkText'),// \"Válassza ki a dátumot és időt\",\r\n buttonText: {\r\n today: gettextCatalog.getString('today'), // \"Ma\",\r\n timeNow: gettextCatalog.getString('timeNow'),// \"Most\",\r\n done: gettextCatalog.getString('done'),//\"Kész\",\r\n timeTitle: gettextCatalog.getString('timeTitle')//\"Idő\"\r\n },\r\n };\r\n ej.Dialog.Locale['hu-HU'] = {\r\n tooltip: {\r\n close: gettextCatalog.getString('close'), //\"Bezárás\",\r\n collapse: gettextCatalog.getString('collapse'), //\"Összecsuk\",\r\n restore: gettextCatalog.getString('restore'), // \"Kinyit\",\r\n maximize: gettextCatalog.getString('maximize'), // \"Teljes méret\",\r\n minimize: gettextCatalog.getString('minimize'), //\"Kis méret\",\r\n expand: gettextCatalog.getString('expand'), //\"Kinagyít\",\r\n },\r\n closeIconTooltip: gettextCatalog.getString('closeIconTooltip'), //\"Bezárás\",\r\n };\r\n ej.DropDownList.Locale['hu-HU'] = {\r\n emptyResultText: gettextCatalog.getString('emptyResultText'), //\"Nincsenek elemek\",\r\n watermarkText: ' ',\r\n };\r\n ej.NumericTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText'),\r\n };\r\n ej.Pager.Locale['hu-HU'] = {\r\n pagerInfo: gettextCatalog.getString('pagerInfo'), // \"{0} {1} lapok ({2} elem)\",\r\n firstPageTooltip: gettextCatalog.getString('firstPageTooltip'), // \"Ugrás az első oldalra\",\r\n lastPageTooltip: gettextCatalog.getString('lastPageTooltip'), //\"Ugrás az utolsó oldalra\",\r\n nextPageTooltip: gettextCatalog.getString('nextPageTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPageTooltip: gettextCatalog.getString('previousPageTooltip'), //\"Ugrás az előző oldalra\",\r\n nextPagerTooltip: gettextCatalog.getString('nextPagerTooltip'), //\"Ugrás a következő oldalra\",\r\n previousPagerTooltip: gettextCatalog.getString('previousPagerTooltip'), //\"Ugrás az előző oldalra\",\r\n };\r\n ej.PercentageTextbox.Locale['hu-HU'] = {\r\n watermarkText: gettextCatalog.getString('currencyTextboxWatermarkText') // \"Írja be az értéket\",\r\n };\r\n ej.Schedule.Locale['hu'] = {\r\n Priority: gettextCatalog.getString('AlertUsers'), // 'Felhasználók értesítése'\r\n CreateAppointmentTitle: gettextCatalog.getString('CreateAppointmentTitle'), // 'Esemény létrehozása',\r\n RecurrenceEditTitle: gettextCatalog.getString('RecurrenceEditTitle'), // 'Ismétlődő esemény szerkesztése',\r\n RecurrenceEditMessage: gettextCatalog.getString('RecurrenceEditMessage'), //'Hogyan szeretné módosítani az eseményt?',\r\n RecurrenceEditOnly: gettextCatalog.getString('RecurrenceEditOnly'), //'Ezt az egyet',\r\n RecurrenceEditSeries: gettextCatalog.getString('RecurrenceEditSeries'), //'Összeset',\r\n PreviousAppointment: gettextCatalog.getString('PreviousAppointment'), //'Előző esemény',\r\n NextAppointment: gettextCatalog.getString('NextAppointment'), //'Következő esemény',\r\n AppointmentSubject: gettextCatalog.getString('AppointmentSubject'), //'Esemény neve',\r\n StartTime: gettextCatalog.getString('StartTime'), //'Esemény kezdete',\r\n EndTime: gettextCatalog.getString('EndTime'), //'Esemény vége',\r\n AllDay: gettextCatalog.getString('AllDay'), //'Egész napos',\r\n Today: gettextCatalog.getString('Today'), //'Mai nap',\r\n Recurrence: gettextCatalog.getString('Recurrence'), //'Ismétlődés gyakorisága',\r\n Done: gettextCatalog.getString('Done'), //'Kész',\r\n Cancel: gettextCatalog.getString('Cancel'), //'Mégse',\r\n Ok: gettextCatalog.getString('Ok'), //'Ok',\r\n RepeatBy: gettextCatalog.getString('RepeatBy'), //'Ismétlés',\r\n RepeatEvery: gettextCatalog.getString('RepeatEvery'), //'Ismétlés gyakorisága',\r\n Repeat: gettextCatalog.getString('Repeat'), //'Ismétlés',\r\n RepeatOn: gettextCatalog.getString('RepeatOn'), //'Ismétlés ezeken a napokon',\r\n StartsOn: gettextCatalog.getString('StartsOn'), //'Ismétlődés ettől',\r\n Ends: gettextCatalog.getString('Ends'), //'Ismétlődés vége',\r\n Summary: gettextCatalog.getString('Summary'), //'Ismétlődés',\r\n Daily: gettextCatalog.getString('Daily'), //'Naponta',\r\n Weekly: gettextCatalog.getString('Weekly'), //'Hetente',\r\n Monthly: gettextCatalog.getString('Monthly'), //'Havonta',\r\n Yearly: gettextCatalog.getString('Yearly'), //'Évente',\r\n Every: gettextCatalog.getString('Every'), //'Minden',\r\n EveryWeekDay: gettextCatalog.getString('EveryWeekDay'), //'Munkanapokon',\r\n Never: gettextCatalog.getString('Never'), //'Soha',\r\n After: gettextCatalog.getString('After'), //'A(z)',\r\n Occurrence: gettextCatalog.getString('Occurrence'), //'alkalom után',\r\n On: gettextCatalog.getString('On'), //'A következő napig',\r\n Edit: gettextCatalog.getString('Edit'), //'Módosítás',\r\n RecurrenceDay: gettextCatalog.getString('RecurrenceDay'), //'napon',\r\n RecurrenceWeek: gettextCatalog.getString('RecurrenceWeek'), //'héten',\r\n RecurrenceMonth: gettextCatalog.getString('RecurrenceMonth'), //'hónapban',\r\n RecurrenceYear: gettextCatalog.getString('RecurrenceYear'), //'évben',\r\n The: '',\r\n OfEvery: '',\r\n First: gettextCatalog.getString('First'), //'első',\r\n Second: gettextCatalog.getString('Second'), //'második',\r\n Third: gettextCatalog.getString('Third'), //'harmadik',\r\n Fourth: gettextCatalog.getString('Fourth'), //'negyedik',\r\n Last: gettextCatalog.getString('Last'), //'utolsó',\r\n WeekDay: gettextCatalog.getString('WeekDay'), //'munkanap',\r\n Subject: gettextCatalog.getString('Subject'), //'Tárgy',\r\n Categorize: gettextCatalog.getString('Categorize'), //'Kategória',\r\n OpenItem: gettextCatalog.getString('OpenItem'), //'Megtekintés',\r\n Day: gettextCatalog.getString('Day'), //'Napi',\r\n Week: gettextCatalog.getString('Week'), //'Heti',\r\n WorkWeek: gettextCatalog.getString('WorkWeek'), //'Munkahét',\r\n Month: gettextCatalog.getString('Month'), //'Havi',\r\n AddEvent: gettextCatalog.getString('AddEvent'), //'Esemény hozzáadása',\r\n Agenda: gettextCatalog.getString('Agenda'), //'Lista',\r\n Detailed: gettextCatalog.getString('Detailed'), //'Részletek',\r\n EventBeginsin: gettextCatalog.getString('EventBeginsin'), //'Az esemény kezdete',\r\n Editevent: gettextCatalog.getString('Editevent'), //'Esemény szerkesztése',\r\n Editseries: gettextCatalog.getString('Editseries'), //'Sorozat szerkesztése',\r\n Times: gettextCatalog.getString('Times'), //'alkalom',\r\n Until: gettextCatalog.getString('Until'), //'Eddig',\r\n Hours: gettextCatalog.getString('Hours'), //'óra',\r\n Minutes: gettextCatalog.getString('Minutes'), //'perc',\r\n Overdue: gettextCatalog.getString('Overdue'), //'Lejárt',\r\n Days: gettextCatalog.getString('Days'), //'nap',\r\n Event: gettextCatalog.getString('Event'), //'Esemény',\r\n Select: gettextCatalog.getString('Select'), //'Kiválaszt',\r\n Previous: gettextCatalog.getString('Previous'), //'Előző',\r\n Next: gettextCatalog.getString('Next'), //'Következő',\r\n Close: gettextCatalog.getString('Close'), //'Bezár',\r\n Delete: gettextCatalog.getString('Delete'), //'Törlés',\r\n Date: gettextCatalog.getString('Date'), //'Dátum',\r\n Gotodate: gettextCatalog.getString('Gotodate'), //'Dátumra ugrás',\r\n RecurrenceDeleteTitle: gettextCatalog.getString('RecurrenceDeleteTitle'), //'Esemény törlése',\r\n Location: gettextCatalog.getString('Location'), //'Helyszín',\r\n CreateError: gettextCatalog.getString('CreateError'), // 'Az esemény hossza nem lehet nagyobb, mint az ismétlődés gyakorisága. Állítsd rövidebbre az eseményt idejét vagy változtasd meg az ismétlődést.',\r\n StartEndError: gettextCatalog.getString('StartEndError'), //'A kezdés ideje hamarabb kell legyen, mint a befejezésé.',\r\n MouseOverDeleteTitle: gettextCatalog.getString('MouseOverDeleteTitle'), //'Esemény törlése',\r\n DeleteConfirmation: gettextCatalog.getString('DeleteConfirmation'), //'Biztosan törli az eseményt?',\r\n Time: gettextCatalog.getString('Time'), //'Időpont',\r\n NoTitle: gettextCatalog.getString('NoTitle'), //'Névtelen esemény',\r\n OverFlowAppCount: gettextCatalog.getString('OverFlowAppCount'), //'további esemény',\r\n EmptyResultText: gettextCatalog.getString('EmptyResultText'), //'Nincs ilyen a listában'\r\n };\r\n ej.Uploadbox.Locale['hu-HU'] = {\r\n buttonText: {\r\n upload: gettextCatalog.getString('upload'), //\"Feltöltés\",\r\n browse: gettextCatalog.getString('browse'), //\"Tallózás\",\r\n cancel: gettextCatalog.getString('cancel'), //\"Törlés\",\r\n close: gettextCatalog.getString('close'), //\"Bezárás\"\r\n },\r\n dialogText: {\r\n title: gettextCatalog.getString('title'), //\"Feltöltés\",\r\n name: gettextCatalog.getString('name'), //\"Név\",\r\n size: gettextCatalog.getString('size'), //\"Méret\",\r\n status: gettextCatalog.getString('status'), //\"Állapot\"\r\n },\r\n dropAreaText: gettextCatalog.getString('dropAreaText'), //\"Dobja ide a fájlokat vagy kattintson a feltöltéshez!\",\r\n filedetail: gettextCatalog.getString('filedetail'), //\"A kiválasztott fájl mérete túl ndoneagy. Kérjük, válasszon kisebb méretű fájlt.\",\r\n denyError: gettextCatalog.getString('denyError'), //\"Fájlok #Extension kiterjesztésekkel nem megengedettek.\",\r\n allowError: gettextCatalog.getString('allowError'), //\"Csak #Extension kiterjesztésű fájlok engedélyezettek.\",\r\n cancelToolTip: gettextCatalog.getString('cancelToolTip'), //\"Mégsem\",\r\n removeToolTip: gettextCatalog.getString('removeToolTip'), //\"Törlés\",\r\n retryToolTip: gettextCatalog.getString('retryToolTip'), //\"Próbálja újra\",\r\n completedToolTip: gettextCatalog.getString('completedToolTip'), //\"Befejezés\",\r\n failedToolTip: gettextCatalog.getString('failedToolTip'), //\"nem sikerült\",\r\n closeToolTip: gettextCatalog.getString('closeToolTip'), //\"Bezárás\",\r\n };\r\n\r\n $rootScope.navSubTitles = {\r\n 'Athletes': gettextCatalog.getString('Athletes')\r\n };\r\n $rootScope.validationTranslate = {\r\n required: gettextCatalog.getString('Required'),\r\n minlength: gettextCatalog.getString('Minlength'),\r\n maxlength: gettextCatalog.getString('Maxlength')\r\n };\r\n $rootScope.headTitles = {\r\n 'AddAgeGroup': gettextCatalog.getString('AddAgeGroup'),\r\n 'AddTeamMember': gettextCatalog.getString('AddTeamMember'),\r\n 'AddTeams': gettextCatalog.getString('AddTeams'),\r\n 'Administration': gettextCatalog.getString('Administration'),\r\n 'AgeGroupMembersList': gettextCatalog.getString('AgeGroupMembersList'),\r\n 'AgeGroupsList': gettextCatalog.getString('AgeGroupsList'),\r\n 'Athletes': gettextCatalog.getString('Athletes'),\r\n 'AthletesList': gettextCatalog.getString('AthletesList'),\r\n 'AthletesManagement': gettextCatalog.getString('AthletesManagement'),\r\n 'Business': gettextCatalog.getString('Business'),\r\n 'CentralReport': gettextCatalog.getString('CentralReport'),\r\n 'CentralReportAllIn': gettextCatalog.getString('CentralReportAllIn'),\r\n 'CentralReportByRating': gettextCatalog.getString('CentralReportByRating'),\r\n 'Dashboard': gettextCatalog.getString('Dashboard'),\r\n 'DuplicatedAthletes': gettextCatalog.getString('DuplicatedAthletes'),\r\n 'EditHealthType': gettextCatalog.getString('EditHealthType'),\r\n 'LogIn': gettextCatalog.getString('LogIn'),\r\n 'ModifyAgeGroup': gettextCatalog.getString('ModifyAgeGroup'),\r\n 'ModifyTeams': gettextCatalog.getString('ModifyTeams'),\r\n 'MonthlyAttendance': gettextCatalog.getString('MonthlyAttendance'),\r\n 'MonthlyAttendanceList': gettextCatalog.getString('MonthlyAttendanceList'),\r\n 'NewAthlete': gettextCatalog.getString('NewAthlete'),\r\n 'NewUser': gettextCatalog.getString('NewUser'),\r\n 'Reports': gettextCatalog.getString('Reports'),\r\n 'SchoolManagement': gettextCatalog.getString('SchoolManagement'),\r\n 'Search': gettextCatalog.getString('Search'),\r\n 'Settings': gettextCatalog.getString('Settings'),\r\n 'SportSpecificReportLists': gettextCatalog.getString('SportSpecificReportLists'),\r\n 'SportSpecificTestList': gettextCatalog.getString('SportSpecificTestList'),\r\n 'StatisticalReports': gettextCatalog.getString('StatisticalReports'),\r\n 'TeamList': gettextCatalog.getString('TeamList'),\r\n 'TeamMembersList': gettextCatalog.getString('TeamMembersList'),\r\n 'TestResultsFootball': gettextCatalog.getString('TestResultsFootball'),\r\n 'TestResultsHockey': gettextCatalog.getString('TestResultsHockey'),\r\n 'UserGroupsManagement': gettextCatalog.getString('UserGroupsManagement'),\r\n 'UserManagement': gettextCatalog.getString('UserManagement'),\r\n 'AgeGroupManagement': gettextCatalog.getString('AgeGroupManagement'),\r\n 'AnnualPresenceReports': gettextCatalog.getString('AnnualPresenceReports'),\r\n 'EventsCalendar': gettextCatalog.getString('EventsCalendar'),\r\n 'ManagementReports': gettextCatalog.getString('ManagementReports'),\r\n 'SearchType': gettextCatalog.getString('SearchType'),\r\n 'MessageCenter': gettextCatalog.getString('MessageCenter')\r\n };\r\n\r\n $rootScope.busyMessage = gettextCatalog.getString('Loading');\r\n getNavRoutes().then(function () {\r\n if (!$rootScope.$$phase) {\r\n $rootScope.$apply();\r\n }\r\n resolve();\r\n });\r\n });\r\n });\r\n };\r\n var lang = null;\r\n if (authenticationService.isAuthenticated()) {\r\n lang = localStorageService.get('_authData').language;\r\n } else if (authenticationService.isSessionTimeOut()) {\r\n lang = localStorageService.get('_sessionData').language;\r\n } else {\r\n lang = navigator.language || navigator.userLanguage;\r\n }\r\n $rootScope.setLanguage(lang).then(function () {\r\n resolve();\r\n });\r\n });\r\n });\r\n })\r\n .controller('ShellController', ShellController);\r\n\r\n function ShellController($rootScope, $q, config, logger, authenticationService, $state, AUTH_EVENTS, LAYOUT_EVENTS, gettextCatalog, LANG_EVENTS, $scope, routerHelper, DOMAIN, loader, $compile, $window, paramHelper, dataservice, $timeout, localStorageService, log, $interval) {\r\n // Declaration variables\r\n var vm = this;\r\n vm.intId = -1;\r\n vm.busyMessage = 'Please wait...';\r\n vm.isBusy = true;\r\n vm.password = {oldPassword: '', newPassword: '', confirmPassword: '', expiried: false};\r\n vm.expiresLabel = '';\r\n vm.authData = {};\r\n vm.isAuthenticated = false;\r\n vm.pictureBasePath = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + '/';\r\n vm.userPermission = authenticationService.getPermission();\r\n vm.logout = logout;\r\n vm.openPasswordDialog = openPasswordDialog2;\r\n vm.goToProfile = goToProfile;\r\n vm.goToDashboard = goToDashboard;\r\n vm.athleteidOfAthleteUser = -1;\r\n vm.partnerLogo = '';\r\n $rootScope.sideMenuOpened = true;\r\n $rootScope.gridPage = 5;\r\n $rootScope.gridPageSizes = [4, 8, 20, 100];\r\n\r\n // SYNCFUSION 2 SETTINGS\r\n $rootScope.toolbarItems = ['ExcelExport', /*'pdfexport',*/ 'Print'];\r\n $rootScope.toolbarItemsWithDelete = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Delete'];\r\n $rootScope.toolbarItemsWithSearch = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Search'];\r\n $rootScope.toolbarItemsWithSearchAndDelete = ['ExcelExport', /*'pdfexport',*/ 'Print', 'Delete', 'Search'];\r\n $rootScope.toolbarClick = function (args, grid) {\r\n if (args.item.id === (grid.element.id + '_excelexport')) {\r\n var origColumns = $.extend(true, [], grid.properties.columns);\r\n grid.properties.columns.forEach(function (c) {\r\n c.headerText = c.headerText.replace('<br>', ' ');\r\n });\r\n if (grid.columns[0].type === 'checkbox') {\r\n grid.columns[0].visible = false;\r\n grid.excelExport().then(function () {\r\n grid.columns[0].visible = true;\r\n });\r\n } else {\r\n grid.excelExport();\r\n }\r\n grid.properties.columns = $.extend(true, [], origColumns);\r\n }\r\n // if (args.item.id === (grid.element.id + '_pdfexport')) {\r\n // grid.pdfExport();\r\n // }\r\n if (args.item.id === (grid.element.id + '_print')) {\r\n grid.print({pageOrientation: 'Landscape'});\r\n }\r\n };\r\n $rootScope.compile = function compile(args, scope) {\r\n $timeout(function () {\r\n $compile(args)(scope);\r\n }, 100);\r\n };\r\n // checkBoxChange event\r\n $rootScope.checkBoxChangeOnlyOne = function (args, grid) {\r\n if (args.selectedRowIndexes.length > 1) {\r\n var el = $(grid.element).find('.e-checkselectall').next();\r\n el.addClass('e-uncheck');\r\n el.removeClass('e-check');\r\n grid.clearSelection();\r\n log.errorMsg('YouHaveToSelectOnlyOneRow');\r\n }\r\n };\r\n $rootScope.getSelectedItems = function (grid) {\r\n var selectedRowIndexes = grid.getSelectedRowIndexes();\r\n var items = [];\r\n selectedRowIndexes.forEach(function (element) {\r\n items.push(grid.selectionModule.contentRenderer.rows[element].data);\r\n });\r\n return items;\r\n };\r\n\r\n $rootScope.deleteRows = function (grid) {\r\n var selectedRowIndexes = grid.getSelectedRowIndexes();\r\n var indexes = selectedRowIndexes.sort(function (a, b) {\r\n return b - a;\r\n });\r\n indexes.forEach(function (i) {\r\n grid.dataSource.splice(i, 1);\r\n });\r\n grid.refresh();\r\n return grid.dataSource;\r\n };\r\n\r\n $rootScope.gridSelectedRowIndex = function (grid) {\r\n var indexes = [];\r\n var selectedIndexes = grid.getSelectedRowIndexes();\r\n selectedIndexes.forEach(function (indexId) {\r\n indexes.push((grid.pageSettings.currentPage - 1) * grid.pageSettings.pageSize + indexId);\r\n });\r\n return indexes;\r\n };\r\n $rootScope.checkRowSelection = function (grid, onlyOne) {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length === 0) {\r\n log.errorMsg('NoSelectedRow');\r\n return false;\r\n }\r\n if (onlyOne && selectedRows.length > 1) {\r\n log.errorMsg('YouHaveToSelectOnlyOneRow');\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n $rootScope.beforePrintGrid = function (args, gridColumns) {\r\n var gridObj = args.element.ej2_instances[0]; // instance for printing Grid\r\n if (gridColumns) {\r\n gridObj.hideColumns(gridColumns, 'field');\r\n gridObj.refresh();\r\n } else {\r\n gridObj.hideColumns('Link', 'field');\r\n gridObj.refresh();\r\n }\r\n };\r\n $rootScope.printCompleteGrid = function (args, gridColumns) {\r\n var gridObj = args.element.ej2_instances[0]; // instance for printing Grid\r\n if (gridColumns) {\r\n gridObj.showColumns(gridColumns, 'field');\r\n gridObj.refresh();\r\n } else {\r\n gridObj.showColumn('Link', 'field');\r\n gridObj.refresh();\r\n }\r\n };\r\n // VÉGE\r\n\r\n $rootScope.sideMenuOpen = function () {\r\n $rootScope.sideMenuOpened = true;\r\n };\r\n\r\n $rootScope.sideMenuClose = function () {\r\n $rootScope.sideMenuOpened = false;\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.intId = setInterval(TryRefreshToken, 1000);\r\n console.log('setInterval vm.intId', vm.intId);\r\n return $q(function (resolve) {\r\n vm.partnerLogoSmall = clientConfig.partnerLogoSmall;\r\n vm.partnerLogo = config.partnerLogo;\r\n logger.success(config.appTitle + ' loaded!', null);\r\n if (authenticationService.isAuthenticated()) {\r\n if (localStorageService.get('_authData').gridRecordPerPage) {\r\n $rootScope.gridPage = parseInt(localStorageService.get('gridRecordPerPage') || 10);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n pageSettings();\r\n haveToPay();\r\n resolve(true);\r\n } else {\r\n resolve(false);\r\n }\r\n });\r\n }\r\n\r\n function TryRefreshToken() {\r\n console.log('TryRefreshToken', vm.intId);\r\n if (!authenticationService.isAuthenticated()) {\r\n return;\r\n }\r\n var sikertopic = localStorage.getItem('sikertopic');\r\n var firebasetoken = localStorage.getItem('firebasetoken');\r\n var lang = authenticationService.getAuthData().language;\r\n if (authenticationService.isAuthenticated() && sikertopic && firebasetoken && sikertopic.length > 0 && firebasetoken.length > 0) {\r\n console.log('TOPIC:', sikertopic);\r\n console.log('TOKEN:', firebasetoken);\r\n console.log('LANG:', lang);\r\n dataservice.FirebaseSubscribeToTopic({topic: sikertopic, token: firebasetoken, lang: lang}).then(function (resp) {\r\n console.log('FirebaseSubscribeToTopic', resp);\r\n });\r\n clearInterval(vm.intId);\r\n }\r\n }\r\n\r\n var pageSize = 4;\r\n\r\n function pageSettings() {\r\n paramHelper.getParams([], ['gridRecordPerPage']).then(function (result) {\r\n if (result['gridRecordPerPage']) {\r\n pageSize = parseInt(result['gridRecordPerPage']);\r\n }\r\n $rootScope.pageSettings = {pageCount: 5, pageSize: pageSize, pageSizes: $rootScope.gridPageSizes};\r\n });\r\n }\r\n\r\n $scope.$watch('title', function () {\r\n $rootScope.htmlTitle = 'Siker 2.0 2019 - ' + $rootScope.title;\r\n });\r\n\r\n $scope.previousState;\r\n\r\n $scope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams, options) {\r\n pageSettings();\r\n if ($rootScope.monthlyAttendanceSaveInterval) {\r\n $interval.cancel($rootScope.monthlyAttendanceSaveInterval);\r\n $rootScope.monthlyAttendanceSaveInterval = undefined;\r\n }\r\n if (options.location === false && (fromState.url === '/eventsCalendar' || fromState.url === '/schedule')) {\r\n event.preventDefault();\r\n }\r\n $rootScope.actualState = toState;\r\n /*\r\n else {\r\n loader.start();\r\n }*/\r\n });\r\n\r\n $rootScope.stateList = [];\r\n\r\n $rootScope.fromBack = false;\r\n $scope.$on('$stateChangeSuccess', function (ev, to, toParams, from) {\r\n if (!$rootScope.fromBack) {\r\n $rootScope.stateList.push(from.name);\r\n }\r\n $scope.actual = to.name;\r\n //$log.log($rootScope.stateList);\r\n $rootScope.fromBack = false;\r\n // loader.end();\r\n });\r\n $scope.$on('$stateNotFound', function () {\r\n // loader.end();\r\n });\r\n $scope.$on('stateChangeError', function () {\r\n // loader.end();\r\n });\r\n\r\n $rootScope.back = function () {\r\n $rootScope.fromBack = true;\r\n var state = $rootScope.stateList.pop();\r\n if (state === angular.isUndefined || state === '') {\r\n state = 'dashboard';\r\n }\r\n $state.go(state);\r\n };\r\n\r\n $rootScope.home = function () {\r\n $state.go('dashboard');\r\n };\r\n\r\n $rootScope.login = function () {\r\n $state.go('login');\r\n loader.end();\r\n };\r\n\r\n // //\r\n // $rootScope.$watch(function () {\r\n // return authenticationService.isAuthenticated();\r\n // }, function (value) {\r\n // vm.isAuthenticated = value;\r\n // vm.authData = authenticationService.getAuthData();\r\n // });\r\n\r\n //Refres profile image broadcast handler\r\n $rootScope.$on(AUTH_EVENTS.refreshProfilePic, function (events, args) {\r\n vm.authData.picture = args;\r\n });\r\n\r\n function logout() {\r\n $rootScope.title = '';\r\n authenticationService.logout().then(function (result) {\r\n if (!result) {\r\n logger.error(gettextCatalog.getString('SignOutWasUnsucessful'));\r\n }\r\n });\r\n }\r\n\r\n function openPasswordDialog2() {\r\n $rootScope.$broadcast(LAYOUT_EVENTS.passwordChange);\r\n }\r\n\r\n // Watching variables change\r\n $rootScope.$watch(function () {\r\n return authenticationService.isAuthenticated();\r\n }, function (value) {\r\n vm.isAuthenticated = value;\r\n vm.authData = authenticationService.getAuthData();\r\n passwordDialogConf();\r\n });\r\n\r\n //\r\n function haveToPay() {\r\n dataservice.getHaveToPay().then(function (haveToPayResult) {\r\n if (haveToPayResult.retValue == true) {\r\n if (!localStorageService.get('marMegnezte')) {\r\n swal({\r\n title: gettextCatalog.getString('Message'),\r\n text: gettextCatalog.getString('AttenzioneDebitBalance'),\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n onOpen: function () {\r\n swal.showLoading();\r\n $timeout(function () {\r\n swal.hideLoading();\r\n swal.enableButtons();\r\n }, 3000);\r\n }\r\n }).then(function () {\r\n localStorageService.set('marMegnezte', {\r\n value: true,\r\n });\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Boradcast or emitt handlers\r\n $rootScope.$on(AUTH_EVENTS.login, function (events, args, permission) {\r\n haveToPay();\r\n if (args === '' || args === 'login') {\r\n switch (permission) {\r\n case '5':\r\n $state.go('parentDashboard');\r\n break;\r\n case '6':\r\n $state.go('athleteDashboard');\r\n break;\r\n default:\r\n $state.go('dashboard');\r\n break;\r\n }\r\n } else {\r\n $state.go(args);\r\n }\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.logout, function () {\r\n $state.go('login');\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.notAuthorized, function () {\r\n authenticationService.logout();\r\n });\r\n\r\n $rootScope.$on(LAYOUT_EVENTS.passwordChange, function () {\r\n passwordDialogConf();\r\n openPasswordDialog();\r\n });\r\n\r\n $rootScope.$on(LANG_EVENTS.changeLanguage, function (events, args) {\r\n $rootScope.setLanguage(args);\r\n });\r\n\r\n $rootScope.$on(AUTH_EVENTS.sessionTimeout, function () {\r\n if (!vm.isAuthenticated) {\r\n return;\r\n }\r\n authenticationService.setSessionTimeOut($state.current.name);\r\n });\r\n $(document).click(function(e) {\r\n if ($(e.target).is('#mainContent *') && window.innerWidth < 768) {\r\n $rootScope.$broadcast('autoCloseSideBar');\r\n }\r\n });\r\n\r\n function passwordDialogConf() {\r\n if (vm.authData) {\r\n var today = new Date();\r\n today.setHours(0, 0, 0, 0);\r\n var expiration = new Date(moment(vm.authData.pwdExpiration));\r\n expiration.setHours(0, 0, 0, 0);\r\n var diffDays = moment(vm.authData.pwdExpiration).diff(today, 'days');\r\n\r\n if (diffDays === 1) {\r\n var message = gettextCatalog.getString('YourPasswordIsAboutToExpire1') + ' ' + moment(vm.authData.pwdExpiration).format('YYYY-MM-DD');\r\n logger.info(message);\r\n vm.expiresLabel = message;\r\n openPasswordDialog();\r\n } else if (expiration <= today) {\r\n vm.password.expiried = true;\r\n var message = gettextCatalog.getString('YourPasswordExpired');\r\n vm.expiresLabel = message;\r\n openPasswordDialog();\r\n }\r\n }\r\n }\r\n\r\n function openPasswordDialog() {\r\n swal({\r\n title: gettextCatalog.getString('ChangePassword'),\r\n html: '<div id=\"passwordChangeModal\"><p ng-show=\"vm.expiresLabel.length !== 0\" style=\"color: red;\" id=\"expiresLabel\">{{vm.expiresLabel}}</p>' +\r\n '<form method=\"post\">' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Régi jelszó\" name=\"oldPassword\" id=\"oldPassword\" autofocus data-ng-model=\"vm.password.oldPassword\" type=\"password\" required tabindex=\"1\">' +\r\n '</div>' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Új jelszó\" name=\"newPassword\" id=\"newPassword\" data-ng-model=\"vm.password.newPassword\" type=\"password\" tabindex=\"2\">' +\r\n '</div>' +\r\n '<div class=\"form-group\">' +\r\n '<input class=\"form-control\" placeholder=\"Új jelszó mégegyszer\" name=\"confirmPassword\" id=\"confirmPassword\" data-ng-model=\"vm.password.confirmPassword\" type=\"password\" tabindex=\"3\">' +\r\n '</div>' +\r\n '</form>' +\r\n '</div>',\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n vm.password.newPassword = document.getElementById('newPassword').value;\r\n vm.password.oldPassword = document.getElementById('oldPassword').value;\r\n vm.password.confirmPassword = document.getElementById('confirmPassword').value;\r\n\r\n if (!vm.password.newPassword || vm.password.newPassword.length < 4 || vm.password.newPassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n }\r\n if (vm.password.oldPassword.length === 0 || vm.password.newPassword.length === 0 || vm.password.confirmPassword.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('FellInAllElement'));\r\n }\r\n if (vm.password.newPassword !== vm.password.confirmPassword) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordsDontMatch'));\r\n }\r\n resolve();\r\n });\r\n },\r\n showCancelButton: !vm.password.expiried,\r\n allowEscapeKey: false,\r\n allowOutsideClick: false,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n $window.onkeydown = null;\r\n $window.onfocus = null;\r\n if (confirmed) {\r\n vm.error = '';\r\n dataservice.changePassword(vm.password.oldPassword, vm.password.newPassword)\r\n .then(function (data) {\r\n if (data.retValue === true && data.error.length === 0) {\r\n var expiration = new Date();\r\n vm.authData.expiration = expiration.setFullYear(expiration.getFullYear() + 1);\r\n logger.success(gettextCatalog.getString('PasswordChanged'));\r\n vm.password = {\r\n oldPassword: '',\r\n newPassword: '',\r\n confirmPassword: '',\r\n expiried: false\r\n };\r\n vm.expiresLabel = '';\r\n swal.close();\r\n logout();\r\n }\r\n }).catch(function () {\r\n logger.error(gettextCatalog.getString('SaveUnsuccessful'));\r\n openPasswordDialog();\r\n });\r\n } else {\r\n vm.password = {oldPassword: '', newPassword: '', confirmPassword: '', expiried: false};\r\n vm.expiresLabel = '';\r\n }\r\n }\r\n });\r\n\r\n $compile(angular.element('#passwordChangeModal'))($scope);\r\n angular.element('.confirm').removeAttr('tabindex');\r\n angular.element('#oldPassword').attr('tabindex', 1);\r\n angular.element('#newPassword').attr('tabindex', 2);\r\n angular.element('#confirmPassword').attr('tabindex', 3);\r\n }\r\n\r\n function openAthleteModify() {\r\n dataservice.getAthleteidBelongsToAthleteUser()\r\n .then(function (data) {\r\n vm.athleteidOfAthleteUser = data.data;\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': vm.athleteidOfAthleteUser},\r\n {'athleteModify.sportoloNev': vm.authData.loginName}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n });\r\n }\r\n\r\n function goToProfile() {\r\n $q.all([authenticationService.getRight('SPORTOLO')])\r\n .then(() => {\r\n $state.go('settings.userManagement.userSettings');\r\n });\r\n }\r\n\r\n function goToDashboard() {\r\n var permission = authenticationService.getPermission();\r\n switch (permission) {\r\n case '5':\r\n $state.go('parentDashboard');\r\n break;\r\n case '6':\r\n $state.go('athleteDashboard');\r\n break;\r\n default:\r\n $state.go('dashboard');\r\n break;\r\n }\r\n }\r\n\r\n loader.end();\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1')\r\n .controller('AnnualSeasonPlanReportPage1Controller', AnnualSeasonPlanReportPage1Controller);\r\n\r\n function AnnualSeasonPlanReportPage1Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlan');\r\n vm.columns = [];\r\n vm.egyeni = false;\r\n vm.maKorabbiEditable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.loadedById = false;\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n vm.selectedCoach = -1;\r\n vm.coachContact = '';\r\n vm.coachEmail = '';\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = -1;\r\n //Korcsoportok listája, kiválasztott korcsoport\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = -1;\r\n // coach dropdown\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n // section dropdown\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n // ageGroup dropdown\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // year dropdown\r\n vm.yearSelect = yearSelect;\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n vm.noAnnualSeasonPlan = false;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n\r\n vm.data = [];\r\n vm.autoSelect = false;\r\n\r\n // functions\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.annualSeasonPlanReportSelect = annualSeasonPlanReportSelect;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.refreshData = refreshData;\r\n vm.goToNextPage = goToNextPage;\r\n vm.annualSeasonPlanReportCreate = annualSeasonPlanReportCreate;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([],\r\n [\r\n 'AnnualSeasonPlanReport.Id',\r\n 'AnnualSeasonPlanReport.sectionId',\r\n 'AnnualSeasonPlanReport.ageGroupId',\r\n 'AnnualSeasonPlanReport.coachId',\r\n 'AnnualSeasonPlanReport.year'\r\n ]),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n console.log('results', results[0]);\r\n vm.selectedSection = results[0]['AnnualSeasonPlanReport.sectionId'];\r\n vm.selectedAgeGroup = results[0]['AnnualSeasonPlanReport.ageGroupId'];\r\n vm.selectedCoach = results[0]['AnnualSeasonPlanReport.coachId'];\r\n if (results[0]['AnnualSeasonPlanReport.year'] != null) {\r\n vm.selectedYear = results[0]['AnnualSeasonPlanReport.year'];\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n dataservice.annualSeasonPlanReportSelectById(results[0]['AnnualSeasonPlanReport.Id'])\r\n .then(function (data) {\r\n $timeout(function () {\r\n vm.maKorabbiEditable = true;\r\n vm.jumpedPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n vm.defaultJumpPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n $scope.$apply();\r\n }, 100);\r\n\r\n if (data.EdzoLezarta) {\r\n vm.hasSignedAnnualSeasonPlan = true;\r\n } else if (data.SzakosztalyvezetoJovahagyta) {\r\n vm.hasAcceptedAnnualSeasonPlan = true;\r\n } else {\r\n vm.hasAnnualSeasonPlan = true;\r\n }\r\n vm.selectedCoach = data.IdEdzo;\r\n vm.selectedSection = data.IdSzakosztaly;\r\n vm.selectedAgeGroup = data.IdKorosztaly;\r\n vm.loadedById = true;\r\n $timeout(function () {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', new Date(data.ErvenyessegTol).getFullYear() + ' / ' + new Date(data.ErvenyessegIg).getFullYear());\r\n getCoaches();\r\n vm.autoSelect = true;\r\n viewAnnualSeasonPlanReport(data);\r\n annualSeasonPlanReportSelect();\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n }, 333);\r\n });\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n getSections();\r\n dataservice.getTrainerEmailContact(vm.selectedCoach)\r\n .then(function (data) {\r\n vm.coachContact = data.retValue.contact;\r\n vm.coachEmail = data.retValue.email;\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.selectedCoach, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n dataservice.sectionIndividualOrTeam(vm.selectedSection)\r\n .then(function (data) {\r\n vm.egyeni = data.retValue;\r\n });\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear.split('/')[0])\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n var vmi = angular.element('#maKorosztaly').data('ejDropDownList');\r\n if (vm.autoSelect && vmi.selectedIndexValue >= 0) {\r\n annualSeasonPlanReportSelect();\r\n }\r\n }\r\n }\r\n\r\n // Run after selection\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n if (vm.loadedById === false) {\r\n getAgeGroups();\r\n } else {\r\n vm.loadedById = false;\r\n }\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '1 ') {\r\n return;\r\n }\r\n\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function annualSeasonPlanReportSelect() {\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.coachContact = '';\r\n vm.coachEmail = '';\r\n vm.data = [];\r\n grid.dataSource = vm.data;\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.coachId': vm.selectedCoach}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.sectionId': vm.selectedSection}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.ageGroupId': vm.selectedAgeGroup}]);\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.year': vm.selectedYear}]);\r\n\r\n dataservice.getTrainerEmailContact(vm.selectedCoach)\r\n .then(function (data) {\r\n if (data.retValue.contact) {\r\n vm.coachContact = data.retValue.contact;\r\n }\r\n if (data.retValue.email) {\r\n vm.coachEmail = data.retValue.email;\r\n }\r\n });\r\n vm.data = [];\r\n dataservice.annualSeasonPlanReportSelect(vm.selectedSection, vm.selectedAgeGroup, vm.selectedCoach, vm.selectedYear.split('/')[0], vm.egyeni)\r\n .then(function (args) {\r\n showMessages(args);\r\n $timeout(function () {\r\n vm.maKorabbiEditable = true;\r\n vm.jumpedPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n vm.defaultJumpPage = '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers');\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n function showMessages(args) {\r\n if (args.Id === 0) {\r\n vm.noAnnualSeasonPlan = true;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n } else {\r\n vm.noAnnualSeasonPlan = false;\r\n vm.hasAnnualSeasonPlan = false;\r\n vm.hasSignedAnnualSeasonPlan = false;\r\n vm.hasAcceptedAnnualSeasonPlan = false;\r\n if (args.EdzoLezarta) {\r\n vm.hasSignedAnnualSeasonPlan = true;\r\n } else if (args.SzakosztalyvezetoJovahagyta) {\r\n vm.hasAcceptedAnnualSeasonPlan = true;\r\n } else {\r\n vm.hasAnnualSeasonPlan = true;\r\n }\r\n viewAnnualSeasonPlanReport(args);\r\n }\r\n }\r\n\r\n function viewAnnualSeasonPlanReport(args) {\r\n vm.annualSeasonPlanReportId = args.Id;\r\n vm.coachContact = args.EdzoMobil;\r\n vm.coachEmail = args.EdzoEmail;\r\n if (vm.annualSeasonPlanReportId) {\r\n dataservice.annualSeasonPlanReportMembersDataByIdSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('AtlethesName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#anseplrepa1templateDataColumn1'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SITagsagKezdete',\r\n headerText: gettextCatalog.getString('StartMemberDate'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'IskolaNeveCime',\r\n headerText: gettextCatalog.getString('SchoolNameAddress'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'TestneveloTanarNeve',\r\n headerText: gettextCatalog.getString('SportingTeacherName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Lakcim',\r\n headerText: gettextCatalog.getString('Address'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function refreshData() {\r\n if (vm.annualSeasonPlanReportId) {\r\n dataservice.annualSeasonPlanDeleteMembers(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n });\r\n });\r\n } else {\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n });\r\n }\r\n }\r\n\r\n function goToNextPage() {\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanMembers(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n }, 100);\r\n }\r\n\r\n function annualSeasonPlanReportCreate() {\r\n vm.fej = {};\r\n vm.fej.DSIVezetoJovahagyta = false;\r\n vm.fej.EdzoEmail = vm.coachEmail;\r\n vm.fej.EdzoLezarta = false;\r\n vm.fej.EdzoMobil = vm.coachContact;\r\n vm.fej.EdzoNeve = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.fej.EgyebCelkituzesek = '';\r\n vm.fej.Egyeni = vm.egyeni;\r\n vm.fej.ErvenyessegIg = moment({y: vm.selectedYear.split('/')[1].trim(), M: 6, d: 31}).format('YYYY-MM-DD');\r\n vm.fej.ErvenyessegTol = moment({y: vm.selectedYear.split('/')[0].trim(), M: 7, d: 1}).format('YYYY-MM-DD');\r\n vm.fej.IdEdzo = vm.selectedCoach;\r\n vm.fej.IdKorosztaly = vm.selectedAgeGroup;\r\n vm.fej.IdSzakosztaly = vm.selectedSection;\r\n vm.fej.KeszitesDatum = moment().format('YYYY-MM-DD');\r\n vm.fej.KorosztalyNeve = angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.fej.SzakosztalyNeve = angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n dataservice.saveAnnualSeasonPlanHead(vm.fej)\r\n .then(function (args) {\r\n vm.annualSeasonPlanReportId = args.retValue;\r\n vm.fej.Id = args.retValue;\r\n dataservice.coachAthletesByAgeGroupForAnnualSeasonPlan(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.fej.Id)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('AnnualSeasonPlanCreated'));\r\n });\r\n showMessages(vm.fej);\r\n });\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanList');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage1')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage1',\r\n config: {\r\n url: '/annualSeasonPlanReportPage1',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.html',\r\n controller: 'AnnualSeasonPlanReportPage1Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan',\r\n settings: {\r\n navId: 252,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Éves felkészítési és versenyeztetési terv',\r\n orderTitle_en: 'Annual Preparation and Competition Plan',\r\n parentId: 2,\r\n content: 'AnnualSeasonPlan',\r\n activatorPermission: ['\"MEGTEVVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userRights')\r\n .controller('UserRightsController', UserRightsController);\r\n\r\n function UserRightsController(dataservice, log, authenticationService, gettextCatalog, $rootScope, $q, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserRights');\r\n\r\n vm.userGroupList = [];\r\n vm.selectedUserGroup = -1;\r\n vm.changeEventActive = false;\r\n vm.defaultUserGroup = undefined;\r\n\r\n // public functions\r\n vm.userGroupDataBound = userGroupDataBound;\r\n vm.userGroupSelect = userGroupSelect;\r\n vm.groupRightsChange = groupRightsChange;\r\n\r\n vm.accessRights = [];\r\n vm.checkedIndices = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTFELHJOG')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getUserGroupDropDownList().then(function () {\r\n paramHelper.getParams([], ['usergroupid']).then(function (results) {\r\n if (results.usergroupid) {\r\n vm.selectedUserGroup = results.usergroupid;\r\n vm.defaultUserGroup = results.usergroupid;\r\n paramHelper.removeParam('usergroupid');\r\n }\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n // Jogosultsági csoportok lekérése\r\n function getUserGroupDropDownList() {\r\n return dataservice.getUserGroupDropDownList()\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', 6);\r\n });\r\n }\r\n\r\n // Jogok lekérése\r\n function getAccessRights() {\r\n dataservice.getAccessRights().then(function (data) {\r\n vm.accessRights = data.itemsList;\r\n getAndSetUserGroupRights(vm.selectedUserGroup);\r\n });\r\n }\r\n\r\n function userGroupDataBound() {\r\n if (vm.defaultUserGroup) {\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', vm.defaultUserGroup);\r\n vm.selectedUserGroup = vm.defaultUserGroup;\r\n } else {\r\n angular.element('#userGroupDropDown').ejDropDownList('selectItemByValue', vm.userGroupList[0].value);\r\n vm.selectedUserGroup = vm.userGroupList[0].value;\r\n }\r\n if (vm.userGroupList.length >= 1) {\r\n getAccessRights();\r\n }\r\n }\r\n\r\n // Jogosultsági csoport kiválasztás esemény\r\n function userGroupSelect(selectedGroup) {\r\n vm.changeEventActive = false;\r\n if (vm.accessRights.length > 0) {\r\n getAndSetUserGroupRights(selectedGroup.value);\r\n }\r\n }\r\n\r\n // Beállított jogosuoltságok lekérése és beállítása\r\n function getAndSetUserGroupRights(selectedUserGroup) {\r\n return dataservice.getUserGroupRights(selectedUserGroup).then(function (data) {\r\n // ListBox takarítása\r\n ejListBoxEnable();\r\n vm.checkedIndices = [];\r\n vm.changeEventActive = false; // change refresh disable\r\n\r\n // Jogosultságok indexének megkeresése\r\n angular.forEach(data.itemsList, function (right) {\r\n vm.checkedIndices.push(vm.accessRights.findIndex(function (item, index) {\r\n return item.value === this.IdJog ? index : false;\r\n }, right));\r\n });\r\n\r\n // Jogosultságok beállítása\r\n angular.element('#groupRightsList').ejListBox({checkedIndices: vm.checkedIndices});\r\n vm.changeEventActive = true; // change refresh enable\r\n });\r\n }\r\n\r\n // ListBox elemek aktiválása\r\n function ejListBoxEnable() {\r\n for (var index = 0; index < vm.accessRights.length; index++) {\r\n angular.element('#groupRightsList').ejListBox('enableItemByIndex', index);\r\n }\r\n }\r\n\r\n // Jogosultság checkbox megváltozik\r\n function groupRightsChange(changed) {\r\n if (vm.changeEventActive) {\r\n var shortName = changed.data.shortName;\r\n var name = changed.text;\r\n switch (shortName) {\r\n case 'SPORTOLO':\r\n setSpecialPermission(gettextCatalog.getString('SZULOjog') + ', ' + gettextCatalog.getString('ADMINjog') + ', ' + gettextCatalog.getString('EDZOjog') + ', ' + gettextCatalog.getString('GAZDASAGIjog') + ', ' + gettextCatalog.getString('TECHIGAZGATOjog') + ', ' + ' ' + gettextCatalog.getString('SZAKOSZTVEZjog'), changed);\r\n break;\r\n case 'SZULO':\r\n setSpecialPermission(gettextCatalog.getString('SPORTOLOjog') + ', ' + gettextCatalog.getString('ADMINjog') + ', ' + gettextCatalog.getString('EDZOjog') + ', ' + gettextCatalog.getString('GAZDASAGIjog') + ', ' + gettextCatalog.getString('TECHIGAZGATOjog') + ', ' + ' ' + gettextCatalog.getString('SZAKOSZTVEZjog'), changed);\r\n break;\r\n case 'ADMIN':\r\n case 'EDZO':\r\n case 'GAZDASAGI':\r\n case 'TECHIGAZGATO':\r\n case 'SZAKOSZTVEZ':\r\n setSpecialPermission(gettextCatalog.getString('SZULOjog') + ', ' + gettextCatalog.getString('SPORTOLOjog'), changed);\r\n break;\r\n default:\r\n setUserGroupRight(vm.selectedUserGroup, changed);\r\n }\r\n }\r\n }\r\n\r\n function setUserGroupRight(selectedUserGroup, item) {\r\n vm.changeEventActive = false;\r\n return dataservice.setUserGroupRight(selectedUserGroup, item.value, item.isChecked).then(function (data) {\r\n if (data.retValue !== true) {\r\n if (item.isChecked) {\r\n angular.element('#groupRightsList').ejListBox('uncheckItemByIndex', item.index);\r\n } else {\r\n angular.element('#groupRightsList').ejListBox('checkItemByIndex', item.index);\r\n }\r\n }\r\n vm.changeEventActive = true;\r\n }, function () {\r\n if (item.isChecked === true) {\r\n $('#groupRightsList').ejListBox('uncheckItemByIndex', item.index);\r\n } else {\r\n $('#groupRightsList').ejListBox('checkItemByIndex', item.index);\r\n }\r\n vm.changeEventActive = true;\r\n });\r\n }\r\n\r\n function setSpecialPermission(name, changed) {\r\n if (changed.isChecked) {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSetSpecielPermission?'),\r\n text: gettextCatalog.getString('YourPermissionWillBe') + ' ' + name,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('YesSetPermission'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n //closeOnConfirm: false,\r\n //closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (!isConfirm.value) {\r\n angular.element('#groupRightsList').ejListBox('uncheckItemByIndex', changed.index);\r\n } else if (isConfirm.value) {\r\n angular.element('#groupRightsList').ejListBox('checkItemByIndex', changed.index);\r\n setUserGroupRight(vm.selectedUserGroup, changed).then(function () {\r\n getAndSetUserGroupRights(vm.selectedUserGroup);\r\n });\r\n }\r\n });\r\n } else {\r\n setUserGroupRight(vm.selectedUserGroup, changed);\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2')\r\n .controller('AnnualSeasonPlanReportPage2Controller', AnnualSeasonPlanReportPage2Controller);\r\n\r\n function AnnualSeasonPlanReportPage2Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.refreshData = refreshData;\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast');\r\n vm.defaultJumpPage = '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n viewAnnualSeasonPlanReport(data);\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '2 ') {\r\n return;\r\n }\r\n\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function viewAnnualSeasonPlanReport() {\r\n dataservice.annualSeasonPlanReportMembersPastSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n if (vm.editable && data.itemsList.length === 0) {\r\n refreshData();\r\n }\r\n });\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('AtlethesName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#anseplrepa2templateDataColumn1'\r\n },\r\n {\r\n field: 'VersSportKezd',\r\n headerText: gettextCatalog.getString('BeginningOfCompetitiveSports'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EddigiEdzoi',\r\n headerText: gettextCatalog.getString('HisCoachesUntilNow'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EddigiSportEgyesuletei',\r\n headerText: gettextCatalog.getString('HisTeamsUntilNow'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function refreshData() {\r\n dataservice.annualSeasonPlanReportMembersPastDelete(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n dataservice.annualSeasonPlanReportMembersPastRefresh(vm.annualSeasonPlanReportId,\r\n vm.head.IdSzakosztaly, vm.head.IdKorosztaly, vm.head.IdEdzo)\r\n .then(function (args) {\r\n vm.data = [];\r\n vm.data = args.itemsList;\r\n grid.dataSource = vm.data;\r\n log.successMsg(gettextCatalog.getString('RefreshComplete'));\r\n });\r\n });\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanMembersPast(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }, 100);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage2')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage2',\r\n config: {\r\n url: '/annualSeasonPlanReportPage2',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.html',\r\n controller: 'AnnualSeasonPlanReportPage2Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3')\r\n .controller('AnnualSeasonPlanReportPage3Controller', AnnualSeasonPlanReportPage3Controller);\r\n\r\n function AnnualSeasonPlanReportPage3Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.selectedRowRecords;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.dataPopup = [];\r\n\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.newAthletesNewRow = newAthletesNewRow;\r\n vm.oldAthletesNewRow = oldAthletesNewRow;\r\n vm.search = search;\r\n vm.search2 = search2;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithDelete,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, allowDeleting: true, showDeleteConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: function() {\r\n grid.editSettings.allowDeleting = true;\r\n vm.selectedRowRecords = grid.getSelectedRecords();\r\n document.getElementById('oldNew').removeAttribute('disabled');\r\n },\r\n rowDeselected: function() {\r\n grid.editSettings.allowDeleting = false;\r\n document.getElementById('oldNew').setAttribute('disabled', 'disabled');\r\n },\r\n actionBegin: function() {\r\n grid.editSettings.allowDeleting = false;\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridSearch = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridSearch.appendTo('#GridPopup');\r\n gridSearch.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridSearch);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '3 - ' + gettextCatalog.getString('OutstandingResults');\r\n vm.defaultJumpPage = '3 - ' + gettextCatalog.getString('OutstandingResults');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n\r\n initGrid();\r\n dataservice.annualSeasonPlanReportBestResultsList(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n grid.editSettings.allowEditing = vm.editable;\r\n grid.editSettings.allowDeleting = vm.editable;\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function SaveResults() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n }\r\n\r\n if (vm.data.length === 0) {\r\n vm.data.push({IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId});\r\n }\r\n dataservice.saveAnnualSeasonPlanBestResults(vm.data).then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '3 ') {\r\n return;\r\n }\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('VersenyzoNeve'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable,\r\n visible: vm.egyeni\r\n },\r\n {\r\n field: 'KiemelkSportolo',\r\n headerText: gettextCatalog.getString('KiemelkSportolo'),\r\n textAlign: 'center',\r\n width: 200,\r\n allowEditing: vm.editable,\r\n visible: !vm.egyeni\r\n },\r\n {\r\n field: 'EsemenyNeve',\r\n headerText: gettextCatalog.getString('EsemenyNeve'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyIdopontja',\r\n headerText: gettextCatalog.getString('EsemenyIdopontja'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyHelye',\r\n headerText: gettextCatalog.getString('EsemenyHelye'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'ElertHelyezes',\r\n headerText: gettextCatalog.getString('ElertHelyezes'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n }\r\n ];\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Helyszin'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'CsapatSportolo',\r\n headerText: gettextCatalog.getString('CsapatSportolo'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n SaveResults();\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n }, 100);\r\n }\r\n\r\n function newAthletesNewRow() {\r\n grid.editModule.endEdit();\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: '',\r\n EsemenyHelye: '',\r\n EsemenyIdopontja: '',\r\n EsemenyNeve: '',\r\n KiemelkSportolo: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function oldAthletesNewRow() {\r\n grid.editModule.endEdit();\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: vm.selectedRowRecords[0].Sorszam,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: '',\r\n EsemenyHelye: '',\r\n EsemenyIdopontja: '',\r\n EsemenyNeve: '',\r\n KiemelkSportolo: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function search() {\r\n vm.same = false;\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.annualSeasonPlanReportBestResultsSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridSearch.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function search2() {\r\n vm.same = true;\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.annualSeasonPlanReportBestResultsSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridSearch.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults(same) {\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n if (!same) {\r\n sorszam++;\r\n }\r\n vm.data.push(\r\n {\r\n Id: -1 * vmi.Id,\r\n Sorszam: sorszam,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: vmi.Helyezes,\r\n EsemenyHelye: vmi.Helyszin,\r\n EsemenyIdopontja: (vmi.DatumTol ? vmi.DatumTol : '') + (vm.Datumig ? '-' + vm.DatumIg : ''),\r\n EsemenyNeve: vmi.EsemenyNeve,\r\n VersenyzoNeve: vmi.CsapatSportolo\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage3')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage3',\r\n config: {\r\n url: '/annualSeasonPlanReportPage3',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.html',\r\n controller: 'AnnualSeasonPlanReportPage3Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4')\r\n .controller('AnnualSeasonPlanReportPage4Controller', AnnualSeasonPlanReportPage4Controller);\r\n\r\n function AnnualSeasonPlanReportPage4Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $state, $window, DOMAIN, $timeout, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.columnsPopup = [];\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.head = {};\r\n vm.data = {};\r\n vm.dataPopup = [];\r\n vm.selectedRowIndexPopup = 0;\r\n\r\n vm.file = {};\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.numberChange = numberChange;\r\n vm.openTechnicalTrainingObjectives = openTechnicalTrainingObjectives;\r\n vm.removeTechnicalTrainingObjectives = removeTechnicalTrainingObjectives;\r\n vm.openTacticalTrainingObjectives = openTacticalTrainingObjectives;\r\n vm.removeTacticalTrainingObjectives = removeTacticalTrainingObjectives;\r\n vm.openAbilitydevelopmentObjectives = openAbilitydevelopmentObjectives;\r\n vm.removeAbilitydevelopmentObjectives = removeAbilitydevelopmentObjectives;\r\n vm.openEducationalObjectives = openEducationalObjectives;\r\n vm.removeEducationalObjectives = removeEducationalObjectives;\r\n vm.openEfficiencyObjectives = openEfficiencyObjectives;\r\n vm.removeEfficiencyObjectives = removeEfficiencyObjectives;\r\n vm.openSportSpecificTrainingObjectives = openSportSpecificTrainingObjectives;\r\n vm.removeSportSpecificTrainingObjectives = removeSportSpecificTrainingObjectives;\r\n vm.closeEarlierAnnualSeasonPlanWindow = closeEarlierAnnualSeasonPlanWindow;\r\n vm.selectEarlierAnnualSeasonPlan = selectEarlierAnnualSeasonPlan;\r\n\r\n vm.search = search;\r\n vm.closeEarlierAnnualSeasonPlanWindow = closeEarlierAnnualSeasonPlanWindow;\r\n vm.selectEarlierAnnualSeasonPlan = selectEarlierAnnualSeasonPlan;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 125,\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#GridPopup');\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '4 - ' + gettextCatalog.getString('CapitalObjectives');\r\n vm.defaultJumpPage = '4 - ' + gettextCatalog.getString('CapitalObjectives');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']), authenticationService.getRight('EDZO'), authenticationService.getRight('ADMIN'), authenticationService.getRight('SZAKOSZTVEZ'), authenticationService.getRight('TECHIGAZGATO'), authenticationService.getRight('EVVERSTALAIR1'), authenticationService.getRight('EVVERSTALAIR2'), authenticationService.getRight('UJEVVERST'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTEVVERST')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n initUploadBox();\r\n dataservice.annualSeasonPlanReportObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data;\r\n if (vm.data.IdVersenyeztetesiTervFej == null) {\r\n vm.data.IdVersenyeztetesiTervFej = vm.annualSeasonPlanReportId;\r\n }\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function initUploadBox() {\r\n angular.element('#uploadbox1').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.TechKepzesFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|techKepzes', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox2').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.TaktikaiKepzesFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|taktKepzes', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox3').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.KepessegFejlFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|kepessegFejl', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox4').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.NevelesiFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|nevFelad', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n angular.element('#uploadbox5').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.EredmenyessegiFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|eredmFelad', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n\r\n angular.element('#uploadbox6').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUploadEvesVersTerv',\r\n autoUpload: true,\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('UploadFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf',\r\n enabled: vm.editable,\r\n complete: function (args) {\r\n if (args.responseText && args.responseText.length > 0) {\r\n if (args.responseText.indexOf('>') !== -1) {\r\n args.responseText = args.responseText.slice(args.responseText.indexOf('>') + 1, args.responseText.indexOf('</'));\r\n }\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n vm.data.SportagSpecFeladatokFile = args.responseText;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n });\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdf');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'EvesVersTerv|spSpec', tablaId: vm.annualSeasonPlanReportId};\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '4 ') {\r\n return;\r\n }\r\n\r\n if (!vm.hasSignedAnnualSeasonPlan) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function (args) {\r\n vm.Id = args.res;\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n }, 100);\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults() {\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push(\r\n {\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n ElertHelyezes: vmi.Helyezes,\r\n EsemenyHelye: vmi.Helyszin,\r\n EsemenyIdopontja: (vmi.DatumTol ? vmi.DatumTol : '') + (vm.Datumig ? '-' + vm.DatumIg : ''),\r\n EsemenyNeve: vmi.EsemenyNeve,\r\n VersenyzoNeve: vmi.CsapatSportolo\r\n });\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function numberChange() {\r\n var tx1 = angular.element('#teSpSpec').data('ejNumericTextbox');\r\n var tx2 = angular.element('#teAddTraining').data('ejNumericTextbox');\r\n vm.data.HetiEdzesOsszesen = Number(tx1.model.value) + Number(tx2.model.value);\r\n }\r\n\r\n function openTechnicalTrainingObjectives() {\r\n if (vm.data.TechKepzesFeladatokFile) {\r\n openLink(vm.data.TechKepzesFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeTechnicalTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.TechKepzesFeladatokFile, host)\r\n .then(function () {\r\n vm.data.TechKepzesFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openTacticalTrainingObjectives() {\r\n if (vm.data.TaktikaiKepzesFeladatokFile) {\r\n openLink(vm.data.TaktikaiKepzesFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeTacticalTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.TaktikaiKepzesFeladatokFile, host)\r\n .then(function () {\r\n vm.data.TaktikaiKepzesFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openAbilitydevelopmentObjectives() {\r\n if (vm.data.KepessegFejlFeladatokFile) {\r\n openLink(vm.data.KepessegFejlFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeAbilitydevelopmentObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.KepessegFejlFeladatokFile, host)\r\n .then(function () {\r\n vm.data.KepessegFejlFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openEducationalObjectives() {\r\n if (vm.data.NevelesiFeladatokFile) {\r\n openLink(vm.data.NevelesiFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeEducationalObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.NevelesiFeladatokFile, host)\r\n .then(function () {\r\n vm.data.NevelesiFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openEfficiencyObjectives() {\r\n if (vm.data.EredmenyessegiFeladatokFile) {\r\n openLink(vm.data.EredmenyessegiFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeEfficiencyObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.EredmenyessegiFeladatokFile, host)\r\n .then(function () {\r\n vm.data.EredmenyessegiFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openSportSpecificTrainingObjectives() {\r\n if (vm.data.SportagSpecFeladatokFile) {\r\n openLink(vm.data.SportagSpecFeladatokFile.replace(/\\\"/g, ''));\r\n }\r\n }\r\n\r\n function removeSportSpecificTrainingObjectives() {\r\n var host = DOMAIN.baseURL + DOMAIN.webService;\r\n dataservice.deleteFileAnnualSeasonPlan(vm.data.SportagSpecFeladatokFile, host)\r\n .then(function () {\r\n vm.data.SportagSpecFeladatokFile = undefined;\r\n dataservice.saveAnnualSeasonPlanCapitalObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveDone.');\r\n });\r\n });\r\n }\r\n\r\n function openLink(url) {\r\n $window.open(url, '_blank');\r\n }\r\n\r\n function search() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getAnnualSeasonPlanListByTrainer(vm.head.IdEdzo, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n grid.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeEarlierAnnualSeasonPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierAnnualSeasonPlan() {\r\n vm.selectedRowIndexPopup = grid.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.annualSeasonPlanReportObjectivesSelect(vmi.Id)\r\n .then(function (data) {\r\n vm.data.HetiEdzesSportag = data.HetiEdzesSportag;\r\n vm.data.HetiEdzesKiegeszito = data.HetiEdzesKiegeszito;\r\n vm.data.HetiEdzesOsszesen = data.HetiEdzesOsszesen;\r\n vm.data.SportagSpecFeladatok = data.SportagSpecFeladatok;\r\n vm.data.SportagSpecFeladatokFile = data.SportagSpecFeladatokFile;\r\n vm.data.KepessegFejlFeladatok = data.KepessegFejlFeladatok;\r\n vm.data.KepessegFejlFeladatokFile = data.KepessegFejlFeladatokFile;\r\n vm.data.NevelesiFeladatok = data.NevelesiFeladatok;\r\n vm.data.NevelesiFeladatokFile = data.NevelesiFeladatokFile;\r\n vm.data.TechKepzesFeladatok = data.TechKepzesFeladatok;\r\n vm.data.TechKepzesFeladatokFile = data.TechKepzesFeladatokFile;\r\n vm.data.TaktikaiKepzesFeladatok = data.TaktikaiKepzesFeladatok;\r\n vm.data.TaktikaiKepzesFeladatokFile = data.TaktikaiKepzesFeladatokFile;\r\n vm.data.EredmenyessegiFeladatok = data.EredmenyessegiFeladatok;\r\n vm.data.EredmenyessegiFeladatokFile = data.EredmenyessegiFeladatokFile;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage4')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage4',\r\n config: {\r\n url: '/annualSeasonPlanReportPage4',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.html',\r\n controller: 'AnnualSeasonPlanReportPage4Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5')\r\n .controller('AnnualSeasonPlanReportPage5Controller', AnnualSeasonPlanReportPage5Controller);\r\n\r\n function AnnualSeasonPlanReportPage5Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $compile, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.selectedRowIndex = -1;\r\n vm.selectedRowIndexPopup = -1;\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.dataPopup = [];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n // functions\r\n vm.goToNextPage = goToNextPage;\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.newRow = newRow;\r\n vm.removeRow = removeRow;\r\n vm.search = search;\r\n vm.closeOutstandingResultsWindow = closeOutstandingResultsWindow;\r\n vm.selectOutstandingResults = selectOutstandingResults;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n\r\n vm.maskObject = {};\r\n vm.elem = {};\r\n\r\n vm.dateTimeEditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '[1-9][0-9][0-9][0-9].[0-1][0-9].[0-3][0-9].',\r\n value: args.rowData[args.column.field],\r\n readOnly: vm.editable,\r\n focus: function(args) {\r\n args.selectionEnd= args.selectionStart;\r\n }\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n initGrid();\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: vm.editable, mode: 'Batch', showConfirmDialog: false, allowDeleting: vm.editable, showDeleteConfirmDialog: true},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: vm.editable,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n selectedRowIndex: vm.selectedRowIndexPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n activate();\r\n\r\n function activate() {\r\n vm.jumpedPage = '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives');\r\n vm.defaultJumpPage = '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')\r\n ])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTSPORTLIST = results[9];\r\n vm.MEGTEVVERST = results[10];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n vm.editable = !data.EdzoLezarta;\r\n\r\n initGrid();\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n grid.editSettings.allowEditing = vm.editable;\r\n grid.editSettings.allowDeleting = vm.editable;\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '5 ') {\r\n return;\r\n }\r\n console.log('sorszam', sorszam);\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n navigate(sorszam);\r\n });\r\n } else {\r\n navigate(sorszam);\r\n }\r\n }\r\n\r\n function navigate(sorszam) {\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EsemenyIdopont',\r\n headerText: gettextCatalog.getString('DateInText'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyIdopont2',\r\n headerText: gettextCatalog.getString('Datumn'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n width: 125,\r\n edit: vm.dateTimeEditorTemplate,\r\n //validationRules: { date: true },\r\n },\r\n {\r\n field: 'EsemenyNeve',\r\n headerText: gettextCatalog.getString('EsemenyNeve'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EsemenyHelyszin',\r\n headerText: gettextCatalog.getString('EsemenyHelye'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('VersenyzoNeve'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'EredmenyTerv',\r\n headerText: gettextCatalog.getString('EredmenyTerv'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: vm.editable,\r\n visible: !vm.egyeni\r\n }\r\n ];\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DatumTol'),\r\n textAlign: 'center',\r\n width: 125,\r\n },\r\n {\r\n field: 'DatumIg',\r\n headerText: gettextCatalog.getString('DatumIg'),\r\n textAlign: 'center',\r\n width: 125,\r\n }\r\n ];\r\n }\r\n\r\n function goToNextPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n }, 100);\r\n });\r\n }\r\n }\r\n\r\n function goToPreviousPage() {\r\n if (vm.editable) {\r\n grid.editModule.endEdit();\r\n dataservice.saveAnnualSeasonPlanCompetitionPlansAndObjectives(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n $timeout(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n }, 100);\r\n });\r\n }\r\n }\r\n\r\n function newRow() {\r\n grid.editModule.endEdit();\r\n var sorszam = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Sorszam > sorszam) {\r\n sorszam = vm.data[i].Sorszam;\r\n }\r\n }\r\n vm.data.push({\r\n Id: (vm.data.length + 1) * -1,\r\n Sorszam: sorszam + 1,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n EredmenyTerv: '',\r\n EsemenyHelyszin: '',\r\n EsemenyIdopont: '',\r\n EsemenyIdopont2: '',\r\n EsemenyNeve: '',\r\n VersenyzoNeve: ''\r\n });\r\n grid.dataSource = vm.data;\r\n }\r\n\r\n function removeRow() {\r\n grid.editModule.endEdit();\r\n vm.selectedRowIndex = grid.selectedRowIndex;\r\n if (vm.selectedRowIndex > -1) {\r\n var vmi = vm.data[vm.selectedRowIndex];\r\n if (vmi.Id > 0) {\r\n dataservice.deleteAnnualSeasonPlanCompetitionPlansAndObjective(vmi.Id)\r\n .then(function () {\r\n deleteRow(vm.selectedRowIndex);\r\n });\r\n } else {\r\n deleteRow(vm.selectedRowIndex);\r\n }\r\n }\r\n }\r\n\r\n function deleteRow(index) {\r\n vm.data.splice(index, 1);\r\n var i = 1;\r\n angular.forEach(vm.data, function (value) {\r\n value.Sorszam = i++;\r\n });\r\n grid.dataSource = vm.data;\r\n grid.refresh();\r\n }\r\n\r\n function search() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getAnnualSeasonPlanListByTrainer(vm.head.IdEdzo, vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n vm.dataPopup = [];\r\n vm.dataPopup = args.itemsList;\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeOutstandingResultsWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectOutstandingResults() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.deleteAnnualSeasonPlanCompetitionPlansAndObjectives(vm.annualSeasonPlanReportId)\r\n .then(function () {\r\n vm.data = [];\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vmi.Id)\r\n .then(function (data) {\r\n angular.forEach(data.itemsList, function (value) {\r\n value.Id = 0;\r\n value.IdVersenyeztetesiTervFej = vm.annualSeasonPlanReportId;\r\n vm.data.push(value);\r\n });\r\n grid.dataSource = vm.data;\r\n log.successMsg('refreshSuccessed');\r\n });\r\n });\r\n }\r\n }\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage5')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage5',\r\n config: {\r\n url: '/annualSeasonPlanReportPage5',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.html',\r\n controller: 'AnnualSeasonPlanReportPage5Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6')\r\n .controller('AnnualSeasonPlanReportPage6Controller', AnnualSeasonPlanReportPage6Controller);\r\n\r\n function AnnualSeasonPlanReportPage6Controller($rootScope, gettextCatalog, dataservice, log, $q, authenticationService, paramHelper, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n var printOpened = false;\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AnnualSeasonPlanReport');\r\n vm.columns = [];\r\n vm.stackedHeaderRows = [];\r\n vm.egyeni = false;\r\n vm.editable = true;\r\n vm.disable = false;\r\n vm.closed = false;\r\n vm.annualSeasonPlanReportId = 0;\r\n vm.rejectAttendanceText = '';\r\n vm.reportParameters = {};\r\n\r\n vm.head = {};\r\n vm.data = [];\r\n vm.months = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'];\r\n // jump page\r\n vm.JumpPageList = [\r\n '1 - ' + gettextCatalog.getString('TheMostImportantDataOfAGroupsMembers'),\r\n '2 - ' + gettextCatalog.getString('PreparationAndCompetitionPast'),\r\n '3 - ' + gettextCatalog.getString('OutstandingResults'),\r\n '4 - ' + gettextCatalog.getString('CapitalObjectives'),\r\n '5 - ' + gettextCatalog.getString('CompetitionPlansAndObjectives'),\r\n '6 - ' + gettextCatalog.getString('YearlyTablePlan')\r\n ];\r\n\r\n // functions\r\n vm.goToPreviousPage = goToPreviousPage;\r\n vm.gotoMainPage = gotoMainPage;\r\n vm.savePlan = savePlan;\r\n vm.print = print;\r\n vm.refreshCompetition = refreshCompetition;\r\n vm.closePlan = closePlan;\r\n vm.rejectPlan = rejectPlan;\r\n vm.acceptPlan = acceptPlan;\r\n vm.rejectAttendance = rejectAttendance;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.jumpPageDataBound = jumpPageDataBound;\r\n vm.jumpPageSelect = jumpPageSelect;\r\n vm.cellEdit = cellEdit;\r\n vm.cellsave = cellsave;\r\n\r\n vm.tableEditorTemplate = {\r\n create: function () {\r\n return '<input>';\r\n },\r\n read: function (args) {\r\n return args.ejMaskEdit('get_StrippedValue');\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n args.element.ejMaskEdit({\r\n width: '100%',\r\n maskFormat: 'C',\r\n customCharacter: 'xX',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n }\r\n };\r\n\r\n vm.tableEditorTemplateNumX = {\r\n create: function () {\r\n elem = document.createElement('input');\r\n elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return elem;\r\n },\r\n read: function () {\r\n return gridMaskEdit.value;\r\n },\r\n destroy: function () {\r\n gridMaskEdit.destroy();\r\n },\r\n write: function (args) {\r\n gridMaskEdit = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: 'xX0123456789'},\r\n value: args.rowData !== undefined ? (args.rowData[args.column.field]).toString().trim() : '',\r\n readOnly: !vm.editable\r\n });\r\n gridMaskEdit.appendTo(elem);\r\n }\r\n };\r\n\r\n vm.tableEditorTemplateNum = {\r\n create: function () {\r\n elem = document.createElement('input');\r\n elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return elem;\r\n },\r\n read: function () {\r\n return gridMaskEdit.value;\r\n },\r\n destroy: function () {\r\n gridMaskEdit.destroy();\r\n },\r\n write: function (args) {\r\n gridMaskEdit = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: '0123456789'},\r\n value: args.rowData !== undefined ? (args.rowData[args.column.field]).toString().trim() : '',\r\n readOnly: !vm.editable\r\n });\r\n gridMaskEdit.appendTo(elem);\r\n }\r\n };\r\n\r\n vm.smallColumnWidth = 40;\r\n vm.columns = [{\r\n headerText: gettextCatalog.getString('FelkHetSzam') + '<br>(1-52)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: vm.smallColumnWidth\r\n },\r\n {\r\n field: 'HetSzam',\r\n headerText: gettextCatalog.getString('WeekNumber'),\r\n textAlign: 'center',\r\n width: 75,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FelkHetSzam',\r\n headerText: gettextCatalog.getString('PreparationWeekNumber'),\r\n textAlign: 'center',\r\n width: 75,\r\n type: 'number',\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 140\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('FelkIdJelleg') + '<br>(X)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'FelkIdJellTiszta',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoTiszta'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', padding: 0},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelkIdJellVegyes',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVegyes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelkIdJellVerseny',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVerseny'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss'},\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesSzam') + '<br>(0-21)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiEdzesSzamAlt',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamAltalanos'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false, min: 0, max: 21}},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzesSzamSpSpec',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamSportagSpecifikus'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false, min: 0, max: 21}},\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzesSzamOsszesen',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamOsszesen'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n readOnly: true\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiTerheles') + '<br>(X, 0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiTerhelesMagas',\r\n headerText: gettextCatalog.getString('HetiTerhelesMagas'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiTerhelesKozepes',\r\n headerText: gettextCatalog.getString('HetiTerhelesKozepes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiTerhelesAlacsony',\r\n headerText: gettextCatalog.getString('HetiTerhelesAlacsony'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesJell') + '<br>(X, 0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'HetiEdzMunkaTechnikai',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaTechnikai'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaKepFejl',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKepessegFejlesztes'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaKieg',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKiegeszito'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'HetiEdzMunkaEgyeb',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaEgyeb'),\r\n textAlign: 'center',\r\n width: vm.smallColumnWidth,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNumX,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Felmeresek') + '<br>(0-9)',\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'FelmeresekAlt',\r\n headerText: gettextCatalog.getString('GeneralSurveys'),\r\n textAlign: 'center',\r\n width: 45,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNum,\r\n allowEditing: vm.editable\r\n },\r\n {\r\n field: 'FelmeresekSpSpec',\r\n headerText: gettextCatalog.getString('SportagSpecifikusFelmeresek'),\r\n textAlign: 'center',\r\n width: 45,\r\n customAttributes: {class: 'orientationcss', id: 'annualseason'},\r\n edit: vm.tableEditorTemplateNum,\r\n allowEditing: vm.editable\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edzotaborozas'),\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'EdzTabIdopont',\r\n headerText: gettextCatalog.getString('EdzotaborozasIdopont'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n width: 90,\r\n customAttributes: {id: 'annualseason'}\r\n },\r\n {\r\n field: 'EdzTabHely',\r\n headerText: gettextCatalog.getString('EdzotaborozasHely'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 150\r\n },\r\n {\r\n field: 'EdzTabLetszam',\r\n headerText: gettextCatalog.getString('EdzotaborozasLetszam'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 80\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n columns: [{\r\n field: 'Verseny',\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n allowEditing: vm.editable,\r\n customAttributes: {id: 'annualseason'},\r\n width: 100\r\n }]\r\n }\r\n ];\r\n\r\n activate();\r\n\r\n var gridMaskEdit;\r\n var elem;\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['ExcelExport'],\r\n allowExcelExport: true,\r\n height: 325,\r\n allowPdfExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n cellSave: cellsave,\r\n cellEdit: cellEdit\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n vm.jumpedPage = '6 - ' + gettextCatalog.getString('YearlyTablePlan');\r\n vm.defaultJumpPage = '6 - ' + gettextCatalog.getString('YearlyTablePlan');\r\n $q.all([paramHelper.getParams([], ['AnnualSeasonPlanReport.Id']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR2'),\r\n authenticationService.getRight('UJEVVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTEVVERST')\r\n ])\r\n .then(function (results) {\r\n {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.EVVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR2 = results[6];\r\n vm.UJEVVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTEVVERST = results[9];\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['AnnualSeasonPlanReport.Id'] && results[0]['AnnualSeasonPlanReport.Id'] !== -1) {\r\n vm.annualSeasonPlanReportId = results[0]['AnnualSeasonPlanReport.Id'];\r\n paramHelper.removeParam('AnnualSeasonPlanReport.Id');\r\n dataservice.annualSeasonPlanReportSelectById(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.head = data;\r\n vm.egyeni = data.Egyeni;\r\n if (data.EdzoLezarta) {\r\n vm.editable = false;\r\n vm.disable = true;\r\n } else {\r\n vm.editable = true;\r\n vm.disable = false;\r\n }\r\n vm.closed = (data.SzakosztalyvezetoJovahagyta == null || data.SzakosztalyvezetoJovahagyta === true) && !vm.EVVERSTALAIR1;\r\n\r\n dataservice.annualSeasponPlanTableListSelect(vm.annualSeasonPlanReportId)\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n if (vm.data.length === 0) {\r\n //megkeressük az első hétfőt augusztusban\r\n var datum = new Date(vm.head.ErvenyessegTol);\r\n while (datum.getDay() > 1 || datum.getDay() === 0) {\r\n datum.setDate(datum.getDate() + 1);\r\n }\r\n for (var i = 1; i <= 52; i++) {\r\n var datumstr = vm.months[datum.getMonth()] + '.' + datum.getDate() + '. - ';\r\n //vasárnap\r\n datum.setDate(datum.getDate() + 6);\r\n datumstr += vm.months[datum.getMonth()] + '.' + datum.getDate() + '.';\r\n //hétfő\r\n datum.setDate(datum.getDate() + 1);\r\n var obj = {\r\n Datum: datumstr,\r\n EdzTabHely: '',\r\n EdzTabIdopont: '',\r\n EdzTabLetszam: '',\r\n FelkHetSzam: '',\r\n FelkIdJellTiszta: '',\r\n FelkIdJellVegyes: '',\r\n FelkIdJellVerseny: '',\r\n FelmeresekAlt: '',\r\n FelmeresekSpSpec: '',\r\n HetiEdzesSzamAlt: '',\r\n HetiEdzesSzamOsszesen: '',\r\n HetiEdzesSzamSpSpec: '',\r\n HetiEdzMunkaEgyeb: '',\r\n HetiEdzMunkaKepFejl: '',\r\n HetiEdzMunkaKieg: '',\r\n HetiEdzMunkaTechnikai: '',\r\n HetiTerhelesAlacsony: '',\r\n HetiTerhelesKozepes: '',\r\n HetiTerhelesMagas: '',\r\n HetSzam: i,\r\n IdVersenyeztetesiTervFej: vm.annualSeasonPlanReportId,\r\n Verseny: '',\r\n Id: -1 * i\r\n };\r\n vm.data.push(obj);\r\n }\r\n }\r\n });\r\n });\r\n } else {\r\n $rootScope.back();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function jumpPageDataBound() {\r\n angular.element('#maKorabbi').ejDropDownList('selectItemByValue', vm.defaultJumpPage);\r\n vm.selectedJumpPage = vm.defaultJumpPage;\r\n }\r\n\r\n function jumpPageSelect(args) {\r\n vm.selectedJumpPage = args.value;\r\n var sorszam = vm.selectedJumpPage.split('-')[0];\r\n if (sorszam === '6 ') {\r\n return;\r\n }\r\n\r\n if (vm.editable) {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveCompleted');\r\n });\r\n });\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId}]);\r\n switch (sorszam) {\r\n case '1 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n break;\r\n case '2 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage2');\r\n break;\r\n case '3 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage3');\r\n break;\r\n case '4 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage4');\r\n break;\r\n case '5 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n break;\r\n case '6 ':\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage6');\r\n break;\r\n }\r\n }, 100);\r\n }\r\n\r\n function goToPreviousPage() {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head).then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data).then(function () {\r\n paramHelper.setParams([{\r\n 'AnnualSeasonPlanReport.Id': vm.annualSeasonPlanReportId\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage5');\r\n });\r\n });\r\n }\r\n\r\n function gotoMainPage() {\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function savePlan() {\r\n grid.endEdit();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n dataservice.saveAnnualSeasonPlanTable(vm.data)\r\n .then(function () {\r\n log.successMsg('SaveSuccessed');\r\n });\r\n });\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.head.SzakosztalyvezetoJovahagytaId === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.head.SzakosztalyvezetoJovahagytaId)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function print() {\r\n $q.all([getAccepterCoachById()])\r\n .then(function (results) {\r\n vm.reportParameters = {\r\n Szakosztaly: vm.head.SzakosztalyNeve,\r\n Korcsoport: vm.head.KorosztalyNeve,\r\n Edzo: vm.head.EdzoNeve,\r\n Mobil: vm.head.EdzoMobil === undefined ? '' : vm.head.EdzoMobil,\r\n Email: vm.head.EdzoEmail === undefined ? '' : vm.head.EdzoEmail,\r\n FejId: vm.head.Id,\r\n Jovahagyta: results[0],\r\n Keszitette: vm.head.EdzoNeve,\r\n techKepzes: ''\r\n };\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n });\r\n }\r\n\r\n function refreshCompetition() {\r\n dataservice.annualSeasonPlanCompetitionPlansAndObjectivesSelect(vm.annualSeasonPlanReportId)\r\n .then(function (args) {\r\n var dt = new Date(vm.head.ErvenyessegTol);\r\n var di = new Date(dt);\r\n di.setDate(dt.getDate() + 7);\r\n grid.endEdit();\r\n for (var j = 0; j < grid.getRows().length; j++) {\r\n for (var i = 0; i < args.itemsList.length; i++) {\r\n var esDate = new Date((args.itemsList[i].EsemenyIdopont2).replace('. ', '-').replace('. ', '-').replace('.', ''));\r\n if (esDate >= dt && esDate < di) {\r\n var row = grid.getRowByIndex(j);\r\n vm.data[j]['Verseny'] += '; ' + args.itemsList[i].EsemenyNeve;\r\n }\r\n }\r\n dt = new Date(di);\r\n di.setDate(dt.getDate() + 7);\r\n }\r\n grid.dataSource = vm.data;\r\n // grid.refresh();\r\n });\r\n }\r\n\r\n function closePlan() {\r\n vm.head.EdzoLezarta = true;\r\n vm.head.EdzoLezartaDatum = new Date().toDateString();\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n if (!vm.hasErrorAtSave) {\r\n vm.editable = false;\r\n }\r\n });\r\n }\r\n\r\n function rejectPlan() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectAttendance() {\r\n if (vm.rejectAttendanceText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\r\\n' + gettextCatalog.getString('The') + ' ' + vm.head.SzakosztalyNeve + ' - ' +\r\n vm.head.KorosztalyNeve + ' ' + new Date(vm.head.ErvenyessegTol).getFullYear() + '/' + new Date(vm.head.ErvenyessegIg).getFullYear() +\r\n ' ' + gettextCatalog.getString('AnnualSeasonPlanReportRejected') + '\\r\\n' + gettextCatalog.getString('Cause') + vm.rejectAttendanceText;\r\n vm.head.EdzoLezarta = false;\r\n vm.head.EdzoAlairtaDatum = undefined;\r\n vm.head.SzakosztalyVezetoJovahagyva = undefined;\r\n vm.head.SzakosztalyVezetoJovahagytaId = undefined;\r\n vm.head.SzakosztalyVezetoJovahagyta = false;\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n if (!vm.hasErrorAtSave) {\r\n dataservice.messageSave(uzi, [vm.head.IdEdzo], vm.head.IdSzakosztaly).then(function () {\r\n vm.editable = true;\r\n });\r\n }\r\n });\r\n }\r\n\r\n function acceptPlan() {\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\r\\n' + gettextCatalog.getString('The') + ' ' + vm.head.SzakosztalyNeve + ' - ' +\r\n vm.head.KorosztalyNeve + ' ' + new Date(vm.head.ErvenyessegTol).getFullYear() + '/' + new Date(vm.head.ErvenyessegIg).getFullYear() +\r\n ' ' + gettextCatalog.getString('AnnualSeasonPlanReportAccepted');\r\n dataservice.messageSave(uzi, [vm.head.IdEdzo], vm.head.IdSzakosztaly).then(function () {\r\n vm.head.SzakosztalyvezetoJovahagyta = true;\r\n vm.head.SzakosztalyvezetoJovahagyva = new Date();\r\n vm.head.SzakosztalyvezetoJovahagytaId = authenticationService.getAuthData().id;\r\n dataservice.saveAnnualSeasonPlanHead(vm.head)\r\n .then(function () {\r\n log.successMsg('AnnualSeasonPlanAccepted');\r\n });\r\n });\r\n }\r\n\r\n function cellsave(args) {\r\n if (args.columnName === 'HetiEdzesSzamSpSpec') {\r\n var alt = args.rowData.HetiEdzesSzamAlt;\r\n if (alt === undefined || alt == null || (alt.trim && alt.trim() === '')) {\r\n alt = 0;\r\n }\r\n var sp = args.value;\r\n if (sp === undefined || sp == null || (sp.trim && sp.trim() === '')) {\r\n sp = 0;\r\n }\r\n alt = checkNumberInterval(alt, 0, 21);\r\n sp = checkNumberInterval(sp, 0, 21);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamAlt'] = parseInt(alt);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamSpSpec'] = parseInt(sp);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamOsszesen'] = (parseInt(alt) + parseInt(sp));\r\n grid.refresh();\r\n } else if (args.columnName === 'HetiEdzesSzamAlt') {\r\n var sp = args.rowData.HetiEdzesSzamSpSpec;\r\n if (sp === undefined || sp == null || (sp.trim && sp.trim() === '')) {\r\n sp = 0;\r\n }\r\n var alt = args.value;\r\n if (alt === undefined || alt == null || (alt.trim && alt.trim() === '')) {\r\n alt = 0;\r\n }\r\n alt = checkNumberInterval(alt, 0, 21);\r\n sp = checkNumberInterval(sp, 0, 21);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamAlt'] = parseInt(alt);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamSpSpec'] = parseInt(sp);\r\n vm.data[args.rowData.HetSzam - 1]['HetiEdzesSzamOsszesen'] = (parseInt(alt) + parseInt(sp));\r\n grid.refresh();\r\n } else {\r\n vm.data[args.rowData.HetSzam - 1][args.columnName] = args.value;\r\n // grid.refresh();\r\n }\r\n }\r\n\r\n function checkNumberInterval(number, min, max) {\r\n if (number > max) {\r\n return max;\r\n }\r\n if (number < min) {\r\n return min;\r\n }\r\n return number;\r\n }\r\n\r\n function cellEdit(args) {\r\n if (args.columnName === 'HetiEdzesSzamOsszesen') {\r\n args.cancel = true;\r\n return;\r\n }\r\n if (args.columnName === 'FelkHetSzam') {\r\n var ssz = 1;\r\n for (var j = args.rowData.HetSzam; j <= 52; j++) {\r\n vm.data[j - 1]['FelkHetSzam'] = ssz++;\r\n }\r\n ssz = 52;\r\n for (var j = args.rowData.HetSzam - 1; j > 0; j--) {\r\n vm.data[j - 1]['FelkHetSzam'] = ssz--;\r\n }\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellTiszta') {\r\n if (args.rowData['FelkIdJellTiszta'] === 'x' || args.rowData['FelkIdJellTiszta'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellVegyes') {\r\n if (args.rowData['FelkIdJellVegyes'] === 'x' || args.rowData['FelkIdJellVegyes'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n } else if (args.columnName === 'FelkIdJellVerseny') {\r\n if (args.rowData['FelkIdJellVerseny'] === 'x' || args.rowData['FelkIdJellVerseny'] === 'X') {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = '';\r\n } else {\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVerseny'] = 'X';\r\n }\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellTiszta'] = '';\r\n vm.data[args.rowData['HetSzam'] - 1]['FelkIdJellVegyes'] = '';\r\n grid.endEdit();\r\n args.cancel = true;\r\n }\r\n /*else if (args.columnName === 'HetiTerhelesMagas') {\r\n if (args.rowData['HetiTerhelesMagas'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesMagas', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesMagas', 'X');\r\n }\r\n } else if (args.columnName === 'HetiTerhelesKozepes') {\r\n if (args.rowData['HetiTerhelesKozepes'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesKozepes', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesKozepes', 'X');\r\n }\r\n } else if (args.columnName === 'HetiTerhelesAlacsony') {\r\n if (args.rowData['HetiTerhelesAlacsony'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesAlacsony', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiTerhelesAlacsony', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaTechnikai') {\r\n if (args.rowData['HetiEdzMunkaTechnikai'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaTechnikai', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaTechnikai', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaKepFejl') {\r\n if (args.rowData['HetiEdzMunkaKepFejl'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKepFejl', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKepFejl', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaKieg') {\r\n if (args.rowData['HetiEdzMunkaKieg'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKieg', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaKieg', 'X');\r\n }\r\n } else if (args.columnName === 'HetiEdzMunkaEgyeb') {\r\n if (args.rowData['HetiEdzMunkaEgyeb'] === 'X') {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaEgyeb', '');\r\n } else {\r\n grid.setCellValue(args.rowData['HetSzam'] - 1, 'HetiEdzMunkaEgyeb', 'X');\r\n }\r\n }*/\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.annualSeasonPlan.annualSeasonPlanReportPage6')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.annualSeasonPlan.annualSeasonPlanReportPage6',\r\n config: {\r\n url: '/annualSeasonPlanReportPage6',\r\n templateUrl: 'app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.html',\r\n controller: 'AnnualSeasonPlanReportPage6Controller',\r\n controllerAs: 'vm',\r\n title: 'AnnualSeasonPlan'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.assetManagement')\r\n .controller('AssetManagementController', AssetManagementController);\r\n\r\n function AssetManagementController($q, paramHelper, gettextCatalog, $state, dataservice, authenticationService, $rootScope, $scope, log, $timeout, $filter) {\r\n $rootScope.title = gettextCatalog.getString('AssetManagement');\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.userid = authenticationService.getAuthData().id;\r\n vm.groupList = [];\r\n vm.groupId = undefined;\r\n vm.dropdownDataBound = dropdownDataBound;\r\n vm.groupSelect = groupSelect;\r\n vm.athleteSelect = athleteSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.Issue = Issue;\r\n vm.choosen = -1;\r\n vm.typeSelected = false;\r\n\r\n vm.filter = 'issuable';\r\n vm.types = [];\r\n vm.assets = [];\r\n vm.athletes = [];\r\n vm.coaches = [];\r\n vm.selectedAssets = [];\r\n vm.athletecoachList = [\r\n {value: 'athlete', text: gettextCatalog.getString('Athlete')},\r\n {value: 'coach', text: gettextCatalog.getString('User')}\r\n ];\r\n vm.assetFilterList = [\r\n {value: 'issuable', text: gettextCatalog.getString('IssuableOnly')},\r\n {value: 'issued', text: gettextCatalog.getString('IssuedOnly')},\r\n {value: 'all', text: gettextCatalog.getString('All')},\r\n {value: 'active', text: gettextCatalog.getString('ActiveOnly')},\r\n {value: 'deleted', text: gettextCatalog.getString('DeletedOnly')}\r\n ];\r\n vm.assetTypeColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 60, visible: false},\r\n {field: 'TipusId', visible: false, isPrimaryKey: true},\r\n {field: 'TipusNev', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 125},\r\n {field: 'aktivDarab', headerText: gettextCatalog.getString('ActiveItem'), textAlign: 'center', width: 125},\r\n {field: 'inaktivDarab', headerText: gettextCatalog.getString('InactiveItem'), textAlign: 'center', width: 125},\r\n {field: 'szabadDarab', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.assetColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 60},\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 175},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 175},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 100},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 100},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 100},\r\n {field: 'Szabad', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', displayAsCheckBox: true, width: 150},\r\n {field: 'deleted', headerText: gettextCatalog.getString('Deleted'), textAlign: 'center', displayAsCheckBox: true, width: 150},\r\n {field: 'NalaVan', headerText: gettextCatalog.getString('WhoHasIt'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.athleteColumns = [\r\n {field: 'SportoloId', visible: false, isPrimaryKey: true},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center'},\r\n {field: 'Section', headerText: gettextCatalog.getString('Section'), textAlign: 'center'},\r\n {field: 'AgeGroup', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'}\r\n ];\r\n\r\n vm.coachColumns = [\r\n {field: 'EdzoId', visible: false, isPrimaryKey: true},\r\n {field: 'EdzoNev', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center'},\r\n {field: 'Section', headerText: gettextCatalog.getString('Section'), textAlign: 'center'},\r\n {field: 'AgeGroup', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'}\r\n ];\r\n\r\n vm.AddAssetType = AddAssetType;\r\n vm.EditAssetType = EditAssetType;\r\n vm.DeleteAssetType = DeleteAssetType;\r\n\r\n vm.AddAsset = AddAsset;\r\n vm.EditAsset = EditAsset;\r\n vm.DeleteAsset = DeleteAsset;\r\n vm.UndeleteAsset = UndeleteAsset;\r\n\r\n vm.filterSelect = filterSelect;\r\n\r\n vm.SelectAll = SelectAll;\r\n vm.clearSelection = clearSelection;\r\n\r\n vm.IssuePopup = IssuePopup;\r\n vm.TakeBack = TakeBack;\r\n vm.issueToSelect = issueToSelect;\r\n\r\n vm.ESZKNYILVMEGT = false;\r\n vm.ESZKNYILVMOD = false;\r\n vm.ESZKMOZG = false;\r\n vm.AddAssetTypeEnabled = false;\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n vm.AddAssetEnabled = false;\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n vm.issueToAthlete = false;\r\n vm.issueToCoach = false;\r\n vm.chooseEnabled = false;\r\n\r\n var TypeGrid2 = null;\r\n var AssetGrid2 = null;\r\n var AthleteGrid2 = null;\r\n var CoachGrid2 = null;\r\n\r\n CreateTypeGrid();\r\n CreateAssetGrid();\r\n CreateAthleteGrid();\r\n CreateCoachGrid();\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT'), authenticationService.getRight('ESZKNYILVMOD'), authenticationService.getRight('ESZKMOZG')]).then(function (data) {\r\n $timeout(function () {\r\n vm.ESZKNYILVMEGT = data[0];\r\n vm.ESZKNYILVMOD = data[1];\r\n vm.ESZKMOZG = data[2];\r\n if (vm.ESZKNYILVMEGT) {\r\n GridRefresh();\r\n if (vm.ESZKNYILVMOD) {\r\n vm.AddAssetTypeEnabled = true;\r\n }\r\n } else {\r\n log.permissionError(true);\r\n }\r\n }, 100);\r\n });\r\n }\r\n\r\n function CreateAthleteGrid() {\r\n AthleteGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.athletes,\r\n columns: vm.athleteColumns,\r\n allowPaging: true,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n athleteSelect(args);\r\n }\r\n });\r\n AthleteGrid2.appendTo('#AthleteGrid2');\r\n }\r\n\r\n function CreateCoachGrid() {\r\n CoachGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.coaches,\r\n columns: vm.coachColumns,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n coachSelect(args);\r\n }\r\n });\r\n CoachGrid2.appendTo('#CoachGrid2');\r\n }\r\n\r\n function CreateTypeGrid() {\r\n TypeGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.types,\r\n columns: vm.assetTypeColumns,\r\n allowPaging: true,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n toolbar: ['Search'],\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (args) {\r\n console.log('CreateTypeGrid rowSelected ', args);\r\n assetTypeSelect(args);\r\n vm.typeSelected = true;\r\n },\r\n rowDeselected: function (arg) {\r\n console.log('CreateTypeGrid rowDeselected ', arg);\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n assetTypeSelect(null);\r\n vm.typeSelected = false;\r\n $scope.$apply();\r\n },\r\n rowSelecting: function () {\r\n TypeGrid2.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, TypeGrid2);\r\n }\r\n });\r\n TypeGrid2.appendTo('#TypeGrid2');\r\n }\r\n\r\n function CreateAssetGrid() {\r\n AssetGrid2 = new ej2.grids.Grid({\r\n dataSource: vm.assets,\r\n columns: vm.assetColumns,\r\n toolbar: ['Search'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowSelected: function () {\r\n assetSelectOrDeselect();\r\n },\r\n rowDeselected: function () {\r\n assetSelectOrDeselect();\r\n }\r\n });\r\n AssetGrid2.appendTo('#AssetGrid2');\r\n }\r\n\r\n // ESZKÖZ TÍPUSOK\r\n function AddAssetType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateAssetType'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n } else {\r\n dataservice.AssetManager({TipusId: -1, TipusNev: inputValue.value}).then(function (response) {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(response.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditAssetType() {\r\n swal({\r\n title: gettextCatalog.getString('EditAssetType'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.editype.TipusNev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n } else {\r\n dataservice.AssetManager({TipusId: vm.editype.TipusId, TipusNev: inputValue.value}).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteAssetType() {\r\n var warningText = '';\r\n if (vm.assets.length > 0) {\r\n log.errorMsg(gettextCatalog.getString('Only empty asset types can be deleted.'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected asset type?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this asset type'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.AssetManager({TipusId: vm.editype.TipusId, TipusTorles: true}).then(function () {\r\n vm.addNewSubType = false;\r\n GridRefresh();\r\n });\r\n }\r\n });\r\n }\r\n\r\n // ESZKÖZÖK\r\n function AddAsset() {\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras') + ' (50 karakter)', value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar') + ' (Ft.)', value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: () => {\r\n vm.newAsset = {};\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = vm.editype.TipusId;\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n\r\n return new Promise((resolve) => {\r\n if (!vm.newAsset.Megnevezes && vm.newAsset.Megnevezes.length == 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n if (vm.newAsset.Leiras.length > 50) {\r\n swal.showValidationError(gettextCatalog.getString('AssetDescTooLong'));\r\n }\r\n if (isNaN(vm.newAsset.Ar)) {\r\n swal.showValidationError(gettextCatalog.getString('AssetPriceFormat'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.AssetManager(vm.newAsset).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n swal.close();\r\n }\r\n });\r\n }\r\n\r\n function EditAsset() {\r\n if (getSelectedAssetIds().length != 1) {\r\n log.errorMsg(gettextCatalog.getString('MultipleAssetsCannotBeEditedAtOnce'));\r\n return;\r\n }\r\n console.log('EDIT ASSET vm.editAsset', vm.editAsset);\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: vm.editAsset.Megnevezes},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras') + ' (50 karakter)', value: vm.editAsset.Leiras},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: vm.editAsset.Azonosito},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: vm.editAsset.Meret},\r\n {\r\n id: 'Ar',\r\n text: gettextCatalog.getString('Ar') + ' (Ft.)',\r\n value: vm.editAsset.Ar ? vm.editAsset.Ar.toString() : ''\r\n },\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', dd: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('EditAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.editAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.editAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.editAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.editAsset.Meret = document.getElementById('Meret').value;\r\n vm.editAsset.Ar = document.getElementById('Ar').value;\r\n if (vm.editAsset.Megnevezes && vm.editAsset.Megnevezes.length > 0) {\r\n dataservice.AssetManager(vm.editAsset).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteMainTypeEnabled = false;\r\n GridRefresh(vm.editAsset.TipusId);\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n }\r\n });\r\n angular.element('#DropDownSwal').ejDropDownList({\r\n dataSource: vm.types,\r\n select: function (arg) {\r\n vm.editAsset.TipusId = arg.value;\r\n },\r\n value: vm.editAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function DeleteAsset() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected asset?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this asset'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteUndeleteAssets({\r\n action: 'delete',\r\n assetList: getSelectedAssetIds()\r\n }).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function UndeleteAsset() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to undelete the selected asset?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, undelete this asset'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteUndeleteAssets({\r\n action: 'undelete',\r\n assetList: getSelectedAssetIds()\r\n }).then(function () {\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n GridRefresh(vm.editype.TipusId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function GridRefresh(tipusId) {\r\n console.log('GridRefresh');\r\n clearSelection();\r\n vm.EditAssetTypeEnabled = false;\r\n vm.DeleteAssetTypeEnabled = false;\r\n AssetGrid2.dataSource = vm.assets;\r\n AssetGrid2.refresh();\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n TypeGrid2.dataSource = vm.types;\r\n var index = $filter('getIndex')(vm.types, 'TipusId', tipusId);\r\n if (index !== false && index !== null && index >= 0) {\r\n $timeout(function () {\r\n TypeGrid2.selectRows([index]);\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n });\r\n }\r\n\r\n function assetTypeSelect(args) {\r\n log.infoMsg(gettextCatalog.getString('DetailsAreShownInTheGridBelow'));\r\n clearSelection();\r\n if (vm.ESZKNYILVMOD) {\r\n if (vm.filter != 'deleted') {\r\n vm.AddAssetEnabled = true;\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.EditAssetTypeEnabled = true;\r\n vm.DeleteAssetTypeEnabled = true;\r\n }\r\n }\r\n if (args == null) {\r\n vm.assets = [];\r\n AssetGrid2.dataSource = vm.assets;\r\n } else {\r\n vm.editype = args.data;\r\n console.log('vm.editype', vm.editype);\r\n getAssetsByType(args.data.TipusId, vm.filter);\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function assetSelectOrDeselect() {\r\n $timeout(function () {\r\n vm.selectedAssets = getSelectedAssets();\r\n console.log('vm.selectedAssets', vm.selectedAssets.length, vm.selectedAssets);\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n vm.EditAssetEnabled = false;\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n if (vm.selectedAssets.length == 1) {\r\n vm.editAsset = vm.selectedAssets[0];\r\n if (vm.ESZKNYILVMOD) {\r\n if (vm.filter != 'deleted') {\r\n vm.AddAssetEnabled = true;\r\n }\r\n if (vm.editAsset.Aktiv && vm.editAsset.Szabad) {\r\n console.log('vm.ESZKNYILVMOD', vm.ESZKNYILVMOD);\r\n vm.EditAssetEnabled = true;\r\n vm.DeleteAssetEnabled = true;\r\n }\r\n vm.UndeleteAssetEnabled = !vm.editAsset.Aktiv;\r\n }\r\n if (vm.ESZKMOZG) {\r\n vm.IssueEnabled = allIssuable();\r\n vm.TakeBackEnabled = allIssued();\r\n }\r\n } else if (vm.selectedAssets.length > 1) {\r\n vm.editAsset = null;\r\n vm.DeleteAssetEnabled = allIssuable();\r\n vm.UndeleteAssetEnabled = allDeleted();\r\n console.log('EZUISlefut');\r\n vm.EditAssetEnabled = false;\r\n if (vm.ESZKMOZG) {\r\n vm.IssueEnabled = allIssuable();\r\n vm.TakeBackEnabled = allIssued();\r\n }\r\n }\r\n }, 100);\r\n }\r\n\r\n // MINDEGYIK TÖRÖLT\r\n function allDeleted() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Aktiv == true) {\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n // MINDEGYIK SZABAD\r\n function allIssuable() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Szabad == false || asset.Aktiv == false) { // Ha valamelyik ki van adva, vagy törölt akkor return false\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n // MINDEGYIK KI VAN ADVA\r\n function allIssued() {\r\n var ret = true;\r\n vm.selectedAssets.forEach(function (asset) {\r\n if (asset.Szabad == true || asset.Aktiv == false) { // Ha valamelyik Nincs kiadva, vagy törölt akkor return false\r\n ret = false;\r\n }\r\n });\r\n return ret;\r\n }\r\n\r\n function getAssetsByType(TipusId) {\r\n clearSelection();\r\n dataservice.AssetsByType(TipusId, vm.filter).then(function (data) {\r\n vm.assets = data.data;\r\n AssetGrid2.dataSource = vm.assets;\r\n });\r\n }\r\n\r\n function filterSelect(arg) {\r\n console.log('filterSelect', arg);\r\n clearSelection();\r\n vm.filter = arg.value;\r\n vm.AddAssetEnabled = (vm.filter != 'deleted');\r\n vm.EditAssetEnabled = false;\r\n vm.DeleteAssetEnabled = false;\r\n vm.UndeleteAssetEnabled = false;\r\n if (vm.editype && vm.editype.TipusId > 0) {\r\n getAssetsByType(vm.editype.TipusId);\r\n }\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\">';\r\n arr.forEach(function (item) {\r\n HTMLtext += '<div class=\"row assetRow\">';\r\n if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '<label class=\"col-lg-6\">' + item.text + '</label>';\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"DropDownSwal\" ej-dropdownlist></input><br>';\r\n } else {\r\n HTMLtext += '<label class=\"col-lg-6\">' + item.text + '</label>';\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '<input type=\"text\" value=\"' + item.value + '\" id=\"' + item.id + '\"></input><br>';\r\n } else {\r\n HTMLtext += '<input type=\"text\" value=\"\" id=\"' + item.id + '\"></input><br>';\r\n }\r\n }\r\n HTMLtext += '</div>';\r\n });\r\n HTMLtext += '</div><br>';\r\n return HTMLtext;\r\n }\r\n\r\n function getSelectedAssets() {\r\n vm.selectedAssets = AssetGrid2.getSelectedRecords();\r\n return vm.selectedAssets;\r\n }\r\n\r\n function getSelectedAssetIds() {\r\n var selectedAssets = getSelectedAssets();\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function clearSelection() {\r\n vm.IssueEnabled = false;\r\n vm.TakeBackEnabled = false;\r\n AssetGrid2.clearSelection();\r\n }\r\n\r\n function SelectAll() {\r\n var indexes = [];\r\n for (var i = 0; i < vm.assets.length; i++) {\r\n indexes.push(i);\r\n }\r\n AssetGrid2.selectRows(indexes);\r\n }\r\n\r\n function IssuePopup() {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n }\r\n\r\n function TakeBack() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('TakeBackAssetComment'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n dataservice.AssetTakeBack(getSelectedAssetIds(), inputValue.value).then(function () {\r\n log.successMsg('TakenBackSuccessfully');\r\n getAssetsByType(vm.editype.TipusId);\r\n });\r\n });\r\n }\r\n\r\n function issueToSelect(arg) {\r\n vm.chooseEnabled = false;\r\n switch (arg.value) {\r\n case 'athlete':\r\n getSections(vm.userid);\r\n vm.issueToAthlete = true;\r\n vm.issueToCoach = false;\r\n vm.dropdownlabel = gettextCatalog.getString('Section');\r\n break;\r\n case 'coach':\r\n getUserGroups();\r\n vm.issueToAthlete = false;\r\n vm.issueToCoach = true;\r\n vm.dropdownlabel = gettextCatalog.getString('UserGroup');\r\n break;\r\n }\r\n }\r\n\r\n function getSections(userid) {\r\n dataservice.sectionDropDownList(userid).then(function (data) {\r\n vm.groupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getUserGroups() {\r\n dataservice.userGroupList().then(function (data) {\r\n vm.groupList = data.itemsList;\r\n });\r\n }\r\n\r\n function dropdownDataBound() {\r\n if (vm.groupList.length > 0) {\r\n vm.groupId = vm.groupList[0].value;\r\n }\r\n }\r\n\r\n function groupSelect(arg) {\r\n vm.chooseEnabled = false;\r\n vm.groupId = arg.value;\r\n if (vm.issueToAthlete) {\r\n AthletesInSection(arg.value);\r\n } else if (vm.issueToCoach) {\r\n UsersInGroup(arg.value);\r\n }\r\n }\r\n\r\n function athleteSelect(arg) {\r\n $timeout(function () {\r\n vm.chooseEnabled = true;\r\n vm.choosen = arg.data.SportoloId;\r\n }, 100);\r\n }\r\n\r\n function coachSelect(arg) {\r\n $timeout(function () {\r\n vm.chooseEnabled = true;\r\n vm.choosen = arg.data.EdzoId;\r\n }, 100);\r\n }\r\n\r\n function Issue() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('IssueAssetComment'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: false,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n var edzo = 0;\r\n var sportolo = 0;\r\n if (vm.issueToAthlete) {\r\n sportolo = vm.choosen;\r\n } else if (vm.issueToCoach) {\r\n edzo = vm.choosen;\r\n }\r\n dataservice.AssetIssue(getSelectedAssetIds(), edzo, sportolo, inputValue.value).then(function () {\r\n log.successMsg('IssuedSuccessfully');\r\n getAssetsByType(vm.editype.TipusId);\r\n });\r\n });\r\n }\r\n\r\n function AthletesInSection(section) {\r\n dataservice.AthletesInSection(section).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n AthleteGrid2.dataSource = vm.athletes;\r\n });\r\n }\r\n\r\n function UsersInGroup(usergroup) {\r\n dataservice.UsersInGroup(usergroup).then(function (data) {\r\n vm.coaches = data.itemsList;\r\n CoachGrid2.dataSource = vm.coaches;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.assetManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.assetManagement',\r\n config: {\r\n url: '/assetManagement',\r\n templateUrl: 'app/administration/assetManagement/assetManagement.html',\r\n controller: 'AssetManagementController',\r\n controllerAs: 'vm',\r\n title: 'AssetManagement',\r\n settings: {\r\n navId: 2132,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Eszköznyilvántartó',\r\n orderTitle_en: 'AssetManagement',\r\n parentId: 2,\r\n content: 'AssetManagement',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.awayBudgetPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan',\r\n config: {\r\n url: '/awayBudgetPlan',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanCreate')\r\n .controller('AwayBudgetPlanCreateController', AwayBudgetPlanCreateController);\r\n\r\n function AwayBudgetPlanCreateController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $timeout, $filter, $state) {\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanCreate');\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.tervId = -1;\r\n vm.tenyId = -1;\r\n vm.printOpened = false;\r\n vm.title = '';\r\n vm.subtitle = '';\r\n vm.data = {};\r\n vm.data.Id = 0;\r\n vm.currentUserId = authenticationService.getAuthData().id;\r\n vm.saveIsBusy = false;\r\n vm.forceDisableEdit = false; // Ha ez true, akkor nem lehet módosítani sehogy (olyan terv, amihez van tény)\r\n disableEverything();\r\n vm.SZAKOSZTVEZ = false;\r\n vm.GAZDASAGI = false;\r\n vm.TECHIGAZGATO = false;\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.allusers = [];\r\n\r\n vm.athleteList = [];\r\n vm.otherPersonName = '';\r\n vm.otherPersonYear = '';\r\n vm.sorszam = 1;\r\n vm.szint = 0;\r\n // Plans Grid\r\n vm.reportParameters = [];\r\n vm.busOwners = [];\r\n vm.busLists = [];\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 50},\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('PlanNumber'),\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: 80,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n width: 125,\r\n allowEditing: false,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'UtazasiKoltseg',\r\n headerText: gettextCatalog.getString('TravelCost'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Etkezes',\r\n headerText: gettextCatalog.getString('Meal'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szallas',\r\n headerText: gettextCatalog.getString('Accommodation'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevezesiDij',\r\n headerText: gettextCatalog.getString('RegistrationFee'),\r\n width: 120,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'KikuldetesiKoltseg',\r\n headerText: gettextCatalog.getString('SecondmentCost'),\r\n width: 150,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Egyeb',\r\n headerText: gettextCatalog.getString('Other'),\r\n width: 150,\r\n editType: 'numericedit',\r\n edit: {params: {decimals: 2, showSpinButton: false}},\r\n format: 'N2',\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n editSettings: {\r\n allowEditing: vm.allowEdit,\r\n allowDeleting: vm.allowEdit,\r\n allowSelection: vm.allowEdit,\r\n mode: 'Batch',\r\n showConfirmDialog: false\r\n },\r\n selectionSettings: {type: 'multiple', mode: 'Row'},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n cellSave: cellsave,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.athleteSelect = athleteSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.edzoSelect = edzoSelect;\r\n\r\n vm.addAthlete = addAthlete;\r\n vm.addAllAthlete = addAllAthlete;\r\n vm.addUser = addUser;\r\n vm.addOtherPersonName = addOtherPersonName;\r\n\r\n vm.travelCostDivide = travelCostDivide;\r\n vm.mealDivide = mealDivide;\r\n vm.accommodationDivide = accommodationDivide;\r\n vm.registrationFeeDivide = registrationFeeDivide;\r\n vm.secondmentCostDivide = secondmentCostDivide;\r\n vm.otherDivide = otherDivide;\r\n\r\n vm.UtazasiKoltsegOsszegChange = UtazasiKoltsegOsszegChange;\r\n vm.EtkezesOsszegChange = EtkezesOsszegChange;\r\n vm.SzallasOsszegChange = SzallasOsszegChange;\r\n vm.NevezesiOsszegChange = NevezesiOsszegChange;\r\n vm.KikuldetesiKoltsegOsszegChange = KikuldetesiKoltsegOsszegChange;\r\n vm.EgyebOsszegChange = EgyebOsszegChange;\r\n vm.excel = excel;\r\n\r\n vm.cellsave = cellsave;\r\n vm.ADMIN = false;\r\n vm.JOVIDEGENSZAK = false;\r\n vm.TORLIDEGENKOLTSTERV = false;\r\n vm.JOVIDEGENGAZD = false;\r\n vm.JOVIDEGENVEZ = false;\r\n vm.print = print;\r\n vm.finalize = finalize;\r\n vm.close = close;\r\n vm.open = open;\r\n vm.deleteSelected = deleteSelected;\r\n vm.openPlan = openPlan;\r\n vm.openFact = openFact;\r\n vm.deletePlan = deletePlan;\r\n\r\n vm.enableEdit = enableEdit;\r\n\r\n vm.save = save;\r\n vm.IWillAccept1 = IWillAccept1;\r\n vm.IWillAccept2 = IWillAccept2;\r\n vm.IWillAccept3 = IWillAccept3;\r\n vm.accept1 = accept1;\r\n vm.accept2 = accept2;\r\n vm.accept3 = accept3;\r\n vm.UndoAccept1 = UndoAccept1;\r\n vm.UndoAccept2 = UndoAccept2;\r\n vm.UndoAccept3 = UndoAccept3;\r\n\r\n vm.moreAgeGroups = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV'),\r\n authenticationService.getRight('MODIDEGENKOLTSTERV'),\r\n authenticationService.getRight('UJIDEGENKOLTSTERV'),\r\n authenticationService.getRight('JOVAHAGYIDEGENKOLTSTERV'),\r\n paramHelper.getParams([], ['awayBudgetPlan.planId', 'awayBudgetPlan.planSection', 'awayBudgetPlan.planAgeGroup']),\r\n getSections(),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('GAZDASAGI'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('JOVIDEGENSZAK'),\r\n authenticationService.getRight('JOVIDEGENGAZD'),\r\n authenticationService.getRight('JOVIDEGENVEZ'),\r\n authenticationService.getRight('TORLIDEGENKOLTSTERV'),\r\n authenticationService.getRight('VEGLIDEGENKOLTSTERV')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0] && results[1] && results[2]) {\r\n log.permissionError(true);\r\n }\r\n vm.MEGTIDEGENKOLTSTERV = results[0];\r\n vm.MODIDEGENKOLTSTERV = results[1];\r\n vm.UJIDEGENKOLTSTERV = results[2];\r\n vm.JOVAHAGYIDEGENKOLTSTERV = results[3];\r\n vm.SZAKOSZTVEZ = results[6];\r\n vm.GAZDASAGI = results[7];\r\n vm.TECHIGAZGATO = results[8];\r\n vm.ADMIN = (results[9] || results[13]); // Admin vagy Gazdasági\r\n vm.JOVIDEGENSZAK = results[10];\r\n vm.JOVIDEGENGAZD = results[11];\r\n vm.JOVIDEGENVEZ = results[12];\r\n vm.TORLIDEGENKOLTSTERV = results[13];\r\n vm.VEGLIDEGENKOLTSTERV = results[14];\r\n var tervId = results[4]['awayBudgetPlan.planId'];\r\n\r\n disableEverything();\r\n initAgeGroupDropDown();\r\n initAthleteDropDownMS();\r\n initUserDropDownMS();\r\n getBusOwners();\r\n getBuses();\r\n //getAllUsers();\r\n if (tervId && tervId > 0) {\r\n if (!vm.MODIDEGENKOLTSTERV) {\r\n $timeout(function () {\r\n vm.allowEdit = false;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n LoadPlan(tervId);\r\n } else {\r\n vm.title = gettextCatalog.getString('DetailedPlan');\r\n if (!vm.UJIDEGENKOLTSTERV) {\r\n log.permissionError(true);\r\n }\r\n vm.data.SzakosztalyId = (results[4]['awayBudgetPlan.planSection'] !== null && parseInt(results[4]['awayBudgetPlan.planSection']) > 0) ? results[4]['awayBudgetPlan.planSection'] : null;\r\n if (results[4]['awayBudgetPlan.planAgeGroup'] !== null && parseInt(results[4]['awayBudgetPlan.planAgeGroup']) > 0) {\r\n vm.data.KorosztalyId = results[4]['awayBudgetPlan.planAgeGroup'];\r\n } else {\r\n vm.data.KorosztalyId = null;\r\n }\r\n }\r\n });\r\n }\r\n\r\n function LoadPlan(Id) {\r\n disableEverything();\r\n dataservice.GetAwayBudgetPlan(Id).then(function (resp) {\r\n paramHelper.setParams([{'awayBudgetPlan.planId': Id}]);\r\n vm.szint = resp.Szint;\r\n if (!resp.Teny) {\r\n vm.terv = true;\r\n vm.teny = false;\r\n vm.tenyId = resp.TenyId;\r\n vm.forceDisableEdit = resp.retValue.Veglegesitve !== null;\r\n enableEdit(resp.retValue.Lezarva === null);\r\n }\r\n if (!resp.Terv) {\r\n vm.terv = false;\r\n vm.teny = true;\r\n vm.tervId = resp.TervId;\r\n vm.forceDisableEdit = false;\r\n enableEdit(resp.retValue.Lezarva === null);\r\n }\r\n vm.subtitle1 = resp.Jovahagyo1;\r\n vm.subtitle2 = resp.Jovahagyo2;\r\n vm.subtitle3 = resp.Jovahagyo3;\r\n // Megnyitáskor akkor van letiltva a szerkesztés ha: edző lezárta, vagy nem ugyanaz nyitja meg aki csinálta,\r\n // ÉS jóvá van hagyva valamilyen szinten && (vm.data.Jovahagyta1Datum || vm.data.Jovahagyta2Datum || vm.data.Jovahagyta3Datum) EZis kell ???\r\n if (resp.retValue.Lezarva || vm.data.EdzoId != vm.currentUserId) {\r\n enableEdit(false);\r\n }\r\n // Ha az edző sajátsa, vagy ADMIN\r\n if (resp.retValue.EdzoId == vm.currentUserId || vm.ADMIN || vm.SZAKOSZTVEZ) {\r\n if (resp.retValue.Lezarva) {\r\n vm.allowOpen = true;\r\n enableEdit(false);\r\n } else {\r\n vm.allowClose = true;\r\n enableEdit(true);\r\n }\r\n }\r\n if (resp.retValue.Vegleges) {\r\n vm.title = gettextCatalog.getString('DetailedFinal');\r\n } else {\r\n vm.title = gettextCatalog.getString('DetailedPlan');\r\n }\r\n if (resp.retValue.Sorszam > 0) {\r\n vm.title += ' - ' + gettextCatalog.getString('Number') + ': ' + resp.retValue.Sorszam;\r\n }\r\n vm.data = resp.retValue;\r\n vm.Terv = resp.Terv;\r\n vm.data.EdzoIdValue = resp.retValue.EdzoId;\r\n vm.allowFinalize = resp.Veglegesithet;\r\n vm.UserName = resp.EdzoNeve;\r\n vm.EdzoElerhetosege = resp.EdzoElerhetosege;\r\n grid.dataSource = resp.people;\r\n if (grid.dataSource.length > 0) {\r\n vm.sorszam = grid.dataSource[grid.dataSource.length - 1].Sorszam + 1;\r\n } else {\r\n vm.sorszam = 1;\r\n }\r\n setButtons();\r\n });\r\n }\r\n\r\n function disableEverything() {\r\n vm.allowEdit = true;\r\n vm.allowFinalize = false;\r\n vm.allowClose = false;\r\n vm.allowOpen = false;\r\n vm.allowIWillAccept1 = false;\r\n vm.allowIWillAccept2 = false;\r\n vm.allowIWillAccept3 = false;\r\n vm.allowAccept1 = false;\r\n vm.allowAccept2 = false;\r\n vm.allowAccept3 = false;\r\n vm.allowUndoAccept1 = false;\r\n vm.allowUndoAccept2 = false;\r\n vm.allowUndoAccept3 = false;\r\n vm.Accept1Enabled = false;\r\n vm.Accept2Enabled = false;\r\n vm.Accept3Enabled = false;\r\n vm.UndoAccept1Enabled = false;\r\n vm.UndoAccept2Enabled = false;\r\n vm.UndoAccept3Enabled = false;\r\n }\r\n\r\n function setButtons() {\r\n switch (vm.szint) {\r\n case 0:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = true;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n case 1:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.UndoAccept1Enabled = true;\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = true;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n case 2:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.UndoAccept2Enabled = true;\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.Accept3Enabled = true;\r\n }\r\n break;\r\n case 3:\r\n if (vm.JOVIDEGENSZAK) {\r\n vm.Accept1Enabled = false;\r\n }\r\n if (vm.JOVIDEGENGAZD) {\r\n vm.Accept2Enabled = false;\r\n }\r\n if (vm.JOVIDEGENVEZ) {\r\n vm.UndoAccept3Enabled = true;\r\n vm.Accept3Enabled = false;\r\n }\r\n break;\r\n }\r\n // Ha levan zárva edző által\r\n if (vm.data.Lezarva) {\r\n // Szakmai\r\n // ő az aki már jóvahagyta\r\n if (vm.currentUserId == vm.data.Jovahagyta1Id) {\r\n // és nem vonta vissza akkor visszavonhatja\r\n if (vm.data.Jovahagyta1Datum) {\r\n vm.allowUndoAccept1 = true;\r\n }\r\n //de visszavonta akkor Jóváhagyhatja újra\r\n else {\r\n vm.allowAccept1 = true;\r\n }\r\n }\r\n // ÉS még nem hagyta jóvá akkor kijelölheti magát jóváhagyónak\r\n if (!vm.data.Jovahagyta1Id) {\r\n vm.allowIWillAccept1 = true;\r\n }\r\n\r\n // Gazdasági\r\n if (vm.currentUserId == vm.data.Jovahagyta2Id) {\r\n if (vm.data.Jovahagyta2Datum) {\r\n vm.allowUndoAccept2 = true;\r\n } else {\r\n vm.allowAccept2 = true;\r\n }\r\n }\r\n if (!vm.data.Jovahagyta2Id) {\r\n vm.allowIWillAccept2 = true;\r\n }\r\n\r\n // Vezetői\r\n if (vm.currentUserId == vm.data.Jovahagyta3Id) {\r\n if (vm.data.Jovahagyta3Datum) {\r\n vm.allowUndoAccept3 = true;\r\n } else {\r\n vm.allowAccept3 = true;\r\n }\r\n }\r\n if (!vm.data.Jovahagyta3Id) {\r\n vm.allowIWillAccept3 = true;\r\n }\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.data.SzakosztalyId);\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.data.SzakosztalyId = args.value;\r\n vm.athleteList = [];\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n initAgeGroupDropDown();\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.data.KorosztalyId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.data.KorosztalyId = args.value;\r\n getAthleteList(args.value);\r\n getCoachList(args.value);\r\n }\r\n\r\n function getAthleteList(ageGroupId, AgeGroups) {\r\n if (!AgeGroups) {\r\n AgeGroups = [];\r\n }\r\n AgeGroups.push(ageGroupId);\r\n return dataservice.getIdegenbeliKoltsegvetesiTervSportoloList(vm.data.SzakosztalyId, AgeGroups)\r\n .then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n initAthleteDropDownMS();\r\n });\r\n }\r\n\r\n function getCoachList(ageGroupId) {\r\n return dataservice.getIdegenbeliKoltsegvetesiTervEdzoList(vm.data.SzakosztalyId, ageGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n initUserDropDownMS();\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.data.EdzoIdValue);\r\n }\r\n }\r\n\r\n // Ez a terv tulajdonosa\r\n function edzoSelect(args) {\r\n vm.data.EdzoId = args.value;\r\n vm.UserName = args.text;\r\n dataservice.getCoachContant(vm.data.EdzoId).then(function (response) {\r\n vm.EdzoElerhetosege = response.data;\r\n });\r\n }\r\n\r\n function athleteSelect(args) {\r\n vm.selectedAthlete = vm.athleteList[args.itemId];\r\n vm.selectedAthlete.index = args.itemId;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.selectedCoach = vm.coachList[args.itemId];\r\n vm.selectedCoach.index = args.itemId;\r\n }\r\n\r\n function addAthlete() {\r\n var selectedItems = $('#AthleteDropDownMS').data('ejDropDownList').getSelectedItem();\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n var index = $filter('getIndex')(vm.athleteList, 'value', Number(selectedItems[i].dataset.value));\r\n var existing = $filter('getIndex')(grid.dataSource, 'SportoloId', vm.athleteList[index].value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: vm.athleteList[index].value,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.athleteList[index].text,\r\n SzuletesiEv: vm.athleteList[index].szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n }\r\n angular.element('#AthleteDropDownMS').ejDropDownList('uncheckAll');\r\n grid.refresh();\r\n vm.selectedAthlete = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addAllAthlete() {\r\n if (vm.athleteList.length <= 0) {\r\n return;\r\n }\r\n vm.athleteList.forEach(function (t) {\r\n var existing = $filter('getIndex')(grid.dataSource, 'SportoloId', t.value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: t.value,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: t.text,\r\n SzuletesiEv: t.szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n });\r\n grid.refresh();\r\n vm.selectedAthlete = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addUser() {\r\n var selectedItems = $('#UserDropDownMS').data('ejDropDownList').getSelectedItem();\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n var index = $filter('getIndex')(vm.coachList, 'value', Number(selectedItems[i].dataset.value));\r\n var existing = $filter('getIndex')(grid.dataSource, 'FelhasznaloId', vm.coachList[index].value);\r\n if (existing === false) {\r\n grid.dataSource.push({\r\n SportoloId: null,\r\n FelhasznaloId: vm.coachList[index].value,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.coachList[index].text,\r\n SzuletesiEv: vm.coachList[index].szuletesiEv,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n }\r\n }\r\n angular.element('#UserDropDownMS').ejDropDownList('uncheckAll');\r\n grid.refresh();\r\n vm.selectedCoach = null;\r\n $scope.$apply();\r\n }\r\n\r\n function addOtherPersonName() {\r\n if (!vm.otherPersonName || !vm.otherPersonYear) {\r\n swal({\r\n title: gettextCatalog.getString('PersonNameOrPersonYearEmpty'),\r\n type: 'error',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n grid.dataSource.push({\r\n SportoloId: null,\r\n FelhasznaloId: null,\r\n Sorszam: vm.sorszam++,\r\n Nev: vm.otherPersonName,\r\n SzuletesiEv: vm.otherPersonYear,\r\n UtazasiKoltseg: 0,\r\n Etkezes: 0,\r\n Szallas: 0,\r\n NevezesiDij: 0,\r\n KikuldetesiKoltseg: 0,\r\n Egyeb: 0\r\n });\r\n vm.otherPersonName = '';\r\n vm.otherPersonYear = '';\r\n grid.refresh();\r\n $scope.$apply();\r\n }\r\n\r\n function ToFixedTwo(n) {\r\n return n;\r\n var f = parseFloat(n).toFixed(2);\r\n f = parseFloat(f).toLocaleString('en');\r\n f = f.replace(/,/g, ' ');\r\n return f;\r\n }\r\n\r\n function travelCostDivide() {\r\n var result = 0;\r\n if (vm.data.UtazasiKoltsegOsszeg && vm.data.UtazasiKoltsegOsszeg !== 0) {\r\n result = ToFixedTwo(vm.data.UtazasiKoltsegOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.UtazasiKoltseg = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function mealDivide() {\r\n var result = 0;\r\n if (vm.data.EtkezesOsszeg && vm.data.EtkezesOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.EtkezesOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Etkezes = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function accommodationDivide() {\r\n var result = 0;\r\n if (vm.data.SzallasOsszeg && vm.data.SzallasOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.SzallasOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Szallas = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function registrationFeeDivide() {\r\n var result = 0;\r\n if (vm.data.NevezesiOsszeg && vm.data.NevezesiOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.NevezesiOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.NevezesiDij = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function secondmentCostDivide() {\r\n var result = 0;\r\n if (vm.data.KikuldetesiKoltsegOsszeg && vm.data.KikuldetesiKoltsegOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.KikuldetesiKoltsegOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.KikuldetesiKoltseg = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function otherDivide() {\r\n var result = 0;\r\n if (vm.data.EgyebOsszeg && vm.data.EgyebOsszeg != 0) {\r\n result = ToFixedTwo(vm.data.EgyebOsszeg / grid.dataSource.length);\r\n }\r\n grid.dataSource.forEach(function (t) {\r\n t.Egyeb = result;\r\n });\r\n grid.refresh();\r\n }\r\n\r\n function UtazasiKoltsegOsszegChange(args) {\r\n vm.data.OsszesenOszeg = args.value + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function EtkezesOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + args.value + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function SzallasOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + args.value + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function NevezesiOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + args.value + vm.data.KikuldetesiKoltsegOsszeg + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function KikuldetesiKoltsegOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + args.value + vm.data.EgyebOsszeg;\r\n }\r\n\r\n function EgyebOsszegChange(args) {\r\n vm.data.OsszesenOszeg = vm.data.UtazasiKoltsegOsszeg + vm.data.EtkezesOsszeg + vm.data.SzallasOsszeg + vm.data.NevezesiOsszeg + vm.data.KikuldetesiKoltsegOsszeg + args.value;\r\n }\r\n\r\n function reCalculate(args, column, property) {\r\n return $q(function () {\r\n grid.dataSource[args.rowData.Sorszam - 1][column] = args.value;\r\n vm.data[property] = 0;\r\n grid.dataSource.forEach(function (t) {\r\n if (!isNaN(parseFloat(t[column]))) {\r\n vm.data[property] += parseFloat(t[column]);\r\n }\r\n });\r\n });\r\n }\r\n\r\n function cellsave(args) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Sorszam', 'equal', args.rowData.Sorszam)).then(function (result) {\r\n result.result[0][args.columnName] = args.value;\r\n grid.refresh();\r\n });\r\n\r\n if (args.columnName === 'UtazasiKoltseg') {\r\n args.cancel = true;\r\n reCalculate(args, 'UtazasiKoltseg', 'UtazasiKoltsegOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Etkezes') {\r\n args.cancel = true;\r\n reCalculate(args, 'Etkezes', 'EtkezesOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Szallas') {\r\n args.cancel = true;\r\n reCalculate(args, 'Szallas', 'SzallasOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'NevezesiDij') {\r\n args.cancel = true;\r\n reCalculate(args, 'NevezesiDij', 'NevezesiOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'KikuldetesiKoltseg') {\r\n args.cancel = true;\r\n reCalculate(args, 'KikuldetesiKoltseg', 'KikuldetesiKoltsegOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n if (args.columnName === 'Egyeb') {\r\n args.cancel = true;\r\n reCalculate(args, 'Egyeb', 'EgyebOsszeg').then(function () {\r\n args.cancel = false;\r\n });\r\n }\r\n\r\n args.cancel = false;\r\n $scope.$apply();\r\n }\r\n\r\n function save(arg) {\r\n if (vm.saveIsBusy) {\r\n log.warningMsg(gettextCatalog.getString('PleaseWaitWhileSaving'));\r\n return;\r\n }\r\n vm.saveIsBusy = true;\r\n if (vm.allowEdit) {\r\n grid.editModule.batchSave();\r\n }\r\n vm.data.people = grid.dataSource;\r\n if (arg && arg.target && arg.target.name === 'saveAwayBudgetPlan') {\r\n arg = 'save';\r\n }\r\n ['UtazasiKoltsegOsszeg', 'EtkezesOsszeg', 'SzallasOsszeg', 'NevezesiOsszeg', 'KikuldetesiKoltsegOsszeg', 'EgyebOsszeg']\r\n .forEach(function (f) {\r\n if (!vm.data.hasOwnProperty(f) || vm.data[f] === null || vm.data[f] === '' || isNaN(vm.data[f])) {\r\n vm.data[f] = 0;\r\n }\r\n });\r\n $timeout(function () {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n vm.saveIsBusy = false;\r\n return;\r\n }\r\n vm.data.BuszKiallasIdopontjaString = angular.element('#CompetitionDepartmentTime').data('ejDateTimePicker').getValue();\r\n vm.data.ActionCode = arg.toString();\r\n return dataservice.SaveAwayBudgetPlan(vm.data).then(function (response) {\r\n vm.data.Id = response.retValue;\r\n log.successMsg('SaveCompleted');\r\n switch (arg) {\r\n case 'save':\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n break;\r\n case 'print':\r\n vm.reportParameters = {\r\n Header: vm.title,\r\n Szakosztaly: angular.element('#sectionDropDown').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n Korosztaly: angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n Edzo: vm.UserName,\r\n EdzoElerhetosege: vm.EdzoElerhetosege == undefined ? ' ' : vm.EdzoElerhetosege,\r\n Tervadat: vm.data.Vegleges ? 'Végleges' : 'Tervadat',\r\n UtaslistaNev: vm.data.Vegleges ? 'Végleges utaslista' : 'Tervezett utaslista',\r\n Sorszam: vm.data.Sorszam == undefined ? ' ' : vm.data.Sorszam,\r\n FejId: vm.data.Id,\r\n Lezaras: vm.data.Lezarva ? vm.data.Lezarva : 'Még nincs lezárva',\r\n Jovahagyas1: vm.subtitle1 == undefined ? ' ' : vm.subtitle1,\r\n Jovahagyas2: vm.subtitle2 == undefined ? ' ' : vm.subtitle2,\r\n Jovahagyas3: vm.subtitle3 == undefined ? ' ' : vm.subtitle3,\r\n };\r\n if (vm.printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n vm.printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n vm.saveIsBusy = false;\r\n break;\r\n case 'excel':\r\n dataservice.KoltesegvetesiTervExcelExport(vm.data.Id).then(function (response) {\r\n var urlCreator = window.URL || window.webkitURL || window.mozURL || window.msURL;\r\n if (urlCreator) {\r\n var url = response.data;\r\n var a = document.createElement('a');\r\n document.body.appendChild(a);\r\n a.href = url;\r\n a.click();\r\n window.URL.revokeObjectURL(url);\r\n }\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 'finalize':\r\n console.log('vm.VEGLIDEGENKOLTSTERV', vm.VEGLIDEGENKOLTSTERV);\r\n if (!vm.VEGLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n vm.saveIsBusy = false;\r\n } else {\r\n dataservice.KoltesegvetesiTervVeglegesites(vm.data.Id).then(function (veglegesResponse) {\r\n log.infoMsg('Finalized');\r\n LoadPlan(veglegesResponse.data.id);\r\n vm.saveIsBusy = false;\r\n });\r\n }\r\n break;\r\n case 'close':\r\n dataservice.KoltesegvetesiTervLezaras(vm.data.Id, true).then(function (lezarasResponse) {\r\n log.infoMsg('Closed');\r\n vm.allowClose = false;\r\n LoadPlan(lezarasResponse.data.id);\r\n enableEdit(false);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 'open':\r\n dataservice.KoltesegvetesiTervLezaras(vm.data.Id, false).then(function (lezarasResponse) {\r\n log.infoMsg('ReOpened');\r\n vm.allowOpen = false;\r\n LoadPlan(lezarasResponse.data.id);\r\n enableEdit(true);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -1:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = true;\r\n vm.allowUndoAccept1 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 1:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 11:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept1 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -2:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = true;\r\n vm.allowUndoAccept2 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 2:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 22:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept2 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case -3:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = true;\r\n vm.allowUndoAccept3 = false;\r\n log.infoMsg('AcceptUndone');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 3:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = false;\r\n log.infoMsg('Approved');\r\n enableEdit(false);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n case 33:\r\n dataservice.KoltesegvetesiTervJovahagyas(vm.data.Id, arg).then(function () {\r\n vm.allowAccept3 = true;\r\n log.infoMsg('ApproverUserSelected');\r\n enableEdit(true);\r\n LoadPlan(vm.data.Id);\r\n vm.saveIsBusy = false;\r\n });\r\n break;\r\n }\r\n });\r\n }, 300);\r\n }\r\n\r\n function IWillAccept1() {\r\n if (!vm.JOVIDEGENSZAK) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(11);\r\n }\r\n\r\n function IWillAccept2() {\r\n if (!vm.JOVIDEGENGAZD) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(22);\r\n }\r\n\r\n function IWillAccept3() {\r\n if (!vm.JOVIDEGENVEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n save(33);\r\n }\r\n\r\n function excel() {\r\n save('excel');\r\n }\r\n\r\n function accept1() {\r\n save(1);\r\n }\r\n\r\n function accept2() {\r\n save(2);\r\n }\r\n\r\n function accept3() {\r\n save(3);\r\n }\r\n\r\n function UndoAccept1() {\r\n save(-1);\r\n }\r\n\r\n function UndoAccept2() {\r\n save(-2);\r\n }\r\n\r\n function UndoAccept3() {\r\n save(-3);\r\n }\r\n\r\n function close() {\r\n save('close');\r\n }\r\n\r\n function open() {\r\n save('open');\r\n }\r\n\r\n function finalize() {\r\n swal({\r\n title: gettextCatalog.getString('Away Budget Plan Finalize Warning!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save('finalize');\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n save('print');\r\n }\r\n\r\n function deleteSelected() {\r\n var selectedRecords = grid.getSelectedRecords();\r\n for (var i = selectedRecords.length - 1; i >= 0; i--) {\r\n var delIdx = $filter('getIndex')(grid.dataSource, 'Sorszam', selectedRecords[i].Sorszam);\r\n vm.data.UtazasiKoltsegOsszeg -= (!isNaN(selectedRecords[i].UtazasiKoltseg) && Number(selectedRecords[i].UtazasiKoltseg)) ? selectedRecords[i].UtazasiKoltseg : 0;\r\n vm.data.EtkezesOsszeg -= (!isNaN(selectedRecords[i].Etkezes) && Number(selectedRecords[i].Etkezes)) ? selectedRecords[i].Etkezes : 0;\r\n vm.data.SzallasOsszeg -= (!isNaN(selectedRecords[i].Szallas) && Number(selectedRecords[i].Szallas)) ? selectedRecords[i].Szallas : 0;\r\n vm.data.NevezesiOsszeg -= (!isNaN(selectedRecords[i].NevezesiDij) && Number(selectedRecords[i].NevezesiDij)) ? selectedRecords[i].NevezesiDij : 0;\r\n vm.data.KikuldetesiKoltsegOsszeg -= (!isNaN(selectedRecords[i].KikuldetesiKoltseg) && Number(selectedRecords[i].KikuldetesiKoltseg)) ? selectedRecords[i].KikuldetesiKoltseg : 0;\r\n vm.data.EgyebOsszeg -= (!isNaN(selectedRecords[i].Egyeb) && Number(selectedRecords[i].Egyeb)) ? selectedRecords[i].Egyeb : 0;\r\n grid.dataSource.splice(delIdx, 1);\r\n $scope.$apply();\r\n }\r\n if (selectedRecords) {\r\n $timeout(function () {\r\n vm.sorszam = 1;\r\n grid.dataSource.forEach(function (t) {\r\n t.Sorszam = vm.sorszam++;\r\n });\r\n grid.refresh();\r\n }, 333);\r\n }\r\n }\r\n\r\n function enableEdit(arg) {\r\n if (arg && vm.forceDisableEdit) {\r\n return;\r\n }\r\n vm.allowEdit = arg;\r\n grid.editSettings.allowEditing = arg;\r\n grid.editSettings.allowSelection = arg;\r\n grid.editSettings.allowDeleting = arg;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n $('#MoreAgeGroups').ejDropDownList({enabled: arg});\r\n $('#AthleteDropDownMS').ejDropDownList({enabled: arg});\r\n $('#UserDropDownMS').ejDropDownList({enabled: arg});\r\n }\r\n\r\n function openPlan() {\r\n // megkeresem a véglegesités évével és a tény sorszámával.\r\n LoadPlan(vm.tervId);\r\n }\r\n\r\n function openFact() {\r\n LoadPlan(vm.tenyId);\r\n }\r\n\r\n function initAgeGroupDropDown() {\r\n $('#MoreAgeGroups').ejDropDownList({\r\n dataSource: vm.ageGroupList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter,\r\n change: function (arg) {\r\n if (arg.isChecked) {\r\n if (arg.value == 0) {\r\n for (var a = 1; a < vm.ageGroupList.length; a++) {\r\n $('#MoreAgeGroups').ejDropDownList('unselectItemByValue', vm.ageGroupList[a].value);\r\n }\r\n } else {\r\n $('#MoreAgeGroups').ejDropDownList('unselectItemByValue', 0);\r\n }\r\n }\r\n var selectedItems = $('#MoreAgeGroups').data('ejDropDownList').getSelectedItem();\r\n var moreAgeGroups = [];\r\n for (var i = 0; i < selectedItems.length; i++) {\r\n moreAgeGroups.push(Number(selectedItems[i].dataset.value));\r\n }\r\n getAthleteList(vm.data.KorosztalyId, moreAgeGroups);\r\n }\r\n });\r\n }\r\n\r\n function initAthleteDropDownMS() {\r\n $('#AthleteDropDownMS').ejDropDownList({\r\n dataSource: vm.athleteList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter\r\n });\r\n }\r\n\r\n function initUserDropDownMS() {\r\n $('#UserDropDownMS').ejDropDownList({\r\n dataSource: vm.coachList,\r\n fields: {text: 'text'},\r\n showCheckbox: true,\r\n width: '100%',\r\n multiSelectMode: ej.MultiSelectMode.Delimiter\r\n });\r\n }\r\n\r\n function getBusOwners() {\r\n dataservice.IdegenKoltsegTervBuszTulaj().then(function (response) {\r\n vm.busOwners = response.data;\r\n });\r\n }\r\n\r\n function getBuses() {\r\n dataservice.IdegenKoltsegTervBusz().then(function (resp) {\r\n vm.busLists = resp.data;\r\n });\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.data.Id && vm.data.Id > 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected away budget Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteAwayBudgetPlan(vm.data.Id).then(function (res) {\r\n if (res.retValue) {\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanList');\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n }\r\n})\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan.awayBudgetPlanCreate',\r\n config: {\r\n url: '/awayBudgetPlanCreate',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.html',\r\n controller: 'AwayBudgetPlanCreateController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanCreate',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanList')\r\n .controller('AwayBudgetPlanListController', AwayBudgetPlanListController);\r\n\r\n function AwayBudgetPlanListController(log, $timeout, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Title\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanList');\r\n\r\n // Section DropDown\r\n vm.sectionList = [];\r\n vm.sectionId = 0;\r\n // Age Group DropDown\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n // Coach DropDown\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n // DatePicker\r\n vm.typeId = 0;\r\n vm.typeList = [\r\n {value: 0, text: gettextCatalog.getString('All')},\r\n {value: 1, text: gettextCatalog.getString('Plan')},\r\n {value: 2, text: gettextCatalog.getString('Fact')}\r\n ];\r\n\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateTo.setMonth(vm.dateTo.getMonth() + 1);\r\n\r\n // Checkbox\r\n vm.onlyStartDate = false;\r\n // Plans Grid\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n template: '#PlanOpenTemplate',\r\n width: 60\r\n },\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('PlanNumber'),\r\n textAlign: 'center',\r\n width: 80\r\n },\r\n {\r\n field: 'VersenyNeve',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'VersenyHelye',\r\n headerText: gettextCatalog.getString('CompetitionPlace'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'CompetitionStart',\r\n headerText: gettextCatalog.getString('CompetitionStart'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'CompetitionEnd',\r\n headerText: gettextCatalog.getString('CompetitionEnd'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Lezarva',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n },\r\n {\r\n field: 'Vegleges',\r\n headerText: gettextCatalog.getString('Final'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n },\r\n {\r\n field: 'Jovahagyva1',\r\n headerText: gettextCatalog.getString('ProfessionalApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 115\r\n },\r\n {\r\n field: 'Jovahagyva2',\r\n headerText: gettextCatalog.getString('EconomicApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 115\r\n },\r\n {\r\n field: 'Jovahagyva3',\r\n headerText: gettextCatalog.getString('LeaderApproved'),\r\n textAlign: 'center',\r\n type: 'boolean', displayAsCheckBox: true,\r\n width: 100\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n toolbar: ['Search'],\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.typeDataBound = typeDataBound;\r\n vm.typeSelect = typeSelect;\r\n\r\n vm.search = search;\r\n vm.openPlan = openPlan;\r\n vm.create = create;\r\n vm.delete = deletePlan;\r\n\r\n vm.selectedCoach = 0;\r\n vm.selectedSection = 0;\r\n vm.selectedAgeGroup = 0;\r\n vm.selectedType = 0;\r\n vm.selectedOnlyStartedDate = false;\r\n vm.selectedFromDate = vm.dateFrom;\r\n vm.selectedToDate = vm.dateTo;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV'),\r\n authenticationService.getRight('MODIDEGENKOLTSTERV'),\r\n authenticationService.getRight('UJIDEGENKOLTSTERV'),\r\n authenticationService.getRight('TORLIDEGENKOLTSTERV'),\r\n getSections(),\r\n paramHelper.getParams([], ['awayBudgetPlanList.edzoId', 'awayBudgetPlanList.szakosztalyId', 'awayBudgetPlanList.korosztalyId', 'awayBudgetPlanList.tipus', 'awayBudgetPlanList.csakKezdoDatum', 'awayBudgetPlanList.datumTol', 'awayBudgetPlanList.datumIg', 'awayBudgetPlanList.versenyHelye']),\r\n getCompetitionPlaces()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.MODIDEGENKOLTSTERV = results[1];\r\n vm.UJIDEGENKOLTSTERV = results[2];\r\n vm.TORLIDEGENKOLTSTERV = results[3];\r\n if (results[5]['awayBudgetPlanList.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[5]['awayBudgetPlanList.edzoId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[5]['awayBudgetPlanList.szakosztalyId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[5]['awayBudgetPlanList.korosztalyId'];\r\n }\r\n if (results[5]['awayBudgetPlanList.tipus'] !== undefined) {\r\n vm.selectedType = results[5]['awayBudgetPlanList.tipus'];\r\n }\r\n if (results[5]['awayBudgetPlanList.csakKezdoDatum'] !== undefined) {\r\n vm.selectedOnlyStartedDate = results[5]['awayBudgetPlanList.csakKezdoDatum'];\r\n }\r\n if (results[5]['awayBudgetPlanList.datumTol'] !== undefined) {\r\n vm.dateFrom = results[5]['awayBudgetPlanList.datumTol'];\r\n }\r\n if (results[5]['awayBudgetPlanList.datumIg'] !== undefined) {\r\n vm.dateTo = results[5]['awayBudgetPlanList.datumIg'];\r\n }\r\n if (results[5]['awayBudgetPlanList.versenyHelye'] !== undefined) {\r\n vm.competitionPlace = results[5]['awayBudgetPlanList.versenyHelye'];\r\n }\r\n\r\n if (vm.selectedOnlyStartedDate) {\r\n angular.element('#onlyStartDate').ejCheckBox({checked: vm.selectedOnlyStartedDate});\r\n }\r\n });\r\n }\r\n\r\n function getCompetitionPlaces() {\r\n dataservice.getCompetitionPlaces().then(function (data) {\r\n vm.competitionPlaceList = data.itemsList;\r\n });\r\n }\r\n\r\n function typeDataBound() {\r\n if (!vm.selectedType) {\r\n vm.selectedType = 0;\r\n }\r\n angular.element('#typeDropDown').ejDropDownList('selectItemByValue', vm.selectedType);\r\n }\r\n\r\n function typeSelect(args) {\r\n vm.typeId = args.value;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getCoachList();\r\n }\r\n\r\n // Section dropDownList function Get coach' list\r\n function getCoachList() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'awayBudgetPlanList.edzoId': vm.coachId},\r\n {'awayBudgetPlanList.szakosztalyId': vm.sectionId},\r\n {'awayBudgetPlanList.korosztalyId': vm.ageGroupId},\r\n {'awayBudgetPlanList.tipus': vm.typeId},\r\n {'awayBudgetPlanList.csakKezdoDatum': $('#onlyStartDate').ejCheckBox('isChecked')},\r\n {'awayBudgetPlanList.datumTol': vm.dateFrom},\r\n {'awayBudgetPlanList.datumIg': vm.dateTo},\r\n {'awayBudgetPlanList.versenyHelye': vm.competitionPlace}\r\n ]);\r\n\r\n return dataservice.getAwayBudgetPlanList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.dateFrom, vm.dateTo, vm.onlyStartDate, vm.typeId, vm.competitionPlace).then(function (data) {\r\n var planList = $filter('dateStringFilter')(data.itemsList, 'CompetitionEnd');\r\n grid.dataSource = $filter('dateStringFilter')(planList, 'CompetitionStart');\r\n });\r\n }\r\n\r\n function openPlan(planId) {\r\n paramHelper.setParams([{\r\n 'awayBudgetPlan.planId': planId,\r\n 'awayBudgetPlan.planSection': $('#sectionDropDown').ejDropDownList('getSelectedValue'),\r\n 'awayBudgetPlan.planAgeGroup': $('#ageGroupDropDown').ejDropDownList('getSelectedValue')\r\n }]);\r\n paramHelper.setParams([\r\n {'awayBudgetPlanList.edzoId': vm.coachId},\r\n {'awayBudgetPlanList.szakosztalyId': vm.sectionId},\r\n {'awayBudgetPlanList.korosztalyId': vm.ageGroupId},\r\n {'awayBudgetPlanList.tipus': vm.typeId},\r\n {'awayBudgetPlanList.csakKezdoDatum': $('#onlyStartDate').ejCheckBox('isChecked')},\r\n {'awayBudgetPlanList.datumTol': vm.dateFrom},\r\n {'awayBudgetPlanList.datumIg': vm.dateTo}\r\n ]);\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanCreate');\r\n }\r\n\r\n function create() {\r\n if (!vm.UJIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n openPlan(-1);\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLIDEGENKOLTSTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n var selected = $rootScope.getSelectedItems(grid);\r\n if (selected.length != 1) {\r\n log.errorMsg(gettextCatalog.getString('SelectAPlanToDelete'));\r\n } else if (selected.length == 1) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected away budget Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteAwayBudgetPlan(selected[0].Id).then(function () {\r\n search();\r\n log.infoMsg(gettextCatalog.getString('PlanDeleted'));\r\n });\r\n }\r\n }, function () {\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.awayBudgetPlan.awayBudgetPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.awayBudgetPlan.awayBudgetPlanList',\r\n config: {\r\n url: '/awayBudgetPlanList',\r\n templateUrl: 'app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.html',\r\n controller: 'AwayBudgetPlanListController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanList',\r\n settings: {\r\n navId: 2122,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Idegenbeli költségvetési terv lista',\r\n orderTitle_en: 'Away Budget Plan',\r\n parentId: 2,\r\n content: 'AwayBudgetPlanList',\r\n activatorPermission: ['\"MEGTIDEGENKOLTSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular .module('app.administration.competitiveMonthlyPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan',\r\n config: {\r\n url: '/competitiveMonthlyPlan',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList')\r\n .controller('CompetitiveMonthlyPlanListController', CompetitiveMonthlyPlanListController);\r\n\r\n function CompetitiveMonthlyPlanListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $filter, $timeout, $rootScope) {\r\n var vm = this;\r\n\r\n $rootScope.title = gettextCatalog.getString('CompetitiveMonthlyPlanList');\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [];\r\n\r\n vm.selectedCoach = undefined;\r\n vm.coachList = [];\r\n vm.selectedSection = undefined;\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.allowAddNew = {\r\n team: false,\r\n individual: false\r\n };\r\n vm.sectionList = [];\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n vm.refreshData = refreshData;\r\n\r\n vm.openText = gettextCatalog.getString('Open');\r\n\r\n // Public functions\r\n vm.coachChanged = coachChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToCompetitiveMonthlyPlan = goToCompetitiveMonthlyPlan;\r\n vm.goToNewCompetitiveMonthlyPlan = goToNewCompetitiveMonthlyPlan;\r\n vm.versernytervTorlese = versernytervTorlese;\r\n var coachId = -1;\r\n var sectionId = -1;\r\n var year = -1;\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n }, {\r\n field: 'Link',\r\n headerText: '',\r\n template: '#openDeleteColumnTemplate',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 80\r\n }, {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#coachColumnTemplate',\r\n width: 200\r\n }, {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n }, {\r\n field: 'Lezart',\r\n headerText: gettextCatalog.getString('Closed'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n displayAsCheckBox: true,\r\n type: 'boolean',\r\n width: 100\r\n }, {\r\n field: 'Elfogadott',\r\n headerText: gettextCatalog.getString('Accepted'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n displayAsCheckBox: true,\r\n type: 'boolean',\r\n width: 100\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Megjegyzes'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 200\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['competitiveMonthlyPlan.edzoId', 'competitiveMonthlyPlan.szakosztalyId', 'competitiveMonthlyPlan.korosztalyId', 'competitiveMonthlyPlan.year']),\r\n getCoaches(),\r\n authenticationService.getRight('UJHAVIVERST'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR2'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROSZT')\r\n ];\r\n\r\n return $q.all(promises).then(function (results) {\r\n angular.element('#maEdzo').ejDropDownList({\r\n dataSource: vm.coachList\r\n });\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n vm.UJHAVIVERST = results[2];\r\n vm.HAVIVERSTALAIR1 = results[3];\r\n vm.HAVIVERSTALAIR2 = results[4];\r\n vm.MEGTHAVIVERST = results[5];\r\n vm.MEGTFELH = results[6];\r\n vm.MEGTKOROSZT = results[7];\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.selectedCoach = results[0]['competitiveMonthlyPlan.edzoId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.selectedSection = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.year']) {\r\n vm.selectedYear = results[0]['competitiveMonthlyPlan.year'];\r\n }\r\n if (vm.selectedCoach || vm.selectedSection || vm.selectedYear) {\r\n refreshData();\r\n }\r\n });\r\n }\r\n\r\n function versernytervTorlese(id, SzakosztalyId) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected competitive monthly plan?'),\r\n text: gettextCatalog.getString('You will not be able to recover the plan!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this competitive monthly plan'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.VersenyTervHaviDeleteById(id, SzakosztalyId).then(\r\n function () {\r\n refreshData();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n if (vm) {\r\n refreshData();\r\n }\r\n paramHelper.setParams([{'competitiveMonthlyPlan.year': vm.selectedYear}]);\r\n }\r\n\r\n function coachChanged(args) {\r\n vm.selectedCoach = args.value;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n paramHelper.setParams([{'competitiveMonthlyPlan.edzoId': vm.selectedCoach}]);\r\n return dataservice.sectionDropDownListWithGroupStatus(vm.selectedCoach).then(\r\n function (data) {\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else if (vm.selectedSection !== undefined) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(args) {\r\n vm.selectedSection = args.value;\r\n vm.allowAddNew = vm.sectionList.find(function (element) {\r\n return element.value === args.value;\r\n });\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n refreshData();\r\n paramHelper.setParams([{'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection}]);\r\n }\r\n\r\n function refreshData() {\r\n if (vm.selectedSection && vm.selectedCoach !== 0 && vm.selectedYear !== 0) {\r\n sectionId = vm.selectedSection;\r\n coachId = vm.selectedCoach;\r\n year = vm.selectedYear;\r\n } else {\r\n return;\r\n }\r\n dataservice.getCompetitiveMonthlyPlanList(coachId, sectionId, year).then(\r\n function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Honap');\r\n $timeout(function () {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n );\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'competitiveMonthlyPlan.edzoId': vm.selectedCoach\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection\r\n }, {\r\n 'newUser.userId': edzoId\r\n }]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToCompetitiveMonthlyPlan(competitivePlanId) {\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n\r\n var elem = vm.data.filter(function (a) {\r\n return a.Id == competitivePlanId;\r\n });\r\n if (elem.length === 0) {\r\n return;\r\n }\r\n\r\n paramHelper.setParams([{\r\n 'competitiveMonthlyPlan.edzoId': elem[0].EdzoId\r\n }, {\r\n 'competitiveMonthlyPlan.edzoNev': elem[0].Edzo\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyNev': elem[0].Szakosztaly\r\n }, {\r\n 'competitiveMonthlyPlan.szakosztalyId': elem[0].SzakosztalyId\r\n }, {\r\n 'competitiveMonthlyPlan.competitivePlanId': elem[0].Id\r\n },\r\n {'competitiveMonthlyPlan.egyeni': elem[0].Egyeni}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function goToNewCompetitiveMonthlyPlan(arg) {\r\n if (!vm.UJHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n var egyeni = (arg == 'egyeni');\r\n var datum = new Date();\r\n dataservice.ujHaviVersenyeztetesiTerv(datum, vm.selectedSection, vm.selectedCoach, egyeni).then(function (result) {\r\n datum = result.data;\r\n paramHelper.setParams([\r\n {'competitiveMonthlyPlan.edzoId': vm.selectedCoach},\r\n {'competitiveMonthlyPlan.edzoNev': angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText},\r\n {'competitiveMonthlyPlan.szakosztalyNev': angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText},\r\n {'competitiveMonthlyPlan.szakosztalyId': vm.selectedSection},\r\n {'competitiveMonthlyPlan.competitivePlanId': -1},\r\n {'competitiveMonthlyPlan.egyeni': egyeni},\r\n {'competitiveMonthlyPlan.datum': datum}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan.competitiveMonthlyPlanList',\r\n config: {\r\n url: '/competitiveMonthlyPlanList',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.html',\r\n controller: 'CompetitiveMonthlyPlanListController',\r\n controllerAs: 'vm',\r\n title: 'CompetitiveMonthlyPlanList',\r\n settings: {\r\n navId: 262,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Havi versenyeztetési terv',\r\n orderTitle_en: 'Monthly Competition Plan',\r\n parentId: 2,\r\n content: 'CompetitiveMonthlyPlanList',\r\n activatorPermission: ['\"MEGTHAVIVERST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport')\r\n .controller('CompetitiveMonthlyPlanReportController', TeamsCtrl);\r\n\r\n function TeamsCtrl(dataservice, log, $q, $state, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $compile, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CompetitiveMonthlyPlanReport');\r\n\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n\r\n var gridHasAppended = false;\r\n // Grid's details\r\n vm.selectedAgeGroup = undefined;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.data = [];\r\n vm.dataYear = [];\r\n vm.columnsYear = [];\r\n vm.stackedHeaderRows = [];\r\n vm.coachsAgeGroups = [];\r\n initEvesGrid();\r\n\r\n vm.SzakosztalyNeve = '';\r\n vm.EdzoNeve = '';\r\n vm.SzakosztalyId = 0;\r\n vm.EdzoId = 0;\r\n vm.MODHAVIVERST = false;\r\n vm.readOnlyMonthlyPlan = true;\r\n vm.reportParameters = {};\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n vm.alreadyCreated = false;\r\n\r\n var evIg = new Date().getFullYear();\r\n var evvege = (new Date().getMonth() >= 9);\r\n if (evvege) {\r\n evIg++;\r\n }\r\n var year = new Date().getFullYear();\r\n var month = new Date().getMonth();\r\n\r\n for (var ev = year - 10; ev <= evIg; ev++) {\r\n vm.years.push({text: ev, value: ev});\r\n }\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.individualText = gettextCatalog.getString('Individual');\r\n vm.teamText = gettextCatalog.getString('Team');\r\n\r\n vm.selectedYear = undefined;\r\n vm.selectedMonth = undefined;\r\n\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n\r\n vm.egyeni = false;\r\n\r\n vm.noMonthlyPlan = false;\r\n vm.hasMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n\r\n //A szerkesztés alatt álló havi versenyterv\r\n vm.editedMonthlyPlan = {};\r\n\r\n //Jelenlét hiba volt a mentés során\r\n vm.hasErrorAtSave = false;\r\n //Visszautasítás indoka kerül bele\r\n vm.rejectMonthlyPlanText = '';\r\n\r\n vm.coachDataBound = coachDataBound;\r\n vm.deletePlan = deletePlan;\r\n vm.closeMonthlyPlan = closeMonthlyPlan;\r\n vm.acceptMonthlyPlan = acceptMonthlyPlan;\r\n vm.rejectMonthlyPlan = rejectMonthlyPlan;\r\n vm.saveMonthlyPlan = saveMonthlyPlan;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.rejectMonthlyPlan = rejectMonthlyPlan;\r\n vm.rejectMonthlyPlanOk = rejectMonthlyPlanOk;\r\n //vm.lefut = lefut;\r\n vm.actionBegin = actionBegin;\r\n vm.printMonthlyPlan = printMonthlyPlan;\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n vm.cellEdit = cellEdit;\r\n vm.cellSave = cellSave;\r\n\r\n vm.yearSelect = yearSelect;\r\n vm.monthSelect = monthSelect;\r\n\r\n vm.selectedRowIndexPopup = -1;\r\n vm.goToOlderMonthlyCompetitiveReports = goToOlderMonthlyCompetitiveReports;\r\n vm.closeEarlierCompetitvePlanWindow = closeEarlierCompetitvePlanWindow;\r\n vm.selectEarlierCompetitvePlanWindow = selectEarlierCompetitvePlanWindow;\r\n\r\n vm.dataPopup = [];\r\n\r\n vm.Id = 0;\r\n vm.editedRowId = 0;\r\n var coachId = -1;\r\n var sectionId = -1;\r\n var reopen = false;\r\n var newplan = false;\r\n\r\n var printOpenedCS = false;\r\n var printOpenedE = false;\r\n\r\n vm.AthleteUnderEditing = '';\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n vm.editedColumnName = '';\r\n vm.CopyCellToColumn = CopyCellToColumn;\r\n\r\n vm.dateTimeEditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000.00.00.',\r\n value: args.rowData[args.column.field],\r\n readOnly: vm.readOnlyMonthlyPlan,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [];\r\n vm.columnsPopup = [];\r\n var columnsSet = -1;\r\n\r\n activate();\r\n refreshGrid();\r\n\r\n function EdzoKorcsoportjai(EdzoId) {\r\n dataservice.getEdzoKorcsoportjai(EdzoId).then(function (data) {\r\n vm.coachsAgeGroups = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupSelect(arg) {\r\n vm.selectedAgeGroup = arg.value;\r\n VersenyTervTablazat(vm.EdzoId, vm.selectedAgeGroup, vm.selectedMonth);\r\n }\r\n\r\n function VersenyTervTablazat(edzo, korcsoport, honap) {\r\n initEvesGrid();\r\n dataservice.annualSeasponPlanTableListSelect2(edzo, korcsoport, honap)\r\n .then(function (data) {\r\n vm.dataYear = data.itemsList;\r\n gridSearch.dataSource = vm.dataYear;\r\n });\r\n }\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'RowNumber', headerText: '', textAlign: 'center', width: 50, allowEditing: false},\r\n {\r\n field: 'KorosztalySportolo',\r\n headerText: gettextCatalog.getString('Korosztály, sportoló'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 175,\r\n //template: '#cmpropenathlete'\r\n },\r\n {\r\n field: 'KorosztalyCsapat',\r\n headerText: gettextCatalog.getString('AgeGroupTeam'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 175,\r\n },\r\n {\r\n field: 'Merkozes1',\r\n headerText: gettextCatalog.getString('Verseny') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes1')\r\n },\r\n {\r\n field: 'Versenyszam1',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam1')\r\n },\r\n {\r\n field: 'Helyszin1',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin1')\r\n },\r\n {\r\n field: 'Eredmeny1',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 1',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny1')\r\n },\r\n {\r\n field: 'DatumTol1',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 1',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg1',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 1',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes2',\r\n headerText: gettextCatalog.getString('Verseny') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes2')\r\n },\r\n {\r\n field: 'Versenyszam2',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam2')\r\n },\r\n {\r\n field: 'Helyszin2',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin2')\r\n },\r\n {\r\n field: 'Eredmeny2',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 2',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny2')\r\n },\r\n {\r\n field: 'DatumTol2',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 2',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'DatumIg2',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 2',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'Merkozes3',\r\n headerText: gettextCatalog.getString('Verseny') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes3')\r\n },\r\n {\r\n field: 'Versenyszam3',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam3')\r\n },\r\n {\r\n field: 'Helyszin3',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin3')\r\n },\r\n {\r\n field: 'Eredmeny3',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 3',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny3')\r\n },\r\n {\r\n field: 'DatumTol3',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 3',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'DatumIg3',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 3',\r\n textAlign: 'center',\r\n width: 90,\r\n //allowEditing: !vm.readOnlyMonthlyPlan,\r\n edit: vm.dateTimeEditorTemplate\r\n },\r\n {\r\n field: 'Merkozes4',\r\n headerText: gettextCatalog.getString('Verseny') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes4')\r\n },\r\n {\r\n field: 'Versenyszam4',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam4')\r\n },\r\n {\r\n field: 'Helyszin4',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin4')\r\n },\r\n {\r\n field: 'Eredmeny4',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 4',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny4')\r\n },\r\n {\r\n field: 'DatumTol4',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 4',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg4',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 4',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes5',\r\n headerText: gettextCatalog.getString('Verseny') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes5')\r\n },\r\n {\r\n field: 'Versenyszam5',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam5')\r\n },\r\n {\r\n field: 'Helyszin5',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin5')\r\n },\r\n {\r\n field: 'Eredmeny5',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 5',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny5')\r\n },\r\n {\r\n field: 'DatumTol5',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 5',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n // allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg5',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 5',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes6',\r\n headerText: gettextCatalog.getString('Verseny') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes6')\r\n },\r\n {\r\n field: 'Versenyszam6',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam6')\r\n },\r\n {\r\n field: 'Helyszin6',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin6')\r\n },\r\n {\r\n field: 'Eredmeny6',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 6',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny6')\r\n },\r\n {\r\n field: 'DatumTol6',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 6',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg6',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 6',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes7',\r\n headerText: gettextCatalog.getString('Verseny') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes7')\r\n },\r\n {\r\n field: 'Versenyszam7',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam7')\r\n },\r\n {\r\n field: 'Helyszin7',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin7')\r\n },\r\n {\r\n field: 'Eredmeny7',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 7',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny7')\r\n },\r\n {\r\n field: 'DatumTol7',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 7',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg7',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 7',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'Merkozes8',\r\n headerText: gettextCatalog.getString('Verseny') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Merkozes8')\r\n },\r\n {\r\n field: 'Versenyszam8',\r\n headerText: gettextCatalog.getString('Versenyszam') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Versenyszam8')\r\n },\r\n {\r\n field: 'Helyszin8',\r\n headerText: gettextCatalog.getString('Helyszin') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Helyszin8')\r\n },\r\n {\r\n field: 'Eredmeny8',\r\n headerText: gettextCatalog.getString('VarhEredm') + ' 8',\r\n textAlign: 'center',\r\n width: 150,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n //editTemplate: vm.editTextTemplate('Eredmeny8')\r\n },\r\n {\r\n field: 'DatumTol8',\r\n headerText: gettextCatalog.getString('DatumTol') + ' 8',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n },\r\n {\r\n field: 'DatumIg8',\r\n headerText: gettextCatalog.getString('DatumIg') + ' 8',\r\n textAlign: 'center',\r\n width: 90,\r\n edit: vm.dateTimeEditorTemplate,\r\n //allowEditing: !vm.readOnlyMonthlyPlan\r\n }\r\n ];\r\n\r\n var gridNew = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n cellSave: vm.cellSave,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: vm.gridRowSelected,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridNew'), $scope);\r\n }\r\n },\r\n cellEdit: function (arg) {\r\n vm.AthleteUnderEditing = arg.rowData.SportoloId != null ? arg.rowData.KorosztalySportolo : arg.rowData.KorosztalyCsapat;\r\n vm.editedColumnName = arg.columnName;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n gridNew.appendTo('#GridNew');\r\n gridNew.keyConfigs.escape = '';\r\n gridNew.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridNew);\r\n };\r\n\r\n var gridSearch = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n columns: vm.columnsYear,\r\n stackedHeaderRows: vm.stackedHeaderRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridYear'), $scope);\r\n }\r\n }\r\n });\r\n gridSearch.appendTo('#GridYear');\r\n gridSearch.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridSearch);\r\n };\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n function activate() {\r\n // $scope.$watch('vm.data', function (args) {\r\n // //console.log('watcher: ', args);\r\n // });\r\n // $scope.$watch('vm.editedMonthlyPlan.tetelek', function (args) {\r\n // //console.log('watcher tetelek: ', args);\r\n // });\r\n\r\n $q.all([paramHelper.getParams([], ['competitiveMonthlyPlan.competitivePlanId', 'competitiveMonthlyPlan.szakosztalyId', 'competitiveMonthlyPlan.szakosztalyNev', 'competitiveMonthlyPlan.edzoId', 'competitiveMonthlyPlan.edzoNev', 'competitiveMonthlyPlan.egyeni', 'competitiveMonthlyPlan.datum']),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR2'),\r\n authenticationService.getRight('UJHAVIVERST'),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('TORLHAVIVERS'),\r\n authenticationService.getRight('MODHAVIVERST')\r\n ])\r\n .then(function (results) {\r\n if (!results[9]) {\r\n log.permissionError(true);\r\n } else {\r\n //VersenyTervTablazat();\r\n\r\n $timeout(function () {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.HAVIVERSTALAIR1 = results[5];\r\n vm.HAVIVERSTALAIR2 = results[6];\r\n vm.UJHAVIVERST = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTHAVIJEL = results[9];\r\n vm.TORLHAVIVERS = results[10];\r\n vm.MODHAVIVERST = results[11];\r\n\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyNev']) {\r\n vm.SzakosztalyNeve = results[0]['competitiveMonthlyPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoNev']) {\r\n vm.EdzoNeve = results[0]['competitiveMonthlyPlan.edzoNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.SzakosztalyId = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n vm.egyeni = false;\r\n if (results[0]['competitiveMonthlyPlan.egyeni'] != undefined) {\r\n vm.egyeni = results[0]['competitiveMonthlyPlan.egyeni'];\r\n if (vm.egyeni) {\r\n vm.columns[3].visible = false;\r\n vm.columns[2].visible = true;\r\n } else {\r\n vm.columns[2].visible = false;\r\n vm.columns[3].visible = true;\r\n }\r\n gridNew.refresh();\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n EdzoKorcsoportjai(vm.EdzoId);\r\n }\r\n\r\n //létezőt nyit vissza\r\n if (results[0]['competitiveMonthlyPlan.competitivePlanId'] && results[0]['competitiveMonthlyPlan.competitivePlanId'] !== -1) {\r\n paramHelper.removeParam('competitiveMonthlyPlan.competitivePlanId');\r\n reopen = true;\r\n dataservice.monthlyPlanSelectById(results[0]['competitiveMonthlyPlan.competitivePlanId'], results[0]['competitiveMonthlyPlan.szakosztalyId'], vm.egyeni)\r\n .then(function (data) {\r\n viewMonthlyPlan(data);\r\n var date = data.fej.Datum.split('-');\r\n $timeout(function () {\r\n var Datum = new Date(date[0], date[1] - 1, 1, 0, 0, 0);\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', Datum.getFullYear());\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', Datum.getMonth());\r\n $scope.$apply();\r\n }, 100);\r\n vm.defaultSection = vm.editedMonthlyPlan.fej.IdSzakosztaly;\r\n sectionId = vm.editedMonthlyPlan.fej.IdSzakosztaly;\r\n vm.defaultCoach = vm.editedMonthlyPlan.fej.IdEdzo;\r\n coachId = vm.editedMonthlyPlan.fej.IdEdzo;\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = data.fej.SzakosztalyNeve;\r\n vm.editedMonthlyPlan.fej.EdzoNeve = data.fej.EdzoNeve;\r\n vm.Id = vm.editedMonthlyPlan.fej.Id;\r\n });\r\n //új versenyeztetési terv\r\n } else {\r\n newplan = true;\r\n vm.noMonthlyPlan = true;\r\n vm.editedMonthlyPlan = {};\r\n vm.editedMonthlyPlan.fej = {};\r\n vm.editedMonthlyPlan.fej.Id = -1;\r\n vm.editedMonthlyPlan.fej.Tipus = vm.egyeni;\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyNev']) {\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = results[0]['competitiveMonthlyPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoNev']) {\r\n vm.editedMonthlyPlan.fej.EdzoNeve = results[0]['competitiveMonthlyPlan.edzoNev'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.szakosztalyId']) {\r\n vm.editedMonthlyPlan.fej.SzakosztalyId = results[0]['competitiveMonthlyPlan.szakosztalyId'];\r\n }\r\n if (results[0]['competitiveMonthlyPlan.edzoId']) {\r\n vm.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n vm.editedMonthlyPlan.fej.EdzoId = results[0]['competitiveMonthlyPlan.edzoId'];\r\n EdzoKorcsoportjai(vm.EdzoId);\r\n }\r\n $timeout(function () {\r\n var datum = new Date(results[0]['competitiveMonthlyPlan.datum']);\r\n vm.selectedYear = datum.getFullYear();\r\n vm.selectedMonth = datum.getMonth();\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n $scope.$apply();\r\n }, 0);\r\n // selectByDate(); // Ha az adott hónapra már van terv, akkor azt tölti vissza\r\n }\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function actionBegin(args) {\r\n if (args.requestType && (args.requestType === 'paging' || args.requestType === 'sorting')) {\r\n args.cancel = true;\r\n gridNew.editModule.batchSave();\r\n }\r\n }\r\n\r\n function viewMonthlyPlan(data) {\r\n vm.editedMonthlyPlan = data;\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol1');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol2');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol3');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol4');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol5');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol6');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol7');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumTol8');\r\n\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg1');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg2');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg3');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg4');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg5');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg6');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg7');\r\n vm.editedMonthlyPlan.tetelek = $filter('dateStringFilter')(vm.editedMonthlyPlan.tetelek, 'DatumIg8');\r\n\r\n vm.noMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasMonthlyPlan = false;\r\n // UJ\r\n if (!vm.editedMonthlyPlan.fej || vm.editedMonthlyPlan.fej.Id < 0) {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.noMonthlyPlan = true;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.UJHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.UJHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n // if(vm.selectedMonth) {\r\n // createNewMonthlyPlan();\r\n // refreshGrid();\r\n // }\r\n // LETEZO\r\n } else {\r\n if (vm.editedMonthlyPlan.fej.Vegleges) {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyVezetoId) {\r\n vm.hasAcceptedMonthlyPlan = true;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n } else {\r\n vm.hasSignedMonthlyPlan = true;\r\n if (vm.UJHAVIVERST) {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HAVIVERSTALAIR1) {\r\n vm.acceptButton = true;\r\n vm.rejectButton = true;\r\n } else {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n }\r\n }\r\n } else {\r\n vm.hasMonthlyPlan = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.MODHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.MODHAVIVERST) {\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n }\r\n vm.data = vm.editedMonthlyPlan.tetelek;\r\n }\r\n\r\n vm.readOnlyMonthlyPlan = !vm.saveButton;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyMonthlyPlan;\r\n\r\n if (vm.editedMonthlyPlan.fej) {\r\n vm.leadvaStr = $filter('dateStringFilter')(vm.editedMonthlyPlan.fej.Leadva);\r\n vm.elfogadvaStr = $filter('dateStringFilter')(vm.editedMonthlyPlan.fej.Elfogadas1);\r\n }\r\n refreshGrid();\r\n }\r\n\r\n function refreshGrid() {\r\n //vm.columns = [];\r\n\r\n if (gridNew) {\r\n gridNew.columns = vm.columns;\r\n gridNew.dataSource = vm.data; //[{Id: 1, RowNumber:1}, {Id: 2, RowNumber:2}];\r\n }\r\n\r\n vm.columnsPopup = [];\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Trainer'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n }\r\n\r\n function createNewMonthlyPlan() {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyId) {\r\n sectionId = vm.editedMonthlyPlan.fej.SzakosztalyId;\r\n }\r\n if (vm.editedMonthlyPlan.fej.EdzoId) {\r\n coachId = vm.editedMonthlyPlan.fej.EdzoId;\r\n }\r\n // TODO a versenyterven nem szerepelnek csak azok akik 1-én tagok voltak (nem lehete utólag helyesen tölteni)\r\n // dataservice.getCompetitiveMonthlyPlanItems(coachId, sectionId, moment(vm.editedMonthlyPlan.fej.Datum).endOf('month').format('YYYY-MM-DD'), vm.egyeni)\r\n dataservice.getCompetitiveMonthlyPlanItems(coachId, sectionId, moment(vm.editedMonthlyPlan.fej.Datum).format('YYYY-MM-DD'), vm.egyeni)\r\n .then(function (data2) {\r\n vm.data = data2.itemsList;\r\n vm.editedMonthlyPlan.tetelek = vm.data;\r\n gridNew.editSettings.allowEditing = true;\r\n refreshGrid();\r\n //saveMonthlyPlan();\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.defaultCoach);\r\n vm.selectedCoach = vm.defaultCoach;\r\n }\r\n }\r\n\r\n function closeMonthlyPlan() {\r\n $scope.$broadcast('submitted');\r\n vm.editedMonthlyPlan.fej.Vegleges = true;\r\n vm.editedMonthlyPlan.fej.Leadva = moment();\r\n saveMonthlyPlan();\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyMonthlyPlan = true;\r\n }\r\n }\r\n\r\n function acceptMonthlyPlan() {\r\n dataservice.monthlyCompetitionPlanAcceptByLeader(vm.editedMonthlyPlan.fej.Id, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.editedMonthlyPlan.fej.Tipus).then(function () {\r\n log.successMsg('CompetitionPlanAccepted');\r\n dataservice.monthlyPlanSelectById(vm.editedMonthlyPlan.fej.Id, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.egyeni).then(function (data) {\r\n viewMonthlyPlan(data);\r\n });\r\n });\r\n }\r\n\r\n //Havi jelenléti visszautasítása gomb click\r\n function rejectMonthlyPlan() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectMonthlyPlanOk() {\r\n if (vm.rejectMonthlyPlanText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '<br>' + gettextCatalog.getString('The') + ' ' + vm.editedMonthlyPlan.fej.SzakosztalyNev + ' - ' + ' ' + vm.selectedYear +\r\n ' ' + vm.months[vm.selectedMonth].text +\r\n ' ' + gettextCatalog.getString('MonthlyAttendanceReportRejected') + '<br>' + gettextCatalog.getString('Cause') + vm.MonthlyPlanText;\r\n\r\n dataservice.messageSave(uzi, [vm.selectedCoach], vm.selectedSection).then(function () {\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas2 = null;\r\n vm.editedMonthlyPlan.fej.SzakosztalyVezetoId = null;\r\n vm.editedMonthlyPlan.fej.GazdasagiId = null;\r\n saveMonthlyPlan();\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyMonthlyPlan = false;\r\n }\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n });\r\n }\r\n\r\n function saveMonthlyPlan() {\r\n $scope.$broadcast('submitted');\r\n if (gridNew.editSettings.allowEditing) {\r\n gridNew.editModule.endEdit();\r\n }\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!vm.MODHAVIVERST && vm.editedMonthlyPlan.fej.Id > 0) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.editedMonthlyPlan.tetelek = vm.data;\r\n dataservice.saveMonthlyCompetitionPlan(vm.editedMonthlyPlan)\r\n .then(function (/*id*/) {\r\n log.successMsg('aaaaCompetitionPlanSaved');\r\n $rootScope.back();\r\n /*\r\n if (vm.editedMonthlyPlan.fej.Id < 0) {\r\n dataservice.monthlyPlanSelectById(id.res, vm.editedMonthlyPlan.fej.SzakosztalyId, vm.egyeni).then(function (data) {\r\n viewMonthlyPlan(data);\r\n });\r\n }\r\n */\r\n });\r\n }\r\n\r\n vm.yearDatabound = function () {\r\n $timeout(function () {\r\n vm.selectedYear = year;\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }, 0);\r\n };\r\n\r\n function yearSelect(args) {\r\n if (!vm.editedMonthlyPlan || !vm.editedMonthlyPlan.fej || !vm.editedMonthlyPlan.fej.Datum) {\r\n return;\r\n }\r\n if (vm.selectedYear != args.value) {\r\n vm.alreadyCreated = false;\r\n }\r\n vm.selectedYear = args.value;\r\n vm.editedMonthlyPlan.fej.Datum = moment(vm.editedMonthlyPlan.fej.Datum).year(vm.selectedYear).format('YYYY-MM-DD');\r\n }\r\n\r\n vm.monthDatabound = function () {\r\n $timeout(function () {\r\n vm.selectedMonth = month;\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', vm.selectedMonth);\r\n }, 0);\r\n };\r\n\r\n function monthSelect(args) {\r\n if (!vm.editedMonthlyPlan || !vm.editedMonthlyPlan.fej || !vm.editedMonthlyPlan.fej.Datum) {\r\n return;\r\n }\r\n if (vm.selectedMonth != args.value) {\r\n vm.alreadyCreated = false;\r\n }\r\n vm.selectedMonth = args.value;\r\n\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n if (vm.selectedYear && vm.selectedMonth >= 0) {\r\n selectByDate();\r\n }\r\n if (vm.selectedAgeGroup) {\r\n VersenyTervTablazat(vm.EdzoId, vm.selectedAgeGroup, vm.selectedMonth);\r\n }\r\n }\r\n\r\n function selectByDate() {\r\n if (reopen || angular.isUndefined(vm.selectedMonth) || vm.alreadyCreated) {\r\n return;\r\n }\r\n vm.alreadyCreated = true;\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyId) {\r\n sectionId = vm.editedMonthlyPlan.fej.SzakosztalyId;\r\n }\r\n if (vm.editedMonthlyPlan.fej.EdzoId) {\r\n coachId = vm.editedMonthlyPlan.fej.EdzoId;\r\n }\r\n dataservice.monthlyPlanSelectByDate(vm.selectedYear, vm.selectedMonth + 1, sectionId, coachId, newplan, vm.egyeni).then(function (data) {\r\n if (!data.status) { // nem null érkezett (új terv, és van az adott hónapra terv)\r\n vm.readOnlyMonthlyPlan = true;\r\n viewMonthlyPlan(data);\r\n } else { // null érkezett (új terv, és nincs még az adott hónapra)\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Id = -1;\r\n vm.editedMonthlyPlan.fej.Megjegyzes = '';\r\n vm.elfogadvaStr = '';\r\n vm.leadvaStr = '';\r\n vm.saveButton = true;\r\n vm.rejectButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.noMonthlyPlan = true;\r\n vm.hasMonthlyPlan = false;\r\n vm.hasSignedMonthlyPlan = false;\r\n vm.hasAcceptedMonthlyPlan = false;\r\n vm.readOnlyMonthlyPlan = false;\r\n createNewMonthlyPlan();\r\n }\r\n });\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.editedMonthlyPlan.fej.SzakosztalyVezetoId === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.editedMonthlyPlan.fej.SzakosztalyVezetoId)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function printMonthlyPlan() {\r\n $q.all([getAccepterCoachById(), getSystemSettings()])\r\n .then(function (results) {\r\n var honap = moment(vm.editedMonthlyPlan.fej.Datum).format('YYYY-MM');\r\n var masodiklap = 1;\r\n if (vm.editedMonthlyPlan.tetelek == null || vm.editedMonthlyPlan.tetelek.length == 0) {\r\n masodiklap = 1;\r\n } else {\r\n vm.editedMonthlyPlan.tetelek.forEach(function (element) {\r\n if (\r\n element.Merkozes7 !== null || element.Merkozes8 !== null ||\r\n element.Eredmeny7 !== null || element.Eredmeny8 !== null ||\r\n element.Helyezes7 !== null || element.Helyezes8 !== null) {\r\n masodiklap = masodiklap < 4 ? 4 : masodiklap;\r\n } else if (\r\n element.Merkozes5 !== null || element.Merkozes6 !== null ||\r\n element.Eredmeny5 !== null || element.Eredmeny6 !== null ||\r\n element.Helyezes5 !== null || element.Helyezes6 !== null) {\r\n masodiklap = masodiklap < 3 ? 3 : masodiklap;\r\n } else if (\r\n element.Merkozes3 !== null || element.Merkozes4 !== null ||\r\n element.Eredmeny3 !== null || element.Eredmeny4 !== null ||\r\n element.Helyezes3 !== null || element.Helyezes4 !== null) {\r\n masodiklap = masodiklap < 2 ? 2 : masodiklap;\r\n }\r\n });\r\n }\r\n vm.reportParameters = {\r\n Honap: honap,\r\n Szakosztaly: vm.editedMonthlyPlan.fej.SzakosztalyNeve,\r\n EdzoNeve: vm.editedMonthlyPlan.fej.EdzoNeve,\r\n Edzo: vm.editedMonthlyPlan.fej.EdzoNeve,\r\n Varos: results[1] == null ? '' : (results[1] + ', '),\r\n Jovahagyta1: results[0],\r\n Veglegesitve: vm.leadvaStr,\r\n Elfogadas1: vm.elfogadvaStr,\r\n Jovahagyta2: '',\r\n Merkozes1: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes1 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes1,\r\n Merkozes2: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes2 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes2,\r\n Merkozes3: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes3 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes3,\r\n Merkozes4: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes4 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes4,\r\n Merkozes5: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes5 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes5,\r\n Merkozes6: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes6 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes6,\r\n Merkozes7: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes7 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes7,\r\n Merkozes8: vm.editedMonthlyPlan.tetelek.length == 0 || vm.editedMonthlyPlan.tetelek[0].Merkozes8 === null ? '' : vm.editedMonthlyPlan.tetelek[0].Merkozes8,\r\n TervId: vm.editedMonthlyPlan.fej.Id,\r\n Masodiklap: masodiklap\r\n };\r\n if (vm.egyeni == true) {\r\n if (printOpenedE) {\r\n angular.element('#printDialogE').ejDialog('open');\r\n } else {\r\n printOpenedE = true;\r\n angular.element('#printDialogE').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n } else {\r\n if (printOpenedCS) {\r\n angular.element('#printDialogCS').ejDialog('open');\r\n } else {\r\n printOpenedCS = true;\r\n angular.element('#printDialogCS').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openTeam(teamid, ageGroupId, sectionId) {\r\n paramHelper.setParams([\r\n {'teams.team': teamid},\r\n {'teams.ageGroupId': ageGroupId},\r\n {'teams.sectionId': sectionId}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n\r\n function cellEdit(args) {\r\n if (vm.readOnlyMonthlyPlan) {\r\n args.cancel = true;\r\n }\r\n }\r\n\r\n function goToOlderMonthlyCompetitiveReports() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldCompetitivePlanByUserId(vm.editedMonthlyPlan.fej.EdzoId, vm.editedMonthlyPlan.fej.Id).then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n gridPopup.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeEarlierCompetitvePlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierCompetitvePlanWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.getSelectedRowIndexes();\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.monthlyPlanSelectById(vmi.Id, vmi.SzakosztalyId).then(function (data) {\r\n vm.editedMonthlyPlan = {};\r\n vm.editedMonthlyPlan.fej = {};\r\n vm.editedMonthlyPlan.fej.Datum = moment({\r\n y: vm.selectedYear,\r\n M: vm.selectedMonth,\r\n d: 1\r\n }).format('YYYY-MM-DD');\r\n vm.editedMonthlyPlan.fej.EdzoId = vm.EdzoId;\r\n vm.editedMonthlyPlan.fej.EdzoNeve = vm.EdzoNeve;\r\n vm.editedMonthlyPlan.fej.Elfogadas1 = null;\r\n vm.editedMonthlyPlan.fej.Elfogadas2 = null;\r\n vm.editedMonthlyPlan.fej.GazdasagiId = null;\r\n vm.Id = 0;\r\n vm.editedMonthlyPlan.fej.Leadva = null;\r\n vm.editedMonthlyPlan.fej.Megjegyzes = data.fej.Megjegyzes;\r\n vm.editedMonthlyPlan.fej.SzakosztalyNeve = vm.SzakosztalyNeve;\r\n vm.editedMonthlyPlan.fej.SzakosztalyId = vm.SzakosztalyId;\r\n vm.editedMonthlyPlan.fej.Vegleges = false;\r\n vm.editedMonthlyPlan.fej.SzakosztalyVezetoId = null;\r\n vm.editedMonthlyPlan.tetelek = data.tetelek;\r\n vm.leadvaStr = null;\r\n vm.elfogadvaStr = null;\r\n viewMonthlyPlan(vm.editedMonthlyPlan);\r\n vm.Id = 0;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n\r\n function deletePlan() {\r\n if (!vm.TORLHAVIVERS) {\r\n log.permissionError();\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected competitive monthly plan?'),\r\n text: gettextCatalog.getString('You will not be able to recover the plan!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this competitive monthly plan'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.VersenyTervHaviDeleteById(vm.editedMonthlyPlan.fej.Id, vm.SzakosztalyId, vm.egyeni).then(\r\n function () {\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanList');\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettings() {\r\n return dataservice.getSystemSettingsValue('VAROS').then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function CopyCellToColumn() {\r\n gridNew.editModule.batchSave();\r\n var db = vm.data.length;\r\n for (var rowCntr = 0; rowCntr < db; rowCntr++) {\r\n vm.data[rowCntr][vm.editedColumnName] = vm.editedColumnValue;\r\n }\r\n gridNew.refresh();\r\n }\r\n\r\n function cellSave(arg) {\r\n $timeout(function () {\r\n vm.AthleteUnderEditing = '';\r\n vm.editedColumnValue = arg.value;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function initEvesGrid() {\r\n vm.columnsYear = [];\r\n vm.columnsYear = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n width: 30\r\n },\r\n {\r\n field: 'HetSzam',\r\n headerText: gettextCatalog.getString('WeekNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkHetSzam',\r\n headerText: gettextCatalog.getString('PreparationWeekNumber'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'FelkIdJellTiszta',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoTiszta'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkIdJellVegyes',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVegyes'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelkIdJellVerseny',\r\n headerText: gettextCatalog.getString('FelkeszulesiIdoVerseny'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamAlt',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamAltalanos'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamSpSpec',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamSportagSpecifikus'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzesSzamOsszesen',\r\n headerText: gettextCatalog.getString('HetiEdzesSzamOsszesen'),\r\n textAlign: 'center',\r\n width: 110,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesMagas',\r\n headerText: gettextCatalog.getString('HetiTerhelesMagas'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesKozepes',\r\n headerText: gettextCatalog.getString('HetiTerhelesKozepes'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiTerhelesAlacsony',\r\n headerText: gettextCatalog.getString('HetiTerhelesAlacsony'),\r\n textAlign: 'center',\r\n width: 80,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaTechnikai',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaTechnikai'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaKepFejl',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKepessegFejlesztes'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaKieg',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaKiegeszito'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'HetiEdzMunkaEgyeb',\r\n headerText: gettextCatalog.getString('HetiEdzesMunkaEgyeb'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelmeresekAlt',\r\n headerText: gettextCatalog.getString('GeneralSurveys'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'FelmeresekSpSpec',\r\n headerText: gettextCatalog.getString('SportagSpecifikusFelmeresek'),\r\n textAlign: 'center',\r\n width: 130,\r\n cssClass: 'rotate90degreegridheader3'\r\n },\r\n {\r\n field: 'EdzTabIdopont',\r\n headerText: gettextCatalog.getString('EdzotaborozasIdopont'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'EdzTabHely',\r\n headerText: gettextCatalog.getString('EdzotaborozasHely'),\r\n textAlign: 'center',\r\n width: 130\r\n },\r\n {\r\n field: 'EdzTabLetszam',\r\n headerText: gettextCatalog.getString('EdzotaborozasLetszam'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'Verseny',\r\n headerText: gettextCatalog.getString('Verseny'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ];\r\n\r\n vm.stackedHeaderRows = [{\r\n stackedHeaderColumns: [{\r\n headerText: gettextCatalog.getString('FelkHetSzam') + '<br>(1-52)',\r\n column: 'HetSzam, FelkHetSzam, Datum',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('FelkIdJelleg') + '<br>(X)',\r\n column: 'FelkIdJellTiszta, FelkIdJellVegyes, FelkIdJellVerseny',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesSzam') + '<br>(0-21)',\r\n column: 'HetiEdzesSzamAlt, HetiEdzesSzamSpSpec, HetiEdzesSzamOsszesen',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiTerheles') + '<br>(X, 0-9)',\r\n column: 'HetiTerhelesMagas, HetiTerhelesKozepes, HetiTerhelesAlacsony',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('HetiEdzesJell') + '<br>(X, 0-9)',\r\n column: 'HetiEdzMunkaTechnikai, HetiEdzMunkaKepFejl, HetiEdzMunkaKieg, HetiEdzMunkaEgyeb',\r\n textAlign: 'center',\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Felmeresek') + '<br>(0-9)',\r\n column: 'FelmeresekAlt, FelmeresekSpSpec',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edzotaborozas') + '<br>',\r\n column: 'EdzTabIdopont, EdzTabHely, EdzTabLetszam',\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Verseny') + '<br>',\r\n column: 'Verseny',\r\n textAlign: 'center'\r\n }\r\n ]\r\n }];\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport',\r\n config: {\r\n url: '/competitiveMonthlyPlanReport',\r\n templateUrl: 'app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.html',\r\n controller: 'CompetitiveMonthlyPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.dailyAttendance')\r\n .controller('DailyAttendanceController', DailyAttendanceController);\r\n\r\n function DailyAttendanceController(log, logger, DOMAIN, paramHelper, $state, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('dailyAttendance');\r\n vm.presenceText = gettextCatalog.getString('presenceText');\r\n vm.absenceText = gettextCatalog.getString('absenceText');\r\n vm.provenabsenceText = gettextCatalog.getString('provenabsenceText');\r\n vm.competitionText = gettextCatalog.getString('competitionText');\r\n vm.holidayText = gettextCatalog.getString('holidayText');\r\n vm.sicknessText = gettextCatalog.getString('sicknessText');\r\n vm.injuryText = gettextCatalog.getString('injuryText');\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n var newAthletesId = -1;\r\n vm.allAgeGroupfill = false;\r\n vm.coachList = [];\r\n vm.thereIsIncativeAthlete = false;\r\n vm.clicked = null;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.saveAttendance = saveAttendance;\r\n vm.loadAttendance = loadAttendance;\r\n vm.iconClicked = iconClicked;\r\n vm.DDClick = DDClick;\r\n vm.sectionId = undefined;\r\n vm.ageGroupId = undefined;\r\n vm.userid = undefined;\r\n vm.editedAttendance = {};\r\n vm.dayz = {};\r\n vm.today = {};\r\n vm.today.Year = new Date().getFullYear();\r\n vm.today.Month = new Date().getMonth() + 1;\r\n vm.today.Day = new Date().getDate();\r\n var button = {\r\n UNDEFINED: -1,\r\n PRESENCE: 1,\r\n ABSENCE: 2,\r\n PROVENABSENCE: 3, //22,\r\n HOLIDAY: 4,\r\n SICKNESS: 5,\r\n INJURY: 6,\r\n COMPETITION: 7, //3,\r\n NOTPRESSED: 10\r\n };\r\n vm.b = button;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('HJFELVIHET'), authenticationService.getRight('MEGTHAVIJEL'), authenticationService.getRight('EDZO'), authenticationService.getRight('SZAKOSZTVEZ'), paramHelper.getParams([], ['dailyAttendance.SzakosztalyId'])];\r\n $q.all(promises).then(function (results) {\r\n vm.userid = authenticationService.getAuthData().id;\r\n if (!(results[1])) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.allowEdit = results[0];\r\n if (!results[2] && !results[3]) {\r\n log.errorMsg(gettextCatalog.getString('YouMustBeACoachOrSectionLeaderToUseDailyAttendance'));\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n getSections(vm.userid);\r\n }\r\n if (results[4]['dailyAttendance.SzakosztalyId']) {\r\n vm.sectionId = results[4]['dailyAttendance.SzakosztalyId'];\r\n }\r\n });\r\n }\r\n\r\n function isMobile() {\r\n var check = false;\r\n (function (a) {\r\n if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) {\r\n check = true;\r\n }\r\n })(navigator.userAgent || navigator.vendor || window.opera);\r\n return check;\r\n }\r\n\r\n function iconClicked(index, setTo) {\r\n var tetel = vm.editedAttendance.tetelek[index];\r\n // console.log('iconClicked index:', index, 'Nev:', tetel.SportoloNev, 'prevState: ', tetel.selectedIcon, 'setTo:', setTo);\r\n //console.log('tetel[index]', tetel);\r\n // Ha volt már aznap jelenlét, és átkattintok máshova akkor a napi jelenlét értékét csökkentem\r\n if (setTo != button.PRESENCE && tetel.selectedIcon == button.PRESENCE && tetel.today > 0) {\r\n tetel.today--;\r\n }\r\n // HA ugyanarra kattintok, akkor leveszem a kijelölést\r\n if (tetel.selectedIcon == setTo) {\r\n tetel.selectedIcon = button.UNDEFINED;\r\n // Ha a jelenlét kivan jelölve, és arról szedem le a kijelölést, akkor csökkentem a mellette lévő számot\r\n if (setTo == button.PRESENCE) {\r\n tetel.today--;\r\n }\r\n }\r\n // Ha valamelyik szürkére kattintok\r\n else {\r\n // Ha a pipára kattintok\r\n if (setTo == button.PRESENCE) {\r\n // de már volt aznapra jelenlét (1,2,3),\r\n if (tetel.today > 0) {\r\n // három eddigi napi jelenlétnél már nem lehet több\r\n if (tetel.today == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + tetel.SportoloNev);\r\n tetel.selectedIcon = button.UNDEFINED;\r\n }\r\n // 1,2 nél lehet. Akkor a napi jelenlét nő eggyel.\r\n else {\r\n tetel.today++;\r\n tetel.selectedIcon = button.PRESENCE;\r\n }\r\n }\r\n // Pipára kattintok, de ez a mai első jelenlét\r\n else {\r\n tetel.today = 1;\r\n tetel.selectedIcon = button.PRESENCE;\r\n }\r\n }\r\n // Ha a hiányzásra kattintok, és ma még nem volt edzésen\r\n else if (setTo == button.ABSENCE) {\r\n if (tetel.today == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + tetel.SportoloNev);\r\n tetel.selectedIcon = button.UNDEFINED;\r\n } else {\r\n tetel.selectedIcon = button.ABSENCE;\r\n }\r\n }\r\n // Ha az igazolt hiányzásra kattintok, és ma még nem volt edzésen\r\n else if (setTo == button.PROVENABSENCE && !(tetel.today > 0)) {\r\n tetel.selectedIcon = button.PROVENABSENCE;\r\n }\r\n // Ha a sérülésre vagy betegségre kattintok (az is jelenlétnek számít)\r\n else if (setTo == button.INJURY || setTo == button.SICKNESS) {\r\n tetel.selectedIcon = setTo;\r\n }\r\n // Nem a pipára kattintok\r\n else {\r\n tetel.selectedIcon = setTo;\r\n }\r\n }\r\n }\r\n\r\n function loadAttendance() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!vm.allAgeGroupfill) {\r\n loadMonthlyAttendance(vm.userid, vm.sectionId, 0, vm.today.Year, vm.today.Month, vm.today.Day);\r\n } else {\r\n if (!(vm.ageGroupId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('ChooseAgeGroup'));\r\n return;\r\n }\r\n loadMonthlyAttendance(vm.userid, vm.sectionId, vm.ageGroupId, vm.today.Year, vm.today.Month, vm.today.Day);\r\n }\r\n }\r\n\r\n function setIcons() {\r\n //console.log('vm.editedAttendance', vm.editedAttendance);\r\n for (var t = 0; t < vm.editedAttendance.tetelek.length; t++) {\r\n var active = '';\r\n if (vm.editedAttendance.aktiv[t]['Nap' + vm.today.Day]) {\r\n active = vm.editedAttendance.aktiv[t]['Nap' + vm.today.Day].trim();\r\n }\r\n if (active == '1') {\r\n vm.editedAttendance.tetelek[t].activeToday = true;\r\n } else {\r\n vm.thereIsIncativeAthlete = true;\r\n vm.editedAttendance.tetelek[t].activeToday = false;\r\n }\r\n vm.editedAttendance.tetelek[t].selectedIcon = button.UNDEFINED;\r\n vm.editedAttendance.tetelek[t].img = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.editedAttendance.tetelek[t].img;\r\n setIconsForToday(t, vm.editedAttendance.tetelek[t]);\r\n }\r\n }\r\n\r\n function setIconsForToday(sor, tetel) {\r\n var nap = tetel['Nap' + vm.today.Day];\r\n if (nap) {\r\n nap = nap.trim();\r\n if (isNaN(nap)) {\r\n nap = nap.toUpperCase();\r\n } else if (nap.length > 0) {\r\n //console.log('setIconsForToday Nev:', vm.editedAttendance.tetelek[sor].SportoloNev, ' nap:', nap);\r\n nap = Number(nap);\r\n }\r\n }\r\n vm.editedAttendance.tetelek[sor].today = ' ';\r\n switch (nap) {\r\n case 'V':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.COMPETITION;\r\n break;\r\n case 'Ü':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.HOLIDAY;\r\n break;\r\n case 'B':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.SICKNESS;\r\n break;\r\n case 'S':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.INJURY;\r\n break;\r\n case 'H':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.PROVENABSENCE;\r\n break;\r\n case 0:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.ABSENCE;\r\n break;\r\n case 1:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 1;\r\n break;\r\n case 2:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 2;\r\n break;\r\n case 3:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n vm.editedAttendance.tetelek[sor].today = 3;\r\n break;\r\n case '':\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n break;\r\n default:\r\n vm.editedAttendance.tetelek[sor].selectedIcon = button.NOTPRESSED;\r\n }\r\n }\r\n\r\n /*\r\n Gomb állapotok:\r\n -1 Marad az előző állapot\r\n\t\t\t\t1 - 1++ presence \t (jelenlét)\r\n\t\t\t\t2 - 0 absence \t(hiányzás)\r\n 3 - H provenabsence (igazolt hiányzás)\r\n\t\t\t\t4 - Ü holiday \t(ünnep)\r\n\t\t\t\t5 - B sickness \t(betegség)\r\n\t\t\t\t6 - S injury \t(sérülés)\r\n\t\t\t\t7 - V competition \t(verseny)\r\n 10 - visszatöltésnél ha van már jelenlét\r\n */\r\n\r\n function loadMonthlyAttendance(coach, section, agegroup, year, month) {\r\n //console.log('loadMonthlyAttendance', coach, section, agegroup, year, month, day);\r\n dataservice.monthlyAttendanceSelect(coach, section, agegroup, year, month)\r\n .then(function (data) {\r\n if (data.fej) {\r\n if (data.fej.EdzoAlairta) {\r\n log.errorMsg(gettextCatalog.getString('MonthlyAttendanceIsAlreadyClosed'));\r\n return;\r\n }\r\n vm.editedAttendance = data;\r\n console.log('EXISTING vm.editedAttendance.tetelek', vm.editedAttendance.tetelek);\r\n setIcons();\r\n } else {\r\n createNewAttendance();\r\n }\r\n });\r\n }\r\n\r\n function createNewAttendance() {\r\n dataservice.getLastMonthlyAttendanceTrainingLocationAndTime(vm.userid, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.editedAttendance.fej = {};\r\n vm.editedAttendance.fej.CsoportLetszam = 0;\r\n vm.editedAttendance.fej.Datum = new Date(vm.today.Year, vm.today.Month - 1, 1, 0, 0, 0);\r\n vm.editedAttendance.fej.Erkezett = 0;\r\n vm.editedAttendance.fej.Id = -1;\r\n vm.editedAttendance.fej.IdEdzo = vm.userid;\r\n vm.editedAttendance.fej.IdKorcsoport = vm.ageGroupId;\r\n vm.editedAttendance.fej.IdSzakosztaly = vm.sectionId;\r\n vm.editedAttendance.fej.KorosztalyosToltes = vm.allAgeGroupfill;\r\n vm.editedAttendance.fej.Megjegyzes = '';\r\n vm.editedAttendance.fej.Tavozott = 0;\r\n //vm.editedAttendance.fej.EdzoNev = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.editedAttendance.fej.SzakosztalyNev = angular.element('#sectionDropDown').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n if (angular.element('#ageGroupDropDown').data('ejDropDownList') && angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem().length > 0) {\r\n vm.editedAttendance.fej.KorcsoportNev = angular.element('#ageGroupDropDown').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.editedAttendance.fej.KorcsoportNev = 0;\r\n vm.ageGroupId = 0;\r\n }\r\n if (data !== null) {\r\n vm.dayz.CsutortokHely = data.CsutortokHely;\r\n vm.dayz.CsutortokIdo = data.CsutortokIdo;\r\n vm.dayz.HetfoHely = data.HetfoHely;\r\n vm.dayz.HetfoIdo = data.HetfoIdo;\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = data.KeddHely;\r\n vm.dayz.KeddIdo = data.KeddIdo;\r\n vm.dayz.PentekHely = data.PentekHely;\r\n vm.dayz.PentekIdo = data.PentekIdo;\r\n vm.dayz.SzerdaHely = data.SzerdaHely;\r\n vm.dayz.SzerdaIdo = data.SzerdaIdo;\r\n vm.dayz.SzombatHely = data.SzombatHely;\r\n vm.dayz.SzombatIdo = data.SzombatIdo;\r\n vm.dayz.VasarnapHely = data.VasarnapHely;\r\n vm.dayz.VasarnapIdo = data.VasarnapIdo;\r\n } else {\r\n vm.dayz.CsutortokHely = '';\r\n vm.dayz.CsutortokIdo = '';\r\n vm.dayz.HetfoHely = '';\r\n vm.dayz.HetfoIdo = '';\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = '';\r\n vm.dayz.KeddIdo = '';\r\n vm.dayz.PentekHely = '';\r\n vm.dayz.PentekIdo = '';\r\n vm.dayz.SzerdaHely = '';\r\n vm.dayz.SzerdaIdo = '';\r\n vm.dayz.SzombatHely = '';\r\n vm.dayz.SzombatIdo = '';\r\n vm.dayz.VasarnapHely = '';\r\n vm.dayz.VasarnapIdo = '';\r\n }\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n dataservice.getAthletesForMonthlyAttendance(vm.userid, vm.sectionId, vm.ageGroupId, vm.editedAttendance.fej.Datum)\r\n .then(function (data2) {\r\n if (data2.tetelek.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('ThereAreNoAthletesAtTheSelectedTimeForThisCoach'));\r\n } else {\r\n vm.data = data2.tetelek;\r\n vm.editedAttendance.tetelek = vm.data;\r\n console.log('UJ vm.editedAttendance.tetelek', vm.editedAttendance.tetelek);\r\n vm.editedAttendance.aktiv = data2.aktiv;\r\n vm.activePeriods = data2.aktiv;\r\n setIcons();\r\n }\r\n });\r\n });\r\n }\r\n\r\n function chechButtonStates() {\r\n for (var t = 0; t < vm.editedAttendance.tetelek.length; t++) {\r\n vm.editedAttendance.tetelek[t].JelenletOsszesen = -1;\r\n vm.editedAttendance.tetelek[t].HianyzasOsszesen = -1;\r\n vm.editedAttendance.tetelek[t].VersenyOsszesen = -1;\r\n var pressedButton = Number(vm.editedAttendance.tetelek[t].selectedIcon);\r\n if (vm.editedAttendance.tetelek[t].activeToday) {\r\n //console.log('chechButtonStates', vm.editedAttendance.tetelek[t].SportoloNev, pressedButton);\r\n switch (pressedButton) {\r\n case button.PRESENCE:\r\n //console.log('PRESENCE', vm.editedAttendance.tetelek[t]);\r\n if (vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day]) {\r\n if (isNaN(vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day])) {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 1;\r\n } else {\r\n if (vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] == 3) {\r\n log.htmlError(gettextCatalog.getString('Max3TrainingsPerDay') + ' ' + vm.editedAttendance.tetelek[t].SportoloNev);\r\n return false;\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day]++;\r\n }\r\n }\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 1;\r\n }\r\n break;\r\n case button.ABSENCE:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = '0';\r\n break;\r\n case button.COMPETITION:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'V';\r\n break;\r\n case button.HOLIDAY:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'Ü';\r\n break;\r\n case button.SICKNESS:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'B';\r\n break;\r\n case button.INJURY:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'S';\r\n break;\r\n case button.PROVENABSENCE:\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = 'H';\r\n break;\r\n }\r\n } else {\r\n vm.editedAttendance.tetelek[t]['Nap' + vm.today.Day] = null;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function saveAttendance() {\r\n if (chechButtonStates()) {\r\n saveAttendanceOK();\r\n }\r\n }\r\n\r\n function saveAttendanceOK() {\r\n dataservice.saveDailyAttendance(vm.editedAttendance).then(function (id) {\r\n if (!isMobile()) {\r\n paramHelper.setParams([{'monthlyAttendance.id': id.res}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n } else {\r\n $state.go('dashboard');\r\n }\r\n });\r\n }\r\n\r\n function getSections(userid) {\r\n dataservice.sectionDropDownList(userid)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n paramHelper.setParams([{'dailyAttendance.SzakosztalyId': args.value}]);\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupSelect(vm.userid, vm.sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.userid > 0 && vm.ageGroupList.length == 1 && vm.sectionList.length == 1) {\r\n setTimeout(function () {\r\n loadAttendance();\r\n }, 1000);\r\n }\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n vm.ageGroupId = 0;\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getCoaches() {\r\n dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.userid))[0];\r\n if (item) {\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n }\r\n }\r\n );\r\n }\r\n\r\n function DDClick(sportolo, action) {\r\n // console.log('DDClick sportolo=', sportolo, ' action=', action, 'coordinates=',vm.coordinates);\r\n if (sportolo == -1) {\r\n if (vm.clicked) {\r\n var now = new Date();\r\n var diff = now - vm.clicked;\r\n if (diff > 100) { // mert egymas utan ketszer fut le, eloszor a sportoloid-vel, utana -1 el. 100ms felett valodi kattintas\r\n CloseEveryOtherDropDowns(sportolo);\r\n }\r\n if (diff > 310) {\r\n $('#containerDiv').animate({marginBottom: '0px'}, 300);\r\n }\r\n }\r\n return;\r\n } else {\r\n $('#containerDiv').animate({marginBottom: '0px'}, 300);\r\n vm.clicked = new Date();\r\n CloseEveryOtherDropDowns(sportolo);\r\n }\r\n var SportoloItem = ej.DataManager(vm.editedAttendance.tetelek).executeLocal(new ej.Query().where('IdSportolo', 'equal', sportolo))[0];\r\n if (SportoloItem.hasOwnProperty('open') == false) {\r\n SportoloItem.open = false;\r\n }\r\n switch (action) {\r\n case 'open':\r\n SportoloItem.open = true;\r\n $('#DDL' + sportolo).addClass('open');\r\n break;\r\n case 'close':\r\n $('#DDL' + sportolo).removeClass('open');\r\n SportoloItem.open = false;\r\n break;\r\n case 'toggle':\r\n if (SportoloItem.open === true) {\r\n $('#DDL' + sportolo).removeClass('open');\r\n SportoloItem.open = false;\r\n } else {\r\n $('#DDL' + sportolo).addClass('open');\r\n SportoloItem.open = true;\r\n }\r\n break;\r\n }\r\n if (sportolo == vm.editedAttendance.tetelek[vm.editedAttendance.tetelek.length - 1].IdSportolo && SportoloItem.open) {\r\n $('#containerDiv').animate({marginBottom: '230px'}, 300);\r\n }\r\n if (sportolo > 0 && SportoloItem.open) {\r\n setTimeout(function () {\r\n ScrollDownIfNeeded(sportolo, vm.coordinates);\r\n }, 250);\r\n }\r\n }\r\n\r\n function ScrollDownIfNeeded(sportolo) {\r\n var DropDownSize = 290;\r\n var ImgPos = $('#IMG_' + sportolo).offset();\r\n var DdPosStart = ImgPos.top + 164;\r\n var DdPosEnd = DdPosStart + DropDownSize;\r\n var TopOfPage = $(window).scrollTop();\r\n var BottomOfPage = TopOfPage + window.screen.height;\r\n var diff = BottomOfPage - DdPosEnd;\r\n if (diff < 0) {\r\n $('html, body').stop().animate({scrollTop: TopOfPage - diff + 70}, 300);\r\n }\r\n }\r\n\r\n function CloseEveryOtherDropDowns(except) {\r\n vm.editedAttendance.tetelek.forEach(function (athlete) {\r\n if (athlete.IdSportolo !== except) {\r\n $('#DDL' + athlete.IdSportolo).removeClass('open');\r\n athlete.open = false;\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.dailyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.dailyAttendance',\r\n config: {\r\n url: '/dailyAttendance',\r\n templateUrl: 'app/administration/dailyAttendance/dailyAttendance.html',\r\n controller: 'DailyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'dailyAttendance',\r\n settings: {\r\n navId: 212,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Napi jelenlét',\r\n orderTitle_en: 'Daily Attendance',\r\n parentId: 2,\r\n content: 'dailyAttendance',\r\n permission: ['3', '4'],\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.exercises')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises',\r\n config: {\r\n url: '/exercises',\r\n templateUrl: 'app/administration/exercises/exercises.html',\r\n settings: {\r\n activatorPermission: ['\"MODGYAKORLAT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.exercises.exercisesCreate')\r\n .controller('ExercisesCreateController', ExercisesCreateController)\r\n .config(function ($sceProvider) {\r\n // Completely disable SCE. For demonstration purposes only!\r\n // Do not use in new projects or libraries.\r\n $sceProvider.enabled(false);\r\n });\r\n\r\n function ExercisesCreateController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, DOMAIN, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ExercisesCreate');\r\n\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n\r\n $scope.imageThumb = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'MS-thumbnail.png';\r\n $scope.dustbin = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'MS-dustbin.png';\r\n\r\n vm.formdata = {\r\n id: 0,\r\n bodyParts: null,\r\n sectionId: 0,\r\n ageGroupId: 0,\r\n coachId: 0,\r\n imageList: [],\r\n savedImageList: []\r\n };\r\n\r\n vm.addNewText = gettextCatalog.getString('addNewText');\r\n\r\n vm.save = save;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.publicChanged = publicChanged;\r\n vm.paintDataBound = paintDataBound;\r\n vm.paintSelect = paintSelect;\r\n vm.deleteExistingImg = deleteExistingImg;\r\n vm.deleteImg = deleteImg;\r\n vm.makeToThumb = makeToThumb;\r\n vm.openPaint = openPaint;\r\n vm.goToCreatePaint = goToCreatePaint;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJGYAKORLAT'), authenticationService.getRight('MODGYAKORLAT'), authenticationService.getRight('MEGTGYAKORLAT')]).then(function (results) {\r\n vm.UJGYAKORLAT = results[0];\r\n vm.MODGYAKORLAT = results[1];\r\n vm.MEGTGYAKORLAT = results[2];\r\n if (vm.UJGYAKORLAT !== true && vm.MODGYAKORLAT !== true && vm.MEGTGYAKORLAT !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['exercises.exerciseId'])]).then(function (results) {\r\n vm.exerciseId = results[0]['exercises.exerciseId'];\r\n paramHelper.removeParam('exercises.exerciseId');\r\n getSections();\r\n getTrainingPracticeAutoComplete();\r\n if (vm.exerciseId) {\r\n getExercise(vm.exerciseId);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTrainingPracticeAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete().then(function (data) {\r\n vm.bodyPartsList = data.data.Testresz;\r\n vm.typeList = data.data.Tipus;\r\n vm.individualTeamList = data.data.Jellege;\r\n vm.assertsList = data.data.Felszerelesek;\r\n });\r\n }\r\n\r\n function getExercise(exerciseId) {\r\n dataservice.getExercise(exerciseId).then(function (result) {\r\n $('#bodyParts').ejAutocomplete('clearText');\r\n $('#type').ejAutocomplete('clearText');\r\n $('#individualTeam').ejAutocomplete('clearText');\r\n $('#asserts').ejAutocomplete('clearText');\r\n vm.formdata = result.gyakorlat;\r\n\r\n // YOUTUBE\r\n vm.formdata.youtubeSeeing = angular.copy(vm.formdata.youtube);\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.replace('watch?v=', 'embed/');\r\n if (vm.formdata.youtubeSeeing.indexOf('&') !== -1) {\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.substring(0, vm.formdata.youtubeSeeing.indexOf('&'));\r\n }\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.split('embed/')[1];\r\n\r\n $('#playerWrapper').empty();\r\n $('#playerWrapper').append('<div id=\"player\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"' + vm.formdata.youtubeSeeing + '\"></div>');\r\n vm.player = new Plyr(document.getElementById('player'));\r\n\r\n vm.youtube = '';\r\n // YOUTUBE\r\n\r\n vm.thumbnail = false;\r\n\r\n var index = 0;\r\n vm.formdata.savedImageList.forEach(function (image) {\r\n if (vm.formdata.thumbnail == image.fileName) {\r\n vm.thumbnailIndex = index;\r\n }\r\n index++;\r\n });\r\n\r\n if (vm.formdata.thumbnail) {\r\n vm.thumbnail = true;\r\n }\r\n if (vm.formdata.thumbnail) {\r\n vm.thumbnail = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + vm.formdata.thumbnail;\r\n }\r\n vm.formdata.savedImageList.forEach(function (t) {\r\n t.fileUrl = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + t.fileName;\r\n });\r\n angular.element('#public').ejCheckBox({checked: vm.formdata.publikus});\r\n $('#sectionId').ejDropDownList('selectItemByValue', vm.formdata.sectionId);\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n $timeout(function () {\r\n $('.gallery-item').magnificPopup({\r\n type: 'image',\r\n gallery: {\r\n enabled: true,\r\n }\r\n });\r\n }, 1);\r\n });\r\n }\r\n\r\n vm.youtubeChanged = function () {\r\n if (vm.youtube) {\r\n // YOUTUBE\r\n vm.formdata.youtubeSeeing = angular.copy(vm.youtube);\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.replace('watch?v=', 'embed/');\r\n vm.formdata.youtube = vm.formdata.youtubeSeeing;\r\n if (vm.formdata.youtubeSeeing.indexOf('&') !== -1) {\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.substring(0, vm.formdata.youtubeSeeing.indexOf('&'));\r\n }\r\n\r\n vm.formdata.youtubeSeeing = vm.formdata.youtubeSeeing.split('embed/')[1];\r\n\r\n $('#playerWrapper').empty();\r\n $('#playerWrapper').append('<div id=\"player\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"' + vm.formdata.youtubeSeeing + '\"></div>');\r\n vm.player = new Plyr(document.getElementById('player'));\r\n // YOUTUBE\r\n vm.youtube = '';\r\n }\r\n };\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionId').ejDropDownList('selectItemByValue', vm.formdata.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formdata.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formdata.sectionId)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.formdata.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formdata.ageGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formdata.sectionId, vm.formdata.ageGroupId).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.formdata.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formdata.coachId = args.value;\r\n getPaints();\r\n }\r\n\r\n function getPaints() {\r\n return dataservice.GetPaints(vm.formdata.sectionId, vm.formdata.ageGroupId, vm.formdata.coachId)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('None'), value: 0});\r\n vm.paintList = data.itemsList;\r\n });\r\n }\r\n\r\n function paintDataBound() {\r\n if (vm.formdata.paintId && vm.formdata.paintId > 0) {\r\n angular.element('#paintId').ejDropDownList('selectItemByValue', vm.formdata.paintId);\r\n } else {\r\n angular.element('#paintId').ejDropDownList('selectItemByValue', 0);\r\n }\r\n }\r\n\r\n function paintSelect(args) {\r\n vm.formdata.paintId = args.value;\r\n }\r\n\r\n function save() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n vm.formdata.imageList = [];\r\n for (var i = 0; i < $scope.files.length; i++) {\r\n vm.formdata.imageList.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n\r\n /* vagy a getExercise-ban az alábbi sor előtt kell egy\r\n angular.element('#bodyParts').ejAutocomplete('clearText');\r\n vm.formdata = result.gyakorlat;\r\n */\r\n vm.formdata.bodyParts = angular.element('#bodyParts').ejAutocomplete('getValue');\r\n vm.formdata.type = angular.element('#type').ejAutocomplete('getValue');\r\n vm.formdata.individualTeam = angular.element('#individualTeam').ejAutocomplete('getValue');\r\n vm.formdata.asserts = angular.element('#asserts').ejAutocomplete('getValue');\r\n return dataservice.saveExercise(vm.formdata).then(function (results) {\r\n vm.formdata.id = results.res;\r\n vm.formdata.imageList = [];\r\n $scope.imageDatas = [];\r\n $scope.files = [];\r\n log.htmlSuccess(gettextCatalog.getString('Saved'));\r\n getExercise(vm.formdata.id);\r\n });\r\n }\r\n }\r\n\r\n function deleteImg(index) {\r\n $scope.files.splice(index, 1);\r\n $scope.imageDatas.splice(index, 1);\r\n }\r\n\r\n function deleteExistingImg(index) {\r\n if (vm.thumbnailIndex === index) {\r\n vm.thumbnail = null;\r\n vm.formdata.thumbnail = null;\r\n }\r\n vm.formdata.savedImageList.splice(index, 1);\r\n }\r\n\r\n function publicChanged(args) {\r\n vm.formdata.publikus = args.value;\r\n }\r\n\r\n function makeToThumb(fileIndex) {\r\n var volt = false;\r\n $.each(vm.formdata.savedImageList, function (index, item) {\r\n item.thumbnail = index === fileIndex;\r\n if (index === fileIndex) {\r\n volt = true;\r\n vm.thumbnailIndex = fileIndex;\r\n vm.thumbnail = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + item.fileName;\r\n }\r\n });\r\n if (!volt) {\r\n vm.thumbnail = null;\r\n }\r\n }\r\n\r\n function openPaint() {\r\n var id = $('#paintId').ejDropDownList('getSelectedValue');\r\n var saved = save();\r\n if (id > 0 && saved) {\r\n saved.then(function () {\r\n paramHelper.setParams([{'Paint.id': id}, {'exercises.exerciseId': vm.formdata.id}]);\r\n $state.go('paint');\r\n });\r\n }\r\n }\r\n\r\n function goToCreatePaint() {\r\n var saved = save();\r\n if (saved) {\r\n saved.then(function () {\r\n paramHelper.setParams([{'exercises.exerciseId': vm.formdata.id}]);\r\n $state.go('paint');\r\n });\r\n }\r\n }\r\n\r\n vm.deleteVideo = function () {\r\n vm.formdata.youtube = null;\r\n if (vm.player) {\r\n vm.player.destroy();\r\n }\r\n $('#player').remove();\r\n };\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.exercises.exercisesCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises.exercisesCreate',\r\n config: {\r\n url: '/exercisesCreate',\r\n templateUrl: 'app/administration/exercises/exercisesCreate/exercisesCreate.html',\r\n controller: 'ExercisesCreateController',\r\n controllerAs: 'vm',\r\n title: 'ExercisesCreate',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.exercises.exercisesList')\r\n .controller('ExercisesListController', ExercisesListController);\r\n\r\n function ExercisesListController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, DOMAIN, $scope, $timeout, authenticationService, $state, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ExercisesList');\r\n\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.youtubeIcon = DOMAIN.baseURL + DOMAIN.youtubeIcon;\r\n\r\n vm.SzakosztalyId = 0;\r\n vm.KorosztalyId = 0;\r\n vm.EdzoId = 0;\r\n vm.dataSource = [];\r\n vm.MODGYAKORLAT = false;\r\n vm.UJGYAKORLAT = false;\r\n\r\n // autoComplete\r\n vm.bodyPartValue = '';\r\n vm.TypeValue = '';\r\n vm.individualTeamValue = '';\r\n vm.AssetValue = '';\r\n vm.difficultyValue = '';\r\n vm.timeValue = '';\r\n vm.necessaryAreaValue = '';\r\n vm.withVideo = false;\r\n vm.withPattern = false;\r\n vm.withPaint = false;\r\n vm.public = false;\r\n\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 60},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), width: 150, textAlign: 'center', template: '#wtpropentemp'},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 115, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('Video'), width: 80, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {field: 'SzakosztalyId', visible: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), width: 150, textAlign: 'center'},\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n {field: 'Tipus', headerText: gettextCatalog.getString('Type'), width: 150, textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), width: 150, textAlign: 'center'},\r\n {field: 'Felszerelesek', headerText: gettextCatalog.getString('Assets'), width: 150, textAlign: 'center'},\r\n {field: 'Publikus', headerText: gettextCatalog.getString('Public'), width: 100, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Kifesto', headerText: gettextCatalog.getString('Paint'), width: 150, textAlign: 'center'},\r\n {field: 'JatekosokSzama', headerText: gettextCatalog.getString('Players'), width: 100, textAlign: 'center'},\r\n {field: 'Nehezseg', headerText: gettextCatalog.getString('Difficulty'), width: 100, textAlign: 'center'},\r\n {field: 'SzuksegesTerulet', headerText: gettextCatalog.getString('Space'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getDatas = getDatas;\r\n vm.goToExercise = goToExercise;\r\n vm.deleteExercise = deleteExercise;\r\n vm.create = create;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([getSections(), paramHelper.getParams([], ['exercisesList.SzakosztalyId', 'exercisesList.KorosztalyId', 'exercisesList.EdzoId']), authenticationService.getRight('MODGYAKORLAT'), authenticationService.getRight('UJGYAKORLAT')]).then(function (results) {\r\n if (results[1]['exercisesList.SzakosztalyId']) {\r\n vm.SzakosztalyId = results[1]['exercisesList.SzakosztalyId'];\r\n vm.SzakosztalyId = results[1]['exercisesList.SzakosztalyId'];\r\n }\r\n if (results[1]['exercisesList.KorosztalyId']) {\r\n vm.KorosztalyId = results[1]['exercisesList.KorosztalyId'];\r\n vm.KorosztalyId = results[1]['exercisesList.KorosztalyId'];\r\n }\r\n if (results[1]['exercisesList.EdzoId']) {\r\n vm.EdzoId = results[1]['exercisesList.EdzoId'];\r\n vm.EdzoId = results[1]['exercisesList.EdzoId'];\r\n }\r\n vm.MODGYAKORLAT = results[2];\r\n vm.UJGYAKORLAT = results[3];\r\n getAutoComplete();\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n $('#sectionDropDown').ejDropDownList('selectItemByValue', vm.SzakosztalyId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SzakosztalyId = args.value;\r\n if (!vm.KorosztalyId) {\r\n vm.KorosztalyId = 0;\r\n }\r\n if (!vm.EdzoId) {\r\n vm.EdzoId = 0;\r\n }\r\n getAgeGroups(args.value);\r\n getCoachList();\r\n paramHelper.setParams([{'exercisesList.SzakosztalyId': args.value}]);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n $('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.KorosztalyId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.KorosztalyId = args.value;\r\n getCoachList(args.value);\r\n paramHelper.setParams([{'exercisesList.KorosztalyId': args.value}]);\r\n }\r\n\r\n function getCoachList(KorosztalyId) {\r\n return dataservice.coachDropDownList(vm.SzakosztalyId, KorosztalyId, new Date(1754, 1, 1), new Date(3000, 1, 1))\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n $('#coachDropDown').ejDropDownList('selectItemByValue', vm.EdzoId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.EdzoId = args.value;\r\n paramHelper.setParams([{'exercisesList.EdzoId': args.value}]);\r\n }\r\n\r\n // function bottom\r\n function getAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete()\r\n .then(function (result) {\r\n vm.autoComplete = result.data;\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getExercises(vm.SzakosztalyId, vm.KorosztalyId, vm.EdzoId, vm.bodyPartValue, vm.TypeValue, vm.individualTeamValue, vm.AssetValue, vm.difficultyValue, vm.necessaryAreaValue, vm.withVideo, vm.withPattern, vm.withPaint, vm.timeValue, vm.public).then(function (response) {\r\n grid.dataSource = $filter('addImagePathToObject')(response.itemsList, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n function goToExercise(id) {\r\n if (vm.MODGYAKORLAT) {\r\n paramHelper.setParams([\r\n {'exercises.exerciseId': id},\r\n {'exercisesList.SzakosztalyId': vm.SzakosztalyId},\r\n {'exercisesList.KorosztalyId': vm.KorosztalyId},\r\n {'exercisesList.EdzoId': vm.EdzoId}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function deleteExercise(id) {\r\n if (vm.MODGYAKORLAT) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToDelete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteExercise(id).then(function (response) {\r\n if (response.retValue === true) {\r\n getDatas();\r\n log.htmlSuccess(gettextCatalog.getString('ExerciseDeleted'));\r\n }\r\n });\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function create() {\r\n if (vm.UJGYAKORLAT) {\r\n paramHelper.setParams([\r\n {'exercisesList.SzakosztalyId': vm.SzakosztalyId},\r\n {'exercisesList.KorosztalyId': vm.KorosztalyId},\r\n {'exercisesList.EdzoId': vm.EdzoId}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.exercises.exercisesList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.exercises.exercisesList',\r\n config: {\r\n url: '/exercisesList',\r\n templateUrl: 'app/administration/exercises/exercisesList/exercisesList.html',\r\n controller: 'ExercisesListController',\r\n controllerAs: 'vm',\r\n title: 'ExercisesList',\r\n settings: {\r\n navId: 2162,\r\n level: 2,\r\n order: 16,\r\n orderTitle_hu: 'Gyakorlat lista',\r\n orderTitle_en: 'Exercises List',\r\n parentId: 2,\r\n content: 'ExercisesList'\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance',\r\n config: {\r\n url: '/monthlyAttendance',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendance.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceList')\r\n .controller('MonthlyAttendanceListController', MonthlyAttendanceListController);\r\n\r\n function MonthlyAttendanceListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceList');\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn5'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }, {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn1'\r\n }, {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#moatlitemplateDataColumn2'\r\n\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }, {\r\n field: 'CsoportLetszam',\r\n headerText: gettextCatalog.getString('CsoportLetszam'),\r\n textAlign: 'center',\r\n width: 120,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n }, {\r\n field: 'Erkezett',\r\n headerText: gettextCatalog.getString('Erkezett'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n }, {\r\n field: 'Tavozott',\r\n headerText: gettextCatalog.getString('Tavozott'),\r\n textAlign: 'center',\r\n width: 100,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoLezarta',\r\n headerText: gettextCatalog.getString('EdzoLezarta'),\r\n textAlign: 'center',\r\n width: 120,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false,\r\n type: 'boolean',\r\n template: '#moatlitemplateDataColumn3'\r\n }, {\r\n field: 'SzakvezJovahagyta',\r\n headerText: gettextCatalog.getString('SzakvezJovahagyta'),\r\n textAlign: 'center',\r\n width: 150,\r\n cssClass: 'rotate90degreegridheader2',\r\n allowEditing: false,\r\n type: 'boolean',\r\n template: '#moatlitemplateDataColumn4'\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function setInitVals() {\r\n //grid adatai\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n //Lekérés típusa\r\n vm.modeList = [\r\n gettextCatalog.getString('MindenHaviJelenleti'),\r\n gettextCatalog.getString('CsakLezartHaviJelenletik'),\r\n gettextCatalog.getString('CsakNemLezartHaviJelenletik')\r\n ];\r\n //Kiválasztott lekérés típusa\r\n vm.selectedMode = gettextCatalog.getString('MindenHaviJelenleti');\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n vm.years.push(gettextCatalog.getString('AllYear'));\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n //Hónapok\r\n vm.months = [\r\n {\r\n text: gettextCatalog.getString('AllMonth'),\r\n value: -1\r\n },\r\n {\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }];\r\n //Kiválasztott hónap\r\n vm.selectedMonth = -1; //new Date().getMonth();\r\n //A gridben megjelenő adatok\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.createNewAttendance = createNewAttendance;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.yearChanged = yearChanged;\r\n\r\n activate();\r\n\r\n //inicializálás\r\n function activate() {\r\n authenticationService.getRight('MEGTHAVIJEL').then(function (res) {\r\n if (!res) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n getCoaches(),\r\n authenticationService.getRight('HJFELVIHET'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n paramHelper.getParams([], ['monthlyAttendance.coachId', 'monthlyAttendance.year', 'monthlyAttendance.month', 'monthlyAttendance.selectedMode'])\r\n ];\r\n return $q.all(promises).then(function (results) {\r\n vm.HJFELVIHET = results[1];\r\n vm.MEGTFELH = results[2];\r\n vm.MEGTKOROKEZ = results[3];\r\n vm.MEGTHAVIJEL = results[4];\r\n $timeout(function () {\r\n vm.selectedCoach = results[5]['monthlyAttendance.coachId'];\r\n vm.selectedMode = results[5]['monthlyAttendance.selectedMode'];\r\n vm.selectedYear = results[5]['monthlyAttendance.year'];\r\n vm.selectedMonth = results[5]['monthlyAttendance.month'];\r\n }, 100);\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n //refreshData();\r\n });\r\n }\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n /*\r\n var listObj = new ej.dropdowns.DropDownList({\r\n dataSource: vm.coachList,\r\n // set the index value to select an item based on index at initial rendering\r\n index: vm.selectedCoach,\r\n // set the placeholder to DropDownList input element\r\n placeholder: 'Select a couach',\r\n // bind the change event\r\n change: function (args) { coachChanged(args); }\r\n });\r\n listObj.appendTo('#maEdzo');\r\n */\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n console.log(args);\r\n /*\r\n vm.selectedCoach = args.value;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedCoach))[0];\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.selectedSection = 0;\r\n */\r\n }\r\n\r\n function createNewAttendance() {\r\n goToMonthlyAttendance(-1);\r\n }\r\n\r\n //Melyik az adott év/hónap utolsó napja?\r\n function daysInMonth(anyDateInMonth) {\r\n return new Date(anyDateInMonth.getFullYear(), anyDateInMonth.getMonth() + 1, 0).getDate();\r\n }\r\n\r\n function refreshData() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n\r\n saveParameters();\r\n var tol = new Date();\r\n var day = 0;\r\n var ig = 0;\r\n var year = isNaN(vm.selectedYear) ? 1754 : vm.selectedYear;\r\n var month = isNaN(vm.selectedMonth) ? 1 : vm.selectedMonth;\r\n\r\n if (vm.selectedMonth == -1) {\r\n tol = new Date(year, 0, 1, 0, 0, 0);\r\n day = daysInMonth(new Date(year === 1754 ? 9999 : year, 12, 1));\r\n ig = new Date(year === 1754 ? 9999 : year, 11, day, 23, 59, 59);\r\n } else {\r\n tol = new Date(year, month, 1, 0, 0, 0);\r\n day = daysInMonth(new Date(year, month, 1));\r\n ig = new Date(year === 1754 ? 9999 : year, month, day, 23, 59, 59);\r\n }\r\n\r\n var coach = 0;\r\n if (vm.selectedCoach) {\r\n coach = vm.selectedCoach;\r\n }\r\n\r\n var lezart = 0;\r\n if (vm.selectedMode === gettextCatalog.getString('CsakLezartHaviJelenletik')) {\r\n lezart = 1;\r\n } else if (vm.selectedMode === gettextCatalog.getString('CsakNemLezartHaviJelenletik')) {\r\n lezart = 2;\r\n }\r\n\r\n dataservice.getMonthlyAttendanceList(coach, tol, ig, lezart).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'newUser.userId': edzoId\r\n }]);\r\n saveParameters();\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'ageGroups.ageGroup': ageGroupId\r\n }]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function saveParameters() {\r\n paramHelper.setParams([{\r\n 'monthlyAttendance.month': vm.selectedMonth,\r\n 'monthlyAttendance.year': vm.selectedYear,\r\n 'monthlyAttendance.coachId': vm.selectedCoach,\r\n 'monthlyAttendance.selectedMode': vm.selectedMode\r\n\r\n }]);\r\n }\r\n\r\n function goToMonthlyAttendance(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{\r\n 'monthlyAttendance.id': attendanceId\r\n\r\n }]);\r\n saveParameters();\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function yearChanged(args) {\r\n if (args.itemId === 0) {\r\n vm.selectedMonth = -1;\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance.monthlyAttendanceList',\r\n config: {\r\n url: '/monthlyAttendanceList',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.html',\r\n controller: 'MonthlyAttendanceListController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceList',\r\n settings: {\r\n navId: 274,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Korábbi havi jelenléti összesítők',\r\n orderTitle_en: 'Previous Monthly Attendance Sheet Report',\r\n parentId: 4,\r\n content: 'MonthlyAttendanceList',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceReport')\r\n .controller('MonthlyAttendanceReportController', MonthlyAttendanceController);\r\n\r\n function MonthlyAttendanceController(dataservice, log, $q, $state, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $compile, $timeout, $interval) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n vm.autoSave = undefined;\r\n vm.readOnlyAttendance = false;\r\n vm.AthleteUnderEditing = '';\r\n vm.allowAthleteRefresh = true;\r\n vm.AthleteUnderEditingText = gettextCatalog.getString('ActualAthlete');\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceReport');\r\n vm.openTrainingDiary = openTrainingDiary;\r\n vm.cellSave = cellSave;\r\n vm.activePeriods = [];\r\n var printOpened = false;\r\n var newAthletesId = -1;\r\n var prev = '';\r\n vm.plannedTrainings = undefined;\r\n vm.SetForAll = SetForAll;\r\n vm.defaultTeamInformations = false;\r\n vm.errors = [];\r\n vm.editedRowId = 0;\r\n vm.editedColumnName = '';\r\n vm.selectionMode = ['cell'];\r\n vm.gridRowSelected = gridRowSelected;\r\n // Grid's details\r\n vm.reportParameters = {};\r\n vm.selectedAthleteName = '';\r\n vm.yearDataBound = yearDataBound;\r\n vm.monthDataBound = monthDataBound;\r\n vm.elem;\r\n vm.maskObject;\r\n vm.CopyCellToColumn = CopyCellToColumn;\r\n var tableEditorTemplate =\r\n {\r\n create: function () {\r\n var btn = document.createElement('button');\r\n btn.setAttribute('type', 'button');\r\n btn.textContent = '↕';\r\n btn.style.width = '30px';\r\n btn.style.minWidth = '30px';\r\n btn.style.height = '28px';\r\n btn.style.color = 'black';\r\n btn.style.marginLeft = '-7px';\r\n btn.style.display = 'inline';\r\n var txt = document.createElement('input');\r\n txt.style.width = '20px';\r\n txt.style.float = 'left';\r\n // var elem=document.createElement('div');\r\n // elem.style.display='inline';\r\n // elem.appendChild(txt);\r\n // elem.appendChild(btn);\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n var res = vm.maskObject.getMaskedValue();\r\n return res === '_' ? '' : res;\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.allowAthleteRefresh = false;\r\n $scope.$apply();\r\n var s = args.element.id.toString().replace('GridNew', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '20px',\r\n mask: '>C',\r\n customCharacters: {C: 'bBüÜvVsShH0123-'},\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', '')\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n var gridNew;\r\n\r\n function queryCellInfo(args) {\r\n var element = angular.element(args.cell);\r\n var sportolo = args.data.IdSportolo;\r\n if (args.column.field.indexOf('Nap') !== -1) {\r\n var nap = args.column.field.substring(3);\r\n var sor = findLine(sportolo);\r\n if ((args.column.headerText.toString().indexOf(gettextCatalog.getString('MondayAbbr')) !== -1) || (args.column.headerText.toString().indexOf('MondayAbbr') !== -1)) {\r\n element.css('background-color', '#d2e4ff');\r\n }\r\n if (sor && sor['Nap' + nap] === '0') {\r\n element.css('background-color', '#efdcdc');\r\n }\r\n }\r\n }\r\n\r\n //Jelenlét százalék\r\n vm.presencePercentSum = 0;\r\n //Jelenlét számolásához kell\r\n vm.presenceTotalSum = 0;\r\n vm.presencePlannedTotalSum = 0;\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n vm.dayz = {};\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n //Hónapok\r\n vm.months = [\r\n {\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }\r\n ];\r\n //Kiválasztott hónap\r\n vm.yearValue = new Date().getFullYear();\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.monthValue = new Date().getMonth();\r\n vm.selectedMonth = new Date().getMonth();\r\n //Napok nevei (rövidítve)\r\n vm.days = [\r\n gettextCatalog.getString('SundayAbbr'),\r\n gettextCatalog.getString('MondayAbbr'),\r\n gettextCatalog.getString('TuesdayAbbr'),\r\n gettextCatalog.getString('WednesdayAbbr'),\r\n gettextCatalog.getString('ThursdayAbbr'),\r\n gettextCatalog.getString('FridayAbbr'),\r\n gettextCatalog.getString('SaturdayAbbr')\r\n ];\r\n //Edzők listája, kiválasztott edző\r\n vm.coachList = [];\r\n //Szakosztályok listája, kiválasztott szakosztály\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n //Korcsoportok listája, kiválasztott korcsoport\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.saveButtonEnabled = true;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.attendanceOverChangeAthleteNames = '';\r\n //Havi jelenléti utolsó kitöltött nap\r\n vm.attendanceLastFilledDay = 0;\r\n //Minden korcsoportot egyszerre tölt az edző\r\n vm.allAgeGroupfill = false;\r\n //A szerkesztés alatt álló havi jelenléti\r\n vm.editedAttendance = {};\r\n //Jelenlét hiba volt a mentés során\r\n vm.hasErrorAtSave = false;\r\n //Visszautasítás indoka kerül bele\r\n vm.rejectAttendanceText = '';\r\n\r\n vm.attendanceSelect = attendanceSelect;\r\n vm.saveAttendance = saveAttendance;\r\n vm.closeMonthlyAttendance = closeMonthlyAttendance;\r\n vm.rejectMonthlyAttendance = rejectMonthlyAttendance;\r\n vm.closerejectingWindow = closerejectingWindow;\r\n vm.rejectAttendance = rejectAttendance;\r\n vm.acceptMonthlyAttendance = acceptMonthlyAttendance;\r\n // coach dropdown\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n // section dropdown\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n // ageGroup dropdown\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // year dropdown\r\n vm.yearSelect = yearSelect;\r\n // month dropdown\r\n vm.monthSelect = monthSelect;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.goToOlderMonthlyAttendanceReports = goToOlderMonthlyAttendanceReports;\r\n vm.CopyTimeAndPlaceFromWeeklyPlan = CopyTimeAndPlaceFromWeeklyPlan;\r\n vm.print = print;\r\n vm.runOnce = 0;\r\n vm.openTrainingDiaryAfterSave = false;\r\n\r\n vm.defaultSection = undefined;\r\n vm.defaultAgeGroup = undefined;\r\n vm.defaultCoach = undefined;\r\n vm.yearValue = vm.selectedYear;\r\n vm.defaultMonth = undefined;\r\n var JelenletTipus =\r\n {\r\n IgazoltHianyzas: 0,\r\n Serules: 1,\r\n Verseny: 2,\r\n Betegseg: 3\r\n };\r\n // Default beállítások\r\n vm.attendanceChecked = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n\r\n activate();\r\n\r\n function openTrainingDiary() {\r\n vm.openTrainingDiaryAfterSave = true;\r\n if (!vm.readOnlyAttendance) {\r\n gridNew.endEdit();\r\n }\r\n if (vm.readOnlyAttendance) {\r\n paramHelper.setParams([{'HaviJelenletiFejId': vm.editedAttendance.fej.Id}]);\r\n $state.go('administration.trainingDiary');\r\n } else {\r\n //saveAttendance();\r\n saveFunction(true).then(function (response) {\r\n console.log('saveFunction response', response);\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n }\r\n\r\n function findLine(sportolo) {\r\n for (var i = 0; i < vm.activePeriods.length; i++) {\r\n if (vm.activePeriods[i].IdSportolo == sportolo) {\r\n return vm.activePeriods[i];\r\n }\r\n }\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['monthlyAttendance.id', 'monthlyAttendance.sectionId', 'monthlyAttendance.ageGroupId', 'monthlyAttendance.coachId', 'monthlyAttendance.year', 'monthlyAttendance.month', 'monthlyAttendance.autoSave']), authenticationService.getRight('EDZO'), authenticationService.getRight('ADMIN'), authenticationService.getRight('SZAKOSZTVEZ'), authenticationService.getRight('TECHIGAZGATO'), authenticationService.getRight('HJALAIR1'), authenticationService.getRight('HJALAIR2'), authenticationService.getRight('HJFELVIHET'), authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTHAVIJEL'), getSystemSettingsValue('JELENLETNEKSZAMIT')])\r\n .then(function (results) {\r\n vm.EDZO = results[1];\r\n vm.ADMIN = results[2];\r\n vm.SZAKOSZTVEZ = results[3];\r\n vm.TECHIGAZGATO = results[4];\r\n vm.HJALAIR1 = results[5];\r\n vm.HJALAIR2 = results[6];\r\n vm.HJFELVIHET = results[7];\r\n vm.MEGTSPORTLIST = results[8];\r\n vm.MEGTHAVIJEL = results[9];\r\n if (results[10] && results[10] != null) {\r\n vm.attendanceChecked = JSON.parse(results[10]);\r\n }\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n dataservice.getMonthlyAttendanceAutoSave().then(function (autoSave) {\r\n if (vm.HJFELVIHET) {\r\n vm.autoSave = autoSave.data;\r\n } else {\r\n vm.autoSave = false;\r\n }\r\n angular.element('#autoSaveCheckBox').ejCheckBox({checked: autoSave.data});\r\n });\r\n if (results[0]['monthlyAttendance.sectionId']) {\r\n vm.defaultSection = results[0]['monthlyAttendance.sectionId'];\r\n }\r\n\r\n if (results[0]['monthlyAttendance.ageGroupId']) {\r\n vm.defaultAgeGroup = results[0]['monthlyAttendance.ageGroupId'];\r\n }\r\n if (results[0]['monthlyAttendance.coachId']) {\r\n vm.defaultCoach = results[0]['monthlyAttendance.coachId'];\r\n }\r\n if (results[0]['monthlyAttendance.year']) {\r\n vm.selectedYear = results[0]['monthlyAttendance.year'];\r\n }\r\n if (results[0]['monthlyAttendance.month']) {\r\n vm.selectedMonth = results[0]['monthlyAttendance.month'];\r\n }\r\n if (results[0]['monthlyAttendance.id'] && results[0]['monthlyAttendance.id'] !== -1) {\r\n dataservice.monthlyAttendanceSelectById(results[0]['monthlyAttendance.id']).then(function (data) {\r\n paramHelper.removeParam('monthlyAttendance.id');\r\n createGrid(data.columns);\r\n if (data.fej) {\r\n vm.activePeriods = data.aktiv;\r\n //paramHelper.removeParam('monthlyAttendance.id');\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', new Date(data.fej.Datum).getFullYear());\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', new Date(data.fej.Datum).getMonth());\r\n gridNew.dataSource = data.fej ? data.fej : [];\r\n vm.defaultSection = data.fej.IdSzakosztaly ? data.fej.IdSzakosztaly : vm.defaultSection;\r\n vm.defaultCoach = data.fej.IdEdzo ? data.fej.IdEdzo : vm.defaultCoach;\r\n vm.defaultAgeGroup = data.fej.IdKorcsoport ? data.fej.IdKorcsoport : vm.defaultAgeGroup;\r\n getCoaches();\r\n viewMonthlyAttendance(data);\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n } else {\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n if (response.hasOwnProperty('retValue')) {\r\n return response.retValue;\r\n }\r\n return null;\r\n });\r\n }\r\n\r\n function CopyTimeAndPlaceFromWeeklyPlan() {\r\n dataservice.CopyTimeAndPlaceFromWeeklyPlan(vm.editedAttendance.fej.Id).then(function (response) {\r\n if (response.data) {\r\n if (response.data.HetfoHely.length > 0) {\r\n vm.dayz.HetfoHely = response.data.HetfoHely;\r\n }\r\n if (response.data.HetfoIdo.length > 0) {\r\n vm.dayz.HetfoIdo = response.data.HetfoIdo;\r\n }\r\n if (response.data.KeddHely.length > 0) {\r\n vm.dayz.KeddHely = response.data.KeddHely;\r\n }\r\n if (response.data.KeddIdo.length > 0) {\r\n vm.dayz.KeddIdo = response.data.KeddIdo;\r\n }\r\n if (response.data.SzerdaHely.length > 0) {\r\n vm.dayz.SzerdaHely = response.data.SzerdaHely;\r\n }\r\n if (response.data.SzerdaIdo.length > 0) {\r\n vm.dayz.SzerdaIdo = response.data.SzerdaIdo;\r\n }\r\n if (response.data.CsutortokHely.length > 0) {\r\n vm.dayz.CsutortokHely = response.data.CsutortokHely;\r\n }\r\n if (response.data.CsutortokIdo.length > 0) {\r\n vm.dayz.CsutortokIdo = response.data.CsutortokIdo;\r\n }\r\n if (response.data.PentekHely.length > 0) {\r\n vm.dayz.PentekHely = response.data.PentekHely;\r\n }\r\n if (response.data.PentekIdo.length > 0) {\r\n vm.dayz.PentekIdo = response.data.PentekIdo;\r\n }\r\n if (response.data.SzombatHely.length > 0) {\r\n vm.dayz.SzombatHely = response.data.SzombatHely;\r\n }\r\n if (response.data.SzombatIdo.length > 0) {\r\n vm.dayz.SzombatIdo = response.data.SzombatIdo;\r\n }\r\n if (response.data.VasarnapHely.length > 0) {\r\n vm.dayz.VasarnapHely = response.data.VasarnapHely;\r\n }\r\n if (response.data.VasarnapIdo.length > 0) {\r\n vm.dayz.VasarnapIdo = response.data.VasarnapIdo;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('NoPlaceAndTimeDataFoundOnWeeklyTrainingPlan'));\r\n }\r\n });\r\n }\r\n\r\n function SetForAll() {\r\n //gridNew.editModule.batchSave();\r\n gridNew.endEdit();\r\n var names = '';\r\n var canSet = true;\r\n for (var i = 0; i < gridNew.dataSource.length; i++) {\r\n if ((gridNew.dataSource[i].JelenletOsszesen + gridNew.dataSource[i].HianyzasOsszesen) > vm.plannedTrainings) {\r\n canSet = false;\r\n names += gridNew.dataSource[i].SportoloNev + ', ';\r\n }\r\n }\r\n if (!canSet) {\r\n names = names.substring(0, names.length - 2);\r\n log.errorMsg(gettextCatalog.getString('PresencePlusAbsenceIsGreaterThanPlannedMonthlyAttendance') + ':<br><br>' + names);\r\n return;\r\n }\r\n for (var i = 0; i < gridNew.dataSource.length; i++) {\r\n gridNew.dataSource[i].HaviOsszEdzesszam = vm.plannedTrainings;\r\n }\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.defaultCoach);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n var item = ej.DataManager(vm.coachList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedCoach))[0];\r\n vm.allAgeGroupfill = item.HaviJelenletiKorosztalyonkent;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.selectedCoach)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.selectedCoach, vm.selectedSection, new Date(vm.selectedYear, vm.selectedMonth, 1, 12, 0, 0))\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n if (vm.defaultAgeGroup) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.defaultAgeGroup);\r\n } else if (vm.selectedAgeGroup) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n }\r\n\r\n // Run after selection\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after selection\r\n function monthSelect(args) {\r\n vm.selectedMonth = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n // Run after selection\r\n function yearSelect(args) {\r\n vm.selectedYear = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n //'Választ' nyomógomb click\r\n function attendanceSelect() {\r\n vm.runOnce = 0;\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n //gridNew.dataSource = [];\r\n var kivDatum = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0, 0);\r\n var dt = new Date(new Date().getFullYear(), new Date().getMonth(), 1, 0, 0, 0, 0);\r\n dt.setMonth(dt.getMonth() + 1);\r\n if (kivDatum >= dt) {\r\n log.errorMsg('WrongDate');\r\n return;\r\n }\r\n dataservice.monthlyAttendanceSelect(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup,\r\n vm.selectedYear, (isNaN(vm.selectedMonth) ? 1 : Number(vm.selectedMonth)) + 1).then(function (data) {\r\n vm.saveButtonEnabled = true;\r\n createGrid(data.columns);\r\n viewMonthlyAttendance(data);\r\n vm.editedAttendance.aktiv = data.aktiv;\r\n vm.activePeriods = data.aktiv;\r\n if (data && data.fej && data.fej.Id) {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.year': vm.selectedYear},\r\n {'monthlyAttendance.month': vm.selectedMonth},\r\n {'monthlyAttendance.id': data.fej.Id}\r\n ]);\r\n } else {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.year': vm.selectedYear},\r\n {'monthlyAttendance.month': vm.selectedMonth},\r\n {'monthlyAttendance.id': -1}\r\n ]);\r\n }\r\n });\r\n }\r\n\r\n vm.rowNumber = 0;\r\n vm.columnNumber = 0;\r\n\r\n function createGrid(columns) {\r\n for (var i = 0; i < columns.length; i++) {\r\n if (columns[i].edit) {\r\n columns[i].edit = tableEditorTemplate;\r\n }\r\n if (i === (columns.length - 1)) {\r\n if (!gridNew) {\r\n gridNew = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['ExcelExport'],\r\n allowPaging: false,\r\n allowExcelExport: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n //frozenColumns: 4,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: columns,\r\n cellSave: vm.cellSave,\r\n queryCellInfo: queryCellInfo,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: vm.gridRowSelected,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridNew'), $scope);\r\n }\r\n },\r\n cellEdit: function (arg) {\r\n vm.columnNumber = gridNew.columns.findIndex(function (element) {\r\n return element.field === arg.columnName;\r\n });\r\n vm.rowNumber = gridNew.dataSource.findIndex(function (element) {\r\n return element.Id === arg.rowData.Id;\r\n });\r\n if (arg.columnName.indexOf('Nap') !== -1) {\r\n var nap = arg.columnName.substring(3);\r\n var sor = findLine(arg.rowData.IdSportolo);\r\n var property = 'Nap' + nap;\r\n if (sor && sor[property] == '0') {\r\n arg.cancel = true;\r\n }\r\n }\r\n vm.AthleteUnderEditing = arg.rowData.SportoloNev;\r\n vm.editedColumnName = arg.columnName;\r\n }\r\n });\r\n gridNew.appendTo('#GridNew');\r\n gridNew.keyConfigs['0'] = '0';\r\n gridNew.keyConfigs['1'] = '1';\r\n gridNew.keyConfigs['2'] = '2';\r\n gridNew.keyConfigs['3'] = '3';\r\n gridNew.keyConfigs['B'] = 'B';\r\n gridNew.keyConfigs['S'] = 'S';\r\n gridNew.keyConfigs['V'] = 'V';\r\n gridNew.keyConfigs['H'] = 'H';\r\n gridNew.keyConfigs['b'] = 'B';\r\n gridNew.keyConfigs['ü'] = '191';\r\n gridNew.keyConfigs['Ü'] = '191';\r\n gridNew.keyConfigs['s'] = 'S';\r\n gridNew.keyConfigs['v'] = 'V';\r\n gridNew.keyConfigs['h'] = 'H';\r\n gridNew.keyConfigs['numpad 0'] = '96';\r\n gridNew.keyConfigs['numpad 1'] = '97';\r\n gridNew.keyConfigs['numpad 2'] = '98';\r\n gridNew.keyConfigs['numpad 3'] = '99';\r\n var oldkeyAction = gridNew.keyboardModule.keyAction;\r\n\r\n gridNew.keyboardModule.keyAction = function (args) {\r\n if (args.key === '0') {\r\n vm.editedColumnValue = '0';\r\n }\r\n if (args.key === '1') {\r\n vm.editedColumnValue = '1';\r\n }\r\n if (args.key === '2') {\r\n vm.editedColumnValue = '2';\r\n }\r\n if (args.key === '3') {\r\n vm.editedColumnValue = '3';\r\n }\r\n if (args.key === 'B' || args.key === 'b') {\r\n vm.editedColumnValue = 'B';\r\n }\r\n if (args.key === 'Ü' || args.key === 'ü') {\r\n vm.editedColumnValue = 'Ü';\r\n }\r\n if (args.key === 'S' || args.key === 's') {\r\n vm.editedColumnValue = 'S';\r\n }\r\n if (args.key === 'V' || args.key === 'v') {\r\n vm.editedColumnValue = 'V';\r\n }\r\n if (args.key === 'H' || args.key === 'h') {\r\n vm.editedColumnValue = 'H';\r\n }\r\n if (args.key === 'Escape') {\r\n vm.AthleteUnderEditing = '';\r\n }\r\n if (args.key === 'Enter') {\r\n gridNew.editModule.batchSave();\r\n if (args.action === 'enter' && gridNew.dataSource[vm.rowNumber + 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber + 1, gridNew.columns[vm.columnNumber].field);\r\n }, 250);\r\n } else if (args.action === 'shiftEnter' && gridNew.dataSource[vm.rowNumber - 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber - 1, gridNew.columns[vm.columnNumber].field);\r\n }, 250);\r\n }\r\n }\r\n if (args.key === 'Tab') {\r\n gridNew.editModule.batchSave();\r\n if (args.action === 'tab' && gridNew.columns[vm.columnNumber + 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber, gridNew.columns[vm.columnNumber + 1].field);\r\n }, 250);\r\n } else if (args.action === 'shiftTab' && gridNew.columns[vm.columnNumber - 1]) {\r\n $timeout(function () {\r\n gridNew.editModule.editCell(vm.rowNumber, gridNew.columns[vm.columnNumber - 1].field);\r\n }, 250);\r\n }\r\n }\r\n $scope.$apply();\r\n oldkeyAction(args);\r\n };\r\n gridNew.toolbarClick = function (args) {\r\n if (args.item.id === 'GridNew_excelexport') {\r\n gridNew.excelExport();\r\n }\r\n if (args.item.id === 'GridNew_csvexport') {\r\n gridNew.csvExport();\r\n }\r\n if (args.item.id === 'GridNew_print') {\r\n gridNew.print({pageOrientation: 'Landscape'});\r\n }\r\n };\r\n } else {\r\n gridNew.columns = columns;\r\n gridNew.refreshColumns();\r\n }\r\n }\r\n }\r\n }\r\n\r\n function viewMonthlyAttendance(data) {\r\n vm.noAttendance = false;\r\n vm.hasAttendance = false;\r\n vm.hasSignedAttendance = false;\r\n vm.hasAcceptedAttendance = false;\r\n\r\n vm.editedAttendance.aktiv = data.aktiv;\r\n vm.editedAttendance.edzesek = data.edzesek;\r\n vm.editedAttendance.fej = data.fej;\r\n vm.editedAttendance.tetelek = data.tetelek;\r\n if (vm.editedAttendance.fej === null) {\r\n vm.noAttendance = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n vm.refreshAthletesButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJFELVIHET) {\r\n //vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = false;\r\n } else if (vm.EDZO && vm.HJFELVIHET) {\r\n //vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n createNewAttendance();\r\n } else {\r\n if (vm.editedAttendance.fej.EdzoAlairta) {\r\n if (vm.editedAttendance.fej.SzakosztalyvezetoAlairta) {\r\n vm.hasAcceptedAttendance = true;\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n } else {\r\n vm.hasSignedAttendance = true;\r\n if (vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJALAIR1) {\r\n vm.acceptButton = true;\r\n vm.rejectButton = true;\r\n } else {\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n }\r\n }\r\n } else {\r\n vm.hasAttendance = true;\r\n vm.acceptButton = false;\r\n vm.rejectButton = false;\r\n if ((vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else if (vm.EDZO && vm.HJFELVIHET) {\r\n vm.refreshAthletesButton = true;\r\n vm.saveButton = true;\r\n vm.closeButton = true;\r\n } else {\r\n vm.refreshAthletesButton = false;\r\n vm.saveButton = false;\r\n vm.closeButton = false;\r\n }\r\n }\r\n gridNew.dataSource = vm.editedAttendance.tetelek;\r\n vm.dayz = vm.editedAttendance.edzesek;\r\n // create('existing');\r\n }\r\n vm.AthleteUnderEditing = '';\r\n vm.readOnlyAttendance = !vm.saveButton;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n totalPercentageCount();\r\n athletesCountMonthlyAttendance();\r\n }\r\n\r\n //Melyik az adott év/hónap utolsó napja?\r\n function daysInMonth(anyDateInMonth) {\r\n return new Date(anyDateInMonth.getFullYear(), anyDateInMonth.getMonth() + 1, 0).getDate();\r\n }\r\n\r\n //Minden sportoló jelenlét százalék számítása\r\n function totalPercentageCount() {\r\n vm.valami = 0;\r\n vm.presenceTotalSum = 0;\r\n vm.presencePlannedTotalSum = 0;\r\n var db = 0;\r\n if (gridNew && gridNew.dataSource) {\r\n db = gridNew.dataSource.length;\r\n }\r\n for (var rec = 0; rec < db; rec++) {\r\n var jo = parseFloat(gridNew.dataSource[rec].JelenletOsszesen);\r\n vm.presenceTotalSum += jo;\r\n var hoe = parseFloat(gridNew.dataSource[rec].HaviOsszEdzesszam);\r\n vm.presencePlannedTotalSum += hoe;\r\n if (hoe === 0) {\r\n vm.valami += 1;\r\n } else {\r\n vm.valami += (jo / hoe);\r\n }\r\n }\r\n $timeout(function () {\r\n if (vm.presencePlannedTotalSum > 0) {\r\n vm.presencePercentSum = (vm.valami / db * 100).toFixed(0);\r\n } else {\r\n vm.presencePercentSum = 100;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n\r\n function cellSave(arg) {\r\n console.log(arg);\r\n vm.AthleteUnderEditing = '';\r\n var propertyChanged = arg.columnName;\r\n if (!(propertyChanged.indexOf('Nap') == -1 && propertyChanged != 'HaviOsszEdzesszam')) {\r\n var sor = arg.rowData;\r\n var change = false;\r\n var value = '';\r\n prev = '';\r\n if (arg.value) {\r\n if (propertyChanged != 'HaviOsszEdzesszam') { // ez szám, nem string\r\n value = arg.value.trim();\r\n } else {\r\n value = arg.value;\r\n }\r\n }\r\n if (arg.previousValue) {\r\n if (propertyChanged != 'HaviOsszEdzesszam') {\r\n prev = arg.previousValue.trim();\r\n } else {\r\n prev = arg.previousValue;\r\n }\r\n }\r\n if (value != prev) {\r\n // később frissül, ezért úgy állítom össze a teljes sort, hogy ami éppen megváltozott annak értéket adok, mert a sorban még a régi van\r\n sor[propertyChanged] = value;\r\n change = true;\r\n }\r\n var retObj = attendanceRowCount(sor);\r\n if (change) {\r\n if (retObj.hiba) {\r\n arg.value = prev;\r\n gridNew.dataSource[sor.RowNumber - 1][propertyChanged] = prev;\r\n } else {\r\n gridNew.dataSource[sor.RowNumber - 1][propertyChanged] = value;\r\n gridNew.dataSource[sor.RowNumber - 1].JelenletOsszesen = retObj.jelenlet;\r\n gridNew.dataSource[sor.RowNumber - 1].HianyzasOsszesen = retObj.hianyzas;\r\n gridNew.dataSource[sor.RowNumber - 1].JelenletSzazalek = retObj.jelenletSzazalek;\r\n gridNew.dataSource[sor.RowNumber - 1].HianyzasSzazalek = retObj.hianyzasSzazalek;\r\n gridNew.dataSource[sor.RowNumber - 1].VersenyOsszesen = retObj.verseny;\r\n gridNew.dataSource[sor.RowNumber - 1].utolsoKitoltottNap = retObj.utolsoKitoltottNap;\r\n }\r\n }\r\n if (propertyChanged != 'HaviOsszEdzesszam') {\r\n vm.editedColumnValue = gridNew.dataSource[sor.RowNumber - 1][propertyChanged];\r\n }\r\n } else {\r\n gridNew.dataSource[arg.rowData.RowNumber - 1][propertyChanged] = arg.value;\r\n }\r\n\r\n vm.selectedAthleteName = '';\r\n $timeout(function () {\r\n vm.allowAthleteRefresh = true;\r\n $scope.$apply();\r\n }, 10);\r\n\r\n totalPercentageCount();\r\n gridNew.refresh();\r\n }\r\n\r\n //Adott sportoló jelenlét számítás, túltöltés figyelése\r\n function attendanceRowCount(record) {\r\n var ret = {};\r\n var jelenlet = 0;\r\n var hianyzas = 0;\r\n var verseny = 0;\r\n var utolsoToltott = 0;\r\n vm.attendanceOverChangeAthleteNames = '';\r\n for (var i = 1; i < 32; i++) {\r\n var value = record['Nap' + i] !== null ? record['Nap' + i].trim() : record['Nap' + i];\r\n if (value) {\r\n utolsoToltott = i;\r\n if (typeof value === 'string') {\r\n value = value.toUpperCase();\r\n switch (value) {\r\n case '0':\r\n hianyzas++;\r\n break;\r\n case '1':\r\n jelenlet += 1;\r\n break;\r\n case '2':\r\n jelenlet += 2;\r\n break;\r\n case '3':\r\n jelenlet += 3;\r\n break;\r\n case 'H':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.IgazoltHianyzas) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'S':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Serules) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'V':\r\n verseny++;\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Verseny) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'B':\r\n if (vm.attendanceChecked.indexOf(JelenletTipus.Betegseg) !== -1) {\r\n jelenlet++;\r\n }\r\n break;\r\n case 'Ü':\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n var dt = vm.editedAttendance.fej.Datum;\r\n record['utolsoKitoltottNap'] = new Date(new Date(dt).getFullYear(), new Date(dt).getMonth(), utolsoToltott);\r\n ret.utolsoKitoltottNap = record['utolsoKitoltottNap'];\r\n record['JelenletOsszesen'] = jelenlet;\r\n ret.jelenlet = jelenlet;\r\n record['HianyzasOsszesen'] = hianyzas;\r\n ret.hianyzas = hianyzas;\r\n record['VersenyOsszesen'] = verseny;\r\n ret.verseny = verseny;\r\n if (record['HaviOsszEdzesszam'] > 0) {\r\n record['JelenletSzazalek'] = (record['JelenletOsszesen'] / record['HaviOsszEdzesszam'] * 100).toFixed(0);\r\n record['HianyzasSzazalek'] = (record['HianyzasOsszesen'] / record['HaviOsszEdzesszam'] * 100).toFixed(0);\r\n } else {\r\n record['JelenletSzazalek'] = '100';\r\n record['HianyzasSzazalek'] = '0';\r\n }\r\n ret.jelenletSzazalek = record['JelenletSzazalek'];\r\n ret.hianyzasSzazalek = record['HianyzasSzazalek'];\r\n if ((record['HianyzasOsszesen'] + record['JelenletOsszesen']) > record['HaviOsszEdzesszam']) {\r\n vm.attendanceOverChangeAthleteNames += record['SportoloNev'] +\r\n '<br>' + gettextCatalog.getString('PlannedMonthlyTrainingsNumbers') + ': ' + record['HaviOsszEdzesszam'] +\r\n '<br>' + gettextCatalog.getString('SumPresence') + ': ' + record['JelenletOsszesen'] +\r\n '<br>' + gettextCatalog.getString('MissedAttendance') + ': ' + record['HianyzasOsszesen'] +\r\n '<br>';\r\n }\r\n if (vm.attendanceOverChangeAthleteNames.length > 0) {\r\n var swalText = gettextCatalog.getString('AttendanceGreaterThanPlanned') + '<br>' +\r\n vm.attendanceOverChangeAthleteNames + '<br>' +\r\n gettextCatalog.getString('hintOnMonthlyAttendeance_Presence') + '<br><br>' +\r\n gettextCatalog.getString('PleaseCorrectTheDatas');\r\n log.htmlError(swalText);\r\n ret.hiba = true;\r\n } else {\r\n ret.hiba = false;\r\n }\r\n totalPercentageCount();\r\n return ret;\r\n }\r\n\r\n function saveFunction(forced) {\r\n return new Promise(function(resolve, reject) {\r\n if (!gridNew) {\r\n log.warningMsg(gettextCatalog.getString('PleaseFinishEditingInGrid'));\r\n return;\r\n }\r\n if (!gridNew || (!forced && vm.editedAttendance.fej.EdzoAlairta === true)) {\r\n return;\r\n }\r\n var SaveButtonWasEnabled = vm.saveButtonEnabled;\r\n vm.saveButtonEnabled = false;\r\n $timeout(function () {\r\n if (gridNew.isEdit === true && gridNew.editModule) {\r\n gridNew.editModule.endEdit();\r\n }\r\n totalPercentageCount();\r\n vm.hasErrorAtSave = false;\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n dataservice.saveMonthlyAttendance(vm.editedAttendance).then(function (resp) {\r\n vm.saveButtonEnabled = true;\r\n var haveImputError = [];\r\n resp.inputErrors.forEach(function (input) {\r\n if (input.error != null) {\r\n haveImputError += input.fieldName + '<br>';\r\n }\r\n });\r\n if (haveImputError.length > 0) {\r\n log.warningMsg(haveImputError);\r\n } else {\r\n if (resp && resp.res > 0) {\r\n log.successMsg('AttendanceSaved');\r\n if (vm.openTrainingDiaryAfterSave) {\r\n paramHelper.setParams([{'HaviJelenletiFejId': resp.res}]);\r\n $state.go('administration.trainingDiary');\r\n } else {\r\n paramHelper.setParams([\r\n {'monthlyAttendance.sectionId': vm.selectedSection},\r\n {'monthlyAttendance.ageGroupId': vm.selectedAgeGroup},\r\n {'monthlyAttendance.coachId': vm.selectedCoach},\r\n {'monthlyAttendance.id': resp.res}\r\n ]);\r\n dataservice.monthlyAttendanceSelectById(resp.res).then(function (data) {\r\n viewMonthlyAttendance(data);\r\n });\r\n }\r\n } else {\r\n vm.hasErrorAtSave = true;\r\n log.errorMsg('Error Saving Monthly Attendance');\r\n }\r\n }\r\n vm.netError = false;\r\n resolve('saveok');\r\n }, function (err) {\r\n console.log('SaveError', err);\r\n vm.saveButtonEnabled = SaveButtonWasEnabled;\r\n vm.netError = true;\r\n reject(err);\r\n });\r\n }, 0);\r\n });\r\n };\r\n\r\n //Havi jelenléti mentése gomb click\r\n function saveAttendance(forced) {\r\n saveFunction(forced).then(function (response) {\r\n console.log('saveFunction response', response);\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n\r\n //Lekéri a csoport létszámát, érkezők-távozók számát\r\n function athletesCountMonthlyAttendance() {\r\n var tol = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0);\r\n var ig = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), daysInMonth(tol), 23, 59, 59);\r\n if (!vm.editedAttendance.fej) {\r\n return;\r\n }\r\n if (!vm.editedAttendance.fej.IdKorcsoport) {\r\n vm.editedAttendance.fej.IdKorcsoport = 0;\r\n }\r\n dataservice.getAthletesCountForMonthlyAttendance(vm.editedAttendance.fej.IdEdzo, vm.editedAttendance.fej.IdSzakosztaly, vm.editedAttendance.fej.IdKorcsoport, tol, ig)\r\n .then(function (data) {\r\n vm.editedAttendance.fej.CsoportLetszam = data.Szam;\r\n vm.editedAttendance.fej.Erkezett = data.SzamErkezett;\r\n vm.editedAttendance.fej.Tavozott = data.SzamKilepett;\r\n });\r\n }\r\n\r\n //Havi jelenléti lezárása gomb click\r\n function closeMonthlyAttendance() {\r\n console.log('closeMonthlyAttendance');\r\n vm.editedAttendance.fej.EdzoAlairta = true;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = new Date().toDateString();\r\n saveFunction(true).then(function (response) {\r\n console.log('closeMonthlyAttendance saveFunction response', response);\r\n vm.readOnlyAttendance = true;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('closeMonthlyAttendance saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n vm.editedAttendance.fej.EdzoAlairta = false;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = null;\r\n return err;\r\n });\r\n }\r\n\r\n //Havi jelenléti visszautasítása gomb click\r\n function rejectMonthlyAttendance() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closerejectingWindow() {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n //Felugró ablak 'Rendben' gomb click - visszautasítás elmentése\r\n function rejectAttendance() {\r\n if (vm.rejectAttendanceText.length > 0) {\r\n var dialogObj = angular.element('#rejectAttendanceWindow').data('ejDialog');\r\n dialogObj.close();\r\n } else {\r\n return;\r\n }\r\n var uzi = gettextCatalog.getString('SystemMessage') + '\\n' + gettextCatalog.getString('The') + ' ' + vm.editedAttendance.fej.SzakosztalyNev;\r\n if (vm.editedAttendance.fej.KorcsoportNev) {\r\n uzi += ' - ' + vm.editedAttendance.fej.KorcsoportNev;\r\n }\r\n uzi += ' ' + vm.selectedYear + ' ' + vm.months[(isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth)].text + ' ' + gettextCatalog.getString('MonthlyAttendanceReportRejected') + '\\n' + gettextCatalog.getString('Cause') + ' ' + vm.rejectAttendanceText;\r\n vm.editedAttendance.fej.EdzoAlairta = false;\r\n vm.editedAttendance.fej.EdzoAlairtaDatum = '';\r\n //saveAttendance();\r\n saveFunction(true).then(function (response) {\r\n console.log('saveFunction response', response);\r\n if (!vm.hasErrorAtSave) {\r\n vm.readOnlyAttendance = false;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n viewMonthlyAttendance(vm.editedAttendance);\r\n dataservice.messageSave(uzi, [vm.selectedCoach], vm.selectedSection).then(function () {});\r\n }\r\n return response;\r\n })\r\n .catch(function (err) {\r\n console.error('saveFunction err', err);\r\n if (err && err.data && err.data.ExceptionType && !err.data.ExceptionType.includes('Siker2Exception')) {\r\n ShowError();\r\n }\r\n return err;\r\n });\r\n }\r\n\r\n //Havi jelenléti szakosztályvezetői elfogadása\r\n function acceptMonthlyAttendance() {\r\n dataservice.monthlyAttendanceAcceptByLeader(vm.editedAttendance.fej.Id).then(function (data) {\r\n vm.editedAttendance.fej.SzakosztalyvezetoAlairta = true;\r\n vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta = data.res;\r\n vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum = data.date;\r\n viewMonthlyAttendance(vm.editedAttendance);\r\n log.successMsg('AttendanceAccepted');\r\n vm.readOnlyAttendance = true;\r\n gridNew.editSettings.allowEditing = !vm.readOnlyAttendance;\r\n });\r\n }\r\n\r\n //Új havi jelenléti összesítő készítése\r\n function createNewAttendance() {\r\n dataservice.getLastMonthlyAttendanceTrainingLocationAndTime(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup)\r\n .then(function (data) {\r\n vm.editedAttendance.fej = {};\r\n vm.editedAttendance.fej.CsoportLetszam = 0;\r\n vm.editedAttendance.fej.Datum = new Date(vm.selectedYear, (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth), 1, 0, 0, 0);\r\n vm.editedAttendance.fej.Erkezett = 0;\r\n vm.editedAttendance.fej.Id = -1;\r\n vm.editedAttendance.fej.IdEdzo = vm.selectedCoach;\r\n vm.editedAttendance.fej.IdKorcsoport = vm.selectedAgeGroup;\r\n vm.editedAttendance.fej.IdSzakosztaly = vm.selectedSection;\r\n vm.editedAttendance.fej.KorosztalyosToltes = vm.allAgeGroupfill;\r\n vm.editedAttendance.fej.Megjegyzes = '';\r\n vm.editedAttendance.fej.Tavozott = 0;\r\n vm.editedAttendance.fej.EdzoNev = angular.element('#maEdzo').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n vm.editedAttendance.fej.SzakosztalyNev = angular.element('#maSzakosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n if (angular.element('#maKorosztaly').data('ejDropDownList') && angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem().length > 0) {\r\n vm.editedAttendance.fej.KorcsoportNev = angular.element('#maKorosztaly').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.editedAttendance.fej.KorcsoportNev = 0;\r\n vm.selectedAgeGroup = 0;\r\n }\r\n\r\n if (data !== null) {\r\n vm.dayz.CsutortokHely = data.CsutortokHely;\r\n vm.dayz.CsutortokIdo = data.CsutortokIdo;\r\n vm.dayz.HetfoHely = data.HetfoHely;\r\n vm.dayz.HetfoIdo = data.HetfoIdo;\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = data.KeddHely;\r\n vm.dayz.KeddIdo = data.KeddIdo;\r\n vm.dayz.PentekHely = data.PentekHely;\r\n vm.dayz.PentekIdo = data.PentekIdo;\r\n vm.dayz.SzerdaHely = data.SzerdaHely;\r\n vm.dayz.SzerdaIdo = data.SzerdaIdo;\r\n vm.dayz.SzombatHely = data.SzombatHely;\r\n vm.dayz.SzombatIdo = data.SzombatIdo;\r\n vm.dayz.VasarnapHely = data.VasarnapHely;\r\n vm.dayz.VasarnapIdo = data.VasarnapIdo;\r\n } else {\r\n vm.dayz.CsutortokHely = '';\r\n vm.dayz.CsutortokIdo = '';\r\n vm.dayz.HetfoHely = '';\r\n vm.dayz.HetfoIdo = '';\r\n vm.dayz.IdHaviJelenletiFej = -1;\r\n vm.dayz.KeddHely = '';\r\n vm.dayz.KeddIdo = '';\r\n vm.dayz.PentekHely = '';\r\n vm.dayz.PentekIdo = '';\r\n vm.dayz.SzerdaHely = '';\r\n vm.dayz.SzerdaIdo = '';\r\n vm.dayz.SzombatHely = '';\r\n vm.dayz.SzombatIdo = '';\r\n vm.dayz.VasarnapHely = '';\r\n vm.dayz.VasarnapIdo = '';\r\n }\r\n vm.editedAttendance.edzesek = vm.dayz;\r\n\r\n dataservice.getAthletesForMonthlyAttendance(vm.selectedCoach,\r\n vm.selectedSection, vm.selectedAgeGroup, vm.editedAttendance.fej.Datum)\r\n .then(function (data2) {\r\n gridNew.dataSource = data2.tetelek;\r\n // create('new');\r\n vm.editedAttendance.tetelek = gridNew.dataSource;\r\n vm.editedAttendance.aktiv = data2.aktiv;\r\n vm.activePeriods = data2.aktiv;\r\n athletesCountMonthlyAttendance();\r\n });\r\n });\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToOlderMonthlyAttendanceReports() {\r\n paramHelper.setParams([{'monthlyAttendance.coachId': vm.selectedCoach}, {'monthlyAttendance.year': vm.selectedYear}, {'monthlyAttendance.month': (isNaN(vm.selectedMonth) ? 0 : vm.selectedMonth)}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceList');\r\n }\r\n\r\n function getAccepterCoachById() {\r\n if (vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta === null) {\r\n return '';\r\n } else {\r\n return $q(function (resolve) {\r\n dataservice.getUserData(vm.editedAttendance.fej.IdSzakosztalyvezetoAlairta)\r\n .then(function (args) {\r\n resolve(args.retValue.name);\r\n });\r\n });\r\n }\r\n }\r\n\r\n function print() {\r\n var max = daysInMonth(new Date(vm.editedAttendance.fej.Datum));\r\n $q.all([getAccepterCoachById()])\r\n .then(function (results) {\r\n vm.reportParameters = {\r\n Szakosztaly: vm.editedAttendance.fej.SzakosztalyNev,\r\n EvHonap: (new Date(vm.editedAttendance.fej.Datum).getFullYear() + '. ' + vm.months[moment(vm.editedAttendance.fej.Datum).month()].text),\r\n EdzoNeve: vm.editedAttendance.fej.EdzoNev,\r\n FejId: vm.editedAttendance.fej.Id,\r\n Datum29: max >= 29 ? '29' : ' ',\r\n Datum30: max >= 30 ? '30' : ' ',\r\n Datum31: max >= 31 ? '31' : ' ',\r\n Nap1: 1 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 1, 0, 0, 0).getDay()],\r\n Nap2: 2 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 2, 0, 0, 0).getDay()],\r\n Nap3: 3 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 3, 0, 0, 0).getDay()],\r\n Nap4: 4 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 4, 0, 0, 0).getDay()],\r\n Nap5: 5 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 5, 0, 0, 0).getDay()],\r\n Nap6: 6 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 6, 0, 0, 0).getDay()],\r\n Nap7: 7 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 7, 0, 0, 0).getDay()],\r\n Nap8: 8 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 8, 0, 0, 0).getDay()],\r\n Nap9: 9 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 9, 0, 0, 0).getDay()],\r\n Nap10: 10 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 10, 0, 0, 0).getDay()],\r\n Nap11: 11 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 11, 0, 0, 0).getDay()],\r\n Nap12: 12 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 12, 0, 0, 0).getDay()],\r\n Nap13: 13 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 13, 0, 0, 0).getDay()],\r\n Nap14: 14 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 14, 0, 0, 0).getDay()],\r\n Nap15: 15 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 15, 0, 0, 0).getDay()],\r\n Nap16: 16 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 16, 0, 0, 0).getDay()],\r\n Nap17: 17 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 17, 0, 0, 0).getDay()],\r\n Nap18: 18 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 18, 0, 0, 0).getDay()],\r\n Nap19: 19 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 19, 0, 0, 0).getDay()],\r\n Nap20: 20 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 20, 0, 0, 0).getDay()],\r\n Nap21: 21 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 21, 0, 0, 0).getDay()],\r\n Nap22: 22 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 22, 0, 0, 0).getDay()],\r\n Nap23: 23 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 23, 0, 0, 0).getDay()],\r\n Nap24: 24 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 24, 0, 0, 0).getDay()],\r\n Nap25: 25 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 25, 0, 0, 0).getDay()],\r\n Nap26: 26 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 26, 0, 0, 0).getDay()],\r\n Nap27: 27 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 27, 0, 0, 0).getDay()],\r\n Nap28: 28 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 28, 0, 0, 0).getDay()],\r\n Nap29: max >= 29 ? (29 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 29, 0, 0, 0).getDay()]) : ' ',\r\n Nap30: max >= 30 ? (30 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 30, 0, 0, 0).getDay()]) : ' ',\r\n Nap31: max >= 31 ? (31 + ' ' + vm.days[new Date(new Date(vm.editedAttendance.fej.Datum).getFullYear(), new Date(vm.editedAttendance.fej.Datum).getMonth(), 31, 0, 0, 0).getDay()]) : ' ',\r\n OsszJelenletiSzazalek: vm.presencePercentSum + '%',\r\n Keszult: vm.editedAttendance.fej.EdzoAlairtaDatum == null ? '' : moment(vm.editedAttendance.fej.EdzoAlairtaDatum).format('YYYY. MM. DD') === 'Invalid date' ? '' : moment(vm.editedAttendance.fej.EdzoAlairtaDatum).format('YYYY. MM. DD'),\r\n EdzoNeve2: vm.editedAttendance.fej.EdzoNev,\r\n JovahagytaDatum: vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum == null ? '' : moment(vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum).format('YYYY. MM. DD') === 'Invalid date' ? '' : moment(vm.editedAttendance.fej.SzakosztalyvezetoAlairtaDatum).format('YYYY. MM. DD'),\r\n Jovahagyta: results != null ? results[0] : ' ',\r\n Korosztaly: vm.editedAttendance.fej.KorcsoportNev === null ? '' : vm.editedAttendance.fej.KorcsoportNev\r\n };\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n });\r\n }\r\n\r\n function gridRowSelected(arg) {\r\n vm.selectedAthleteName = arg.data.SportoloNev + ' - ' + arg.data.SzuletesiDatum;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function yearDataBound() {\r\n angular.element('#maEv').ejDropDownList('selectItemByValue', vm.selectedYear);\r\n }\r\n\r\n function monthDataBound() {\r\n angular.element('#maHonap').ejDropDownList('selectItemByValue', vm.selectedMonth);\r\n }\r\n\r\n function CopyCellToColumn() {\r\n gridNew.dataSource.forEach(function (element) {\r\n var retObj = attendanceRowCount(element);\r\n var sor = findLine(element.IdSportolo);\r\n if (!(retObj.hiba || (sor && sor[vm.editedColumnName] === '0'))) {\r\n var oldValue = element[vm.editedColumnName];\r\n element[vm.editedColumnName] = vm.editedColumnValue;\r\n //rollback\r\n if (attendanceRowCount(element).hiba) {\r\n element[vm.editedColumnName] = oldValue;\r\n attendanceRowCount(element);\r\n } else {\r\n element.JelenletOsszesen = retObj.jelenlet;\r\n element.HianyzasOsszesen = retObj.hianyzas;\r\n element.JelenletSzazalek = retObj.jelenletSzazalek;\r\n element.HianyzasSzazalek = retObj.hianyzasSzazalek;\r\n element.VersenyOsszesen = retObj.verseny;\r\n element.utolsoKitoltottNap = retObj.utolsoKitoltottNap;\r\n }\r\n }\r\n });\r\n totalPercentageCount();\r\n gridNew.refresh();\r\n }\r\n\r\n vm.autoSaveCheckboxChanged = function (args) {\r\n dataservice.setMonthlyAttendanceAutoSave(args.value).then(function (result) {\r\n if (result.retValue) {\r\n if (args.value) {\r\n log.infoMsg('AutoSaveOn');\r\n } else {\r\n log.infoMsg('AutoSaveOFF');\r\n }\r\n }\r\n });\r\n };\r\n\r\n $rootScope.monthlyAttendanceSaveInterval = $interval(function () {\r\n if (vm.autoSave && vm.saveButton) {\r\n saveAttendance();\r\n }\r\n }, 60000);\r\n\r\n function ShowError() {\r\n log.errorMsg(gettextCatalog.getString('NetError'));\r\n swal({\r\n title: gettextCatalog.getString('Error'),\r\n text: gettextCatalog.getString('NetError'),\r\n type: 'error',\r\n showCancelButton: false,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: false,\r\n confirmButtonText: gettextCatalog.getString('IUnderstood')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n console.log('ShowError isConfirmed', isConfirmed);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyAttendance.monthlyAttendanceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyAttendance.monthlyAttendanceReport',\r\n config: {\r\n url: '/monthlyAttendanceReport',\r\n templateUrl: 'app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.html',\r\n controller: 'MonthlyAttendanceReportController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceReport',\r\n settings: {\r\n navId: 222,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Havi jelenléti összesítő',\r\n orderTitle_en: 'Monthly Attendance Sheet Report',\r\n parentId: 2,\r\n content: 'MonthlyAttendanceReport',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyTrainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan',\r\n config: {\r\n url: '/monthlyTrainingPlan',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlan.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList')\r\n .controller('MonthlyTrainingPlanListController', MonthlyTrainingPlanListController);\r\n\r\n function MonthlyTrainingPlanListController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n function setInitVals() {\r\n $rootScope.title = gettextCatalog.getString('MonthlyTrainingPlanList');\r\n //grid adatai\r\n vm.columns = [];\r\n\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedRowId = -1;\r\n\r\n vm.textSearch = '';\r\n\r\n vm.delEnabled = false;\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.ageGroupChanged = ageGroupChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.createNewWeeklyTrainingPlan = goToNewWeeklyTrainingPlan;\r\n vm.rowSelect = rowSelect;\r\n vm.rowDeselected = rowDeselected;\r\n vm.deleteWeeklyTrainingPlan = deleteWeeklyTrainingPlan;\r\n\r\n gridColumnsRefresh();\r\n\r\n var grid = new ej2.grids.Grid({\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n allowTextWrap: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.rowSelect,\r\n rowDeselected: vm.rowDeselected,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['monthlyTrainingPlan.edzoId', 'monthlyTrainingPlan.szakosztalyId', 'monthlyTrainingPlan.korosztalyId', 'monthlyTrainingPlan.ev', 'monthlyTrainingPlan.szoveg']),\r\n authenticationService.getRight('UJHAVIEDZTERV'),\r\n authenticationService.getRight('MODHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('TORLHAVIEDZTERV')];\r\n\r\n return $q.all(promises).then(function (results) {\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n vm.UJHAVIEDZTERV = results[1];\r\n vm.MODHAVIEDZTERV = results[2];\r\n vm.MEGTHAVIEDZTERV = results[3];\r\n vm.MEGTFELH = results[4];\r\n vm.MEGTKOROKEZ = results[5];\r\n vm.TORLHAVIEDZTERV = results[6];\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getCoaches();\r\n $timeout(function () {\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.edzoId'])) {\r\n vm.selectedCoach = parseInt(results[0]['monthlyTrainingPlan.edzoId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.szakosztalyId'])) {\r\n vm.selectedSection = parseInt(results[0]['monthlyTrainingPlan.szakosztalyId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.korosztalyId'])) {\r\n vm.selectedAgeGroup = parseInt(results[0]['monthlyTrainingPlan.korosztalyId']);\r\n }\r\n if (angular.isDefined(results[0]['monthlyTrainingPlan.szoveg'])) {\r\n vm.textSearch = results[0]['monthlyTrainingPlan.szoveg'];\r\n }\r\n if (results[0]['monthlyTrainingPlan.ev']) {\r\n vm.selectedYear = results[0]['monthlyTrainingPlan.ev'];\r\n } else {\r\n vm.selectedYear = new Date().getFullYear();\r\n }\r\n angular.element('#maEv').ejDropDownList({value: vm.selectedYear});\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n }\r\n );\r\n }\r\n\r\n //Grid oszlopainak definíciója\r\n function gridColumnsRefresh() {\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 60,\r\n template: '#motrpllitemplateDataColumn3'\r\n },\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#motrpllitemplateDataColumn1'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#motrpllitemplateDataColumn2'\r\n },\r\n {\r\n field: 'Honap',\r\n headerText: gettextCatalog.getString('Month'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Makrociklus',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Jovahagyott',\r\n headerText: gettextCatalog.getString('Approved'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false,\r\n template: '#motrpllitemplateDataColumn4'\r\n }\r\n ];\r\n }\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n vm.selectedCoach = args.value;\r\n\r\n vm.ageGroupList = [];\r\n getSectionList(args.value);\r\n }\r\n\r\n function getSectionList(coachId) {\r\n return dataservice.sectionDropDownList(coachId).then(\r\n function (data) {\r\n vm.sectionList = [];\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }// Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(args) {\r\n if (args.value === vm.selectedSection) {\r\n vm.selectedSection = args.value;\r\n return;\r\n }\r\n vm.selectedSection = args.value;\r\n vm.ageGroupList = [];\r\n dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupChanged(args) {\r\n if (args.value != null) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function refreshData() {\r\n $timeout(function () {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n dataservice.getMonthlyTrainingPlanList(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.selectedYear, vm.textSearch).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.selectedRowId = -1;\r\n vm.delEnabled = false;\r\n }\r\n );\r\n }, 0);\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'newUser.userId': edzoId}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach}, {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection}, {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'monthlyTrainingPlan.ev': vm.selectedYear}, {'ageGroups.ageGroup': ageGroupId}, {'monthlyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'monthlyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'monthlyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'monthlyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'monthlyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.monthlyTrainingPlan.monthlyTrainingPlanReport');\r\n }\r\n\r\n function goToNewWeeklyTrainingPlan() {\r\n if (!vm.UJHAVIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedCoach) || vm.selectedCoach == null || vm.selectedCoach <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedSection) || vm.selectedSection == null || vm.selectedSection <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectSection'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedAgeGroup) || vm.selectedAgeGroup == null || vm.selectedAgeGroup <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectAgeGroup'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (angular.isUndefined(vm.selectedYear) || vm.selectedYear == null || vm.selectedYear <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': -1},\r\n {'monthlyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'monthlyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'monthlyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'monthlyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.monthlyTrainingPlan.monthlyTrainingPlanReport');\r\n }\r\n\r\n function getNameByID(arr, id) {\r\n for (var i = 0; i < arr.length; i++) {\r\n if (arr[i].value == id) {\r\n return arr[i].text;\r\n }\r\n }\r\n }\r\n\r\n function rowSelect(args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHAVIEDZTERV;\r\n $scope.$apply();\r\n }\r\n\r\n function rowDeselected() {\r\n vm.delEnabled = false;\r\n $scope.$apply();\r\n }\r\n\r\n function deleteWeeklyTrainingPlan() {\r\n if (angular.isUndefined(vm.selectedRowId) || vm.selectedRowId <= 0) {\r\n return;\r\n }\r\n\r\n dataservice.deleteMonthlyTrainingPlan(vm.selectedRowId).then(\r\n function (result) {\r\n if (result.retValue) {\r\n for (var i = 0; i < grid.dataSource.length; i++) {\r\n if (grid.dataSource[i].Id === vm.selectedRowId) {\r\n grid.dataSource.splice(i, 1);\r\n grid.refresh();\r\n break;\r\n }\r\n }\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n } else {\r\n log.errorMsg('CantDeleted');\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan.monthlyTrainingPlanList',\r\n config: {\r\n url: '/monthlyTrainingPlanList',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.html',\r\n controller: 'MonthlyTrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyTrainingPlanList',\r\n settings: {\r\n navId: 282,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Havi edzésterv',\r\n orderTitle_en: 'Monthly Training Plan',\r\n parentId: 2,\r\n content: 'MonthlyTrainingPlanList',\r\n activatorPermission: ['\"MEGTHAVIEDZTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport')\r\n .controller('MonthlyTrainingPlanReportController', MonthlyTrainingPlanReportController);\r\n\r\n function MonthlyTrainingPlanReportController(dataservice, $q, $rootScope, gettextCatalog, paramHelper, log, $scope, authenticationService, $state, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Monthly Training Plan');\r\n\r\n var printOpened = false;\r\n vm.trainingPlanId = -1;\r\n\r\n vm.editedMTP = {};\r\n\r\n vm.editedMTP.Hetfo = undefined;\r\n vm.copyEnabled = false;\r\n\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Hónapok\r\n vm.months = [{\r\n text: gettextCatalog.getString('January'),\r\n value: 0\r\n }, {\r\n text: gettextCatalog.getString('February'),\r\n value: 1\r\n }, {\r\n text: gettextCatalog.getString('March'),\r\n value: 2\r\n }, {\r\n text: gettextCatalog.getString('April'),\r\n value: 3\r\n }, {\r\n text: gettextCatalog.getString('May'),\r\n value: 4\r\n }, {\r\n text: gettextCatalog.getString('June'),\r\n value: 5\r\n }, {\r\n text: gettextCatalog.getString('July'),\r\n value: 6\r\n }, {\r\n text: gettextCatalog.getString('August'),\r\n value: 7\r\n }, {\r\n text: gettextCatalog.getString('September'),\r\n value: 8\r\n }, {\r\n text: gettextCatalog.getString('October'),\r\n value: 9\r\n }, {\r\n text: gettextCatalog.getString('November'),\r\n value: 10\r\n }, {\r\n text: gettextCatalog.getString('December'),\r\n value: 11\r\n }];\r\n\r\n vm.save = save;\r\n vm.files = openFiles;\r\n vm.print = showPrint;\r\n vm.copyFromOldPlan = copyFromOldPlan;\r\n vm.columnsPopup = [];\r\n vm.dataPopup = [];\r\n vm.selectedRowIndexPopup = -1;\r\n vm.closeEarlierMonthlyPlanWindow = closeEarlierMonthlyPlanWindow;\r\n vm.selectEarlierMonthlyPlanWindow = selectEarlierMonthlyPlanWindow;\r\n vm.SectionLeaderApprove = SectionLeaderApprove;\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Makrociklus',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 50,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Ev',\r\n headerText: gettextCatalog.getString('Year'),\r\n textAlign: 'center',\r\n width: 50,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Honap',\r\n headerText: gettextCatalog.getString('Month'),\r\n textAlign: 'center',\r\n // type: 'date',\r\n // format: '{0:MMMM}',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['monthlyTrainingPlan.edzoId', 'monthlyTrainingPlan.szakosztalyId', 'monthlyTrainingPlan.korosztalyId', 'monthlyTrainingPlan.ev', 'monthlyTrainingPlan.trainingPlanId', 'monthlyTrainingPlan.edzoNev', 'monthlyTrainingPlan.szakosztalyNev', 'monthlyTrainingPlan.korosztalyNev']),\r\n authenticationService.getRight('UJHAVIEDZTERV'),\r\n authenticationService.getRight('MODHAVIEDZTERV'),\r\n authenticationService.getRight('MEGTHAVIEDZTERV'),\r\n getSystemSettings('HAVIEDZTERVJOVAHAGYKOT'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('HAVIEDZESTERVJOVAHAGY')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJHAVIEDZTERV = results[1];\r\n vm.MODHAVIEDZTERV = results[2];\r\n vm.MEGTHAVIEDZTERV = results[3];\r\n vm.HAVIEDZTERVJOVAHAGYKOT = results[4];\r\n vm.SZAKOSZTVEZ = results[5];\r\n vm.ADMIN = results[6];\r\n vm.HAVIEDZESTERVJOVAHAGY = results[7];\r\n vm.HAVIEDZTERVJOVAHAGY = vm.HAVIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HAVIEDZESTERVJOVAHAGY;\r\n vm.JOVAHAGYOTT = false;\r\n if (!vm.MEGTHAVIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.trainingPlanId = results[0]['monthlyTrainingPlan.trainingPlanId'];\r\n if (angular.isDefined(vm.trainingPlanId) && vm.trainingPlanId !== -1) {\r\n dataservice.monthlyTrainingPlanSelectById(vm.trainingPlanId).then(function (data) {\r\n vm.editedMTP = data.retValue;\r\n vm.editedMTP.IdSzakosztaly = data.retValue.IdSzakosztaly;\r\n vm.JOVAHAGYOTT = vm.editedMTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedMTP.EdzoNev = results[0]['monthlyTrainingPlan.edzoNev'];\r\n vm.editedMTP.SzakosztalyNev = results[0]['monthlyTrainingPlan.szakosztalyNev'];\r\n vm.editedMTP.KorosztalyNev = results[0]['monthlyTrainingPlan.korosztalyNev'];\r\n vm.copyEnabled = false;\r\n });\r\n } else {\r\n $timeout(function () {\r\n vm.editedMTP.EdzoNev = results[0]['monthlyTrainingPlan.edzoNev'];\r\n vm.editedMTP.SzakosztalyNev = results[0]['monthlyTrainingPlan.szakosztalyNev'];\r\n vm.editedMTP.KorosztalyNev = results[0]['monthlyTrainingPlan.korosztalyNev'];\r\n vm.editedMTP.Ev = results[0]['monthlyTrainingPlan.ev'];\r\n vm.editedMTP.EdzoId = results[0]['monthlyTrainingPlan.edzoId'];\r\n vm.editedMTP.IdSzakosztaly = results[0]['monthlyTrainingPlan.szakosztalyId'];\r\n vm.editedMTP.IdKorcsoport = results[0]['monthlyTrainingPlan.korosztalyId'];\r\n vm.editedMTP.Tartalom = '';\r\n vm.copyEnabled = true;\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function save() {\r\n if ((vm.copyEnabled && vm.UJHAVIEDZTERV) || (vm.MODHAVIEDZTERV && !vm.copyEnabled)) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n dataservice.saveMonthlyTrainingPlan(vm.editedMTP).then(function (data) {\r\n dataservice.monthlyTrainingPlanSelectById(data.retValue).then(function (data) {\r\n vm.editedMTP = data.retValue;\r\n vm.editedMTP.IdSzakosztaly = data.retValue.IdSzakosztaly;\r\n vm.JOVAHAGYOTT = vm.editedMTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedMTP.EdzoNev = vm.editedMTP.Edzo;\r\n vm.editedMTP.SzakosztalyNev = vm.editedMTP.Szakosztaly;\r\n vm.editedMTP.KorosztalyNev = vm.editedMTP.Korosztaly;\r\n vm.copyEnabled = false;\r\n });\r\n log.successMsg('SavedSuccessful');\r\n // $rootScope.back();\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openFiles() {\r\n paramHelper.setParams([{'monthlyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'monthlyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'monthlyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'monthlyTrainingPlan.ev': vm.selectedYear},\r\n {'monthlyTrainingPlan.trainingPlanId': vm.editedMTP.Id},\r\n {'monthlyTrainingPlan.edzoNev': vm.editedMTP.EdzoNev},\r\n {'monthlyTrainingPlan.szakosztalyNev': vm.editedMTP.SzakosztalyNev},\r\n {'monthlyTrainingPlan.korosztalyNev': vm.editedMTP.KorosztalyNev},\r\n {'files.tipus': 'EdzesTervHavi'},\r\n {'files.tablaId': vm.editedMTP.Id}\r\n ]);\r\n $state.go('other.files');\r\n }\r\n\r\n function showPrint() {\r\n vm.reportParameters = {\r\n EvHonap: vm.editedMTP.Ev + '. ' + vm.months[vm.editedMTP.HonapSzama].text,\r\n Szakosztaly: vm.editedMTP.SzakosztalyNev,\r\n Korosztaly: vm.editedMTP.KorosztalyNev,\r\n Edzo: vm.editedMTP.EdzoNev,\r\n Makrociklus: vm.editedMTP.Makrociklus,\r\n Tartalom: vm.editedMTP.Tartalom,\r\n Keszult: moment().format('YYYY. MM. DD'),\r\n Keszitette: vm.editedMTP.EdzoNev\r\n };\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n\r\n function copyFromOldPlan() {\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldMonthlyPlanByUserId(vm.editedMTP.EdzoId, vm.editedMTP.Id).then(function (args) {\r\n vm.dataPopup = args.itemsList;\r\n for (var i = 0; i < vm.dataPopup.length; i++) {\r\n vm.dataPopup[i].Honap = vm.months[vm.dataPopup[i].HonapSzama].text;\r\n }\r\n gridPopup.dataSource = vm.dataPopup;\r\n });\r\n }\r\n\r\n function closeEarlierMonthlyPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierMonthlyPlanWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.getSelectedRowIndexes();\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = vm.dataPopup[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.monthlyTrainingPlanSelectById(vmi.Id).then(function (res) {\r\n vm.editedMTP.Tartalom = res.retValue.Tartalom;\r\n vm.editedMTP.Makrociklus = res.retValue.Makrociklus;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function SectionLeaderApprove() {\r\n dataservice.HaviEdzesTervJovahagyas(vm.editedMTP.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('MonthlyTraningPlanApproved'));\r\n vm.HAVIEDZTERVJOVAHAGY = false;\r\n vm.JOVAHAGYOTT = true;\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.monthlyTrainingPlan.monthlyTrainingPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.monthlyTrainingPlan.monthlyTrainingPlanReport',\r\n config: {\r\n url: '/monthlyTrainingPlanReport',\r\n templateUrl: 'app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.html',\r\n controller: 'MonthlyTrainingPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.quickCompetitionResults')\r\n .controller('QuickCompetitionResultsController', QuickCompetitionResultsController);\r\n\r\n function QuickCompetitionResultsController(log, paramHelper, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $compile, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('QuickCompetitionResults');\r\n\r\n vm.maskObjectTime;\r\n vm.elem;\r\n vm.tableTimeEditorTemplate = {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObjectTime.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObjectTime != null) {\r\n vm.maskObjectTime.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('GridAthletes', '');\r\n vm.maskObjectTime = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '99:99:99.999',\r\n value: angular.isDefined(undefined) ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObjectTime.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.dateTimeEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>0000-00-00',\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.ratingEditorTemplate =\r\n {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'center';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>C',\r\n customCharacters: {C: '012345'},\r\n value: args.rowData !== angular.isUndefined ? args.rowData[s] : ''.replace(' ', ''),\r\n readOnly: vm.readOnlyAttendance,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [\r\n\r\n {\r\n field: 'SportoloId',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n template: '#qcrname'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('TrainerName'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n },\r\n {\r\n field: 'VersenyLeiras',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: 125,\r\n editType: 'datetimepicker',\r\n allowEditing: true\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n edit: vm.dateTimeEditorTemplate,\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Helyszin'),\r\n textAlign: 'center',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('EredmenySzoveg'),\r\n textAlign: 'center',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('EredmenyPontGol'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('EredmenyIdo'),\r\n textAlign: 'center',\r\n edit: vm.tableTimeEditorTemplate,\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('EredmenyTavolsag'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n editParams: {decimalPlaces: 2, locale: 'HU-hu'},\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsagM',\r\n headerText: gettextCatalog.getString('EredmenyTavolsagM'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n width: 160,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'Eredmeny',\r\n headerText: gettextCatalog.getString('Rating'),\r\n textAlign: 'center',\r\n editType: 'numericedit',\r\n edit: {params: {min: 0, max: 5}},\r\n width: 200,\r\n allowEditing: true\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n cellSave: cellSave,\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Public functions\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.save = save;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('UJEERJEL'), getSections(), paramHelper.getParams([], ['qcr.sectionId', 'qcr.ageGroupId'])];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.sectionId = results[2]['qcr.sectionId'];\r\n vm.ageGroupId = results[2]['qcr.ageGroupId'];\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n // getAthletes();\r\n getAgeGroups();\r\n paramHelper.setParams([{'qcr.sectionId': vm.sectionId}]);\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n }\r\n var index = vm.ageGroupList.map(function (e) {\r\n return e.value;\r\n }).indexOf(vm.ageGroupId);\r\n if (index < 0) {\r\n index = 0;\r\n }\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemsByIndices', index);\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getAthletes();\r\n paramHelper.setParams([{'qcr.ageGroupId': vm.ageGroupId}]);\r\n }\r\n\r\n function getAthletes() {\r\n dataservice.athletesSelect2(vm.sectionId, vm.ageGroupId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function cellSave(args) {\r\n if (args.columnName === 'EredmenyTavolsag') {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsag = args.value;\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsagM = (args.value / 100).toFixed(2);\r\n grid.refresh();\r\n } else if (args.columnName === 'EredmenyTavolsagM') {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsagM = args.value;\r\n grid.dataSource[vm.rowIndexUnderEditing].EredmenyTavolsag = Math.round(args.value * 100);\r\n grid.refresh();\r\n } else {\r\n var item = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('SportoloId', 'equal', args.rowData.SportoloId))[0];\r\n vm.rowIndexUnderEditing = grid.dataSource.indexOf(item);\r\n grid.dataSource[vm.rowIndexUnderEditing][args.columnName] = args.value;\r\n grid.refresh();\r\n }\r\n }\r\n\r\n function save() {\r\n grid.endEdit();\r\n grid.editModule.batchSave();\r\n dataservice.quickCompetitionResult(grid.dataSource).then(function (resp) {\r\n if (resp.retValue) {\r\n swal({\r\n title: gettextCatalog.getString('SavedSuccessful'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n activate();\r\n }\r\n }\r\n );\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(Id) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.quickCompetitionResults')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.quickCompetitionResults',\r\n config: {\r\n url: '/quickCompetitionResults',\r\n templateUrl: 'app/administration/quickCompetitionResults/quickCompetitionResults.html',\r\n controller: 'QuickCompetitionResultsController',\r\n controllerAs: 'vm',\r\n title: 'QuickCompetitionResults',\r\n settings: {\r\n navId: 2112,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Eredményjelentő (gyors)',\r\n orderTitle_en: 'Result Report (quick)',\r\n parentId: 2,\r\n content: 'QuickCompetitionResults',\r\n activatorPermission: ['\"UJEERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.resultReportAthletes')\r\n .controller('ResultReportAthletesController', ResultReportAthletesController);\r\n\r\n function ResultReportAthletesController($q, dataservice, log, DOMAIN, paramHelper, $scope, authenticationService, gettextCatalog, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ResultReportAthletes');\r\n vm.deleted = false;\r\n vm.editedReportResult = {};\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.athleteList = [];\r\n vm.athleteListPartner1 = [];\r\n vm.athleteListPartner2 = [];\r\n vm.athleteListPartner3 = [];\r\n vm.noImage = '';\r\n vm.pageSize = 12;\r\n vm.defaultSection = -1;\r\n vm.competitionList = [];\r\n vm.EredmenyIdo = '';\r\n vm.noImage = DOMAIN.baseURL + DOMAIN.noImage;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editable = false;\r\n vm.CanCreateNew = true;\r\n vm.CanModify = true;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.columnsPopup = [];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.closeEarlierResultReportAthletesWindow = closeEarlierResultReportAthletesWindow;\r\n vm.selectEarlierResultReportAthletesWindow = selectEarlierResultReportAthletesWindow;\r\n\r\n vm.cmChange = cmChange;\r\n vm.mChange = mChange;\r\n\r\n function cmChange() {\r\n var cm = vm.editedReportResult.EredmenyTavolsag;\r\n if (vm.editedReportResult.EredmenyTavolsagM != cm / 100) {\r\n vm.editedReportResult.EredmenyTavolsagM = cm / 100;\r\n }\r\n }\r\n\r\n function mChange() {\r\n if (vm.editedReportResult.EredmenyTavolsagM && vm.editedReportResult.EredmenyTavolsagM.length > 0) {\r\n vm.editedReportResult.EredmenyTavolsagM = vm.editedReportResult.EredmenyTavolsagM.replace(',', '.');\r\n }\r\n var m = vm.editedReportResult.EredmenyTavolsagM;\r\n if (vm.editedReportResult.EredmenyTavolsag != m * 100) {\r\n vm.editedReportResult.EredmenyTavolsag = Math.round(m * 100);\r\n }\r\n }\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Filenev', headerText: gettextCatalog.getString('Filename'), textAlign: 'center', allowEditing: false, template: '#rereattemplateDataColumn1'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', allowEditing: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['Delete'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n if (args.requestType == 'delete') {\r\n return dataservice.deleteFiles(args.data[0].Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n vm.columnsPopup = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'VersenyNeve', headerText: gettextCatalog.getString('CompetitionName'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Versenyszam', headerText: gettextCatalog.getString('Versenyszam'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125, allowEditing: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 100, allowEditing: false},\r\n {field: 'SportoloCsapat', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125, allowEditing: false}\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 400,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.athleteDataBound = athleteDataBound;\r\n vm.athleteSelect = athleteSelect;\r\n vm.athleteDataBoundPartner = athleteDataBoundPartner;\r\n vm.athleteDataBoundPartner2 = athleteDataBoundPartner2;\r\n vm.athleteDataBoundPartner3 = athleteDataBoundPartner3;\r\n vm.athleteSelectPartner = athleteSelectPartner;\r\n vm.athleteSelectPartner2 = athleteSelectPartner2;\r\n vm.athleteSelectPartner3 = athleteSelectPartner3;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n vm.openCropDialog = openImgDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.deleteFile = deleteFile;\r\n vm.createResultReport = createResultReport;\r\n vm.modifyResultReport = modifyResultReport;\r\n vm.saveResultReport = saveResultReport;\r\n vm.clearTars1 = clearTars1;\r\n vm.clearTars2 = clearTars2;\r\n vm.clearTars3 = clearTars3;\r\n\r\n activate();\r\n\r\n function activate() {\r\n generateUploadBox();\r\n $q.all([paramHelper.getParams([], ['resultReportAthletes.Id']),\r\n authenticationService.getRight('MODEERJEL'),\r\n authenticationService.getRight('UJEERJEL'),\r\n authenticationService.getRight('MEGTEERJEL')])\r\n .then(function (results) {\r\n vm.MODEERJEL = results[1];\r\n vm.UJEERJEL = results[2];\r\n vm.MEGTEERJEL = results[3];\r\n\r\n if (!vm.MEGTEERJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJEERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODEERJEL);\r\n //létezőt nyit vissza\r\n if (results[0]['resultReportAthletes.Id'] && results[0]['resultReportAthletes.Id'] !== -1) {\r\n getReportAthleteById(results[0]['resultReportAthletes.Id']).then(function () {\r\n paramHelper.removeParam('resultReportAthletes.Id');\r\n });\r\n } else {\r\n createResultReport();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function getReportAthleteById(Id) {\r\n return dataservice.resultReportAthletesSelectById(Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.defaultSection = data.item.SzakosztalyId;\r\n vm.defaultAgeGroup = data.item.KorcsoportId;\r\n vm.defaultAthlete = data.item.SportoloId;\r\n vm.defaultAthletePartner = data.item.TarsEredmenySportolo;\r\n vm.defaultAthletePartner2 = data.item.TarsEredmenySportolo2;\r\n vm.defaultAthletePartner3 = data.item.TarsEredmenySportolo3;\r\n if (!data.item.Foto || data.item.Foto == 'noImage.png' || data.item.Foto == 'noImg.jpg') {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.noImage;\r\n } else {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.resultReportImgBaseUrl + data.item.Foto;\r\n }\r\n getSections();\r\n getFiles(Id);\r\n });\r\n }\r\n\r\n function generateUploadBox() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n enabled: true,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls, .mp4, .avi',\r\n complete: function (args) {\r\n if (args.responseText === 'true') {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles(vm.editedReportResult.Id);\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf,.xls,.mp4,.avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'JelentokEgyeni', tablaId: vm.editedReportResult.Id};\r\n }\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.editedReportResult.SzakosztalyId = args.value;\r\n getAgeGroups(args.value);\r\n getCharacterOfACompetitionList(args.value);\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getCharacterOfACompetitionList(szakosztalyId) {\r\n var csapat = false;\r\n return dataservice.getCharacterOfACompetitionList(csapat, szakosztalyId)\r\n .then(function (data) {\r\n vm.competitionList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.defaultAgeGroup);\r\n }\r\n }\r\n\r\n function getAthletes(KorcsoportId) {\r\n return dataservice.athleteDropDownListSelect(vm.editedReportResult.SzakosztalyId, KorcsoportId, vm.defaultAthlete, vm.defaultAthletePartner)\r\n .then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n for (var i = 0; i < vm.athleteList.length; i++) {\r\n vm.athleteListPartner1[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n vm.athleteListPartner2[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n vm.athleteListPartner3[i] = {value: data.itemsList[i].value, text: data.itemsList[i].text};\r\n }\r\n });\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.editedReportResult.KorcsoportId = args.value;\r\n getAthletes(args.value);\r\n }\r\n\r\n function athleteDataBound() {\r\n if (vm.athleteList.length === 1) {\r\n angular.element('#maSportolo').ejDropDownList('selectItemByValue', vm.athleteList[0].value);\r\n } else {\r\n angular.element('#maSportolo').ejDropDownList('selectItemByValue', vm.editedReportResult.SportoloId);\r\n }\r\n }\r\n\r\n function excludeFromPartnerList(sportoloid) {\r\n vm.athleteListPartner1 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != sportoloid;\r\n });\r\n }\r\n\r\n function athleteDataBoundPartner() {\r\n angular.element('#maTarsSportolo').ejDropDownList('selectItemByValue', vm.defaultAthletePartner);\r\n }\r\n\r\n function athleteDataBoundPartner2() {\r\n angular.element('#maTarsSportolo2').ejDropDownList('selectItemByValue', vm.defaultAthletePartner2);\r\n }\r\n\r\n function athleteDataBoundPartner3() {\r\n angular.element('#maTarsSportolo3').ejDropDownList('selectItemByValue', vm.defaultAthletePartner3);\r\n }\r\n\r\n function athleteSelect(args) {\r\n vm.editedReportResult.SportoloId = args.value;\r\n vm.athleteListPartner1 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner(args) {\r\n vm.editedReportResult.TarsEredmenySportolo = args.value;\r\n vm.athleteListPartner2 = vm.athleteListPartner1.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner2(args) {\r\n vm.editedReportResult.TarsEredmenySportolo2 = args.value;\r\n vm.athleteListPartner3 = vm.athleteListPartner2.filter(function (a) {\r\n return a.value != args.value;\r\n });\r\n }\r\n\r\n function athleteSelectPartner3(args) {\r\n vm.editedReportResult.TarsEredmenySportolo3 = args.value;\r\n }\r\n\r\n function clearTars1() {\r\n vm.editedReportResult.TarsEredmenySportolo = undefined;\r\n $('#maTarsSportolo').ejDropDownList('clearText');\r\n clearTars2();\r\n clearTars3();\r\n }\r\n\r\n function clearTars2() {\r\n vm.editedReportResult.TarsEredmenySportolo2 = undefined;\r\n $('#maTarsSportolo2').ejDropDownList('clearText');\r\n clearTars3();\r\n }\r\n\r\n function clearTars3() {\r\n vm.editedReportResult.TarsEredmenySportolo3 = undefined;\r\n $('#maTarsSportolo3').ejDropDownList('clearText');\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n vm.deleted = false;\r\n\r\n if (angular.isUndefined(vm.editedReportResult.SzakosztalyId) || vm.editedReportResult.SzakosztalyId === null || vm.editedReportResult.SzakosztalyId === -1) {\r\n swal({\r\n title: gettextCatalog.getString('Error'),\r\n text: gettextCatalog.getString('LetHimGrantAtLeastASection'),\r\n type: 'error',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n vm.selectedRowIndexPopup = -1;\r\n angular.element('#searchWindow').data('ejDialog').open();\r\n dataservice.resultReportAthletesOlderReports(vm.editedReportResult.SzakosztalyId, vm.editedReportResult.KorcsoportId, true).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n }\r\n\r\n function openImgDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function createResultReport() {\r\n vm.editedReportResult = {};\r\n vm.editedReportResult.Id = -1;\r\n vm.editedReportResult.DatumIg = null;\r\n vm.editedReportResult.DatumTol = null;\r\n vm.editedReportResult.EdzoId = null;\r\n vm.editedReportResult.EdzoNeve = null;\r\n vm.editedReportResult.Eredmeny = 3;\r\n vm.editedReportResult.EredmenyIdo = null;\r\n vm.editedReportResult.EredmenySzoveg = null;\r\n vm.editedReportResult.EredmenyTavolsag = null;\r\n vm.editedReportResult.Ertekeles = null;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.Helyezes = null;\r\n vm.editedReportResult.Helyszin = null;\r\n vm.editedReportResult.Hivatalos = false;\r\n vm.editedReportResult.Jellege = null;\r\n vm.editedReportResult.KorcsoportId = null;\r\n vm.editedReportResult.KorcsoportNeve = null;\r\n vm.editedReportResult.SportoloId = null;\r\n vm.editedReportResult.SportoloNev = null;\r\n vm.editedReportResult.SzakosztalyId = null;\r\n vm.editedReportResult.SzakosztalyNeve = null;\r\n vm.editedReportResult.SzuletesiIdo = null;\r\n vm.editedReportResult.TarsEredmenySportolo = null;\r\n vm.editedReportResult.TarsEredmenySportolo2 = null;\r\n vm.editedReportResult.TarsEredmenySportolo3 = null;\r\n vm.editedReportResult.VersenyLeiras = null;\r\n vm.editedReportResult.fileData = null;\r\n vm.editedReportResult.fileName = null;\r\n grid.dataSource = [];\r\n grid.editSettings.allowDeleting = true;\r\n\r\n vm.editedReportResult.SzakosztalyId = 0;\r\n vm.editedReportResult.KorcsoportId = 0;\r\n vm.editedReportResult.SportoloId = 0;\r\n vm.editedReportResult.TarsEredmenySportolo = 0;\r\n vm.editedReportResult.TarsEredmenySportolo2 = 0;\r\n vm.editedReportResult.TarsEredmenySportolo3 = 0;\r\n // angular.element('#maSzakosztaly').ejDropDownList('clearText');\r\n // angular.element('#maKorosztaly').ejDropDownList('clearText');\r\n // angular.element('#maSportolo').ejDropDownList('clearText');\r\n // angular.element('#maTarsSportolo').ejDropDownList('clearText');\r\n $timeout(function () {\r\n vm.editable = true;\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n $scope.$apply();\r\n });\r\n }\r\n\r\n function modifyResultReport() {\r\n vm.editable = true;\r\n grid.editSettings.allowDeleting = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n }\r\n\r\n function saveResultReport() {\r\n $scope.$broadcast('submitted');\r\n if ((vm.editedReportResult.EredmenyIdo == null || angular.isUndefined(vm.editedReportResult.EredmenyIdo) || vm.editedReportResult.EredmenyIdo === '__:__:__.___') &&\r\n (vm.editedReportResult.EredmenySzoveg == null || angular.isUndefined(vm.editedReportResult.EredmenySzoveg) || vm.editedReportResult.EredmenySzoveg === '') &&\r\n (vm.editedReportResult.EredmenyTavolsag == null || angular.isUndefined(vm.editedReportResult.EredmenyTavolsag) || vm.editedReportResult.EredmenyTavolsag === '') &&\r\n (vm.editedReportResult.Eredmeny == null || angular.isUndefined(vm.editedReportResult.Eredmeny) || vm.editedReportResult.Eredmeny === '')\r\n ) {\r\n log.errorMsg('LegalabbEgyEredmenytAdjonMeg');\r\n return;\r\n }\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.editedReportResult.fileData = vm.cropper.croppedImage;\r\n vm.editedReportResult.fileName = angular.element('#fileName').val();\r\n }\r\n $timeout(function () {\r\n $scope.$apply();\r\n dataservice.saveResultReportAthletes(vm.editedReportResult)\r\n .then(function (args) {\r\n log.successMsg('ResultReportSaved');\r\n getReportAthleteById(args.data);\r\n vm.editable = false;\r\n angular.element('#UploadDefault').ejUploadbox('disable');\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJEERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODEERJEL);\r\n });\r\n }, 100);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.deleted = false;\r\n vm.editedReportResult.Foto = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheImage'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n vm.deleted = true;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.fileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getFiles(args) {\r\n dataservice.getFilesList('JelentokEgyeni', args).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function deleteFile(args) {\r\n return dataservice.deleteFiles(args.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n\r\n function closeEarlierResultReportAthletesWindow() {\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n\r\n function selectEarlierResultReportAthletesWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = gridPopup.currentViewData[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n getReportAthleteById(vmi.Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.Id = -1;\r\n });\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.resultReportAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.resultReportAthletes',\r\n config: {\r\n url: '/resultReportAthletes',\r\n templateUrl: 'app/administration/resultReportAthletes/resultReportAthletes.html',\r\n controller: 'ResultReportAthletesController',\r\n controllerAs: 'vm',\r\n title: 'ResultReportAthletes',\r\n settings: {\r\n navId: 292,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Eredményjelentő (egyéni)',\r\n orderTitle_en: 'Result Report (individual)',\r\n parentId: 2,\r\n content: 'ResultReportAthletes',\r\n activatorPermission: ['\"MEGTEERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.resultReportTeam')\r\n .controller('ResultReportTeamController', ResultReportTeamController);\r\n\r\n function ResultReportTeamController($q, dataservice, log, DOMAIN, paramHelper, $scope, $compile, authenticationService, gettextCatalog, $rootScope, $timeout, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ResultReportTeam');\r\n vm.editedReportResult = {};\r\n vm.editedReportId = -1;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.teamList = [];\r\n vm.competitionList = [];\r\n vm.EredmenyIdo = '';\r\n vm.noImage = DOMAIN.baseURL + DOMAIN.noImage;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editable = false;\r\n vm.CanCreateNew = true;\r\n vm.CanModify = true;\r\n vm.selectedRowIndexPopup = -1;\r\n vm.selectedRowIndex = -1;\r\n vm.AtjatszoAgeGroup = undefined;\r\n vm.AtjatszoAgeGroupList = [];\r\n vm.columnsPopup = [];\r\n vm.splicedAthletes = [];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.addAtjatszok = addAtjatszok;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.closeEarlierResultReportTeamWindow = closeEarlierResultReportTeamWindow;\r\n vm.selectEarlierResultReportTeamWindow = selectEarlierResultReportTeamWindow;\r\n vm.goToOlderAnnualSeasonPlanReports = goToOlderAnnualSeasonPlanReports;\r\n\r\n vm.maskObject;\r\n vm.elem;\r\n vm.tableTimeEditorTemplate = {\r\n create: function () {\r\n var txt = document.createElement('input');\r\n txt.style.width = '100%';\r\n txt.style.float = 'left';\r\n vm.elem = txt;\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('GridAthletes', '');\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '99:99:99.999',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: !vm.editable\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100,\r\n template: '#reretetemplateDataColumn1'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: ['Delete', 'Search'],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n if (args.requestType == 'delete') {\r\n return dataservice.deleteFiles(args.data[0].Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n });\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Athletes\r\n vm.columnsAthletes = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('TrainerName'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n },\r\n {\r\n field: 'Atjatszo',\r\n headerText: gettextCatalog.getString('AtFeljatszo'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false,\r\n type: 'boolean',\r\n editType: ej.Grid.EditingType.Boolean,\r\n displayAsCheckBox: true,\r\n },\r\n {\r\n field: 'Kiemelt',\r\n headerText: gettextCatalog.getString('Kiemelt'),\r\n textAlign: 'center',\r\n width: 80,\r\n type: 'boolean',\r\n editType: ej.Grid.EditingType.Boolean,\r\n displayAsCheckBox: true,\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('EredmenySzoveg'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('EredmenyPontGol'),\r\n textAlign: 'center',\r\n type: 'numeric',\r\n editType: ej.Grid.EditingType.Numeric,\r\n editParams: {decimalPlaces: 2, locale: 'HU-hu'},\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('EredmenyIdo'),\r\n textAlign: 'center',\r\n edit: vm.tableTimeEditorTemplate,\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('EredmenyTavolsag'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Numeric,\r\n format: 'N2',\r\n params: {decimals: 2},\r\n width: 100,\r\n allowEditing: true\r\n },\r\n {\r\n field: 'EredmenyTavolsagM',\r\n headerText: gettextCatalog.getString('EredmenyTavolsagM'),\r\n textAlign: 'center',\r\n editType: ej.Grid.EditingType.Numeric,\r\n width: 100,\r\n allowEditing: true\r\n }\r\n ];\r\n\r\n var gridAthletes = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n editSettings: {allowDeleting: false, allowEditing: false, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthletes,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridAthletes'), $scope);\r\n }\r\n },\r\n cellEdit: function (args) {\r\n if (!vm.editable) {\r\n args.cancel = true;\r\n } else {\r\n if (args.columnName === 'Kiemelt') {\r\n var index = gridAthletes.dataSource.findIndex(function (item) {\r\n return item.SportolokID === args.rowData.SportolokID;\r\n });\r\n gridAthletes.dataSource[index]['Kiemelt'] = !gridAthletes.dataSource[index]['Kiemelt'];\r\n gridAthletes.endEdit();\r\n args.cancel = true;\r\n }\r\n }\r\n },\r\n cellSave: function (arg) {\r\n if (arg.columnName == 'EredmenyTavolsag') {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i].EredmenyTavolsag = arg.value;\r\n gridAthletes.dataSource[i].EredmenyTavolsagM = arg.value / 100;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n } else if (arg.columnName == 'EredmenyTavolsagM') {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i].EredmenyTavolsagM = arg.value;\r\n gridAthletes.dataSource[i].EredmenyTavolsag = arg.value * 100;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n } else {\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == arg.rowData.SportolokID) {\r\n gridAthletes.dataSource[i][arg.columnName] = arg.value;\r\n gridAthletes.refresh();\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n });\r\n gridAthletes.appendTo('#GridAthletes');\r\n\r\n vm.atjatszoColumns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'Szuletes', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzoneve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var gridAtjatszo = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n toolbar: ['Search'],\r\n editSettings: {allowDeleting: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.atjatszoColumns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelecting: function () {\r\n },\r\n });\r\n gridAtjatszo.appendTo('#GridAtjatszo');\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'VersenyNeve',\r\n headerText: gettextCatalog.getString('CompetitionName'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SportoloCsapat',\r\n headerText: gettextCatalog.getString('Team'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.teamDataBound = teamDataBound;\r\n vm.teamSelect = teamSelect;\r\n vm.openCropDialog = openImgDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.createResultReport = createResultReport;\r\n vm.modifyResultReport = modifyResultReport;\r\n vm.saveResultReport = saveResultReport;\r\n vm.oldTeamId = 0;\r\n vm.addAthletesToResultReport = addAthletesToResultReport;\r\n vm.removeAthletesFromResultReport = removeAthletesFromResultReport;\r\n vm.atjatszoAgeGroupSelect = atjatszoAgeGroupSelect;\r\n\r\n activate();\r\n\r\n function activate() {\r\n generateUploadbox();\r\n $q.all([paramHelper.getParams([], ['resultReportTeam.Id']),\r\n authenticationService.getRight('MODCSERJEL'),\r\n authenticationService.getRight('UJCSERJEL'),\r\n authenticationService.getRight('MEGTCSERJEL')])\r\n .then(function (results) {\r\n vm.MODCSERJEL = results[1];\r\n vm.UJCSERJEL = results[2];\r\n vm.MEGTCSERJEL = results[3];\r\n\r\n if (!vm.MEGTCSERJEL) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.CanCreateNew = ((!vm.editable) && vm.UJCSERJEL);\r\n vm.CanModify = ((!vm.editable) && vm.MODCSERJEL);\r\n //létezőt nyit vissza\r\n if (results[0]['resultReportTeam.Id'] && results[0]['resultReportTeam.Id'] !== -1) {\r\n dataservice.resultReportTeamSelectById(results[0]['resultReportTeam.Id'])\r\n .then(function (data) {\r\n $timeout(function () {\r\n vm.editedReportId = results[0]['resultReportTeam.Id'];\r\n paramHelper.removeParam('resultReportTeam.Id');\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.SzakosztalyId = data.item.SzakosztalyId;\r\n vm.editedReportResult.KorcsoportId = data.item.KorcsoportId;\r\n vm.editedReportResult.CsapatId = data.item.CsapatId;\r\n if (!vm.editedReportResult.Foto || vm.editedReportResult.Foto == 'noImage.png' || vm.editedReportResult.Foto == 'noImg.jpg') {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.noImage;\r\n } else {\r\n vm.editedReportResult.Foto = DOMAIN.baseURL + DOMAIN.resultReportTeamImgBaseUrl + vm.editedReportResult.Foto;\r\n }\r\n gridAthletes.dataSource = data.item.Sportolok;\r\n }, 0);\r\n getSections();\r\n getFiles(results[0]['resultReportTeam.Id']);\r\n });\r\n } else {\r\n createResultReport();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function generateUploadbox() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n enabled: false,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadedFilesTitle'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls, .mp4, .avi',\r\n complete: function (args) {\r\n if (args.responseText === 'true') {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles(vm.editedReportResult.Id);\r\n } else {\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + args.error);\r\n }\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc,.docx,.pdf,.xls,.mp4,.avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: 'JelentokCsapat', tablaId: vm.editedReportResult.Id};\r\n }\r\n });\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.editedReportResult.SzakosztalyId);\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.editedReportResult.SzakosztalyId = args.value;\r\n getAgeGroups(args.value);\r\n getAgeGroupsForAtjatszo(args.value);\r\n getCharacterOfACompetitionList(args.value);\r\n }\r\n\r\n //korcsoportok lekérése\r\n function getAgeGroups(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.editedReportResult.KorcsoportId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.editedReportResult.KorcsoportId = args.value;\r\n\r\n // $('#maCsapat').ejDropDownList('clearText');\r\n vm.oldTeamId = -1;\r\n getTeams(args.value);\r\n }\r\n\r\n function getTeams(KorcsoportId) {\r\n var CsapatId = $('#maKorosztaly').ejDropDownList('getSelectedValue');\r\n dataservice.teamDropDownListSelect(vm.editedReportResult.SzakosztalyId, KorcsoportId, CsapatId).then(function (data) {\r\n vm.teamList = data.itemsList;\r\n });\r\n }\r\n\r\n function teamDataBound() {\r\n if (vm.teamList.length === 1) {\r\n angular.element('#maCsapat').ejDropDownList('selectItemByValue', vm.teamList[0].value);\r\n } else {\r\n angular.element('#maCsapat').ejDropDownList('selectItemByValue', vm.editedReportResult.CsapatId);\r\n }\r\n }\r\n\r\n function teamSelect(args) {\r\n if (!vm.editedReportId || vm.editedReportId === -1 || vm.oldTeamId !== -1) {\r\n if (vm.oldTeamId === args.value) {\r\n return;\r\n }\r\n vm.oldTeamId = args.value;\r\n dataservice.teamAthletesListSelect(args.value).then(function (athletesList) {\r\n gridAthletes.dataSource = athletesList.itemsList;\r\n\r\n swal({\r\n title: gettextCatalog.getString('AtjatszoSportolok'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToAddAtjatszoAthletes'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.EredmenyJelentoAtjatszoSportoloi(args.value).then(function (args) {\r\n for (var i = 0; i < args.itemsList.length; i++) {\r\n gridAthletes.dataSource.push(args.itemsList[i]);\r\n }\r\n gridAthletes.refresh();\r\n });\r\n }\r\n });\r\n });\r\n dataservice.getCoachUsers([vm.editedReportResult.SzakosztalyId]).then(function (args) {\r\n vm.atjatszoEdzoList = args.itemsList;\r\n });\r\n }\r\n getAtjatszoSportolok(vm.editedReportResult.SzakosztalyId, 0, 0, args.value);\r\n }\r\n\r\n function getAgeGroupsForAtjatszo(szakosztalyId) {\r\n return dataservice.ageGroupDropDownList(szakosztalyId)\r\n .then(function (data) {\r\n vm.AtjatszoAgeGroupList = data.itemsList;\r\n vm.AtjatszoAgeGroupList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function atjatszoAgeGroupSelect(arg) {\r\n getAtjatszoSportolok(vm.editedReportResult.SzakosztalyId, arg.value, 0, vm.editedReportResult.CsapatId);\r\n }\r\n\r\n function getAtjatszoSportolok(section, agegroup, coach, exceptTeam) {\r\n dataservice.AtjatszoSportoloLista(section, agegroup, coach, exceptTeam).then(function (response) {\r\n gridAtjatszo.dataSource = $filter('dateStringFilter')(response.itemsList, 'Szuletes');\r\n });\r\n }\r\n\r\n function addAtjatszok() {\r\n vm.selectedAtjatszok = $rootScope.getSelectedItems(gridAtjatszo);\r\n if (!vm.selectedAtjatszok || vm.selectedAtjatszok.length == 0) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n vm.selectedAtjatszok.forEach(function (atjatszo) {\r\n addAthletesToResultReport(atjatszo.SportoloID, atjatszo.edzoneve, atjatszo.edzoid);\r\n if (gridAtjatszo.dataSource.includes(atjatszo)) {\r\n vm.splicedAthletes.push(atjatszo);\r\n gridAtjatszo.dataSource.splice(gridAtjatszo.dataSource.indexOf(atjatszo), 1);\r\n }\r\n });\r\n gridAtjatszo.refresh();\r\n }\r\n\r\n function addAthletesToResultReport(atjatszoSportoloID, edzoNeve, edzoId) {\r\n if (!atjatszoSportoloID) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n var id = -1;\r\n for (var i = 0; i < gridAthletes.dataSource.length; i++) {\r\n if (gridAthletes.dataSource[i].SportolokID == atjatszoSportoloID) {\r\n log.errorMsg('AthleteExistsInResultReport');\r\n return;\r\n }\r\n if (gridAthletes.dataSource[i].Id < id) {\r\n id = gridAthletes.dataSource[i].Id;\r\n }\r\n }\r\n dataservice.getTeamResultAthleteData(atjatszoSportoloID).then(function (args) {\r\n var rec = {};\r\n rec.SportolokID = args.SportolokID;\r\n rec.Id = id - 1;\r\n rec.Nev = args.Nev;\r\n rec.KorcsoportNeve = args.KorcsoportNeve;\r\n rec.KorcsoportId = args.Korcsoport;\r\n rec.EdzoId = edzoId;\r\n rec.EdzoNeve = edzoNeve;\r\n rec.SzuletesiIdo = args.SzuletesiIdo;\r\n rec.SzakosztalyId = args.IdSzakosztaly;\r\n rec.Atjatszo = true;\r\n rec.atjatszoCsapatId = vm.editedReportResult.CsapatId;\r\n rec.Kiemelt = false;\r\n rec.EredmenySzoveg = '';\r\n rec.EredmenyPont = '';\r\n rec.EredmenyIdo = '';\r\n rec.EredmenyTavolsag = '';\r\n gridAthletes.dataSource.push(rec);\r\n gridAthletes.refresh();\r\n });\r\n }\r\n\r\n function getCharacterOfACompetitionList(szakosztalyId) {\r\n var csapat = true;\r\n return dataservice.getCharacterOfACompetitionList(csapat, szakosztalyId)\r\n .then(function (data) {\r\n vm.competitionList = data.itemsList;\r\n });\r\n }\r\n\r\n function goToOlderAnnualSeasonPlanReports() {\r\n if (!vm.editedReportResult.SzakosztalyId || vm.editedReportResult.SzakosztalyId < 1) {\r\n log.errorMsg(gettextCatalog.getString('LetHimGrantAtLeastASection'));\r\n return;\r\n } else {\r\n vm.selectedRowIndexPopup = -1;\r\n\r\n angular.element('#searchWindow').data('ejDialog').open();\r\n var KorcsoportId = angular.element('#maKorosztaly').ejDropDownList('getSelectedValue');\r\n dataservice.resultReportAthletesOlderReports(vm.editedReportResult.SzakosztalyId,\r\n KorcsoportId, false).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n }\r\n\r\n function selectEarlierResultReportTeamWindow() {\r\n vm.selectedRowIndexPopup = gridPopup.selectedRowIndex;\r\n if (vm.selectedRowIndexPopup > -1) {\r\n var vmi = gridPopup.currentViewData[vm.selectedRowIndexPopup];\r\n if (vmi) {\r\n dataservice.resultReportTeamSelectById(vmi.Id)\r\n .then(function (data) {\r\n vm.editedReportResult = data.item;\r\n vm.editedReportResult.Id = -1;\r\n for (var i = 0; i < vm.editedReportResult.Sportolok.length; i++) {\r\n vm.editedReportResult.Sportolok[i].Id = -1 * (i + 1);\r\n }\r\n });\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n }\r\n }\r\n\r\n function removeAthletesFromResultReport() {\r\n vm.selectedRowIndex = $rootScope.gridSelectedRowIndex(gridAthletes);\r\n if (vm.selectedRowIndex === undefined || vm.selectedRowIndex == null || vm.selectedRowIndex.length < 0) {\r\n log.errorMsg('PleaseSelectAthlete');\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DeleteAthlete'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteSelectedAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n grid.endEdit();\r\n vm.selectedRowIndex.forEach(function () {\r\n var ath = gridAthletes.getSelectedRecords();\r\n vm.splicedAthletes.forEach(elem => {\r\n if (elem.SportoloID == ath[0].SportolokID) {\r\n gridAtjatszo.dataSource.push(elem);\r\n vm.splicedAthletes.splice(elem, 1);\r\n }\r\n });\r\n gridAthletes.dataSource.splice(vm.selectedRowIndex, 1);\r\n });\r\n gridAthletes.refresh();\r\n gridAtjatszo.refresh();\r\n }\r\n });\r\n }\r\n\r\n function closeEarlierResultReportTeamWindow() {\r\n angular.element('#searchWindow').data('ejDialog').close();\r\n }\r\n\r\n function createResultReport() {\r\n vm.editedReportResult = {};\r\n vm.editedReportResult.DatumIg = null;\r\n vm.editedReportResult.DatumTol = null;\r\n vm.editedReportResult.EdzoId = null;\r\n vm.editedReportResult.EdzoNeve = null;\r\n vm.editedReportResult.Eredmeny = 3;\r\n vm.editedReportResult.EredmenyIdo = null;\r\n vm.editedReportResult.EredmenySzoveg = null;\r\n vm.editedReportResult.EredmenyTavolsag = null;\r\n vm.editedReportResult.Ertekeles = null;\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.Helyezes = null;\r\n vm.editedReportResult.Helyszin = null;\r\n vm.editedReportResult.Hivatalos = false;\r\n vm.editedReportResult.Jellege = null;\r\n vm.editedReportResult.KorcsoportNeve = null;\r\n vm.editedReportResult.SportoloId = null;\r\n vm.editedReportResult.SportoloNev = null;\r\n vm.editedReportResult.SzakosztalyNeve = null;\r\n vm.editedReportResult.SzuletesiIdo = null;\r\n vm.editedReportResult.TarsEredmenySportolo = null;\r\n vm.editedReportResult.VersenyLeiras = null;\r\n vm.editedReportResult.fileData = null;\r\n vm.editedReportResult.fileName = null;\r\n vm.editedReportResult.Id = -1;\r\n gridAthletes.dataSource = [];\r\n grid.dataSource = [];\r\n grid.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowEditing = true;\r\n //vm.editable = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n // angular.element('#maSzakosztaly').ejDropDownList('clearText');\r\n // angular.element('#maKorosztaly').ejDropDownList('clearText');\r\n // angular.element('#maSportolo').ejDropDownList('clearText');\r\n // angular.element('#maTarsSportolo').ejDropDownList('clearText');\r\n\r\n vm.editedReportResult.SzakosztalyId = 0;\r\n vm.editedReportResult.KorcsoportId = 0;\r\n\r\n vm.editedReportId = -1;\r\n $timeout(function () {\r\n vm.editable = true;\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function modifyResultReport() {\r\n dataservice.getCoachUsers(vm.editedReportResult.SzakosztalyId).then(function (args) {\r\n vm.atjatszoEdzoList = args.itemsList;\r\n grid.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowDeleting = true;\r\n gridAthletes.editSettings.allowEditing = true;\r\n vm.editable = true;\r\n angular.element('#UploadDefault').ejUploadbox('enable');\r\n vm.CanCreateNew = false;\r\n vm.CanModify = false;\r\n });\r\n }\r\n\r\n function saveResultReport() {\r\n $scope.$broadcast('submitted');\r\n grid.endEdit();\r\n //grid.editModule.batchSave();\r\n\r\n gridAthletes.endEdit();\r\n //gridAthletes.editModule.batchSave();\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n vm.editedReportResult.Sportolok = gridAthletes.dataSource;\r\n // kép küldése, ha választott\r\n\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.editedReportResult.fileData = vm.cropper.croppedImage;\r\n vm.editedReportResult.fileName = angular.element('#fileName').val();\r\n }\r\n dataservice.saveResultReportTeams(vm.editedReportResult)\r\n .then(function (args) {\r\n if (args.res > 0) {\r\n vm.editedReportId = args.res;\r\n log.successMsg('ResultReportSaved');\r\n vm.editedReportResult.Id = args.res;\r\n angular.element('#UploadDefault').ejUploadbox('disable');\r\n vm.CanCreateNew = vm.UJCSERJEL;\r\n vm.CanModify = vm.MODCSERJEL;\r\n vm.editable = false;\r\n // $timeout(function () {\r\n // $scope.$apply();\r\n // }, 100);\r\n }\r\n });\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheImage'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n vm.editedReportResult.Foto = vm.noImage;\r\n vm.editedReportResult.fileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getFiles(args) {\r\n dataservice.getFilesList('JelentokCsapat', args).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openImgDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.editedReportResult.Foto = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.resultReportTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.resultReportTeam',\r\n config: {\r\n url: '/resultReportTeam',\r\n templateUrl: 'app/administration/resultReportTeam/resultReportTeam.html',\r\n controller: 'ResultReportTeamController',\r\n controllerAs: 'vm',\r\n title: 'ResultReportTeam',\r\n settings: {\r\n navId: 292,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Eredményjelentő (csapat)',\r\n orderTitle_en: 'Result Report (team)',\r\n parentId: 2,\r\n content: 'ResultReportTeam',\r\n activatorPermission: ['\"MEGTCSERJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function() {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTest')\r\n .controller('NewSportSpecificTestController', NewSportSpecificTestController);\r\n\r\n function NewSportSpecificTestController(log, authenticationService, dataservice, $q, $state, $rootScope, gettextCatalog, paramHelper, $scope, $compile, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('NewSportSpecificTest');\r\n\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 200, allowEditing: false}\r\n ];\r\n vm.testdata = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = -1;\r\n vm.felmeroElemFejId = -1;\r\n vm.felmeroElemFejIdValue = undefined;\r\n vm.newTest = true;\r\n vm.createButtonEnabled = true;\r\n vm.editTestTypeButtonEnabled = true;\r\n vm.edzoertekeles = '';\r\n vm.querycellinfo = querycellinfo;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.felmeroDataBound = felmeroDataBound;\r\n vm.DeleteTest = DeleteTest;\r\n vm.SaveTest = SaveTest;\r\n vm.CreateTest = CreateTest;\r\n vm.CreateTestType = CreateTestType;\r\n vm.EditTestType = EditTestType;\r\n vm.params = [];\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n vm.dateValue = new Date();\r\n vm.hints = [];\r\n vm.cellHint = '';\r\n vm.openAthlete = openAthlete;\r\n vm.colorCheckBoxChange = colorCheckBoxChange;\r\n vm.UJSPFELM = false;\r\n vm.Highlight = -1;\r\n vm.colors = true;\r\n vm.showColors = false;\r\n var Grid2 = null;\r\n\r\n CreateGrid2();\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n paramHelper.getParams(['sportSpecificTest.sectionId', 'sportSpecificTest.ageGroupId', 'sportSpecificTest.coachId', 'sportSpecificTest.felmeroFejId', 'sportSpecificTest.felmeroElemFejId', 'sportSpecificTest.highlight']),\r\n authenticationService.getRight('UJSPFELM')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.params = results[0];\r\n vm.UJSPFELM = results[1];\r\n vm.sectionId = vm.params['sportSpecificTest.sectionId'];\r\n vm.ageGroupId = vm.params['sportSpecificTest.ageGroupId'];\r\n vm.coachId = vm.params['sportSpecificTest.coachId'];\r\n vm.felmeroFejId = vm.params['sportSpecificTest.felmeroFejId'];\r\n if (vm.params['sportSpecificTest.felmeroElemFejId']) {\r\n vm.felmeroElemFejId = vm.params['sportSpecificTest.felmeroElemFejId'];\r\n vm.felmeroElemFejIdValue = vm.params['sportSpecificTest.felmeroElemFejId'];\r\n }\r\n if (vm.params['sportSpecificTest.highlight']) {\r\n vm.Highlight = vm.params['sportSpecificTest.highlight'];\r\n }\r\n vm.sectionIdValue = vm.sectionId;\r\n vm.ageGroupIdValue = vm.ageGroupId;\r\n vm.coachIdValue = vm.coachId;\r\n getSections();\r\n getAgeGroups(vm.sectionId);\r\n getCoaches();\r\n getFelmeroTipusok(vm.sectionId);\r\n if (vm.felmeroFejId > 0) {\r\n vm.newTest = false;\r\n vm.showColors = true;\r\n vm.createButtonEnabled = false;\r\n LoadTest(vm.felmeroFejId);\r\n } else {\r\n vm.createButtonEnabled = true;\r\n vm.newTest = true;\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n vm.MMSS_EditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>00:00',\r\n value: args.rowData[args.column.field],\r\n readOnly: false,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n vm.HHMMSS_EditorTemplate = {\r\n create: function () {\r\n vm.elem = document.createElement('input');\r\n vm.elem.addEventListener('focus', function () {\r\n this.select();\r\n });\r\n return vm.elem;\r\n },\r\n read: function () {\r\n return vm.maskObject.getMaskedValue();\r\n },\r\n destroy: function () {\r\n if (vm.maskObject != null) {\r\n vm.maskObject.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n vm.maskObject = new ej2.inputs.MaskedTextBox({\r\n minWidth: '100%',\r\n mask: '>00:00:00',\r\n value: args.rowData[args.column.field],\r\n readOnly: false,\r\n });\r\n vm.editedRowId = args.rowData['Id'];\r\n $compile(args.element[0])($scope);\r\n vm.maskObject.appendTo(vm.elem);\r\n }\r\n };\r\n\r\n function CreateGrid2() {\r\n Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.test,\r\n columns: vm.columns,\r\n allowPaging: false,\r\n allowSorting: true,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n mode: 'Batch', showConfirmDialog: false, allowEditing: true, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n if (vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2]) {\r\n vm.cellHint = gettextCatalog.getString('TheSelectedCellIs') + ' ' + vm.hints[arg.cellIndex.cellIndex - 2];\r\n if (vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2].ElvartEredmeny) {\r\n vm.cellHint += '. ' + gettextCatalog.getString('ExpectedResult') + ': ' + vm.dataFelmeroElem[arg.cellIndex.cellIndex - 2].ElvartEredmeny;\r\n }\r\n } else {\r\n vm.cellHint = '';\r\n }\r\n $scope.$apply();\r\n },\r\n queryCellInfo: function (arg) {\r\n var cellIndex = -1;\r\n if (arg.column.field) {\r\n cellIndex = parseInt(arg.column.field.replace('c', ''));\r\n }\r\n var cell = angular.element(arg.cell);\r\n if (vm.Highlight && arg.data.SportoloID == vm.Highlight && arg.column.field == 'SportoloNeve') {\r\n cell.css('background-color', '#cdeecd');\r\n } else if (vm.colors && vm.testdata && vm.testdata.length > 0 && cellIndex >= 0) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID);\r\n if (vm.testdata[rowIndex].Colors[cellIndex] && vm.testdata[rowIndex].Colors[cellIndex].length > 0) {\r\n cell.css('background-color', vm.testdata[rowIndex].Colors[cellIndex]);\r\n }\r\n }\r\n }\r\n });\r\n Grid2.appendTo('#Grid2');\r\n }\r\n\r\n function get1DArrayBelongsToUserInRow(row) {\r\n var retArray1D = [];\r\n var SportoloNeve = vm.test[row].SportoloNeve;\r\n var SportoloID = vm.test[row].SportoloID.toString();\r\n retArray1D.push(SportoloID);\r\n retArray1D.push(SportoloNeve);\r\n var strArr = [];\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n retArray1D.push(vm.test[row][strArr[i]]);\r\n if (vm.test[row][strArr[i]] && vm.test[row][strArr[i]].length > 200) {\r\n log.errorMsg(gettextCatalog.getString('Max200CharactersInFields'));\r\n return false;\r\n }\r\n }\r\n return retArray1D;\r\n }\r\n\r\n function resetColumns() {\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 200, allowEditing: false}\r\n ];\r\n }\r\n\r\n function setColumns(FEF_ID, newTest, itemsList) {\r\n if (!FEF_ID) {\r\n return;\r\n }\r\n dataservice.getFelmeroElemList(FEF_ID).then(function (arg) {\r\n vm.dataFelmeroElem = arg.itemsList;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n switch (vm.dataFelmeroElem[i].Tipus){\r\n case 1: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberInteger'); break;\r\n case 2: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberFraction'); break;\r\n case 3: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('Text'); break;\r\n case 4: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'); break;\r\n case 5: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeMinuteSecHundredthOfASec'); break;\r\n case 6: vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeSecHundredthOfASec'); break;\r\n default: vm.dataFelmeroElem[i].TipusStr = 'x';\r\n }\r\n vm.hints.push(vm.dataFelmeroElem[i].TipusStr);\r\n }\r\n if (newTest) {\r\n dataservice.FelmeroLetrehozasa(vm.coachId, vm.ageGroupId, parseInt(vm.felmeroElemFejIdValue), vm.dateValue).then(function(data) {\r\n vm.test = data.itemsList;\r\n Grid2.dataSource = vm.test;\r\n }); // dataservice.FelmeroLetrehozasa\r\n } else {\r\n for (var i = 0; i < itemsList.length; i++) {\r\n var line = {};\r\n line.SportoloID = itemsList[i].SportoloID;\r\n line.SportoloNeve = itemsList[i].SportoloNeve;\r\n for (var c = 0; c < vm.dataFelmeroElem.length; c++) {\r\n var fieldName = 'c' + c;\r\n line[fieldName] = '';\r\n }\r\n vm.test.push(line);\r\n }\r\n }\r\n var strArr = [];\r\n resetColumns();\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].ElvartEredmeny) {\r\n vm.dataFelmeroElem[i].Nev += '<br>' + gettextCatalog.getString('ExpectedResult') + ': ' + vm.dataFelmeroElem[i].ElvartEredmeny;\r\n }\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n switch (vm.dataFelmeroElem[i].Tipus){\r\n case 1:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n case 2:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n case 4:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true, edit: vm.HHMMSS_EditorTemplate});\r\n break;\r\n case 5:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true, edit: vm.MMSS_EditorTemplate});\r\n break;\r\n case 6:\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 120, isEnabled: true, allowEditing: true});\r\n break;\r\n default: // 3: text\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 400, isEnabled: true, allowEditing: true});\r\n }\r\n for (var j = 0; !newTest && j < vm.test.length; j++) {\r\n vm.test[j][strArr[i]] = itemsList[j].Adatok1D[i];\r\n }\r\n }\r\n Grid2.dataSource = vm.test;\r\n Grid2.columns = vm.columns;\r\n console.log('Grid2.columns', Grid2.columns);\r\n console.log('Grid2.dataSource', Grid2.dataSource);\r\n Grid2.refreshColumns();\r\n Grid2.refresh();\r\n }); // dataservice.getFelmeroElemList\r\n }\r\n\r\n function EditTestType() {\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n if (felmeroTipusIdx == -1) {\r\n swal({title: gettextCatalog.getString('ChooseTestTypeFirst'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n var felmeroTipus = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n paramHelper.setParams([\r\n {'sectionId': vm.sectionIdValue},\r\n {'FelmeroElemFej': felmeroTipus}\r\n ]);\r\n $state.go('settings.createSportSpecificTest');\r\n }\r\n\r\n function CreateTest() {\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n if (felmeroTipusIdx == -1) {\r\n swal({title: gettextCatalog.getString('ChooseTestTypeFirst'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n var felmeroTipus = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n setColumns(felmeroTipus, true, null);\r\n }\r\n\r\n function LoadTest(ffid) {\r\n vm.felmeroFejId = ffid;\r\n resetColumns();\r\n return dataservice.getFelmeroById(ffid).then(function(data) {\r\n vm.dateValue = data.date;\r\n vm.testdata = data.itemsList;\r\n //console.log('LoadTest'+ ffid + ' vm.testdata', vm.testdata);\r\n vm.felmeroElemFejIdValue = data.FEFID;\r\n vm.felmeroElemFejId = data.FEFID;\r\n setColumns(vm.felmeroElemFejIdValue, false, vm.testdata);\r\n vm.edzoertekeles = data.EdzoErtekeles;\r\n });\r\n }\r\n\r\n function SaveTest() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n Grid2.endEdit();\r\n Grid2.editModule.endEdit();\r\n Grid2.editModule.batchSave();\r\n\r\n $timeout(function () {\r\n vm.createButtonEnabled = false;\r\n vm.testSaveTest = {};\r\n var felmeroTipusIdx = angular.element('#felmeroTipusDropDown').data('ejDropDownList').selectedIndexValue;\r\n vm.felmeroElemFejIdValue = vm.felmeroElemFejList[felmeroTipusIdx].value;\r\n vm.testSaveTest.FEF_ID = vm.felmeroElemFejIdValue;\r\n vm.testSaveTest.data = vm.test;\r\n\r\n var arr2D = [];\r\n for (var i = 0; i < vm.test.length; i++) {\r\n var arr1D = get1DArrayBelongsToUserInRow(i);\r\n if (arr1D === false) {\r\n return false;\r\n }\r\n arr2D.push(arr1D);\r\n }\r\n return dataservice.FelmeroMentes(arr2D, vm.felmeroFejId, vm.felmeroElemFejIdValue, vm.sectionId, vm.ageGroupId, vm.coachId, vm.edzoertekeles, vm.dateValue).then(function(data) {\r\n log.successMsg(gettextCatalog.getString('SaveCompleted'));\r\n var lastSaveTestdFFID = data.data;\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n LoadTest(lastSaveTestdFFID);\r\n });\r\n }, 10);\r\n }\r\n\r\n function DeleteTest() {\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected test?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this test'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteFelmero(vm.felmeroFejId).\r\n then(function () {\r\n $state.go('administration.sportSpecificTest.newSportSpecificTestList');\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getFelmeroTipusok(sectionId) {\r\n return dataservice.felmeroElemFejDropDownList(sectionId).then(function(data) {\r\n vm.newTest = false;\r\n vm.felmeroElemFejList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function(data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function(data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId, vm.dateValue).then(function(data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function felmeroDataBound() {\r\n if (vm.felmeroElemFejList.length === 1) {\r\n angular.element('#felmeroTipusDropDown').ejDropDownList('selectItemByValue', vm.felmeroElemFejList[0].value);\r\n } else {\r\n angular.element('#felmeroTipusDropDown').ejDropDownList('selectItemByValue', vm.felmeroElemFejId);\r\n }\r\n }\r\n\r\n function CreateTestType() {\r\n paramHelper.setParams([\r\n {'sectionId': vm.sectionIdValue},\r\n {'FelmeroElemFej': 0}\r\n ]);\r\n $state.go('settings.createSportSpecificTest');\r\n }\r\n\r\n function openAthlete(Id) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureGo'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToGoToAthlete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('GoToAthlete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': Id}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var $element = angular.element(arg.cell);\r\n if (vm.Highlight && arg.data.SportoloID == vm.Highlight && arg.column.field == 'SportoloNeve') {\r\n $element.css('background-color', '#cdeecd');\r\n } else if (vm.colors && vm.testdata && vm.testdata.length > 0 && arg.cell.cellIndex >= 2) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID);\r\n if (vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2] && vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2].length > 0) {\r\n $element.css('background-color', vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 2]);\r\n }\r\n }\r\n }\r\n\r\n function getRowIndex(SportoloID) {\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n if (vm.testdata[i].SportoloID == SportoloID) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function colorCheckBoxChange(arg) {\r\n vm.colors = arg.value;\r\n vm.test = [];\r\n vm.testdata = [];\r\n LoadTest(vm.felmeroFejId);\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest.newSportSpecificTest',\r\n config: {\r\n url: '/newSportSpecificTest',\r\n templateUrl: 'app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.html',\r\n controller: 'NewSportSpecificTestController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTestList')\r\n .controller('NewSportSpecificTestListController', NewSportSpecificTestListController);\r\n\r\n function NewSportSpecificTestListController(log, dataservice, authenticationService, $q, $state, $scope, $rootScope, gettextCatalog, paramHelper, $filter, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('NewSportSpecificTestList');\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = 0;\r\n vm.Highlight = -1;\r\n vm.dateTo = new Date();\r\n vm.dateFrom = new Date(vm.dateTo.getFullYear() - 1, vm.dateTo.getMonth(), 1);\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n headerText: 'Id',\r\n textAlign: 'center',\r\n isPrimaryKey: true,\r\n visible: false\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#sstlOpen',\r\n width: 60\r\n },\r\n {\r\n field: 'FelmeroNeve',\r\n headerText: gettextCatalog.getString('TestName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'SzakosztalyNev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'EdzoNev',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150,\r\n template: '#sstlCoach'\r\n }, {\r\n field: 'KorcsoportNev',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n }, {\r\n field: 'Edzoertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 200\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Datum'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#sstlTest'\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n // Publikus funkciók\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.newTest = newTest;\r\n vm.goToTest = goToTest;\r\n vm.goToUser = goToUser;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getSections(),\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MODFELH'),\r\n paramHelper.getParams([], [\r\n 'newSportSpecificTest.sectionId',\r\n 'newSportSpecificTest.ageGroupId',\r\n 'newSportSpecificTest.yearId',\r\n 'newSportSpecificTest.coachId',\r\n 'newSportSpecificTest.selectedSection'\r\n ])\r\n ]).then(function (results) {\r\n vm.UJSPFELM = results[1];\r\n vm.MODFELH = results[2];\r\n vm.sectionId = results[3]['newSportSpecificTest.sectionId'];\r\n vm.ageGroupId = results[3]['newSportSpecificTest.ageGroupId'];\r\n vm.coachId = results[3]['newSportSpecificTest.coachId'];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function felmeroFejLista() {\r\n if (vm.ageGroupId === undefined || vm.ageGroupId === null) {\r\n vm.ageGroupId = 0;\r\n }\r\n if (vm.coachId === undefined || vm.coachId === null) {\r\n vm.coachId = 0;\r\n }\r\n if (vm.testId === undefined || vm.testId === null) {\r\n vm.testId = 0;\r\n }\r\n if (vm.sectionId == 0) {\r\n vm.Highlight = -1;\r\n }\r\n return dataservice.felmeroFejLista(vm.sectionId, vm.ageGroupId, vm.coachId, vm.testId, vm.Highlight, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function dateFromChange(arg) {\r\n vm.dateFrom = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function dateToChange(arg) {\r\n vm.dateTo = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n $timeout(function () {\r\n felmeroFejLista();\r\n }, 100);\r\n getAgeGroups();\r\n getActualCoachesList();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n vm.coachList = [];\r\n getActualCoachesList();\r\n felmeroFejLista();\r\n }\r\n\r\n // Section dropDownList function Get coach' list\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.sectionId, vm.ageGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function newTest() {\r\n if (vm.sectionId == 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectedSectionCannotBeAll'));\r\n return;\r\n }\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.UJSPFELM !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': vm.sectionId},\r\n {'newSportSpecificTest.sectionId': vm.sectionId},\r\n {'sportSpecificTest.ageGroupId': vm.ageGroupId},\r\n {'sportSpecificTest.coachId': vm.coachId},\r\n {'sportSpecificTest.felmeroElemFejId': -1},\r\n {'sportSpecificTest.felmeroFejId': -1},\r\n {'sportSpecificTest.highlight': -1}\r\n ]);\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n }\r\n\r\n function goToTest(SzakosztalyId, KorcsoportId, EdzoId, FelmeroElemFejId, FelmeroFejId) {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': SzakosztalyId},\r\n {'newSportSpecificTest.sectionId': SzakosztalyId},\r\n {'sportSpecificTest.ageGroupId': KorcsoportId},\r\n {'sportSpecificTest.coachId': EdzoId},\r\n {'sportSpecificTest.felmeroElemFejId': FelmeroElemFejId},\r\n {'sportSpecificTest.felmeroFejId': FelmeroFejId},\r\n {'sportSpecificTest.highlight': vm.Highlight}\r\n ]);\r\n\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n\r\n function goToUser(EdzoId) {\r\n if (!vm.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.sportSpecificTest.newSportSpecificTestList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest.newSportSpecificTestList',\r\n config: {\r\n url: '/newSportSpecificTestList',\r\n templateUrl: 'app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.html',\r\n controller: 'NewSportSpecificTestListController',\r\n controllerAs: 'vm',\r\n title: 'SportSpecificTestList2',\r\n settings: {\r\n navId: 242,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Sportágspecifikus felmérők',\r\n orderTitle_en: 'Sport Specific Tests',\r\n parentId: 2,\r\n content: 'NewSportSpecificTestList',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.sportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.sportSpecificTest',\r\n config: {\r\n url: '/sportSpecificTest',\r\n templateUrl: 'app/administration/sportSpecificTest/sportSpecificTest.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingDiary')\r\n .controller('TrainingDiaryController', TrainingDiaryController);\r\n\r\n function TrainingDiaryController(log, logger, DOMAIN, paramHelper, $state, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('trainingDiary');\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.years = [];\r\n vm.month = [];\r\n vm.selectedCoach = undefined;\r\n vm.selectedSection = undefined;\r\n vm.selectedAgeGroup = undefined;\r\n vm.yearValue = undefined;\r\n vm.monthValue = undefined;\r\n vm.Save = Save;\r\n vm.addRow = addRow;\r\n vm.removeRow = removeRow;\r\n vm.data = [];\r\n vm.HaviJelenletiFejId = undefined;\r\n vm.lezart = false;\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n vm.selectedRow = selectedRow;\r\n vm.selectedId = undefined;\r\n vm.newId = -1;\r\n vm.querycellinfo = querycellinfo;\r\n vm.beginEdit = beginEdit;\r\n vm.print = print;\r\n vm.keszult = new Date();\r\n var printOpened = false;\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'AktivNap', visible: false, headerText: 'AktivNap', textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'Nap', headerText: gettextCatalog.getString('Day'), textAlign: 'center', width: 150, allowEditing: false},\r\n {field: 'EdzesIdopontja', headerText: gettextCatalog.getString('TrainingTime'), textAlign: 'center', width: 120, allowEditing: true},\r\n {field: 'TevekenysegHelye', headerText: gettextCatalog.getString('TrainingLocation'), textAlign: 'center', width: 120, allowEditing: true},\r\n {field: 'EdzesmunkaLeirasa', headerText: gettextCatalog.getString('TrainingDescription'), textAlign: 'center', width: 120, allowEditing: true}\r\n ];\r\n\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: true, editMode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: vm.selectedRow,\r\n columns: vm.columns,\r\n querycellinfo: vm.querycellinfo,\r\n cellEdit: vm.beginEdit,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('HJFELVIHET'), paramHelper.getParams([], ['HaviJelenletiFejId'])];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else if (results[1].HaviJelenletiFejId) {\r\n vm.HaviJelenletiFejId = results[1].HaviJelenletiFejId;\r\n loadTrainingDiary(results[1].HaviJelenletiFejId);\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n FejId: vm.HaviJelenletiFejId,\r\n 'EdzoNeve': angular.element('#edzo').data('ejDropDownList').getSelectedItem()[0].innerText,\r\n 'keszult': vm.keszult\r\n };\r\n // Name : 'name',\r\n // TajSzam : 'TajSzam',\r\n // SzuletesiIdo : '2012-01-01',\r\n // SportoloId : 3422,\r\n // Type : 'Type',\r\n // Fenykeput : 'Fenykeput'\r\n // };\r\n\r\n $scope.$apply();\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '0', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n\r\n function querycellinfo(args) {\r\n var $element = angular.element(args.cell);\r\n if (!args.data.AktivNap) {\r\n $element.css('background-color', '#efdcdc');\r\n }\r\n }\r\n\r\n function beginEdit(arg) {\r\n if (!arg.rowData.AktivNap) {\r\n arg.cancel = true;\r\n }\r\n }\r\n\r\n function loadTrainingDiary(HaviJelenletiFejId) {\r\n dataservice.loadTrainingDiaryByMonthlyAttendanceId(HaviJelenletiFejId).then(function (data) {\r\n vm.sectionList.push({text: data.szakosztaly, value: data.szakosztalyid});\r\n vm.ageGroupList.push({text: data.korcsoport, value: data.korcsoportid});\r\n vm.coachList.push({text: data.edzo, value: data.edzoid});\r\n vm.selectedCoach = data.edzoid;\r\n vm.selectedSection = data.szakosztalyid;\r\n if (data.keszult) {\r\n vm.keszult = data.keszult;\r\n }\r\n var datum = new Date(data.datum);\r\n var year = (datum).getFullYear();\r\n var month = (datum).getMonth();\r\n vm.yearValue = year;\r\n vm.monthValue = month;\r\n vm.years.push({text: year, value: year});\r\n if (data.lezartJelenleti) {\r\n vm.lezart = true;\r\n grid.editSettings.allowEditing = false;\r\n grid.allowSelection = false;\r\n }\r\n vm.data = data.edzesmunka;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'Nap');\r\n grid.dataSource = vm.data;\r\n $timeout(function () {\r\n vm.selectedAgeGroup = data.korcsoportid;\r\n angular.element('#ev').ejDropDownList('selectItemByValue', vm.years[0].value);\r\n angular.element('#edzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n angular.element('#szakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n if (data.korcsoportid > 0) {\r\n angular.element('#korosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n }\r\n $scope.$apply();\r\n }, 10);\r\n });\r\n }\r\n\r\n function getIndex(id) {\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Id == id) {\r\n return i;\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n function addRow() {\r\n grid.endEdit();\r\n var idx = getIndex(vm.selectedId);\r\n var newLine = {};\r\n newLine.Id = vm.newId--;\r\n newLine.AktivNap = vm.data[idx].AktivNap;\r\n newLine.Nap = vm.data[idx].Nap;\r\n newLine.EdzesIdopontja = '';\r\n newLine.TevekenysegHelye = '';\r\n newLine.EdzesmunkaLeirasa = '';\r\n vm.data.splice(idx + 1, 0, newLine);\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n grid.refresh();\r\n }\r\n\r\n function removeRow() {\r\n vm.addEnabled = false;\r\n vm.removeEnabled = false;\r\n var idx = getIndex(vm.selectedId);\r\n var entries = entriesForThisDay(idx);\r\n if (entries > 1) {\r\n vm.data.splice(idx, 1);\r\n $scope.$apply();\r\n }\r\n grid.dataSource = vm.data;\r\n grid.refresh();\r\n }\r\n\r\n function entriesForThisDay(index) {\r\n var datum = vm.data[index].Nap;\r\n var counter = 0;\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Nap === datum) {\r\n counter++;\r\n }\r\n }\r\n return counter;\r\n }\r\n\r\n function selectedRow(arg) {\r\n vm.addEnabled = true;\r\n vm.selectedId = arg.data.Id;\r\n var idx = getIndex(arg.data.Id);\r\n var entries = entriesForThisDay(idx);\r\n vm.removeEnabled = entries > 1;\r\n $scope.$apply();\r\n }\r\n\r\n function Save() {\r\n grid.endEdit();\r\n dataservice.saveTrainingDiary(vm.data, vm.HaviJelenletiFejId, vm.keszult).then(function (response) {\r\n log.successMsg('SavedSuccessful');\r\n loadTrainingDiary(response.data);\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingDiary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingDiary',\r\n config: {\r\n url: '/trainingDiary',\r\n templateUrl: 'app/administration/trainingDiary/trainingDiary.html',\r\n controller: 'TrainingDiaryController',\r\n controllerAs: 'vm',\r\n title: 'trainingDiary'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan',\r\n config: {\r\n url: '/trainingPlan',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanCreate')\r\n .controller('TrainingPlanCreateController', TrainingPlanCreateController);\r\n\r\n function TrainingPlanCreateController(log, paramHelper, dataservice, DOMAIN, $filter, $scope, $state, $q, $rootScope, gettextCatalog, authenticationService, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanCreate');\r\n\r\n // main datas\r\n vm.sorIndex = 0; // a gyakorlatok torléséhez kell egy elsödlegeskulcs sorIndex)\r\n vm.params = null;\r\n vm.loadPlan = false;\r\n vm.saveParams = null;\r\n vm.trainingSectionId = 0;\r\n vm.trainingSectionList = [];\r\n vm.trainingName = null;\r\n vm.trainingDescription = null;\r\n vm.trainingAgeGroupId = 0;\r\n vm.trainingAgeGroupList = [];\r\n vm.gridDataSourceTraining = [];\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.addNewPermission = false;\r\n vm.timeLength = 0;\r\n\r\n // filter\r\n vm.autoComplete = [];\r\n vm.sectionId = 0;\r\n vm.sectionList = [];\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n\r\n // grid\r\n vm.selectedRow = [];\r\n vm.EDZO = false;\r\n\r\n // autoComplete empty string ''\r\n vm.bodyPartValue = '';\r\n vm.TypeValue = '';\r\n vm.individualTeamValue = '';\r\n vm.AssetValue = '';\r\n vm.difficultyValue = '';\r\n vm.necessaryAreaValue = '';\r\n vm.withVideo = false;\r\n vm.withPattern = false;\r\n vm.withPaint = false;\r\n\r\n // button\r\n vm.addEnabled = false;\r\n vm.modify = false;\r\n vm.allowSave = false;\r\n\r\n function sumIdo(args) {\r\n var res = 0;\r\n args.result.forEach(function (element) {\r\n if (element.Ido) {\r\n res += element.Ido * element.IsmSzam;\r\n }\r\n });\r\n vm.timeLength = res;\r\n return res;\r\n }\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Custom',\r\n customAggregate: sumIdo,\r\n columnName: 'Ido',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n vm.columnsMain = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 55},\r\n {field: 'SorIndex', isPrimaryKey: true, visible: false},\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 200,\r\n textAlign: 'center',\r\n template: '#wtpropentemp'\r\n },\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'Mintakep',\r\n headerText: gettextCatalog.getString('Pattern'),\r\n width: 180,\r\n textAlign: 'center',\r\n template: '#imagetemplateGrid'\r\n },\r\n {\r\n field: 'Video',\r\n headerText: gettextCatalog.getString('Video'),\r\n width: 115,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'GyakorlatKategoria',\r\n headerText: gettextCatalog.getString('GyakorlatKategoria'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'GyakorlatTipus',\r\n headerText: gettextCatalog.getString('GyakorlatTipus'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('individualTeam'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var MainGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearchAndDelete,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMain,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#MainGrid'), $scope);\r\n }\r\n },\r\n actionBegin: function (args) {\r\n if (args.requestType === 'delete') {\r\n MainGrid.dataSource = $rootScope.deleteRows(MainGrid);\r\n args.cancel = true;\r\n }\r\n }\r\n });\r\n MainGrid.appendTo('#MainGrid');\r\n MainGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, MainGrid);\r\n };\r\n\r\n vm.trainingColumns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 60},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#wtpropentemp'\r\n },\r\n {\r\n field: 'Mintakep',\r\n headerText: gettextCatalog.getString('Pattern'),\r\n width: 120,\r\n textAlign: 'center',\r\n template: '#imagetemplateGrid'\r\n },\r\n {\r\n field: 'Video',\r\n headerText: gettextCatalog.getString('Video'),\r\n width: 100,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'SzakosztalyId', visible: false},\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n {field: 'Tipus', headerText: gettextCatalog.getString('Type'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('individualTeam'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Felszerelesek',\r\n headerText: gettextCatalog.getString('Assets'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Publikus',\r\n headerText: gettextCatalog.getString('Public'),\r\n width: 100,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center'\r\n },\r\n {field: 'Kifesto', headerText: gettextCatalog.getString('Paint'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'JatekosokSzama',\r\n headerText: gettextCatalog.getString('Players'),\r\n width: 100,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Nehezseg',\r\n headerText: gettextCatalog.getString('Difficulty'),\r\n width: 100,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'SzuksegesTerulet',\r\n headerText: gettextCatalog.getString('Space'),\r\n width: 150,\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n var TrainingGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n enableToggle: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.trainingColumns,\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#TrainingGrid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n $timeout(function () {\r\n vm.selectedRow = TrainingGrid.getSelectedRecords();\r\n if (vm.selectedRow && vm.selectedRow.length > 0) {\r\n vm.addEnabled = true && vm.allowSave;\r\n }\r\n }, 100);\r\n },\r\n rowDeselecting: function (args) {\r\n $timeout(function () {\r\n if (TrainingGrid.getSelectedRecords().length === 0) {\r\n vm.addEnabled = false;\r\n vm.selectedRow = [];\r\n $scope.$apply();\r\n } else {\r\n vm.selectedRow.splice((vm.selectedRow.find(row => row.GyakorlatId == args.data[0].GyakorlatId)), 1);\r\n }\r\n }, 100);\r\n },\r\n });\r\n TrainingGrid.appendTo('#TrainingGrid');\r\n TrainingGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, TrainingGrid);\r\n };\r\n\r\n // events\r\n // filter bottom\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n\r\n // filter top\r\n vm.trainingSectionSelect = trainingSectionSelect;\r\n vm.trainingSectionDataBound = trainingSectionDataBound;\r\n vm.trainingAgeGroupSelect = trainingAgeGroupSelect;\r\n vm.trainingAgeGroupDataBound = trainingAgeGroupDataBound;\r\n\r\n // grid\r\n vm.openTemplate = openTemplate;\r\n\r\n // button\r\n vm.showExercises = showExercises;\r\n vm.addRow = addRow;\r\n vm.save = save;\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('UJEDZESSABLON'),\r\n authenticationService.getRight('MODEDZESSABLON'),\r\n authenticationService.getRight('MEGTEDZESSABLON'),\r\n authenticationService.getRight('EDZO'),\r\n paramHelper.getParams([],\r\n ['trainingPlanCreate.trainingId',\r\n 'trainingPlanCreate.sectionId',\r\n 'trainingPlanCreate.ageGroupId'\r\n ]),\r\n authenticationService.getRight('UJGYAKORLAT')\r\n ]).then(function (results) {\r\n $timeout(function () {\r\n vm.UJEDZESSABLON = results[0];\r\n vm.MODEDZESSABLON = results[1];\r\n vm.MEGTEDZESSABLON = results[2];\r\n vm.EDZO = results[3];\r\n vm.params = results[4];\r\n vm.addNewPermission = results[5];\r\n if (!vm.MEGTEDZESSABLON) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] > 0) {\r\n vm.trainingId = vm.params['trainingPlanCreate.trainingId'];\r\n LoadPlan(vm.params['trainingPlanCreate.trainingId']);\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] === 0) {\r\n LoadPlan(0);\r\n } else {\r\n getTrainingSections();\r\n getAutoComplete();\r\n }\r\n\r\n if ((vm.UJEDZESSABLON && (vm.trainingId < 1 || !vm.trainingId)) || (vm.MODEDZESSABLON && vm.trainingId > 0)) {\r\n vm.allowSave = true;\r\n MainGrid.allowSelection = true;\r\n TrainingGrid.allowSelection = true;\r\n MainGrid.editSettings.allowDeleting = true;\r\n MainGrid.refreshHeader();\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }, 0);\r\n }\r\n );\r\n }\r\n\r\n function LoadPlan(trainingId) {\r\n vm.loadPlan = true;\r\n if (trainingId > 0) {\r\n dataservice.GetTrainingPlanById(trainingId).then(function (data) {\r\n if (data) {\r\n vm.trainingSectionId = data.itemsList[0].SzakosztalyId ? data.itemsList[0].SzakosztalyId : vm.trainingSectionId;\r\n vm.trainingAgeGroupId = data.itemsList[0].KorosztalyId ? data.itemsList[0].KorosztalyId : vm.trainingAgeGroupId;\r\n vm.trainingName = data.itemsList[0].Nev;\r\n MainGrid.dataSource = $filter('addImagePathToObject')(data.itemsList[0].Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n vm.trainingDescription = data.itemsList[0].Leiras;\r\n vm.public = data.itemsList[0].Publikus;\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n }\r\n });\r\n } else {\r\n vm.trainingSectionId = vm.params['trainingPlanCreate.sectionId'] ? vm.params['trainingPlanCreate.sectionId'] : vm.trainingSectionId;\r\n vm.trainingAgeGroupId = vm.params['trainingPlanCreate.ageGroupId'] ? vm.params['trainingPlanCreate.ageGroupId'] : vm.trainingAgeGroupId;\r\n }\r\n getTrainingSections();\r\n getAutoComplete();\r\n }\r\n\r\n // function Top\r\n function getTrainingSections() {\r\n dataservice.sectionDropDownList(0, false).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n // egyszerre átadom a két szakosztály dropdown adatait\r\n vm.sectionList = data.itemsList;\r\n vm.trainingSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingSectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n }\r\n }\r\n\r\n function trainingSectionSelect(args) {\r\n vm.trainingSectionId = args.value;\r\n getTrainingAgeGroups(args.value);\r\n }\r\n\r\n function getTrainingAgeGroups(trainingSectionId) {\r\n return dataservice.ageGroupDropDownList(trainingSectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.trainingAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingAgeGroupDataBound() {\r\n if (vm.trainingAgeGroupList.length === 1) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupList[0].value);\r\n } else {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n }\r\n }\r\n\r\n function trainingAgeGroupSelect(args) {\r\n vm.trainingAgeGroupId = args.value;\r\n }\r\n\r\n // function bottom\r\n function getAutoComplete() {\r\n dataservice.getTrainingPracticeAutoComplete()\r\n .then(function (result) {\r\n vm.autoComplete = result.data;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getCoachesList(args.value);\r\n }\r\n\r\n function getCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect() {\r\n //vm.coachId = args.value;\r\n }\r\n\r\n // grid top events\r\n function openTemplate(exerciseId) {\r\n if (vm.allowSave) {\r\n swal({\r\n title: gettextCatalog.getString('Would you like to save the plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save().then(function (res) {\r\n if (res) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else if (isConfirm.dismiss === 'cancel') {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n\r\n // button events\r\n function showExercises() {\r\n dataservice.getExercises(vm.sectionId, vm.ageGroupId, vm.coachId, vm.bodyPartValue, vm.TypeValue, vm.individualTeamValue, vm.AssetValue, vm.difficultyValue, vm.necessaryAreaValue, vm.withVideo, vm.withPattern, vm.withPaint, vm.timeValue)\r\n .then(function (data) {\r\n TrainingGrid.dataSource = $filter('addImagePathToObject')(data.itemsList, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n function save() {\r\n if ((vm.UJEDZESSABLON && (vm.trainingId < 1 || !vm.trainingId)) || (vm.MODEDZESSABLON && vm.trainingId > 0)) {\r\n return $q(function (resolve) {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n resolve(0);\r\n } else {\r\n vm.saveParam = {\r\n TrainingId: vm.trainingId,\r\n TrainingName: vm.trainingName,\r\n SectionId: vm.trainingSectionId,\r\n AgeGroupId: vm.trainingAgeGroupId,\r\n Description: vm.trainingDescription,\r\n Public: vm.public,\r\n Data: MainGrid.dataSource\r\n };\r\n dataservice.saveTrainingPlan(vm.saveParam).then(function (result) {\r\n if (result.retValue !== 0) {\r\n vm.trainingId = result.retValue;\r\n log.successMsg('SaveCompleted');\r\n // $state.go('administration.trainingPlan.trainingPlanList');\r\n }\r\n resolve(result.retValue);\r\n });\r\n if (vm.MODEDZESSABLON) {\r\n vm.allowSave = true;\r\n } else {\r\n vm.allowSave = false;\r\n TrainingGrid.clearSelection();\r\n MainGrid.editSettings.allowDeleting = false;\r\n }\r\n }\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function addRow() {\r\n var gyakorlatKategoria = null;\r\n var ismSzam = null;\r\n var HTMLtext = '';\r\n HTMLtext += '<div style=\"margin-top: 10px;\">';\r\n HTMLtext += '<label style=\"text-align: left; margin-top:7px; font-weight: bold;\">' + gettextCatalog.getString('GyakorlatKategoria') + gettextCatalog.getString('(e.g. warmingUp)') + '</label><br>';\r\n HTMLtext += '<input class=\"col-sm-8\" id=\"AutoCompleteSwalType\" ej-autocomplete></input><br>';\r\n HTMLtext += '<label style=\"text-align: left; margin-top:7px; margin-bottom: auto\">' + gettextCatalog.getString('NumberOfRepetitions') + '</label><br>';\r\n HTMLtext += '<input class=\"col-sm-8\" id=\"SwalIsmetlesSzam\" placeholder=\"\"></input><br>';\r\n HTMLtext += '</div>';\r\n if (vm.selectedRow && vm.selectedRow.length > 0) {\r\n swal({\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonText: gettextCatalog.getString('Add'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n vm.trainingPlanCategory = angular.element('#AutoCompleteSwalType').data('ejAutocomplete').getValue(); // get value\r\n return new Promise(function (resolve) {\r\n if (!vm.trainingPlanCategory) {\r\n swal.showValidationError(gettextCatalog.getString('ExerciseCategoryRequired'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var rows = MainGrid.dataSource;\r\n MainGrid.dataSource = [];\r\n vm.selectedRow.forEach(function (element) {\r\n rows.push(\r\n {\r\n SorIndex: vm.sorIndex,\r\n GyakorlatId: element.GyakorlatId,\r\n GyakorlatKategoria: gyakorlatKategoria,\r\n GyakorlatTipus: element.Tipus,\r\n IsmSzam: ismSzam,\r\n Nev: element.Nev,\r\n Ido: element.Ido,\r\n Video: element.Video,\r\n Mintakep: element.Mintakep,\r\n Jellege: element.Jellege,\r\n Testresz: element.Testresz\r\n }\r\n );\r\n vm.sorIndex++;\r\n });\r\n MainGrid.dataSource = rows;\r\n }\r\n }, function () {\r\n });\r\n\r\n // in swal\r\n angular.element('#AutoCompleteSwalType').ejAutocomplete({\r\n dataSource: vm.autoComplete.Tipus,\r\n allowAddNew: true,\r\n showPopupButton: true,\r\n showEmptyResultText: true,\r\n emptyResultText: gettextCatalog.getString('NoSuggestions'),\r\n change: function (arg) {\r\n gyakorlatKategoria = arg.value;\r\n },\r\n value: gyakorlatKategoria,\r\n width: '100%'\r\n });\r\n angular.element('#SwalIsmetlesSzam').ejNumericTextbox({\r\n change: function changeValue(arg) {\r\n ismSzam = arg.value;\r\n },\r\n width: '100%'\r\n });\r\n }\r\n }\r\n\r\n vm.createNewTrainingPlan = function () {\r\n if (vm.addNewPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (vm.allowSave) {\r\n swal({\r\n title: gettextCatalog.getString('Would you like to save the plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save().then(function (res) {\r\n if (res) {\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': res}]);\r\n paramHelper.setParams([\r\n {'exercisesList.SzakosztalyId': vm.trainingSectionId},\r\n {'exercisesList.KorosztalyId': vm.trainingAgeGroupId},\r\n {'exercisesList.EdzoId': 0}\r\n ]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else if (isConfirm.dismiss === 'cancel') {\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n });\r\n } else {\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n };\r\n }\r\n }\r\n)\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanCreate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanCreate',\r\n config: {\r\n url: '/trainingPlanCreate',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.html',\r\n controller: 'TrainingPlanCreateController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanCreate'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanList')\r\n .controller('TrainingPlanListController', TrainingPlanListController);\r\n\r\n function TrainingPlanListController(log, paramHelper, dataservice, $timeout, $q, $rootScope, $filter, DOMAIN, gettextCatalog, authenticationService, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanList');\r\n\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n vm.gridDataSource = [];\r\n vm.sectionId = 0;\r\n vm.sectionList = [];\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n vm.openPermission = false;\r\n vm.addNewPermission = false;\r\n vm.deletePermission = false;\r\n\r\n //events\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.createNewTrainingPlan = createNewTrainingPlan;\r\n vm.openTrainingPlan = openTrainingPlan;\r\n vm.deleteTrainingPlan = deleteTrainingPlan;\r\n vm.search = search;\r\n\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 55},\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#wtro'},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 120},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TrainingTimeLength'), textAlign: 'center', width: 120},\r\n {field: 'SzakosztalyId', visible: false},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 120},\r\n {field: 'KorosztalyId', visible: false},\r\n {field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 120},\r\n {field: 'EdzoId', visible: false},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 120},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Description'), textAlign: 'center', width: 120},\r\n {field: 'Publikus', headerText: gettextCatalog.getString('Public'), type: 'boolean', displayAsCheckBox: true, textAlign: 'center', width: 100}\r\n ];\r\n\r\n //gyakorlatok\r\n vm.childGridColums = [\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', isPrimaryKey: true, visible: false},\r\n {field: 'GyakorlatKategoria', headerText: gettextCatalog.getString('GyakorlatKategoria'), textAlign: 'center', width: 120},\r\n {field: 'Nehezseg', headerText: gettextCatalog.getString('Nehezseg'), textAlign: 'center', width: 100},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), textAlign: 'center', width: 100},\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), textAlign: 'center', width: 100},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', template: '#wtpropentemp', width: 180},\r\n {field: 'GyakorlatTipus', headerText: gettextCatalog.getString('GyakorlatTipus'), textAlign: 'center', width: 120},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 120, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('YouTube'), textAlign: 'center', width: 100, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), textAlign: 'center', width: 100},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), textAlign: 'center', width: 120},\r\n ];\r\n\r\n var Grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n //allowPaging: true,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n columns: vm.columns,\r\n childGrid: {\r\n dataSource: [],\r\n queryString: 'EdzesFejId',\r\n columns: vm.childGridColums,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n Grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, Grid);\r\n }\r\n });\r\n\r\n Grid.appendTo('#Grid');\r\n\r\n activate();\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTEDZESSABLON'), authenticationService.getRight('MODEDZESSABLON'), authenticationService.getRight('UJEDZESSABLON'), authenticationService.getRight('TOROLEDZESSABLON'), paramHelper.getParams([], ['trainPlanList.SzakosztalyId', 'trainPlanList.KorosztalyId', 'trainPlanList.EdzoId'])]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.openPermission = results[0];\r\n vm.modifyPermission = results[1];\r\n vm.addNewPermission = results[2];\r\n vm.deletePermission = results[3];\r\n $scope.$apply();\r\n }, 1);\r\n getSections();\r\n getAgeGroups();\r\n vm.sectionId = results[4]['trainPlanList.SzakosztalyId'];\r\n vm.ageGroupId = results[4]['trainPlanList.KorosztalyId'];\r\n vm.coachId = results[4]['trainPlanList.EdzoId'];\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, false)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.sectionId, 0).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function openTrainingPlan(Id) {\r\n if (vm.openPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n paramHelper.removeParam('trainingPlanCreate.sectionId');\r\n paramHelper.removeParam('trainingPlanCreate.ageGroupId');\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': Id}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }\r\n\r\n function createNewTrainingPlan() {\r\n if (vm.addNewPermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n paramHelper.setParams([{'trainPlanList.SzakosztalyId': vm.sectionId}]);\r\n paramHelper.setParams([{'trainPlanList.KorosztalyId': vm.ageGroupId}]);\r\n paramHelper.setParams([{'trainPlanList.EdzoId': vm.coachId}]);\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': 0}, {'trainingPlanCreate.sectionId': vm.sectionId}, {'trainingPlanCreate.ageGroupId': vm.ageGroupId}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }\r\n\r\n function deleteTrainingPlan() {\r\n var selectedRow = Grid.getSelectedRecords();\r\n if (!selectedRow || selectedRow.length == 0) {\r\n log.errorMsg('CantDeleted');\r\n return;\r\n }\r\n if (vm.deletePermission !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected training plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteTrainingPlan(selectedRow[0].EdzesFejId)\r\n .then(function (response) {\r\n if (response.retValue == true) {\r\n log.successMsg('trainingPlanDeleted');\r\n search();\r\n }\r\n }, function () {\r\n });\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n paramHelper.setParams([{'trainPlanList.SzakosztalyId': vm.sectionId}]);\r\n paramHelper.setParams([{'trainPlanList.KorosztalyId': vm.ageGroupId}]);\r\n paramHelper.setParams([{'trainPlanList.EdzoId': vm.coachId}]);\r\n dataservice.getTrainingPlanList(vm.sectionId, vm.ageGroupId, vm.coachId)\r\n .then(function (response) {\r\n Grid.dataSource = response.itemsList;\r\n Grid.childGrid.dataSource = $filter('addImagePathToObject')(response.Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 300);\r\n });\r\n }\r\n\r\n vm.openTemplate = openTemplate;\r\n function openTemplate(exerciseId) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanList',\r\n config: {\r\n url: '/trainingPlanList',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanList/trainingPlanList.html',\r\n controller: 'TrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanList',\r\n settings: {\r\n navId: 2142,\r\n level: 2,\r\n order: 14,\r\n orderTitle_hu: 'Edzéssablon lista',\r\n orderTitle_en: 'Training Plan List',\r\n parentId: 2,\r\n content: 'TrainingPlanList',\r\n activatorPermission: ['\"MEGTEDZESSABLON\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanTemplate')\r\n .controller('TrainingPlanTemplateController', TrainingPlanTemplateController);\r\n\r\n function TrainingPlanTemplateController(log, paramHelper, dataservice, $timeout, $q, $rootScope, $filter, DOMAIN, gettextCatalog, authenticationService, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingPlanTemplate');\r\n vm.youtubeIcon = DOMAIN.baseURL + DOMAIN.imgBaseUrl + 'youtube.png';\r\n vm.imageRoot = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl;\r\n // main datas\r\n vm.sorIndex = 0; // a gyakorlatok torléséhez kell egy elsödlegeskulcs sorIndex)\r\n vm.params = null;\r\n vm.loadPlan = false;\r\n vm.saveParams = null;\r\n vm.trainingSectionId = 0;\r\n vm.trainingSectionList = [];\r\n vm.trainingName = null;\r\n vm.trainingDescription = null;\r\n vm.trainingAgeGroupId = 0;\r\n vm.trainingAgeGroupList = [];\r\n function sumIdo(args) {\r\n var res = 0;\r\n args.result.forEach(function (element) {\r\n if (element.Ido) {\r\n res += element.Ido * element.IsmSzam;\r\n }\r\n });\r\n vm.timeLength = res;\r\n return res;\r\n }\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Custom',\r\n customAggregate: sumIdo,\r\n columnName: 'Ido',\r\n footerTemplate: gettextCatalog.getString('Sum') + ': ${Custom}'\r\n }\r\n ]\r\n }];\r\n vm.columnsMain = [\r\n {field: 'SorIndex', isPrimaryKey: true, visible: false},\r\n {field: 'EdzesFejId', visible: false},\r\n {field: 'GyakorlatId', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), width: 200, textAlign: 'center', template: '#wtpropentemp'},\r\n {field: 'Ido', headerText: gettextCatalog.getString('TimeLength'), width: 150, textAlign: 'center'},\r\n {field: 'Mintakep', headerText: gettextCatalog.getString('Pattern'), width: 120, textAlign: 'center', template: '#imagetemplateGrid'},\r\n {field: 'Video', headerText: gettextCatalog.getString('Video'), width: 100, type: 'boolean', displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'GyakorlatKategoria', headerText: gettextCatalog.getString('GyakorlatKategoria'), width: 150, textAlign: 'center'},\r\n {field: 'IsmSzam', headerText: gettextCatalog.getString('IsmSzam'), width: 125, textAlign: 'center'},\r\n {field: 'GyakorlatTipus', headerText: gettextCatalog.getString('GyakorlatTipus'), width: 150, textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('individualTeam'), width: 125, textAlign: 'center'},\r\n {field: 'Testresz', headerText: gettextCatalog.getString('BodyParts'), width: 150, textAlign: 'center'},\r\n ];\r\n\r\n var MainGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMain,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#GridTraining'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n MainGrid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, MainGrid);\r\n }\r\n });\r\n MainGrid.appendTo('#GridTraining');\r\n\r\n // filter top\r\n vm.trainingSectionSelect = trainingSectionSelect;\r\n vm.trainingSectionDataBound = trainingSectionDataBound;\r\n vm.trainingAgeGroupSelect = trainingAgeGroupSelect;\r\n vm.trainingAgeGroupDataBound = trainingAgeGroupDataBound;\r\n\r\n // grid\r\n vm.openTemplate = openTemplate;\r\n\r\n activate();\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJEDZESSABLON'), authenticationService.getRight('MODEDZESSABLON'), authenticationService.getRight('MEGTEDZESSABLON'), paramHelper.getParams([], ['trainingPlanCreate.trainingId', 'trainingPlanCreate.sectionId', 'trainingPlanCreate.ageGroupId'])])\r\n .then(function (results) {\r\n var UJEDZESSABLON = results[0];\r\n var MODEDZESSABLON = results[1];\r\n var MEGTEDZESSABLON = results[2];\r\n vm.params = results[3];\r\n if (MEGTEDZESSABLON) {\r\n if (vm.params && vm.params['trainingPlanCreate.trainingId'] > 0) {\r\n LoadPlan(results[3]['trainingPlanCreate.trainingId']);\r\n $timeout(function () {\r\n vm.modify = MODEDZESSABLON;\r\n $scope.$apply();\r\n });\r\n } else if (vm.params && vm.params['trainingPlanCreate.trainingId'] === 0) {\r\n $timeout(function () {\r\n vm.modify = UJEDZESSABLON;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n $timeout(function () {\r\n getTrainingSections();\r\n }, 0);\r\n } else {\r\n log.permissionError(true);\r\n }\r\n }\r\n );\r\n }\r\n\r\n function LoadPlan(trainingId) {\r\n vm.loadPlan = true;\r\n dataservice.GetTrainingPlanById(trainingId).then(function (data) {\r\n if (data.itemsList[0].SzakosztalyId) {\r\n vm.trainingSectionId = data.itemsList[0].SzakosztalyId;\r\n }\r\n if (data.itemsList[0].KorosztalyId) {\r\n vm.trainingAgeGroupId = data.itemsList[0].KorosztalyId;\r\n }\r\n vm.trainingName = data.itemsList[0].Nev;\r\n MainGrid.dataSource = $filter('addImagePathToObject')(data.itemsList[0].Gyakorlatok, 'Mintakep', vm.imageRoot);\r\n vm.trainingDescription = data.itemsList[0].Leiras;\r\n vm.public = data.itemsList[0].Publikus;\r\n $timeout(function () {\r\n $('.thumbnail-item').magnificPopup({\r\n type: 'image'\r\n });\r\n }, 100);\r\n });\r\n }\r\n\r\n // function Top\r\n function getTrainingSections() {\r\n dataservice.sectionDropDownList(0, false).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n vm.trainingSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingSectionDataBound() {\r\n if (!vm.trainingSectionList) {\r\n return;\r\n }\r\n if (vm.params != null && vm.params['trainingPlanCreate.sectionId'] != null) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.params['trainingPlanCreate.sectionId']);\r\n vm.params['trainingPlanCreate.sectionId'] = null;\r\n } else if (vm.loadPlan === true) {\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n } else {\r\n vm.trainingSectionId = vm.trainingSectionList[0].value;\r\n angular.element('#trainingSectionDropDown').ejDropDownList('selectItemByValue', vm.trainingSectionId);\r\n }\r\n }\r\n\r\n function trainingSectionSelect(args) {\r\n vm.trainingSectionId = args.value;\r\n getTrainingAgeGroups(args.value);\r\n }\r\n\r\n function getTrainingAgeGroups(trainingSectionId) {\r\n return dataservice.ageGroupDropDownList(trainingSectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.trainingAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function trainingAgeGroupDataBound() {\r\n if (!vm.trainingAgeGroupList) {\r\n return;\r\n }\r\n if (vm.params && vm.params['trainingPlanCreate.ageGroupId'] != null) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.params['trainingPlanCreate.ageGroupId']);\r\n vm.params['trainingPlanCreate.ageGroupId'] = null;\r\n } else if (vm.loadPlan === true) {\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n vm.loadPlan = false;\r\n } else {\r\n vm.trainingAgeGroupId = vm.trainingAgeGroupList[0].value;\r\n angular.element('#trainingAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.trainingAgeGroupId);\r\n }\r\n }\r\n\r\n function trainingAgeGroupSelect(args) {\r\n vm.trainingAgeGroupId = args.value;\r\n }\r\n\r\n function openTemplate(exerciseId) {\r\n paramHelper.setParams([{'exercises.exerciseId': exerciseId}]);\r\n $state.go('administration.exercises.exercisesCreate');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.trainingPlan.trainingPlanTemplate')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.trainingPlan.trainingPlanTemplate',\r\n config: {\r\n url: '/trainingPlanTemplate',\r\n templateUrl: 'app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.html',\r\n controller: 'TrainingPlanTemplateController',\r\n controllerAs: 'vm',\r\n title: 'TrainingPlanTemplate'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.weeklyTrainingPlan')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan',\r\n config: {\r\n url: '/weeklyTrainingPlan',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlan.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList')\r\n .controller('WeeklyTrainingPlanListController', WeeklyTrainingPlanListController);\r\n\r\n function WeeklyTrainingPlanListController(dataservice, log, $q, $state, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n function setInitVals() {\r\n $rootScope.title = gettextCatalog.getString('WeeklyTrainingPlan');\r\n //grid adatai\r\n vm.columns = [];\r\n\r\n vm.coachList = [];\r\n vm.selectedCoach = 0;\r\n\r\n vm.sectionList = [];\r\n vm.selectedSection = 0;\r\n\r\n vm.ageGroupList = [];\r\n vm.selectedAgeGroup = 0;\r\n\r\n vm.years = [];\r\n var evIg = new Date().getFullYear();\r\n var december = (new Date().getMonth() === 11);\r\n if (december) {\r\n evIg++;\r\n }\r\n for (var ev = 2010; ev <= evIg; ev++) {\r\n vm.years.push(ev);\r\n }\r\n\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedRowId = -1;\r\n\r\n vm.textSearch = '';\r\n\r\n vm.delEnabled = false;\r\n }\r\n\r\n setInitVals();\r\n\r\n vm.coachChanged = coachChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.sectionChanged = sectionChanged;\r\n vm.ageGroupChanged = ageGroupChanged;\r\n vm.yearChanged = yearChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.refreshData = refreshData;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAgeGroup = goToNewAgeGroup;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.createNewWeeklyTrainingPlan = goToNewWeeklyTrainingPlan;\r\n vm.deleteWeeklyTrainingPlan = deleteWeeklyTrainingPlan;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.szoveg']),\r\n authenticationService.getRight('UJHETIEDZTERV'),\r\n authenticationService.getRight('MODHETIEDZTERV'),\r\n authenticationService.getRight('MEGTHETIEDZTERV'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MEGTKOROKEZ'),\r\n authenticationService.getRight('TORLHETIEDZTERV')];\r\n\r\n return $q.all(promises).then(function (results) {\r\n vm.UJHETIEDZTERV = results[1];\r\n vm.MODHETIEDZTERV = results[2];\r\n vm.MEGTHETIEDZTERV = results[3];\r\n vm.MEGTFELH = results[4];\r\n vm.MEGTKOROKEZ = results[5];\r\n vm.TORLHETIEDZTERV = results[6];\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getCoaches();\r\n\r\n if (results[0]['weeklyTrainingPlan.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szoveg'] !== undefined) {\r\n vm.textSearch = results[0]['weeklyTrainingPlan.szoveg'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.ev']) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n } else {\r\n vm.selectedYear = new Date().getFullYear();\r\n }\r\n $timeout(function () {\r\n if (vm.selectedCoach > 0 && vm.selectedSection > 0 && vm.selectedAgeGroup > 0 && vm.selectedYear > 0) {\r\n refreshData();\r\n }\r\n angular.element('#maEv').ejDropDownList({value: vm.selectedYear});\r\n $scope.$apply();\r\n }, 500);\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n\r\n angular.element('#maEdzo').ejDropDownList({dataSource: vm.coachList});\r\n if (vm.coachList.length === 1) {\r\n vm.selectedCoach = vm.coachList[0].value;\r\n }\r\n }\r\n );\r\n }\r\n\r\n //Grid oszlopainak definíciója\r\n vm.columns = [\r\n {\r\n field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true\r\n },\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn3',\r\n width: 70\r\n },\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'Korosztaly', headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn2',\r\n width: 150\r\n },\r\n {\r\n field: 'FelkHetSzama',\r\n headerText: gettextCatalog.getString('FelkHetSzam'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'MakrociklusSzama',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'Hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n },\r\n {\r\n field: 'Vasarnap',\r\n headerText: gettextCatalog.getString('Sunday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120\r\n },\r\n {\r\n field: 'Sportolok',\r\n headerText: gettextCatalog.getString('Athletes'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 120,\r\n clipMode: 'EllipsisWithTooltip'\r\n },\r\n {\r\n field: 'Jovahagyott',\r\n headerText: gettextCatalog.getString('Approved'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#wetrpllitemplateDataColumn4',\r\n width: 125\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: false,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n },\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n //edző dropdownlist selectionchanged\r\n function coachChanged(args) {\r\n getSectionList(args.value);\r\n }\r\n\r\n function getSectionList(coachId) {\r\n return dataservice.sectionDropDownList(coachId).then(\r\n function (data) {\r\n vm.sectionList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionChanged(arg) {\r\n dataservice.ageGroupSelectYear(vm.selectedCoach, arg.value, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n /*\r\n $timeout(function() {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', -1);\r\n $scope.$apply();\r\n }, 0);\r\n */\r\n }\r\n }\r\n );\r\n }\r\n\r\n function ageGroupChanged(args) {\r\n vm.selectedAgeGroup = args.value;\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n\r\n function yearChanged(args) {\r\n vm.selectedYear = args.value;\r\n return dataservice.ageGroupSelectYear(vm.selectedCoach, vm.selectedSection, vm.selectedYear).then(\r\n function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n }\r\n );\r\n }\r\n\r\n function refreshData() {\r\n dataservice.getWeeklyTrainingPlanList(vm.selectedCoach, vm.selectedSection, vm.selectedAgeGroup, vm.selectedYear, vm.textSearch).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.delEnabled = false;\r\n }\r\n );\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach}, {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection}, {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'weeklyTrainingPlan.ev': vm.selectedYear}, {'newUser.userId': edzoId}, {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAgeGroup(ageGroupId) {\r\n if (!vm.MEGTKOROKEZ) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach}, {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection}, {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup}, {'weeklyTrainingPlan.ev': vm.selectedYear}, {'ageGroups.ageGroup': ageGroupId}, {'weeklyTrainingPlan.szoveg': vm.textSearch}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'weeklyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'weeklyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'weeklyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function goToNewWeeklyTrainingPlan() {\r\n if (!vm.UJHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.selectedCoach == undefined || vm.selectedCoach == null || vm.selectedCoach <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectCoach'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedSection === undefined || vm.selectedSection == null || vm.selectedSection <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectSection'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedAgeGroup === undefined || vm.selectedAgeGroup == null || vm.selectedAgeGroup <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectAgeGroup'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n if (vm.selectedYear == undefined || vm.selectedYear == null || vm.selectedYear <= 0) {\r\n log.errorMsg(gettextCatalog.getString('SelectYear'), gettextCatalog.getString('Error'));\r\n return;\r\n }\r\n paramHelper.setParams([{'weeklyTrainingPlan.edzoId': vm.selectedCoach},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.selectedSection},\r\n {'weeklyTrainingPlan.korosztalyId': vm.selectedAgeGroup},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': -1},\r\n {'weeklyTrainingPlan.edzoNev': getNameByID(vm.coachList, vm.selectedCoach)},\r\n {'weeklyTrainingPlan.szakosztalyNev': getNameByID(vm.sectionList, vm.selectedSection)},\r\n {'weeklyTrainingPlan.korosztalyNev': getNameByID(vm.ageGroupList, vm.selectedAgeGroup)},\r\n {'weeklyTrainingPlan.szoveg': vm.textSearch}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function getNameByID(arr, id) {\r\n for (var i = 0; i < arr.length; i++) {\r\n if (arr[i].value == id) {\r\n return arr[i].text;\r\n }\r\n }\r\n }\r\n\r\n function deleteWeeklyTrainingPlan() {\r\n if (vm.selectedRowId === undefined || vm.selectedRowId <= 0 && vm.delEnabled) {\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected weekly Training Plan?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: true,\r\n closeOnCancel: true\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteWeeklyTrainingPlan(vm.selectedRowId).then(\r\n function (result) {\r\n if (result.retValue) {\r\n log.successMsg(gettextCatalog.getString('PlanDeleted'));\r\n refreshData();\r\n $timeout(function () {\r\n vm.delEnabled = false;\r\n $scope.$apply();\r\n }, 10);\r\n } else {\r\n log.errorMsg('CantDeleted');\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan.weeklyTrainingPlanList',\r\n config: {\r\n url: '/weeklyTrainingPlanList',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.html',\r\n controller: 'WeeklyTrainingPlanListController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTrainingPlan',\r\n settings: {\r\n navId: 272,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Heti edzésterv',\r\n orderTitle_en: 'Weekly Training Plan',\r\n parentId: 2,\r\n content: 'WeeklyTrainingPlan',\r\n activatorPermission: ['\"MEGTHETIEDZTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport')\r\n .controller('WeeklyTrainingPlanReportController', WeeklyTrainingPlanReportController);\r\n\r\n function WeeklyTrainingPlanReportController(dataservice, $q, $rootScope, gettextCatalog, paramHelper, log, $scope, authenticationService, $state, $compile, $timeout, $filter, $sce) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('Weekly Training Plan');\r\n vm.EditText = gettextCatalog.getString('Edit');\r\n var printOpened = false;\r\n var printOpened2 = false;\r\n vm.trainingPlanId = -1;\r\n vm.editedWTP = {};\r\n vm.editedWTP.Hetfo = undefined;\r\n vm.hetfodatum = undefined;\r\n vm.copyEnabled = false;\r\n vm.save = save;\r\n vm.files = openFiles;\r\n vm.print = showPrint;\r\n vm.print2 = showPrint2;\r\n vm.MondayChange = MondayChange;\r\n vm.copyFromOldPlan = copyFromOldPlan;\r\n vm.editTraining = editTraining;\r\n vm.columnsPopup = [];\r\n vm.selectedRowIndexPopup = -1;\r\n vm.athleteListHeight = 0;\r\n vm.selectedRowIndex = -1;\r\n vm.selectedRow = -1;\r\n vm.closeEarlierWeeklyPlanWindow = closeEarlierWeeklyPlanWindow;\r\n vm.selectEarlierWeeklyPlanWindow = selectEarlierWeeklyPlanWindow;\r\n vm.editDateTemplate = editDateTemplate;\r\n vm.loadEvents = loadEvents;\r\n vm.SectionLeaderApprove = SectionLeaderApprove;\r\n vm.daySelect = daySelect;\r\n vm.editDay = editDay;\r\n vm.del = del;\r\n vm.ok = ok;\r\n vm.back = back;\r\n vm.cancel = cancel;\r\n vm.addNew = addNew;\r\n vm.addBtnEnabled = true;\r\n vm.editBtnEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n vm.editEnabled = false;\r\n vm.checkedItems = [];\r\n vm.checkedIndices = [];\r\n vm.athletesChange = athletesChange;\r\n vm.selectAll = selectAll;\r\n vm.deleteSelection = deleteSelection;\r\n vm.chooseTraining = chooseTraining;\r\n vm.chooseTrainingCancel = chooseTrainingCancel;\r\n vm.chooseTrainingAccept = chooseTrainingAccept;\r\n vm.createTrainingTemplate = createTrainingTemplate;\r\n vm.claimAsset = claimAsset;\r\n vm.openTemplate = openTemplate;\r\n vm.reportParametersEszkozIgenyek = [];\r\n\r\n vm.loadEventsEnabled = false;\r\n vm.caBtnEnabled = false;\r\n vm.days = [\r\n {value: 1, text: gettextCatalog.getString('Monday')},\r\n {value: 2, text: gettextCatalog.getString('Tuesday')},\r\n {value: 3, text: gettextCatalog.getString('Wednesday')},\r\n {value: 4, text: gettextCatalog.getString('Thursday')},\r\n {value: 5, text: gettextCatalog.getString('Friday')},\r\n {value: 6, text: gettextCatalog.getString('Saturday')},\r\n {value: 7, text: gettextCatalog.getString('Sunday')},\r\n ];\r\n vm.tetelColumns = [\r\n {field: 'id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Nap',\r\n headerText: gettextCatalog.getString('Day'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Tol',\r\n headerText: gettextCatalog.getString('From'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Ig',\r\n headerText: gettextCatalog.getString('To'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'Hely',\r\n headerText: gettextCatalog.getString('Place'),\r\n textAlign: 'center',\r\n width: 200\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: false,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.tetelColumns,\r\n //rowSelected: vm.daySelect,\r\n rowSelected: function (args) {\r\n vm.selectedRowIndex = args.rowIndex;\r\n daySelect();\r\n },\r\n selectedRowIndex: vm.selectedRowIndex,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.columnsPopup = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FelkHetSzama',\r\n headerText: gettextCatalog.getString('FelkHetSzam'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MakrociklusSzama',\r\n headerText: gettextCatalog.getString('Makrociklus'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Vasarnap',\r\n headerText: gettextCatalog.getString('Saturday'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridPopup = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false, allowDeleting: false, allowAdding: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridPopup'), $scope);\r\n }\r\n }\r\n });\r\n gridPopup.appendTo('#GridPopup');\r\n gridPopup.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridPopup);\r\n };\r\n\r\n vm.columnsEdzesTetelek = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Tipus'),\r\n textAlign: 'center',\r\n width: 75\r\n },\r\n {\r\n field: 'GyakorlatNev',\r\n headerText: gettextCatalog.getString('GyakorlatNev'),\r\n textAlign: 'center',\r\n width: 75\r\n },\r\n {\r\n field: 'Mennyiseg',\r\n headerText: gettextCatalog.getString('Mennyiseg'),\r\n textAlign: 'center',\r\n width: 40\r\n }\r\n ];\r\n\r\n var gridEdzesTetelek = new ej2.grids.Grid({\r\n dataSource: [],\r\n editSettings: {allowEditing: false, allowDeleting: false, allowAdding: false},\r\n allowTextWrap: true,\r\n allowScrolling: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 200,\r\n columns: vm.columnsEdzesTetelek,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#GridEdzesTetelek'), $scope);\r\n }\r\n }\r\n });\r\n gridEdzesTetelek.appendTo('#GridEdzesTetelek');\r\n gridEdzesTetelek.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridEdzesTetelek);\r\n };\r\n\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n vm.TrainingTemplates = [];\r\n vm.trainingTemplate = undefined;\r\n vm.TrainingTemplateSelected = TrainingTemplateSelected;\r\n\r\n vm.edit = {};\r\n vm.edit.idx = -1;\r\n vm.edit.ac = '';\r\n vm.edit.Nap = '';\r\n vm.edit.Datum = '';\r\n vm.edit.Hely = '';\r\n vm.edit.Tol = '08:00';\r\n vm.edit.Ig = '17:00';\r\n vm.edit.Leiras = '';\r\n vm.edit.NapSzam = 1;\r\n vm.edit.Sablon = '';\r\n vm.edit.EdzesFejId = null;\r\n\r\n vm.dataEdzesTetelek = [];\r\n\r\n vm.tetelek = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], [\r\n 'weeklyTrainingPlan.edzoId',\r\n 'weeklyTrainingPlan.szakosztalyId',\r\n 'weeklyTrainingPlan.korosztalyId',\r\n 'weeklyTrainingPlan.ev',\r\n 'weeklyTrainingPlan.trainingPlanId',\r\n 'weeklyTrainingPlan.edzoNev',\r\n 'weeklyTrainingPlan.szakosztalyNev',\r\n 'weeklyTrainingPlan.korosztalyNev'\r\n ]),\r\n authenticationService.getRight('UJHETIEDZTERV'),\r\n authenticationService.getRight('MODHETIEDZTERV'),\r\n authenticationService.getRight('MEGTHETIEDZTERV'),\r\n getSystemSettings('HETIEDZTERVJOVAHAGYKOT'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('HETIEDZESTERVJOVAHAGY'),\r\n HetiEdzestervLegregebbiHet(),\r\n authenticationService.getRight('UJEDZESSABLON')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJHETIEDZTERV = results[1];\r\n vm.MODHETIEDZTERV = results[2];\r\n vm.MEGTHETIEDZTERV = results[3];\r\n vm.HETIEDZTERVJOVAHAGYKOT = results[4];\r\n vm.SZAKOSZTVEZ = results[5];\r\n vm.ADMIN = results[6];\r\n vm.HETIEDZESTERVJOVAHAGY = results[7];\r\n vm.HETIEDZTERVJOVAHAGY = vm.HETIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HETIEDZESTERVJOVAHAGY;\r\n vm.JOVAHAGYOTT = false;\r\n vm.UJEDZESSABLON = results[9];\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.trainingPlanId = results[0]['weeklyTrainingPlan.trainingPlanId'];\r\n if (angular.isDefined(vm.trainingPlanId) && vm.trainingPlanId !== -1) { // VAN EDZÉS TERV\r\n dataservice.weeklyTrainingPlanSelectByIdNew(vm.trainingPlanId).then(function (data) {\r\n vm.editedWTP = data.retValue;\r\n vm.JOVAHAGYOTT = vm.editedWTP.Jovahagyott;\r\n if (vm.JOVAHAGYOTT) {\r\n vm.HETIEDZTERVJOVAHAGY = false;\r\n }\r\n vm.editedWTP.Keszult = $filter('dateStringFilter')(vm.editedWTP.Keszult);\r\n vm.tetelek = data.retValue.gridData;\r\n vm.tetelek = $filter('dateStringFilter')(vm.tetelek, 'Datum');\r\n grid.dataSource = vm.tetelek;\r\n vm.copyEnabled = false;\r\n vm.loadEventsEnabled = true;\r\n vm.athletes = data.retValue.checkedItems;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n vm.edit.Hely = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=&output=embed');\r\n $scope.$apply();\r\n vm.edit.Hely = '';\r\n }, 10);\r\n $timeout(function () {\r\n grid.refresh();\r\n if (data.retValue.mindenki === false) {\r\n data.retValue.checkedIndices.forEach(function (chk) {\r\n var index = $filter('getIndex')(data.retValue.checkedItems, 'value', chk);\r\n $('#athletesList').ejListBox('checkItemByIndex', index);\r\n });\r\n } else {\r\n selectAll();\r\n }\r\n }, 1000);\r\n });\r\n } else { // NINCS EDZÉS TERV\r\n vm.editedWTP.EdzoNev = results[0]['weeklyTrainingPlan.edzoNev'];\r\n vm.editedWTP.SzakosztalyNev = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n vm.editedWTP.KorosztalyNev = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n vm.editedWTP.Keszult = $filter('dateStringFilter')(new Date());\r\n vm.editedWTP.IdEdzo = results[0]['weeklyTrainingPlan.edzoId'];\r\n vm.editedWTP.IdSzakosztaly = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n vm.editedWTP.IdKorosztaly = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n dataservice.getAthletesForWeeklyTrainingPlan(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n angular.element('#deHetfo').ejDatePicker({minDate: results[8].data});\r\n selectAll();\r\n }, 1000);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function daySelect() {\r\n var changed = false;\r\n if (vm.selectedRow >= 0 && vm.edit && vm.tetelek[vm.selectedRow] &&\r\n (\r\n vm.edit.EdzesFejId !== vm.tetelek[vm.selectedRow].EdzesFejId ||\r\n vm.edit.Datum !== vm.tetelek[vm.selectedRow].Datum ||\r\n vm.edit.Hely !== vm.tetelek[vm.selectedRow].Hely ||\r\n vm.edit.Ig !== vm.tetelek[vm.selectedRow].Ig ||\r\n vm.edit.Tol !== vm.tetelek[vm.selectedRow].Tol ||\r\n vm.edit.Leiras !== vm.tetelek[vm.selectedRow].Leiras ||\r\n vm.edit.Nap !== vm.tetelek[vm.selectedRow].Nap ||\r\n vm.edit.NapSzam != vm.tetelek[vm.selectedRow].NapSzam\r\n )\r\n ) {\r\n changed = true;\r\n }\r\n // Éppen szerkesztés közben kattint el\r\n if (vm.editEnabled && changed) {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSaveChanges?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n ok();\r\n vm.selectedRow = vm.selectedRowIndex;\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n editDay();\r\n $scope.$apply();\r\n }, 300);\r\n } else {\r\n cancel();\r\n vm.selectedRow = vm.selectedRowIndex;\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n editDay();\r\n $scope.$apply();\r\n }, 300);\r\n }\r\n });\r\n } else {\r\n $timeout(function () {\r\n vm.editBtnEnabled = true;\r\n vm.deleteBtnEnabled = vm.JOVAHAGYOTT === false;\r\n vm.selectedRow = vm.selectedRowIndex;\r\n editDay();\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n\r\n function addNew() {\r\n if (!vm.editedWTP.Hetfo) {\r\n log.errorMsg(gettextCatalog.getString('ChooseMondayFirst'));\r\n return;\r\n }\r\n vm.edit = {};\r\n vm.edit.idx = -1;\r\n vm.edit.Helyek = [];\r\n vm.edit.Nap = '';\r\n vm.edit.Datum = '';\r\n vm.edit.Hely = '';\r\n vm.edit.Tol = '08:00';\r\n vm.edit.Ig = '17:00';\r\n vm.edit.Leiras = '';\r\n vm.edit.NapSzam = 1;\r\n vm.edit.Sablon = '';\r\n vm.editEnabled = true;\r\n }\r\n\r\n function editTraining(idx) {\r\n vm.editEnabled = true;\r\n vm.edit.idx = idx;\r\n vm.edit.Nap = vm.tetelek[idx].Nap;\r\n vm.edit.Datum = vm.tetelek[idx].Datum;\r\n vm.edit.Hely = vm.tetelek[idx].Hely;\r\n vm.edit.Tol = vm.tetelek[idx].Tol;\r\n vm.edit.Ig = vm.tetelek[idx].Ig;\r\n vm.edit.Leiras = vm.tetelek[idx].Leiras;\r\n vm.edit.NapSzam = vm.tetelek[idx].NapSzam;\r\n vm.edit.EdzesFejId = vm.tetelek[idx].EdzesFejId;\r\n vm.edit.Sablon = vm.tetelek[idx].Sablon;\r\n vm.edit.ac = vm.tetelek[idx].ac;\r\n if (vm.edit.Hely) {\r\n vm.Helyek = $sce.trustAsResourceUrl('https://maps.google.it/maps?q=' + vm.edit.Hely + '&output=embed');\r\n }\r\n vm.caBtnEnabled = vm.edit.EdzesFejId > 0;\r\n if (vm.edit.EdzesFejId > 0) {\r\n angular.element('#ct').ejButton({text: gettextCatalog.getString('ChangeTemplate')});\r\n } else {\r\n angular.element('#ct').ejButton({text: gettextCatalog.getString('ChooseTemplate')});\r\n }\r\n }\r\n\r\n function editDay() {\r\n $timeout(function () {\r\n vm.editEnabled = false;\r\n editTraining(vm.selectedRow);\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function del() {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteRecord?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.editBtnEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n vm.editEnabled = false;\r\n vm.tetelek.splice(vm.selectedRow, 1);\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n vm.tetelek[i].id = i;\r\n }\r\n grid.dataSource = vm.tetelek;\r\n cancel();\r\n }\r\n }, function () {\r\n });\r\n }\r\n\r\n function cancel() {\r\n $timeout(function () {\r\n vm.editEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n grid.refresh();\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function ok() {\r\n vm.edit.Hely = $('#Hely').val();\r\n var Datum = $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1);\r\n $timeout(function () {\r\n if (vm.edit.idx >= 0) {\r\n vm.tetelek[vm.edit.idx].Sablon = vm.edit.Sablon;\r\n vm.tetelek[vm.edit.idx].EdzesFejId = vm.edit.EdzesFejId;\r\n vm.tetelek[vm.edit.idx].Hely = vm.edit.Hely;\r\n vm.tetelek[vm.edit.idx].Tol = vm.edit.Tol;\r\n vm.tetelek[vm.edit.idx].Ig = vm.edit.Ig;\r\n vm.tetelek[vm.edit.idx].Leiras = vm.edit.Leiras;\r\n vm.tetelek[vm.edit.idx].NapSzam = vm.edit.NapSzam;\r\n vm.tetelek[vm.edit.idx].Nap = NumberOfDayToWeekDay(vm.edit.NapSzam);\r\n vm.tetelek[vm.edit.idx].Datum = $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1);\r\n } else {\r\n var id = -1;\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n if (vm.tetelek[i].id > id) {\r\n id = vm.tetelek[i].id;\r\n }\r\n }\r\n vm.tetelek.push(\r\n {\r\n Nap: NumberOfDayToWeekDay(vm.edit.NapSzam),\r\n Datum: $filter('addDays')(vm.editedWTP.Hetfo, vm.edit.NapSzam - 1),\r\n Hely: vm.edit.Hely,\r\n Tol: vm.edit.Tol,\r\n Ig: vm.edit.Ig,\r\n Leiras: vm.edit.Leiras,\r\n NapSzam: vm.edit.NapSzam,\r\n EdzesFejId: vm.edit.EdzesFejId,\r\n Sablon: vm.edit.Sablon,\r\n id: ++id\r\n }\r\n );\r\n }\r\n grid.dataSource = vm.tetelek;\r\n vm.editEnabled = false;\r\n vm.deleteBtnEnabled = false;\r\n grid.refresh();\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function chooseTrainingCancel() {\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n gridEdzesTetelek.dataSource = [];\r\n }\r\n\r\n function chooseTrainingAccept(arg) {\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n vm.edit.EdzesFejId = vm.SelectedEdzesFejId;\r\n vm.edit.Sablon = vm.EdzesSablonNev;\r\n vm.edit.ac = vm.EdzesSablonHosszuNev;\r\n switch (arg) {\r\n case 'copy':\r\n if (vm.EdzesTetelLeiras) {\r\n if (vm.edit.Leiras && vm.edit.Leiras.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToReplaceTrainingDescription?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n $timeout(function () {\r\n vm.edit.Leiras = vm.EdzesTetelLeiras;\r\n }, 10);\r\n }\r\n }, function () {\r\n });\r\n } else {\r\n vm.edit.Leiras = vm.EdzesTetelLeiras;\r\n }\r\n }\r\n break;\r\n case 'append':\r\n if (vm.EdzesTetelLeiras) {\r\n vm.edit.Leiras = vm.edit.Leiras + ', ' + vm.EdzesTetelLeiras;\r\n }\r\n break;\r\n }\r\n }\r\n\r\n function chooseTraining() {\r\n vm.EdzesTetelLeiras = '';\r\n vm.TrainingTemplates = [];\r\n vm.dataEdzesTetelek = [];\r\n dataservice.EdzesFejLista(vm.editedWTP.IdSzakosztaly, vm.editedWTP.IdKorosztaly).then(function (response) {\r\n vm.TrainingTemplates = response.itemsList;\r\n vm.trainingTemplate = '';\r\n if (vm.edit.ac && vm.edit.ac.length > 0) {\r\n vm.trainingTemplate = vm.edit.ac;\r\n TrainingTemplateSelected(vm.edit.ac, vm.edit.EdzesFejId);\r\n }\r\n angular.element('#TrainingTemplate').ejAutocomplete({\r\n dataSource: vm.TrainingTemplates,\r\n fields: {key: 'value', text: 'text'},\r\n multiSelectMode: 'none',\r\n multiColumnSettings: {\r\n enable: true,\r\n showHeader: true,\r\n columns: [\r\n {field: 'text', headerText: 'EdzesFejNeve', key: 'value'},\r\n {field: 'szakosztaly', headerText: 'Szakosztaly', key: 'value'},\r\n {field: 'korosztaly', headerText: 'Korosztaly', key: 'value'}\r\n ]\r\n },\r\n showPopupButton: true,\r\n showEmptyResultText: true,\r\n select: function (arg) {\r\n vm.dataEdzesTetelek = [];\r\n TrainingTemplateSelected(arg.value, arg.item.value);\r\n arg.cancel = true;\r\n },\r\n value: vm.trainingTemplate,\r\n width: '100%'\r\n });\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').open();\r\n });\r\n gridEdzesTetelek.dataSource = [];\r\n }\r\n\r\n function TrainingTemplateSelected(name, EdzesFejId) {\r\n vm.EdzesTetelLeiras = '';\r\n vm.EdzesSablonNev = '';\r\n vm.EdzesSablonHosszuNev = '';\r\n if (!(EdzesFejId > 0)) {\r\n return;\r\n }\r\n dataservice.EdzesSablon(EdzesFejId).then(function (response) {\r\n if (response.data && response.data.found) {\r\n vm.SelectedEdzesFejId = response.data.EdzesFejId;\r\n vm.EdzesTetelLeiras = response.data.Leiras;\r\n vm.dataEdzesTetelek = response.data.Tetelek;\r\n vm.EdzesSablonNev = response.data.Nev;\r\n vm.EdzesSablonHosszuNev = name;\r\n gridEdzesTetelek.dataSource = vm.dataEdzesTetelek;\r\n }\r\n });\r\n }\r\n\r\n function createTrainingTemplate() {\r\n if (!vm.UJEDZESSABLON) {\r\n log.permissionError();\r\n return;\r\n }\r\n angular.element('#ChooseTrainingWindow').data('ejDialog').close();\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToSaveChanges?'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n save(true, false);\r\n }\r\n $timeout(function () {\r\n paramHelper.setParams([{'trainingPlanCreate.trainingId': -1}]);\r\n $state.go('administration.trainingPlan.trainingPlanCreate');\r\n }, 700);\r\n }, function () { });\r\n }\r\n\r\n function NumberOfDayToWeekDay(napSzam) {\r\n // return vm.days[parseInt(napSzam)];\r\n switch (napSzam) {\r\n case 1:\r\n case '1':\r\n return gettextCatalog.getString('Monday');\r\n break;\r\n case 2:\r\n case '2':\r\n return gettextCatalog.getString('Tuesday');\r\n break;\r\n case 3:\r\n case '3':\r\n return gettextCatalog.getString('Wednesday');\r\n break;\r\n case 4:\r\n case '4':\r\n return gettextCatalog.getString('Thursday');\r\n break;\r\n case 5:\r\n case '5':\r\n return gettextCatalog.getString('Friday');\r\n break;\r\n case 6:\r\n case '6':\r\n return gettextCatalog.getString('Saturday');\r\n break;\r\n case 7:\r\n case '7':\r\n return gettextCatalog.getString('Sunday');\r\n break;\r\n }\r\n }\r\n\r\n function getRowIndexForDate(date) {\r\n for (var i = 0; i < vm.data.length; i++) {\r\n if (vm.data[i].Datum == date) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function loadEvents() {\r\n if (!vm.loadEventsEnabled) {\r\n return;\r\n }\r\n dataservice.EsemenyekAttolteseHetiEdzestervre(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly, vm.editedWTP.Hetfo).then(function () {\r\n grid.refresh();\r\n });\r\n }\r\n\r\n function save(createEvents, navigateBack) {\r\n createEvents = true;\r\n if (vm.editEnabled) {\r\n ok();\r\n }\r\n if (vm.UJHETIEDZTERV || vm.MODHETIEDZTERV) {\r\n $timeout(function () {\r\n $scope.$broadcast('submitted');\r\n grid.refresh();\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n var temp = $('#athletesList').ejListBox('getCheckedItems');\r\n console.log('temp', temp);\r\n vm.checkedItems = [];\r\n temp.forEach(function (t) {\r\n vm.checkedItems.push(t.data);\r\n });\r\n var mindenki = temp.length === vm.athletes.length;\r\n dataservice.saveWeeklyTrainingPlanNew(vm.editedWTP, vm.tetelek, createEvents, mindenki, vm.checkedItems).then(function () {\r\n log.successMsg('SavedSuccessful');\r\n if (navigateBack !== false) {\r\n back();\r\n }\r\n });\r\n }\r\n }, 400);\r\n }\r\n }\r\n\r\n function openFiles() {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.edzoId': vm.editedWTP.IdEdzo},\r\n {'weeklyTrainingPlan.szakosztalyId': vm.editedWTP.IdSzakosztaly},\r\n {'weeklyTrainingPlan.korosztalyId': vm.editedWTP.IdKorosztaly},\r\n {'weeklyTrainingPlan.ev': vm.selectedYear},\r\n {'weeklyTrainingPlan.trainingPlanId': vm.editedWTP.Id},\r\n {'weeklyTrainingPlan.edzoNev': vm.editedWTP.EdzoNev},\r\n {'weeklyTrainingPlan.szakosztalyNev': vm.editedWTP.SzakosztalyNev},\r\n {'weeklyTrainingPlan.korosztalyNev': vm.editedWTP.KorosztalyNev},\r\n {'files.tipus': 'EdzesTervHeti'},\r\n {'files.tablaId': vm.editedWTP.Id}\r\n ]);\r\n $state.go('other.files');\r\n }\r\n\r\n function showPrint() {\r\n var tetelek = $.extend(true, [], vm.tetelek);\r\n vm.reportParameters = {\r\n id: vm.editedWTP.Id,\r\n szakosztaly: vm.editedWTP.SzakosztalyNev,\r\n korosztaly: vm.editedWTP.KorosztalyNev,\r\n edzo: vm.editedWTP.EdzoNev,\r\n keszult: vm.editedWTP.Keszult,\r\n makrociklus: vm.editedWTP.Makrociklus,\r\n hetfo: vm.editedWTP.Hetfo,\r\n vasarnap: vm.editedWTP.Vasarnap,\r\n felkhet: vm.editedWTP.HetSzama,\r\n tetelek: tetelek\r\n };\r\n $timeout(function () {\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }, 500);\r\n }\r\n\r\n function MondayChange() {\r\n var sDate = angular.element('#deHetfo').data('ejDatePicker').getValue();\r\n var sMonday = $filter('startOfWeek')(sDate);\r\n if (vm.editedWTP.Hetfo == sMonday) {\r\n dataservice.getAthletesForWeeklyTrainingPlan(vm.editedWTP.IdEdzo, vm.editedWTP.IdKorosztaly, sDate).then(function (data) {\r\n vm.athletes = data.itemsList;\r\n vm.athleteListHeight = vm.athletes.length * 15;\r\n $timeout(function () {\r\n angular.element('#deHetfo').ejDatePicker({minDate: results[8].data});\r\n $scope.$apply();\r\n selectAll();\r\n }, 1000);\r\n });\r\n }\r\n var sSunday = $filter('endOfWeek')(sDate);\r\n var sHetSzama = $filter('stringToMoment')(sDate).week();\r\n vm.editedWTP.Hetfo = sMonday;\r\n vm.editedWTP.Vasarnap = sSunday;\r\n vm.editedWTP.HetSzama = sHetSzama;\r\n vm.loadEventsEnabled = true;\r\n\r\n angular.element('#txHetSzama').val(vm.editedWTP.HetSzama);\r\n $timeout(function () {\r\n for (var i = 0; i < vm.tetelek.length; i++) {\r\n vm.tetelek[i].Datum = $filter('addDays')(sMonday, vm.tetelek[i].NapSzam - 1);\r\n }\r\n grid.refresh();\r\n $scope.$apply();\r\n grid.dataSource = vm.tetelek;\r\n }, 100);\r\n if (vm.trainingPlanId == -1) {\r\n vm.copyEnabled = true;\r\n }\r\n }\r\n\r\n function copyFromOldPlan() {\r\n if (vm.trainingPlanId > 0) {\r\n log.infoMsg(gettextCatalog.getString('FormerWeeklyTrainingPlanCanOnlyBeCopiedToNewPlans'));\r\n return;\r\n }\r\n if (!vm.copyEnabled) {\r\n log.infoMsg(gettextCatalog.getString('ChooseMondayFirst'));\r\n return;\r\n }\r\n vm.selectedRowIndexPopup = -1;\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.open();\r\n dataservice.getOldWeeklyPlanByUserId(vm.editedWTP.IdEdzo, vm.editedWTP.Id).then(function (args) {\r\n gridPopup.dataSource = args.itemsList;\r\n });\r\n }\r\n\r\n function closeEarlierWeeklyPlanWindow() {\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectEarlierWeeklyPlanWindow() {\r\n var oldPlan = $rootScope.getSelectedItems(gridPopup)[0];\r\n if (oldPlan) {\r\n dataservice.weeklyTrainingPlanSelectByIdNew(oldPlan.Id).then(function (data) {\r\n vm.tetelek = [];\r\n for (var i = 0; i < data.retValue.gridData.length; i++) {\r\n var NapSzam = 1;\r\n switch (data.retValue.gridData[i].Nap) {\r\n case gettextCatalog.getString('Monday'):\r\n NapSzam = 1;\r\n break;\r\n case gettextCatalog.getString('Tuesday'):\r\n NapSzam = 2;\r\n break;\r\n case gettextCatalog.getString('Wednesday'):\r\n NapSzam = 3;\r\n break;\r\n case gettextCatalog.getString('Thursday'):\r\n NapSzam = 4;\r\n break;\r\n case gettextCatalog.getString('Friday'):\r\n NapSzam = 5;\r\n break;\r\n case gettextCatalog.getString('Saturday'):\r\n NapSzam = 6;\r\n break;\r\n case gettextCatalog.getString('Sunday'):\r\n NapSzam = 7;\r\n break;\r\n }\r\n data.retValue.gridData[i].Datum = $filter('addDays')(vm.editedWTP.Hetfo, NapSzam - 1);\r\n vm.tetelek.push(data.retValue.gridData[i]);\r\n }\r\n grid.dataSource = vm.tetelek;\r\n });\r\n var dialogObj = angular.element('#searchWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n }\r\n\r\n function editDateTemplate() {\r\n return {\r\n create: function () {\r\n return '<input type=\"text\">';\r\n },\r\n read: function (args) {\r\n return args[0].value;\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n var q = args.element.ejTimePicker({\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n cssClass: 'gridEditTemplateTextAndButton',\r\n timeFormat: 'HH:mm'\r\n });\r\n vm.editedRowId = args.rowdata['Id'];\r\n $compile(args.element.context[1])($scope);\r\n return q;\r\n }\r\n };\r\n }\r\n\r\n function athletesChange(args) {\r\n if (vm.JOVAHAGYOTT) {\r\n args.cancel = true;\r\n return;\r\n }\r\n if (args.isChecked) {\r\n vm.checkedItems.push({value: args.value, text: args.text});\r\n } else {\r\n vm.checkedItems.splice(vm.checkedItems.indexOf({value: args.value, text: args.text}), 1);\r\n }\r\n }\r\n\r\n function selectAll() {\r\n $('#athletesList').ejListBox('checkAll');\r\n vm.checkedItems = $.extend(true, [], vm.athletes);\r\n }\r\n\r\n function deleteSelection() {\r\n $('#athletesList').ejListBox('uncheckAll');\r\n vm.checkedItems = [];\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function SectionLeaderApprove() {\r\n dataservice.HetiEdzesTervJovahagyas(vm.editedWTP.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('WeeklyTraningPlanApproved'));\r\n vm.HETIEDZTERVJOVAHAGY = false;\r\n vm.JOVAHAGYOTT = true;\r\n $rootScope.back();\r\n });\r\n }\r\n\r\n function claimAsset() {\r\n dataservice.EszkozIgenyLista(vm.edit.EdzesFejId).then(function (response) {\r\n var neededAssets = [];\r\n for (var i = 0; i < response.data.length; i++) {\r\n neededAssets.push({id: 'asset' + i, text: response.data[i], value: 1});\r\n }\r\n var HTMLtext = createHtmlSwalContent(neededAssets);\r\n swal({\r\n title: gettextCatalog.getString('PrintAssetClaim'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var neededAssetParams = [];\r\n for (var i = 0; i < response.data.length; i++) {\r\n var val = document.getElementById('asset' + i).value;\r\n if (val) {\r\n neededAssetParams.push({name: response.data[i], value: val});\r\n }\r\n }\r\n showPrint2(neededAssetParams);\r\n }\r\n }, function () {\r\n });\r\n });\r\n }\r\n\r\n function showPrint2(arg) {\r\n var items = $.extend(true, [], arg);\r\n vm.reportParameters2 = {\r\n edzo: vm.editedWTP.EdzoNev,\r\n szakosztaly: vm.editedWTP.SzakosztalyNev,\r\n korosztaly: vm.editedWTP.KorosztalyNev,\r\n datum: vm.edit.Datum,\r\n elemek: items\r\n };\r\n $timeout(function () {\r\n if (printOpened2) {\r\n angular.element('#printDialog2').ejDialog('open');\r\n } else {\r\n printOpened2 = true;\r\n angular.element('#printDialog2').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }, 500);\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" >';\r\n arr.forEach(function (item) {\r\n HTMLtext += '<div class=\"row\">';\r\n if (item.hasOwnProperty('cb')) {\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:7px;\">' + item.text + '</label>';\r\n HTMLtext += '<div style=\"float:left;\">';\r\n HTMLtext += '<div class=\"col-lg-6\"><input id=\"' + item.id + '\" ej-checkbox></input></div><br>';\r\n HTMLtext += '</div>';\r\n } else if (item.hasOwnProperty('cp')) {\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:7px;\">' + item.text + '</label>';\r\n HTMLtext += '<div class=\"col-lg-6\"><input id=\"' + item.id + '\" ej-colorpicker></input></div><br>';\r\n } else if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:7px;\">' + item.text + '</label>';\r\n HTMLtext += '<div class=\"col-lg-6\"><input id=\"AutoCompleteSwal\" ej-autocomplete></input></div><br>';\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '<br>';\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:7px;\">' + item.text + '</label>';\r\n HTMLtext += '<div class=\"col-lg-6\"><input id=\"' + item.id + '\" ej-dropdownlist e-width=\"100%\"></input></div><br>';\r\n } else {\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:7px;\">' + item.text + '</label>';\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '<div class=\"col-lg-6\"><input type=\"text\" value=\"' + item.value + '\" id=\"' + item.id + '\"></input></div><br>';\r\n } else {\r\n HTMLtext += '<div class=\"col-lg-6\"><input type=\"text\" value=\"\" id=\"' + item.id + '\"></input></div><br>';\r\n }\r\n }\r\n HTMLtext += '</div>';\r\n });\r\n HTMLtext += '</div>';\r\n return HTMLtext;\r\n }\r\n\r\n function openTemplate() {\r\n paramHelper.setParams([\r\n {'trainingPlanCreate.trainingId': vm.edit.EdzesFejId}\r\n ]);\r\n $state.go('administration.trainingPlan.trainingPlanTemplate');\r\n }\r\n\r\n function back() {\r\n $rootScope.back();\r\n }\r\n\r\n function HetiEdzestervLegregebbiHet() {\r\n return dataservice.HetiEdzestervLegregebbiHet().then(function (response) {\r\n return response;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.administration.weeklyTrainingPlan.weeklyTrainingPlanReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'administration.weeklyTrainingPlan.weeklyTrainingPlanReport',\r\n config: {\r\n url: '/weeklyTrainingPlanReport',\r\n templateUrl: 'app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.html',\r\n controller: 'WeeklyTrainingPlanReportController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athleteDashboard')\r\n .controller('AthleteDashboardController', AthleteDashboardController);\r\n\r\n function AthleteDashboardController(log, dataservice, $q, $rootScope, gettextCatalog) {\r\n $rootScope.vm = this;\r\n $rootScope.title = gettextCatalog.getString('AthleteDashboard');\r\n\r\n // Create variables\r\n\r\n // Public functions\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [];\r\n $q.all(promises).then(function () {})\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athleteDashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athleteDashboard',\r\n config: {\r\n url: '/athleteDashboard',\r\n templateUrl: 'app/athleteDashboard/athleteDashboard.html',\r\n controller: 'AthleteDashboardController',\r\n controllerAs: 'vm',\r\n title: 'AthleteDashboard',\r\n settings: {\r\n navId: 13,\r\n level: 1,\r\n order: 9,\r\n parentId: 0,\r\n content: 'AthleteDashboard',\r\n faIcon: 'fa-play',\r\n permission: ['6']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.addAgeGroup')\r\n .controller('AddAgeGroupController', AddAgeGroupController);\r\n\r\n function AddAgeGroupController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $window, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddAgeGroup');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n var date = new Date().getFullYear();\r\n vm.yearList = dataservice.range(date + 5, 1900);\r\n vm.yearListTo = dataservice.range(date + 10, 1900);\r\n\r\n vm.formData = {\r\n Color: '#000000',\r\n ActiveAgeGroup: true,\r\n SelectedYearFrom: undefined,\r\n SelectedYearTo: undefined,\r\n Comment: undefined,\r\n AgeGroupName: undefined,\r\n SectionId: undefined\r\n };\r\n\r\n vm.clearDropdown = clearDropdown;\r\n vm.sectionSelect = sectionSelect;\r\n vm.saveAgeGroup = saveAgeGroup;\r\n vm.yearFromDropDownChanged = yearFromDropDownChanged;\r\n vm.yearToDropDownChanged = yearToDropDownChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.colorChanged = colorChanged;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['ageGroups.section'])]).then(function (results) {\r\n vm.UJKOROKEZ = true;\r\n vm.formData.SectionId = results[0]['ageGroups.section'];\r\n angular.element('#activeCheckBox').ejCheckBox({checked: vm.formData.ActiveAgeGroup});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function clearDropdown() {\r\n vm.formData.SelectedYearTo = null;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n }\r\n\r\n function yearFromDropDownChanged(args) {\r\n vm.formData.SelectedYearFrom = args.value;\r\n }\r\n\r\n function yearToDropDownChanged(args) {\r\n vm.formData.SelectedYearTo = args.value;\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.Color = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.formData.ActiveAgeGroup = args.value;\r\n }\r\n\r\n function saveAgeGroup() {\r\n if (vm.UJKOROKEZ) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n dataservice.saveAgeGroup(vm.formData)\r\n .then(function () {\r\n log.successMsg('AgeGroupAdded');\r\n paramHelper.setParams([{'ageGroups.section': vm.formData.SectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupsList');\r\n }, function () {\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.addAgeGroup')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.addAgeGroup',\r\n config: {\r\n url: '/addAgeGroup',\r\n templateUrl: 'app/athletes/ageGroups/addAgeGroup/addAgeGroup.html',\r\n controller: 'AddAgeGroupController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupMembersList')\r\n .controller('AgeGroupMembersListController', AgeGroupMembersList);\r\n\r\n function AgeGroupMembersList(log, $state, dataservice, authenticationService, $q, $window, $filter, $scope, gettextCatalog, paramHelper, $rootScope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AgeGroupMembersList');\r\n\r\n // Dropdownlist's sources\r\n vm.ageGroupList = [];\r\n vm.ageGroupMembersList = [];\r\n\r\n vm.columns = [\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', template: '#aggrmelitemplateDataColumn1', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 100},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachsName'), textAlign: 'center', template: '#aggrmelitemplateDataColumn2', width: 150},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 100},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('PayedSportServiceFee'), textAlign: 'center', width: 125},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('PayedEducationalFee'), textAlign: 'center', width: 100},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowSelection: false,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Publikus funkciók\r\n vm.goToAgeGroupChange = goToAgeGroupChange;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.goToNewUser = goToNewUser;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTKOROKEZ'), authenticationService.getRight('MODKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODKOROKEZ = results[1];\r\n $q.all([paramHelper.getParams(['ageGroups.section', 'ageGroups.ageGroup']), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n vm.korosztaly = results[0]['ageGroups.ageGroup'];\r\n vm.szakosztaly = results[0]['ageGroups.section'];\r\n vm.MEGTSPORTLIST = results[1];\r\n getAgeGroupMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroupMembersList() {\r\n return dataservice.getAgeGroupMembersList(vm.szakosztaly, vm.korosztaly)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function goToAgeGroupChange() {\r\n authenticationService.getRight('MEGTKORVALT').then(function (results) {\r\n if (results) {\r\n $state.go('settings.ageGroupChange');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteNew.selectedSectionId': vm.szakosztaly}, {'athleteNew.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupMembersList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.ageGroupMembersList',\r\n config: {\r\n url: '/ageGroupMembersList',\r\n templateUrl: 'app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.html',\r\n controller: 'AgeGroupMembersListController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups',\r\n config: {\r\n url: '/ageGroups',\r\n templateUrl: 'app/athletes/ageGroups/ageGroups.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupsList')\r\n .controller('AgeGroupsListController', TeamsCtrl);\r\n\r\n function TeamsCtrl(log, dataservice, authenticationService, $q, $state, $scope, gettextCatalog, paramHelper, $rootScope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AgeGroups');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.sectionListCopyTo = [];\r\n vm.ageGroupList = [];\r\n // checkbox\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#templateData'\r\n },\r\n {\r\n field: 'megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 50,\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Publikus funkciók\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDestinationDropDownChanged = sectionDestinationDropDownChanged;\r\n vm.copyAllAgeGroup = copyAllAgeGroup;\r\n vm.goToAddAgeGroup = goToAddAgeGroup;\r\n vm.goToModifyAgeGroup = goToModifyAgeGroup;\r\n vm.goToModifyAgeGroupButton = goToModifyAgeGroupButton;\r\n vm.goToAgeGroupMembersList = goToAgeGroupMembersList;\r\n vm.sectionDataBound = sectionDataBound;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTKOROKEZ')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTKOROKEZ = result[0];\r\n $q.all([authenticationService.getRight('UJKOROKEZ'), authenticationService.getRight('MODKOROKEZ'), paramHelper.getParams([], ['ageGroups.section'])]).then(function (results) {\r\n vm.UJKOROKEZ = results[0];\r\n vm.MODKOROKEZ = results[1];\r\n vm.sectionId = results[2]['ageGroups.section'];\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n paramHelper.setParams([{'ageGroups.section': vm.sectionId}]);\r\n vm.sectionListCopyTo = [];\r\n vm.sectionList.forEach(s => {\r\n if (s.value != vm.sectionId) {\r\n vm.sectionListCopyTo.push(s);\r\n }\r\n });\r\n }\r\n\r\n // in modal window\r\n function sectionDestinationDropDownChanged(args) {\r\n vm.selectedDestinationSection = args.value;\r\n angular.element('.sa-error-container').removeClass('show');\r\n angular.element('.sa-input-error').removeClass('show');\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n if (!sectionId) {\r\n sectionId = vm.sectionId;\r\n }\r\n return dataservice.ageGroupList(sectionId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function copyAllAgeGroup() {\r\n if (vm.UJKOROKEZ && vm.MODKOROKEZ) {\r\n if (angular.isDefined(vm.sectionId)) {\r\n swal({\r\n title: gettextCatalog.getString('CopyAllAgeGroup'),\r\n html: '<label>' + gettextCatalog.getString('DestinationSection') + '</label><input id=\"sectionDropDown3\" ej-dropdownlist placeholder=\"' + gettextCatalog.getString('PleaseChoose') + '\" style=\"margin-bottom: 10px;\">',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n return new Promise(function (resolve, reject) {\r\n if (!vm.selectedDestinationSection) {\r\n swal.showValidationError(gettextCatalog.getString('PleaseChooseSection'));\r\n reject(gettextCatalog.getString('PleaseChooseSection'));\r\n } else {\r\n resolve();\r\n }\r\n });\r\n }\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n dataservice.copyAllAgeGroup(vm.sectionId, vm.selectedDestinationSection).then(function () {\r\n getAgeGroups();\r\n log.successMsg('AllAgeGroupCopied');\r\n swal.close();\r\n }, function () {\r\n });\r\n }\r\n });\r\n angular.element('#sectionDropDown3').ejDropDownList({\r\n dataSource: vm.sectionListCopyTo,\r\n change: sectionDestinationDropDownChanged,\r\n value: vm.selectedDestinationSection,\r\n width: '100%'\r\n });\r\n getAgeGroups();\r\n } else {\r\n log.errorMsg('YouHaveToSelectTeam');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToAddAgeGroup() {\r\n if (vm.UJKOROKEZ) {\r\n paramHelper.setParams([{'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.addAgeGroup');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyAgeGroupButton() {\r\n if (vm.MODKOROKEZ || vm.MEGTKOROKEZ) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'ageGroups.ageGroup': selectedRecords[0].id}, {'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyAgeGroup(id) {\r\n if (vm.MODKOROKEZ || vm.MEGTKOROKEZ) {\r\n if (id) {\r\n console.log(id);\r\n paramHelper.setParams([{'ageGroups.ageGroup': id}]);\r\n $state.go('athletes.ageGroups.modifyAgeGroup');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToAgeGroupMembersList() {\r\n if (vm.MEGTKOROKEZ) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'ageGroups.ageGroup': selectedRecords[0].id}, {'ageGroups.section': vm.sectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupMembersList');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.ageGroupsList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.ageGroupsList',\r\n config: {\r\n url: '/ageGroupsList',\r\n templateUrl: 'app/athletes/ageGroups/ageGroupsList/ageGroupsList.html',\r\n controller: 'AgeGroupsListController',\r\n controllerAs: 'vm',\r\n title: 'AgeGroups',\r\n settings: {\r\n navId: 231,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Korosztályok',\r\n orderTitle_en: 'Age Groups',\r\n parentId: 1,\r\n content: 'AgeGroups',\r\n activatorPermission: ['\"MEGTKOROKEZ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.modifyAgeGroup')\r\n .controller('ModifyAgeGroupController', ModifyAgeGroupController);\r\n\r\n function ModifyAgeGroupController(log, $state, dataservice, authenticationService, $q, gettextCatalog, paramHelper, $window, $rootScope, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyAgeGroup');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n var date = new Date().getFullYear();\r\n vm.yearList = dataservice.range(date + 5, 1900);\r\n vm.yearListTo = dataservice.range(date + 10, 1900);\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n\r\n vm.formData = {\r\n color: '#000000',\r\n activeAgeGroup: true,\r\n selectedYearFrom: undefined,\r\n selectedYearTo: undefined,\r\n comment: undefined,\r\n ageGroupName: undefined,\r\n sectionId: undefined,\r\n id: undefined\r\n };\r\n\r\n vm.clearDropdown = clearDropdown;\r\n vm.sectionSelect = sectionSelect;\r\n vm.modifyAgeGroup = modifyAgeGroup;\r\n vm.yearFromDropDownChanged = yearFromDropDownChanged;\r\n vm.yearToDropDownChanged = yearToDropDownChanged;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.colorChanged = colorChanged;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODKOROKEZ'), authenticationService.getRight('MEGTKOROKEZ')]).then(function (results) {\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODKOROKEZ = results[0];\r\n $q.all([paramHelper.getParams(['ageGroups.ageGroup'])]).then(function (results) {\r\n vm.ageGroupId = results[0]['ageGroups.ageGroup'];\r\n getAgeGroup().then(function () {\r\n getSections();\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function clearDropdown() {\r\n vm.formData.selectedYearTo = null;\r\n }\r\n\r\n function getAgeGroup() {\r\n return dataservice.getAgeGroup(vm.ageGroupId).then(function (data) {\r\n vm.formData.ageGroupName = data.ageGroupName;\r\n vm.formData.comment = data.comment;\r\n vm.formData.selectedYearFrom = data.selectedYearFrom;\r\n vm.formData.selectedYearTo = data.selectedYearTo;\r\n vm.formData.color = data.color;\r\n vm.formData.activeAgeGroup = data.activeAgeGroup;\r\n vm.formData.id = data.id;\r\n vm.formData.sectionId = data.sectionId;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.sectionId);\r\n }\r\n\r\n function sectionSelect(selectedSection) {\r\n vm.formData.sectionId = selectedSection.value;\r\n }\r\n\r\n function yearFromDropDownChanged(args) {\r\n vm.formData.selectedYearFrom = args.value;\r\n }\r\n\r\n function yearToDropDownChanged(args) {\r\n vm.formData.selectedYearTo = args.value;\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.formData.activeAgeGroup = args.value;\r\n }\r\n\r\n function modifyAgeGroup() {\r\n if (vm.MODKOROKEZ) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n dataservice.modifyAgeGroup(vm.formData).then(function () {\r\n log.successMsg('AgeGroupModified');\r\n paramHelper.setParams([{'ageGroups.section': vm.formData.sectionId}]);\r\n $state.go('athletes.ageGroups.ageGroupsList');\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.ageGroups.modifyAgeGroup')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.ageGroups.modifyAgeGroup',\r\n config: {\r\n url: '/modifyAgeGroup',\r\n templateUrl: 'app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.html',\r\n controller: 'ModifyAgeGroupController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes',\r\n config: {\r\n title: 'Athletes',\r\n url: '/athletes',\r\n templateUrl: 'app/athletes/athletes.html',\r\n settings: {\r\n navId: 1,\r\n level: 1,\r\n order: 1,\r\n parentId: 0,\r\n content: 'Athletes',\r\n faIcon: 'fa-running',\r\n activatorPermission: [\r\n '\"MEGTKOROKEZ\"',\r\n '\"MEGTSPORTLIST\"',\r\n '\"MEGTCSOPORT\"',\r\n '\"SZAKOSZTALY\"',\r\n '\"MEGTSPORTLIST\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.anthropometry')\r\n .controller('AnthropometryController', AnthropometryController);\r\n\r\n function AnthropometryController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, DOMAIN, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Create variables\r\n vm.felmeresId = 0;\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.REGIFELMERES = false;\r\n vm.fileName = null;\r\n vm.oldAnthropometryTestTitle = gettextCatalog.getString('OldAnthropometryTests');\r\n vm.formData = {\r\n athletesName: '',\r\n athletesAddress: '',\r\n birthDate: '',\r\n endOfPuberty: '',\r\n chosenSports: '',\r\n TM: '',\r\n TS: '',\r\n HUS: '',\r\n DS: '',\r\n VAS: '',\r\n MKS: '',\r\n MMG: '',\r\n CRS: '',\r\n MKK: '',\r\n FFK: '',\r\n FK: '',\r\n AKK: '',\r\n CUK: '',\r\n KZK: '',\r\n COK: '',\r\n ASK: '',\r\n BOK: '',\r\n BR: '',\r\n HR: '',\r\n R: '',\r\n COR: '',\r\n LR: '',\r\n MSR: '',\r\n CSR: '',\r\n Felmeres: '',\r\n Csoport: '',\r\n MeresDatuma: '',\r\n VizsgalatotKeroNeveCime: ''\r\n };\r\n vm.selectedRowIndexPopup = -1;\r\n vm.columnsPopup = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Felmeres',\r\n headerText: gettextCatalog.getString('Felmeres'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Csoport',\r\n headerText: gettextCatalog.getString('Csoport'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MeresDatuma',\r\n headerText: gettextCatalog.getString('MeresDatuma'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.reportParameters = {};\r\n var printOpenedE = false;\r\n\r\n // Public functions\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.saveForm = saveForm;\r\n vm.deleteImg = deleteImg;\r\n vm.newAnthropometryTest = newAnthropometryTest;\r\n vm.oldAnthropometryTest = oldAnthropometryTest;\r\n vm.closeWindow = closeWindow;\r\n vm.selectTest = selectTest;\r\n vm.print = print;\r\n vm.focusOut = focusOut;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsPopup,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#GridPopup');\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n initKeyEvents();\r\n var promises = [authenticationService.getRight('MEGTANTFELM'), authenticationService.getRight('MODANTFELM'), authenticationService.getRight('ANTRKIERT')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODANTFELM = results[1];\r\n vm.ANTRKIERT = results[2];\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'])]).then(function (data) {\r\n vm.sportoloId = data[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = data[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Anthropometry');\r\n getAthleteForAnthropometry(vm.sportoloId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAthleteForAnthropometry(sportolo, felmeresId) {\r\n if (felmeresId === undefined) {\r\n felmeresId = 0;\r\n }\r\n dataservice.getAthleteForAnthropometry(sportolo, felmeresId).then(function (data) {\r\n data.ant.SzuletesiIdo = $filter('datetimeFilter')(data.ant.SzuletesiIdo);\r\n data.ant.MeresDatuma = $filter('datetimeFilter')(data.ant.MeresDatuma);\r\n data.ant.PubertaskorVege = $filter('datetimeFilter')(data.ant.PubertaskorVege);\r\n vm.formData = data.ant;\r\n vm.formData.IdSportolo = vm.sportoloId;\r\n vm.felmeresId = vm.formData.Id;\r\n if (vm.formData.Id !== 0 && vm.formData.Id !== '0') {\r\n vm.REGIFELMERES = true;\r\n }\r\n if (data.ant.LogoEleresiUt && data.ant.LogoEleresiUt != 'noImg.jpg') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.anthropometryPhotosUrl + data.ant.LogoEleresiUt;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.exerciseBaseUrl + 'default.png';\r\n }\r\n });\r\n }\r\n\r\n function saveForm() {\r\n if (!vm.MODANTFELM) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n $scope.$apply();\r\n } else {\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.fileData = vm.cropper.croppedImage;\r\n vm.fileName = angular.element('#fileName').val();\r\n } else if (vm.photoUrl === undefined) {\r\n vm.fileName = 'noImg.jpg';\r\n }\r\n dataservice.saveAnthropometry(vm.formData, vm.fileData, vm.fileName).then(function (response) {\r\n getAthleteForAnthropometry(response.data.sportoloId, response.data.Id);\r\n if (response.data.sikeresSzinkron) {\r\n log.successMsg(response.data.hibauzenet);\r\n } else if (response.data.hibauzenet && response.data.hibauzenet.length > 0) {\r\n log.warningMsg(response.data.hibauzenet, true);\r\n }\r\n log.successMsg('Saved');\r\n });\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n angular.element('#fileName').val('');\r\n vm.fileName = 'oldDeleted';\r\n vm.photoUrl = vm.noImg;\r\n }\r\n\r\n function newAnthropometryTest() {\r\n vm.formData.Id = 0;\r\n vm.formData.Felmeres = '';\r\n vm.formData.Csoport = '';\r\n vm.formData.MeresDatuma = null;\r\n vm.formData.TTM = '';\r\n vm.formData.TTS = '';\r\n vm.formData.HUS = '';\r\n vm.formData.TDS = '';\r\n vm.formData.VAS = '';\r\n vm.formData.MKS = '';\r\n vm.formData.MMG = '';\r\n vm.formData.CRS = '';\r\n vm.formData.MKK = '';\r\n vm.formData.FFK = '';\r\n vm.formData.FK = '';\r\n vm.formData.AKK = '';\r\n vm.formData.CUK = '';\r\n vm.formData.KZK = '';\r\n vm.formData.COK = '';\r\n vm.formData.ASK = '';\r\n vm.formData.BOK = '';\r\n vm.formData.BR = '';\r\n vm.formData.HR = '';\r\n vm.formData.TR = '';\r\n vm.formData.COR = '';\r\n vm.formData.LR = '';\r\n vm.formData.MSR = '';\r\n vm.formData.CSR = '';\r\n vm.formData.Endomorfia = '';\r\n vm.formData.Mezomorfia = '';\r\n vm.formData.Ektomorfia = '';\r\n vm.formData.MetrikusConradIndex = '';\r\n vm.formData.PlasztikusConradIndex = '';\r\n vm.formData.DFDC = '';\r\n vm.formData.DFTZSSzazalek = '';\r\n vm.formData.DFTTS = '';\r\n vm.formData.DFDelta = '';\r\n vm.formData.DFBZS = '';\r\n vm.formData.DFBCS = '';\r\n vm.formData.DFBI = '';\r\n vm.formData.DFBZSR = '';\r\n vm.formData.DFBF = '';\r\n vm.formData.DFDCBF = '';\r\n vm.formData.DFVTM = '';\r\n vm.formData.DFBTTS = '';\r\n vm.formData.DFDELTASzazalek = '';\r\n vm.formData.DFBZSSzazalek = '';\r\n vm.formData.DFBCSSzazalek = '';\r\n vm.formData.DFBISzazalek = '';\r\n vm.formData.DFBZSRSzazalek = '';\r\n vm.formData.Testalkat = '';\r\n vm.formData.Sulyfelesleg = '';\r\n vm.formData.Erosithetoseg = '';\r\n vm.formData.VarhatoTestmagassag = '';\r\n vm.formData.SzakertoiVelemeny = '';\r\n vm.formData.AjanlottSportagak = '';\r\n $scope.$apply();\r\n }\r\n\r\n // Grid popup\r\n function oldAnthropometryTest() {\r\n vm.selectedRowIndexPopup = -1;\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n var dialogObj = angular.element('#oldAnthropometryTestsWindow').data('ejDialog');\r\n dialogObj.open();\r\n\r\n dataservice.getOldAnthropometryTest(vm.sportoloId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'MeresDatuma');\r\n });\r\n }\r\n\r\n function closeWindow() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n var dialogObj = angular.element('#oldAnthropometryTestsWindow').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function selectTest() {\r\n var row = grid.getSelectedRecords()[0];\r\n if (!row) {\r\n vm.selectedRowIndexPopup = -1;\r\n } else {\r\n vm.selectedRowIndexPopup = row.Id;\r\n }\r\n getAthleteForAnthropometry(vm.sportoloId, vm.selectedRowIndexPopup);\r\n closeWindow();\r\n }\r\n\r\n function print() {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n 'Tomeges': vm.felmeresId + ',' + vm.sportoloId,\r\n 'SportoloId': 0,\r\n 'AntropometriaId': 0,\r\n 'SportiskolaLogo': vm.photoUrl\r\n };\r\n\r\n if (printOpenedE) {\r\n angular.element('#printDialoganthtest2').ejDialog('open');\r\n } else {\r\n printOpenedE = true;\r\n angular.element('#printDialoganthtest2').ejDialog({\r\n height: '95%',\r\n width: '95%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n\r\n //angular.element('#printDialoganthtest2').ejDialog('open');\r\n }, 0);\r\n }\r\n\r\n var tizedesvesszo = false;\r\n var voltLostFocus = false;\r\n\r\n function initKeyEvents() {\r\n angular.element('body').on('keyup', 'button', function () {\r\n $(this).submit();\r\n });\r\n\r\n angular.element('body').on('keyup', 'select, textarea, input', function (e) {\r\n var form = $(this).parents('form:eq(0)');\r\n var focusable;\r\n var next;\r\n if (e.keyCode == 13) {\r\n var tab = $((this)).attr('tabIndex');\r\n tab++;\r\n $('[tabindex=\\'' + tab + '\\']').focus();\r\n\r\n return false;\r\n }\r\n });\r\n\r\n $('body').on('keyup', 'input', function (e) {\r\n var form = $(this).parents('form:eq(0)');\r\n var focusable;\r\n var next;\r\n var keyCode = e.keyCode;\r\n //volt már tizedesvessző, és számot adott meg, következő mezőre lépés\r\n if (tizedesvesszo === true && ((keyCode >= 48 && keyCode <= 57) || (keyCode >= 96 && keyCode <= 105))) {\r\n tizedesvesszo = false;\r\n var tab = $(this).attr('tabindex');\r\n tab++;\r\n $('[tabindex=\\'' + tab + '\\']').focus();\r\n\r\n return false;\r\n }\r\n //ha még nem volt tizedesvessző, és .-ot, vagy ,-t nyomott le\r\n if (!tizedesvesszo && (keyCode === 110 || keyCode === 188)) {\r\n tizedesvesszo = true;\r\n }\r\n //ha volt tizedesvessző, de BackSpace-t nyom le\r\n if (tizedesvesszo && keyCode === 8) {\r\n tizedesvesszo = false;\r\n }\r\n });\r\n }\r\n\r\n function focusOut(args) {\r\n if (voltLostFocus || args.value == null) {\r\n return;\r\n }\r\n if (!validate(args.model.minValue, args.model.maxValue, args.value)) {\r\n voltLostFocus = true;\r\n var audio2 = new Audio('/sounds/error.mp3');\r\n audio2.play();\r\n args.cancel = true;\r\n document.getElementsByName(args.model.name)[0].children[1].children[0].children[0].children[0].focus();\r\n voltLostFocus = false;\r\n return true;\r\n } else {\r\n if (args.model.name === 'MSR') {\r\n var audio = new Audio('/sounds/save.mp3');\r\n audio.play();\r\n } else {\r\n var audio = new Audio('/sounds/focusout.mp3');\r\n audio.play();\r\n }\r\n }\r\n }\r\n\r\n function validate(min, max, value) {\r\n return value >= min && value <= max;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.anthropometry')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.anthropometry',\r\n config: {\r\n url: '/anthropometry',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.html',\r\n controller: 'AnthropometryController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteFees')\r\n .controller('AthleteFeesController', AthleteFeesController);\r\n\r\n function AthleteFeesController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, $scope, authenticationService, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(new Date().getFullYear() - 4, new Date().getFullYear() + 1);\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'K', value: 'K'}, {text: 'B', value: 'B'}, {\r\n text: 'EP',\r\n value: 'EP'\r\n }, {text: 'MT', value: 'MT'}];\r\n\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n headerText: gettextCatalog.getString('General'),\r\n columns: [\r\n {field: 'Ev', headerText: gettextCatalog.getString('Year'), width: 70, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', width: 150, textAlign: 'center',\r\n template: '#feearrearscolumnTemplate2'\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, textAlign: 'center',\r\n template: '#feearrearscolumnTemplate1'\r\n },\r\n {\r\n field: 'Dsi_Igazolas',\r\n headerText: gettextCatalog.getString('Regisztracios'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'OsszesHatralek',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Month'),\r\n columns: [\r\n {field: 'Honap_1', headerText: gettextCatalog.getString('January'), textAlign: 'center', width: 75},\r\n {field: 'Honap_2', headerText: gettextCatalog.getString('February'), textAlign: 'center', width: 75},\r\n {field: 'Honap_3', headerText: gettextCatalog.getString('March'), textAlign: 'center', width: 75},\r\n {field: 'Honap_4', headerText: gettextCatalog.getString('April'), textAlign: 'center', width: 75},\r\n {field: 'Honap_5', headerText: gettextCatalog.getString('May'), textAlign: 'center', width: 75},\r\n {field: 'Honap_6', headerText: gettextCatalog.getString('June'), textAlign: 'center', width: 75},\r\n {field: 'Honap_7', headerText: gettextCatalog.getString('July'), textAlign: 'center', width: 75},\r\n {field: 'Honap_8', headerText: gettextCatalog.getString('August'), textAlign: 'center', width: 75},\r\n {field: 'Honap_9', headerText: gettextCatalog.getString('September'), textAlign: 'center', width: 75},\r\n {field: 'Honap_10', headerText: gettextCatalog.getString('October'), textAlign: 'center', width: 75},\r\n {field: 'Honap_11', headerText: gettextCatalog.getString('November'), textAlign: 'center', width: 75},\r\n {field: 'Honap_12', headerText: gettextCatalog.getString('December'), textAlign: 'center', width: 75}\r\n ],\r\n textAlign: 'center'\r\n }\r\n ]\r\n ;\r\n vm.rowIndexUnderEditing = -1;\r\n\r\n // Public functions\r\n vm.getAthletes = getFees;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])];\r\n $q.all(promises).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthleteFees');\r\n getFees();\r\n });\r\n }\r\n\r\n function getFees() {\r\n return dataservice.getAthleteFees(vm.sportoloId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteFees')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athleteFees',\r\n config: {\r\n url: '/athleteFees',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.html',\r\n controller: 'AthleteFeesController',\r\n controllerAs: 'vm',\r\n title: 'AthleteFees'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteLog')\r\n .controller('AthleteLogController', AthleteLogController);\r\n\r\n function AthleteLogController(dataservice, log, authenticationService, $q, $rootScope, gettextCatalog, paramHelper, $filter, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.sportoloId = null;\r\n vm.sportoloNev = null;\r\n vm.logAll = [];\r\n vm.dateList = [];\r\n\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n\r\n vm.columns = [\r\n {field: 'strtimestamp', headerText: gettextCatalog.getString('TimeStamp'), headerTextAlign: 'center', textAlign: 'center', width: '150'},\r\n {field: 'field', headerText: gettextCatalog.getString('Field'), headerTextAlign: 'center', width: '100'},\r\n {field: 'oldvalue', headerText: gettextCatalog.getString('OldValue'), textAlign: 'center', width: '150'},\r\n {field: 'newvalue', headerText: gettextCatalog.getString('NewValue'), textAlign: 'center', width: '150'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('LOG')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthleteLog');\r\n getLog(vm.sportoloId, vm.dateFrom, vm.dateTo);\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function getLog(sportoloid, from, to) {\r\n dataservice.getLog('Sportolok', sportoloid, from, to).then(function (response) {\r\n grid.dataSource = response.data.List;\r\n vm.logAll = response.data.List;\r\n vm.dateList = response.data.DatesStr;\r\n vm.dateList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n setTimeout(function() {\r\n angular.element('#date').ejDropDownList('selectItemByValue', '0');\r\n $scope.$apply();\r\n }, 10);\r\n });\r\n }\r\n\r\n function dateFromChanged(arg) {\r\n getLog(vm.sportoloId, arg.value, vm.dateTo);\r\n }\r\n\r\n function dateToChanged(arg) {\r\n getLog(vm.sportoloId, vm.dateFrom, arg.value);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athleteLog')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athleteLog',\r\n config: {\r\n url: '/athleteLog',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.html',\r\n controller: 'AthleteLogController',\r\n controllerAs: 'vm',\r\n title: 'AthleteLog'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify')\r\n .controller('AthleteModifyController', AthleteModifyController);\r\n\r\n function AthleteModifyController(log, logger, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $timeout, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.athleteMenuOpened = false;\r\n vm.printMenuOpened = false;\r\n\r\n $rootScope.title = gettextCatalog.getString('AthleteModify');\r\n\r\n vm.athleteMenuItems = [];\r\n\r\n vm.printMenuItems = [];\r\n\r\n var printOpened = false;\r\n vm.reportParameters = {};\r\n var printOpenedSchoolRequesting = false;\r\n vm.reportParametersSchoolRequesting = {};\r\n var printOpenedTaj = false;\r\n vm.reportParametersEgeszsegProfil = {};\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId'], ['athleteModify.sportoloNev', 'selectedSectionId', 'selectedAgeGroupId', 'selectedActiveOrInactive', 'selectedPage', 'selectedRow']),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('ModFizetesMod'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('KMVERSEREDM'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('MEGTANTFELM'),\r\n authenticationService.getRight('MEGTKPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n authenticationService.getRight('PSYCHO'),\r\n authenticationService.getRight('KIKERONYOMT'),\r\n authenticationService.getRight('TESTMERET'),\r\n authenticationService.getRight('MEGTSPORTBEF'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('LOG'),\r\n authenticationService.getRight('DOKLIST'),\r\n authenticationService.getRight('ESZKNYILVMEGT'),\r\n authenticationService.getRight('SPORTKILEPVEGLEGES')\r\n\r\n ]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n\r\n vm.ADMIN = results[1];\r\n vm.UJEDZVALT = results[2];\r\n vm.MODFELH = results[3];\r\n vm.SPORTKILEP = results[4];\r\n vm.ModFizetesMod = results[5];\r\n vm.MODSPORTOLO = results[6];\r\n vm.SPORTOLO = results[7];\r\n vm.SZULO = results[8];\r\n vm.EGESZSMEGT = results[9];\r\n vm.KMVERSEREDM = results[10];\r\n vm.MEGTHAVIJEL = results[11];\r\n vm.MODTAGDBEALL = results[12];\r\n vm.MEGTANTFELM = results[13];\r\n vm.MEGTKPFELM = results[14];\r\n vm.MEGTSPFELM = results[15];\r\n vm.PSYCHO = results[16];\r\n vm.KIKERONYOMT = results[17];\r\n vm.TESTMERET = results[18];\r\n vm.MEGTSPORTBEF = results[19];\r\n vm.MODKOROKEZ = results[20];\r\n vm.LOG = results[21];\r\n vm.DOKLIST = results[22];\r\n vm.ESZKNYILVMEGT = results[23];\r\n vm.SPORTKILEPVEGLEGES = results[24];\r\n\r\n dataservice.getAthleteDataMin(vm.sportoloId).then(function (data) {\r\n vm.SportoloNev = data.Nev;\r\n vm.Taj = data.Taj;\r\n vm.SzuletesiIdo = data.SzuletesiIdo;\r\n vm.Aktiv = data.Aktiv;\r\n vm.JelenlegiEdzo = data.JelenlegiEdzo;\r\n\r\n if (vm.Aktiv) {\r\n vm.SPORTBELEPTET = false;\r\n } else {\r\n vm.SPORTBELEPTET = vm.MODSPORTOLO;\r\n vm.SPORTKILEP = false;\r\n }\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('DataSheet'),\r\n state: 'DataSheet',\r\n enabled: true\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('DatasheetPrint'),\r\n state: 'DatasheetPrint',\r\n enabled: true\r\n });\r\n if (!vm.SPORTOLO && !vm.SZULO) {\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('RaceResultsReport'),\r\n state: 'RaceResultsReport',\r\n enabled: vm.KMVERSEREDM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('TrainingVisit'),\r\n state: 'TrainingVisit',\r\n enabled: vm.MEGTHAVIJEL\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Anthropometry'),\r\n state: 'Anthropometry',\r\n enabled: vm.MEGTANTFELM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('NewSportSpecificTestList'),\r\n state: 'NewSportSpecificTestList',\r\n enabled: vm.MEGTSPFELM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('goneAthlete'),\r\n state: 'goneAthlete',\r\n enabled: vm.SPORTKILEP\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('EnteringAthlete'),\r\n state: 'EnteringAthlete',\r\n enabled: vm.SPORTBELEPTET\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Psychology'),\r\n state: 'Psychology',\r\n enabled: vm.PSYCHO\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('SchoolRequesting'),\r\n state: 'SchoolRequesting',\r\n enabled: vm.KIKERONYOMT\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('HealthModul'),\r\n state: 'HealthModul',\r\n enabled: vm.EGESZSMEGT\r\n });\r\n vm.printMenuItems.push({\r\n name: gettextCatalog.getString('PrintHealth'),\r\n state: 'PrintHealth',\r\n enabled: vm.EGESZSMEGT\r\n });\r\n }\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('CompetitionResultsChart'),\r\n state: 'CompetitionResultsChart',\r\n enabled: vm.KMVERSEREDM\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('BodyStat'),\r\n state: 'BodyStat',\r\n enabled: vm.TESTMERET\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('AthleteFees'),\r\n state: 'AthleteFees',\r\n enabled: vm.MEGTSPORTBEF\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Log'),\r\n state: 'Log',\r\n enabled: vm.LOG\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('Contracts'),\r\n state: 'Contracts',\r\n enabled: vm.DOKLIST && vm.MODSPORTOLO\r\n });\r\n\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('AthletesAssets'),\r\n state: 'AthletesAssets',\r\n enabled: (vm.ESZKNYILVMEGT && vm.Aktiv)\r\n });\r\n vm.athleteMenuItems.push({\r\n name: gettextCatalog.getString('GDPRExitAthlete'),\r\n state: 'GDPRExitAthlete',\r\n enabled: vm.SPORTKILEPVEGLEGES\r\n });\r\n\r\n vm.athleteMenuItems.sort(function (item1, item2) {\r\n return item1.name.localeCompare(item2.name);\r\n });\r\n vm.printMenuItems.sort(function (item1, item2) {\r\n return item1.name.localeCompare(item2.name);\r\n });\r\n\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloNev': vm.SportoloNev},\r\n {'athleteModify.sportoloTaj': vm.Taj},\r\n {'athleteModify.sportoloSzuletesiIdo': vm.SzuletesiIdo},\r\n {'athleteModify.aktivSportolo': vm.Aktiv}\r\n ]);\r\n });\r\n });\r\n }\r\n\r\n vm.openAthleteMenu = function () {\r\n vm.athleteMenuOpened = !vm.athleteMenuOpened;\r\n if (vm.athleteMenuOpened) {\r\n $('#AthleteMenuButton').addClass('is-active');\r\n } else {\r\n $('#AthleteMenuButton').removeClass('is-active');\r\n }\r\n\r\n if (vm.athleteMenuOpened === true) {\r\n $('#AthletePrintButton').removeClass('is-active');\r\n vm.printMenuOpened = false;\r\n }\r\n };\r\n\r\n vm.openPrintMenu = function () {\r\n vm.printMenuOpened = !vm.printMenuOpened;\r\n if (vm.printMenuOpened) {\r\n $('#AthletePrintButton').addClass('is-active');\r\n } else {\r\n $('#AthletePrintButton').removeClass('is-active');\r\n }\r\n\r\n if (vm.printMenuOpened === true) {\r\n $('#AthleteMenuButton').removeClass('is-active');\r\n vm.athleteMenuOpened = false;\r\n }\r\n };\r\n\r\n vm.openAthletePage = function (item) {\r\n if (item.enabled === false) {\r\n // log.permissionError();\r\n return;\r\n }\r\n vm.openAthleteMenu();\r\n switch (item.state) {\r\n case 'DataSheet':\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n break;\r\n case 'RaceResultsReport':\r\n $state.go('athletes.athletesManagement.athleteModify.raceResultsReport');\r\n break;\r\n case 'TrainingVisit':\r\n $state.go('athletes.athletesManagement.athleteModify.trainingVisitReport');\r\n break;\r\n case 'Anthropometry':\r\n $state.go('athletes.athletesManagement.athleteModify.anthropometry');\r\n break;\r\n case 'NewSportSpecificTestList':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesSportSpecificTestList');\r\n break;\r\n case 'goneAthlete':\r\n goToGoneAthleteAllowed();\r\n break;\r\n case 'EnteringAthlete':\r\n getSectionsSwal();\r\n break;\r\n case 'Contracts':\r\n paramHelper.setParams([{'files.tipus': 'Sportolok'}, {'files.tablaId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.files');\r\n break;\r\n case 'Psychology':\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n break;\r\n case 'BodyStat':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesBodyStat');\r\n break;\r\n case 'HealthModul':\r\n $state.go('athletes.athletesManagement.athleteModify.health.healthList');\r\n break;\r\n case 'CompetitionResultsChart':\r\n $state.go('athletes.athletesManagement.athleteModify.competitionResultsChart');\r\n break;\r\n case 'AthleteFees':\r\n $state.go('athletes.athletesManagement.athleteModify.athleteFees');\r\n break;\r\n case 'Log':\r\n $state.go('athletes.athletesManagement.athleteModify.athleteLog');\r\n break;\r\n case 'AthletesAssets':\r\n $state.go('athletes.athletesManagement.athleteModify.athletesAssets');\r\n break;\r\n case 'GDPRExitAthlete':\r\n GDPRExitAthlete();\r\n break;\r\n }\r\n };\r\n\r\n vm.printPage = function (item) {\r\n if (item.enabled === false) {\r\n return;\r\n }\r\n vm.openPrintMenu();\r\n switch (item.state) {\r\n case 'DatasheetPrint':\r\n datasheetPrint();\r\n break;\r\n case 'SchoolRequesting':\r\n schoolRequestingOk();\r\n break;\r\n case 'PrintHealth':\r\n testClick();\r\n break;\r\n }\r\n };\r\n\r\n function goToGoneAthleteAllowed() {\r\n var TitleString = gettextCatalog.getString(vm.SportoloNev + ' ' + gettextCatalog.getString('ExitAthleteTitlePart'));\r\n var enteringExitingText = gettextCatalog.getString('SelectDategoneAthlete'); // Válaszd ki a kiléptetés dátumát!\r\n var reasonEnteringExitingText = gettextCatalog.getString('ExitedAthletesText'); // A kiléptetés indoka\r\n var confirmButtonText = gettextCatalog.getString('Exiting');\r\n\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '<div style=\"margin-bottom: 10px; width: 95%;\" ><label>';\r\n HTMLarr[1] = enteringExitingText; // Válaszd ki a kiléptetés vagy visszaléptetés dátumát!\r\n HTMLarr[2] = '<br></label></div><div style=\"margin-left: 30%;\"><input id=\"datepick\" required type=\"text\"></div>';\r\n HTMLarr[3] = '<br><label>';\r\n HTMLarr[4] = reasonEnteringExitingText; // A kiléptetés vagy visszaléptetés indoka\r\n HTMLarr[5] = '</label><br>';\r\n HTMLarr[6] = '<textarea id=\"noteTextArea\" rows=\"4\" cols=\"55\" required style=\"width: 95%; resize: none; padding: 5px;\"></textarea>';\r\n\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: TitleString,\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: confirmButtonText,\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n var preConfOk = true;\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue();\r\n vm.noteExitText = angular.element('#noteTextArea').val();\r\n checkExitDate(vm.selectedExitDate);\r\n return new Promise(function (resolve) {\r\n if (!vm.selectedExitDate || !vm.exitAthleteDateOk) {\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate'));\r\n }\r\n if (vm.noteExitText == null || vm.noteExitText === '') {\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveExitAthletes(true);\r\n swal.close();\r\n }\r\n });\r\n\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n dateFormat: 'yyyy-MM-dd',\r\n value: new Date(),\r\n change: function (args) {\r\n checkExitDate(args.value);\r\n }\r\n });\r\n }\r\n\r\n function checkExitDate(args) {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n }\r\n\r\n function saveExitAthletes(firstSection) {\r\n vm.datas = {};\r\n vm.datas.athletesId = [vm.sportoloId];\r\n vm.datas.selectedExitDate = vm.selectedExitDate;\r\n if (!vm.noteExitText) {\r\n vm.noteExitText = '----';\r\n }\r\n vm.datas.noteExitText = vm.noteExitText;\r\n vm.datas.firstSection = firstSection;\r\n dataservice.saveExitAthletes(vm.datas).then(function (answer) {\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok'\r\n });\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n $rootScope.back();\r\n /*\r\n if (answer.retValue) {\r\n swal(gettextCatalog.getString('SuccesfulExitAthleteResult'), '', 'success');\r\n $rootScope.back();\r\n } else {\r\n swal(gettextCatalog.getString('FailedExitAthleteResult'), '', 'error');\r\n }\r\n */\r\n });\r\n }\r\n\r\n function GDPRExitAthlete() {\r\n dataservice.getAthleteData(vm.sportoloId).then(function (data) {\r\n if (data.Egyenleg < 0 || data.Egyenleg2 < 0) {\r\n log.errorMsg(gettextCatalog.getString('AthleteHasArrear'));\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('FinallyExitAthlete'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToFinallyExitSelectedAthlete'),\r\n type: 'error',\r\n showCancelButton: true,\r\n confirmButtonColor: '#e50000',\r\n cancelButtonText: gettextCatalog.getString('No'),\r\n confirmButtonText: gettextCatalog.getString('Yes')\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n dataservice.GDPRExitAthlete(vm.sportoloId).then(function () {\r\n $state.go('athletes.athletesManagement.athletesList');\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSectionsSwal() {\r\n dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionListSwal = data.itemsList;\r\n reEnteringAthlete();\r\n });\r\n }\r\n\r\n function reEnteringAthlete() {\r\n var showAgeGroupSwal = false;\r\n var TitleString = gettextCatalog.getString(vm.SportoloNev + ' ' + gettextCatalog.getString('EnteringAthlete'));\r\n var enteringExitingText = gettextCatalog.getString('SelectDateEnteringAthlete'); // Válaszd ki a visszaléptetés dátumát!\r\n var confirmButtonText = gettextCatalog.getString('Entering');\r\n\r\n var HTMLarr = [];\r\n HTMLarr[0] = '<label>';\r\n HTMLarr[1] = enteringExitingText; // Válaszd ki a visszaléptetés dátumát!\r\n HTMLarr[2] = '<br></label></div><div style=\"margin-left: 30%;\"><input id=\"datepick\" type=\"text\"></div>';\r\n HTMLarr[3] = '<br>';\r\n HTMLarr[4] = '<div style=\"margin-top: 10px;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringSection') +\r\n '</label><div class=\"col-lg-6\"><input id=\"sectionDropDownSwal\" ej-dropdownlist></div></div></div>';\r\n HTMLarr[5] = '<div style=\"margin-top: 10px;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringAgeGroup') +\r\n '</label><div class=\"col-lg-6\"><input id=\"ageGroupDropDownSwal\" ej-dropdownlist datasource=\"vm.ageGroupListSwal\"></div></div></div>';\r\n HTMLarr[6] = '<div style=\"margin-top: 10px;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringCoach') +\r\n '</label><div class=\"col-lg-6\"><input id=\"coachDropDownSwal\" ej-dropdownlist datasource=\"vm.coachListSwal\"></div></div></div>';\r\n HTMLarr[7] = '<div ng-show=\"vm.display\" class=\"ng-hide\" id=\"secondSectionDropDownSwalDiv\" style=\"margin-top: 10px; clear: both;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringSecondSection') +\r\n '</label><div class=\"col-lg-6\"><input id=\"secondSectionDropDownSwal\" ej-dropdownlist></div></div></div>';\r\n HTMLarr[8] = '<div ng-show=\"vm.display\" class=\"ng-hide\" id=\"secondAgeGroupDropDownSwalDiv\" style=\"margin-top: 10px; clear: both;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringSecondAgeGroup') +\r\n '</label><div class=\"col-lg-6\"><input id=\"secondAgeGroupDropDownSwal\" ej-dropdownlist datasource=\"vm.secondAgeGroupListSwal\"></div></div></div>';\r\n HTMLarr[9] = '<div ng-show=\"vm.display\" class=\"ng-hide\" id=\"secondCoachDropDownSwalDiv\" style=\"margin-top: 10px; clear: both;\" ><div class=\"row\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('ReEnteringSecondCoach') +\r\n '</label><div class=\"col-lg-6\"><input id=\"secondCoachDropDownSwal\" ej-dropdownlist datasource=\"vm.secondCoachListSwal\"></div></div></div><div class=\"col-lg-12\"></div>';\r\n\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: TitleString,\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: confirmButtonText,\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n\r\n vm.exitAthleteDateOk = (new Date(vm.selectedExitDate).getTime()) <= new Date().getTime();\r\n\r\n return new Promise(function (resolve) {\r\n if (!vm.selectedExitDate || !vm.exitAthleteDateOk) {\r\n swal.showValidationError(gettextCatalog.getString('SelectEnteringDate'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveReEnteringAthletes();\r\n }\r\n }, function () {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notEnteringAthlete'), 'error');\r\n });\r\n\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n dateFormat: 'yyyy-MM-dd',\r\n value: new Date(),\r\n change: function (args) {\r\n // Get current date\r\n vm.selectedExitDate = new Date(args.value);\r\n vm.exitAthleteDateOk = vm.selectedExitDate.getDate() === 1;\r\n }\r\n });\r\n // Section swal\r\n angular.element('#sectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.sectionListSwal,\r\n select: selectSectionDropDownSwal,\r\n value: vm.athleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n\r\n function sectionSwalDatabound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalSzakosztaly);\r\n }\r\n }\r\n\r\n function selectSectionDropDownSwal(arg) {\r\n vm.athleteDataSwalSzakosztaly = arg.value;\r\n showAgeGroupSwal = true; // show ageGroup dropdown\r\n // Clear\r\n vm.coachListSwal = [];\r\n angular.element('#secondSectionDropDownSwalDiv').addClass('ng-hide');\r\n angular.element('#secondAgeGroupDropDownSwalDiv').addClass('ng-hide');\r\n angular.element('#secondCoachDropDownSwalDiv').addClass('ng-hide');\r\n\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n });\r\n getSecondSectionsSwal();\r\n getAgeGroupsSwal();\r\n }\r\n\r\n // AgeGroup swal\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.ageGroupListSwal,\r\n select: ageGroupDropDownSwal,\r\n value: vm.athleteDataSwalKorcsoport,\r\n databound: ageGroupSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getAgeGroupsSwal() {\r\n dataservice.ageGroupDropDownList(vm.athleteDataSwalSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupListSwal = data.itemsList;\r\n // reFresh\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.ageGroupListSwal,\r\n });\r\n });\r\n }\r\n\r\n function ageGroupSwalDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.ageGroupListSwal[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalKorcsoport);\r\n }\r\n }\r\n\r\n function ageGroupDropDownSwal(arg) {\r\n vm.athleteDataSwalKorcsoport = arg.value;\r\n getCoachesSwal();\r\n }\r\n\r\n // Coach swal\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n select: coachDropDownSwalSelect,\r\n value: vm.athleteDataSwalEdzo,\r\n databound: coachSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getCoachesSwal() {\r\n return dataservice.coachDropDownList(vm.athleteDataSwalSzakosztaly, vm.athleteDataSwalKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachListSwal = data.itemsList;\r\n angular.element('#coachDropDownSwal').ejDropDownList({\r\n dataSource: vm.coachListSwal,\r\n });\r\n });\r\n }\r\n\r\n function coachSwalDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#coachDropDownSwal').ejDropDownList('selectItemByValue', vm.coachListSwal[0].value);\r\n } else {\r\n angular.element('#coachDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalEdzo);\r\n }\r\n }\r\n\r\n function coachDropDownSwalSelect(arg) {\r\n vm.athleteDataSwalEdzo = arg.value;\r\n angular.element('#secondSectionDropDownSwalDiv').removeClass('ng-hide');\r\n angular.element('#secondAgeGroupDropDownSwalDiv').removeClass('ng-hide');\r\n angular.element('#secondCoachDropDownSwalDiv').removeClass('ng-hide');\r\n }\r\n\r\n // Second Section swal\r\n angular.element('#secondSectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondSectionListSwal,\r\n select: selectSecondSectionDropDownSwal,\r\n value: vm.secondAthleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n\r\n function selectSecondSectionDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalSzakosztaly = arg.value;\r\n // Clear\r\n vm.secondCoachListSwal = [];\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n });\r\n\r\n getsecondAgeGroupsSwal();\r\n }\r\n\r\n function getSecondSectionsSwal() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // itt ki kell venni a listából az elsődleges section-t (vm.athleteDataSwalSzakosztaly)\r\n for (var i = 0; i < data.itemsList.length; i++) {\r\n if (data.itemsList[i].value === vm.athleteDataSwalSzakosztaly) {\r\n data.itemsList.splice(i, 1);\r\n }\r\n }\r\n vm.secondSectionListSwal = data.itemsList;\r\n angular.element('#secondSectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondSectionListSwal,\r\n });\r\n });\r\n }\r\n\r\n // second AgeGroup swal\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondAgeGroupListSwal,\r\n select: secondAgeGroupDropDownSwal,\r\n value: vm.secondAthleteDataSwalKorcsoport,\r\n databound: secondAgeGroupSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function getsecondAgeGroupsSwal() {\r\n dataservice.ageGroupDropDownList(vm.secondAthleteDataSwalSzakosztaly)\r\n .then(function (data) {\r\n vm.secondAgeGroupListSwal = data.itemsList;\r\n // reFresh\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondAgeGroupListSwal,\r\n });\r\n });\r\n }\r\n\r\n function secondAgeGroupSwalDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAgeGroupListSwal[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAthleteDataSwalKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalKorcsoport = arg.value;\r\n getsecondCoachesSwal();\r\n }\r\n\r\n // Coach swal\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n select: selectSecondCoachDropDownSwal,\r\n value: vm.secondAthleteDataSwalEdzo,\r\n databound: secondCoachSwalDataBound,\r\n width: '100%'\r\n });\r\n\r\n function selectSecondCoachDropDownSwal(arg) {\r\n vm.secondAthleteDataSwalEdzo = arg.value;\r\n }\r\n\r\n function getsecondCoachesSwal() {\r\n return dataservice.coachDropDownList(vm.secondAthleteDataSwalSzakosztaly, vm.secondAthleteDataSwalKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachListSwal = data.itemsList;\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList({\r\n dataSource: vm.secondCoachListSwal,\r\n });\r\n });\r\n }\r\n\r\n function secondCoachSwalDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList('selectItemByValue', vm.secondCoachListSwal[0].value);\r\n } else {\r\n angular.element('#secondCoachDropDownSwal').ejDropDownList('selectItemByValue', vm.secondAthleteDataSwalEdzo);\r\n }\r\n }\r\n }\r\n\r\n function saveReEnteringAthletes() {\r\n vm.athleteData = {};\r\n vm.athleteData.IdSzakosztaly = vm.athleteDataSwalSzakosztaly;\r\n vm.SzakosztalyNev = '';\r\n vm.athleteData.Korcsoport = vm.athleteDataSwalKorcsoport;\r\n vm.athleteData.KorcsoportNeve = '';\r\n vm.athleteData.JelenlegiEdzo = vm.athleteDataSwalEdzo;\r\n vm.athleteData.JelenlegiEdzoNev = '';\r\n vm.athleteData.MasodlagosSzakosztaly = vm.secondAthleteDataSwalSzakosztaly;\r\n vm.athleteData.MasodlagosKorcsoport = vm.secondAthleteDataSwalKorcsoport;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.secondAthleteDataSwalEdzo;\r\n vm.athleteData.KilepesDatuma = '';\r\n vm.athleteData.KilepesIndoka = '';\r\n\r\n vm.sendAthleteDatas = {};\r\n vm.sendAthleteDatas.athletesId = vm.sportoloId;\r\n vm.sendAthleteDatas.selectedReEnteringDate = vm.selectedExitDate;\r\n vm.sendAthleteDatas.szakosztalyId = vm.athleteData.IdSzakosztaly;\r\n vm.sendAthleteDatas.korcsoportId = vm.athleteData.Korcsoport;\r\n vm.sendAthleteDatas.edzoId = vm.athleteData.JelenlegiEdzo;\r\n vm.sendAthleteDatas.masodlagosSzakosztalyId = vm.secondAthleteDataSwalSzakosztaly;\r\n vm.sendAthleteDatas.masodlagosKorcsoportId = vm.secondAthleteDataSwalKorcsoport;\r\n vm.sendAthleteDatas.masodlagosEdzoId = vm.secondAthleteDataSwalEdzo;\r\n\r\n return dataservice.saveReEnteringAthletes(vm.sendAthleteDatas).then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n\r\n function datasheetPrint() {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n 'Szak': '',\r\n 'Kor': '',\r\n 'Edzo': vm.JelenlegiEdzo,\r\n 'SzulHely': '',\r\n 'Lakcim': '',\r\n 'IskolaCim': '',\r\n 'Id': vm.sportoloId,\r\n 'fenykeput': '',\r\n 'UgyesebbLab': '',\r\n 'UgyesebbKez': '',\r\n 'Neme': '',\r\n 'Aktiv': vm.Aktiv === true ? gettextCatalog.getString('Yes') : gettextCatalog.getString('No')\r\n };\r\n }, 0);\r\n if (printOpened) {\r\n angular.element('#printDialogDatasheet').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialogDatasheet').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n\r\n function schoolRequestingOk() {\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '<label><b>' + '</b></label><br><br>';\r\n HTMLarr[1] = '<label>' + gettextCatalog.getString('PleaseGiveSchoolRequestingDatas') + '</label>';\r\n HTMLarr[2] = '</label><br></p><div style=\"margin-bottom: 10px; width: 95%;\" ><label>';\r\n HTMLarr[3] = gettextCatalog.getString('DateInterval');\r\n HTMLarr[4] = '<br></label></div><div><input id=\"dateInterval\" type=\"text\"></div><br><label>';\r\n HTMLarr[5] = gettextCatalog.getString('Justification');\r\n HTMLarr[6] = '<br></label></div><div><input id=\"justification\" type=\"text\"></div>';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n $q.all([paramHelper.getParams([], ['schoolRequesting.dateInterval', 'schoolRequesting.justification'])])\r\n .then(function (results) {\r\n if (results[0] != null) {\r\n angular.element('#dateInterval').val(results[0]['schoolRequesting.dateInterval']);\r\n angular.element('#justification').val(results[0]['schoolRequesting.justification']);\r\n }\r\n });\r\n\r\n swal({\r\n title: gettextCatalog.getString('SchoolRequesting'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Print'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function () {\r\n var preConfOk = false;\r\n vm.dateInterval = angular.element('#dateInterval').val(); // get value\r\n vm.justification = angular.element('#justification').val();\r\n return new Promise(function (resolve, reject) {\r\n if (vm.dateInterval === null || vm.dateInterval === '') {\r\n preConfOk = false;\r\n reject(gettextCatalog.getString('FillDateInterval'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (vm.justification === null || vm.justification === '') {\r\n preConfOk = false;\r\n reject(gettextCatalog.getString('FillJustification'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (preConfOk) {\r\n resolve();\r\n }\r\n });\r\n },\r\n closeOnCancel: false\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n vm.reportParametersSchoolRequesting = {\r\n 'Logo': ' ',\r\n 'Fejlec': ' ',\r\n 'SportoloNeve': vm.SportoloNev,\r\n 'SportoloSzuletesiHelye': '',\r\n 'SportoloSzuletesiIdeje': '',\r\n 'SportoloAnyjaNeve': '',\r\n 'EgyesuletNeve': ' ',\r\n 'VarosDatum': '',\r\n 'Idopont': vm.dateInterval,\r\n 'Indok': vm.justification,\r\n 'Szoveg': '',\r\n 'Alairo': '',\r\n 'SportoloId': vm.sportoloId,\r\n 'EdzoId': authenticationService.getAuthData().id\r\n };\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n paramHelper.setParams([{\r\n 'schoolRequesting.dateInterval': vm.dateInterval,\r\n 'schoolRequesting.justification': vm.justification\r\n }]);\r\n if (printOpenedSchoolRequesting) {\r\n angular.element('#printDialogSchoolRequesting').ejDialog('open');\r\n } else {\r\n printOpenedSchoolRequesting = true;\r\n angular.element('#printDialogSchoolRequesting').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n swal.close();\r\n return true;\r\n }\r\n }).then(function () {\r\n });\r\n }\r\n\r\n function testClick() {\r\n swal({\r\n title: gettextCatalog.getString('HealthPrintQuestion'),\r\n input: 'select',\r\n inputOptions: {\r\n '1': gettextCatalog.getString('AllHealth'),\r\n '2': gettextCatalog.getString('ActualHealth')\r\n },\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n inputValidator: function (value) {\r\n return new Promise(function (resolve) {\r\n vm.healtType = value;\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.reportParametersEgeszsegProfil = {\r\n 'SportoloId': vm.sportoloId,\r\n 'Name': vm.SportoloNev,\r\n 'SzuletesiIdo': '',\r\n 'TajSzam': '',\r\n 'Type': vm.healtType,\r\n 'Fenykeput': ''\r\n };\r\n $scope.$apply();\r\n\r\n if (printOpenedTaj) {\r\n angular.element('#printDialogHealth').ejDialog('open');\r\n } else {\r\n printOpenedTaj = true;\r\n angular.element('#printDialogHealth').ejDialog({\r\n height: '99%',\r\n width: '99%',\r\n enablemodal: 'true',\r\n 'position-x': '0',\r\n 'position-y': '1',\r\n target: '#mainContent',\r\n enableresize: 'false'\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify',\r\n config: {\r\n url: '/athleteModify',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athleteModify.html',\r\n controller: 'AthleteModifyController',\r\n controllerAs: 'vm',\r\n title: 'AthleteModify'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesAssets')\r\n .controller('AthletesAssetsController', AthletesAssetsController);\r\n\r\n function AthletesAssetsController(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.assetColumns = [\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), width: 150, textAlign: 'center'},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), width: 150, textAlign: 'center'},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), width: 100, textAlign: 'center'},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), width: 95, textAlign: 'center'},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), width: 95, textAlign: 'center'},\r\n {field: 'KiadaskoriMegjegyzes', headerText: gettextCatalog.getString('Comment'), width: 95, textAlign: 'center'}\r\n ];\r\n vm.types = [];\r\n vm.newAsset = {};\r\n vm.selectedAssets = [];\r\n vm.Issue = Issue;\r\n vm.IssueAsset = IssueAsset;\r\n vm.IssueNewAsset = IssueNewAsset;\r\n vm.TakeBack = TakeBack;\r\n vm.takebackEnabled = false;\r\n vm.chooseEnabled = false;\r\n vm.ESZKMOZG = false;\r\n vm.TakeBackComment = '';\r\n vm.IssueComment = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#AthletesAssetGrid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#AthletesAssetGrid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var gridPopUp = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: 350,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#AssetGrid'), $scope);\r\n }\r\n }\r\n });\r\n gridPopUp.appendTo('#AssetGrid');\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('ESZKNYILVMEGT'),\r\n authenticationService.getRight('ESZKMOZG'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.ESZKMOZG = results[1];\r\n vm.sportoloId = results[2]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[2]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthletesAssets');\r\n IssuedAssets();\r\n }\r\n });\r\n }\r\n\r\n function IssuedAssets() {\r\n dataservice.IssuedAssets(vm.sportoloId, 0).then(function (response) {\r\n grid.dataSource = response.data;\r\n console.log(grid.dataSource);\r\n });\r\n }\r\n\r\n function getSelectedAssetIds(targetGrid) {\r\n var selectedAssets = targetGrid.getSelectedRecords();\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function IssueAsset() {\r\n if (vm.ESZKMOZG) {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n dataservice.AssetsByType(0, 'issuable').then(function (data) {\r\n gridPopUp.dataSource = data.data;\r\n });\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function Issue() {\r\n vm.chooseEnabled = false;\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n dataservice.AssetIssue(getSelectedAssetIds(gridPopUp), 0, vm.sportoloId, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets();\r\n });\r\n }\r\n\r\n function TakeBack() {\r\n vm.takebackEnabled = false;\r\n dataservice.AssetTakeBack(getSelectedAssetIds(grid), vm.TakeBackComment).then(function () {\r\n vm.TakeBackComment = '';\r\n log.successMsg('TakenBackSuccessfully');\r\n IssuedAssets();\r\n });\r\n }\r\n\r\n function IssueNewAsset() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n vm.chooseEnabled = false;\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras'), value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar'), value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''},\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', ac: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = '';\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n vm.newAsset.TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n console.log('vm.newAsset', vm.newAsset);\r\n if (!vm.newAsset.Megnevezes || vm.newAsset.Megnevezes.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n return;\r\n }\r\n if (vm.newAsset.TipusId == 0 && (!vm.newAsset.TipusNev || vm.newAsset.TipusNev.length == 0)) {\r\n log.errorMsg(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n return;\r\n }\r\n dataservice.AssetManager(vm.newAsset).then(function (response) {\r\n dataservice.AssetIssue(response.data.EszkozIdk, 0, vm.sportoloId, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets();\r\n });\r\n });\r\n }\r\n });\r\n angular.element('#AutoCompleteSwal').ejAutocomplete({\r\n dataSource: vm.types,\r\n change: function (arg) {\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = arg.value;\r\n },\r\n value: vm.newAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" >';\r\n arr.forEach(function (item) {\r\n HTMLtext += '<div class=\"row\">';\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + item.text + '</label>';\r\n if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"AutoCompleteSwal\" ej-autocomplete></input><br>';\r\n // HTMLtext += '<cts-auto-complete name=\"ac\" label=\"'+item.text+'\" value=\"\" change=\"vm.AutoCompleteChange\" validation-rules=\"{required: true}\" datasource=\"vm.types\" style=\"width: 100%\"></cts-auto-complete>'\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"DropDownSwal\" ej-dropdownlist></input><br>';\r\n } else {\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '<input type=\"text\" value=\"' + item.value + '\" id=\"' + item.id + '\"></input><br>';\r\n } else {\r\n HTMLtext += '<input type=\"text\" value=\"\" id=\"' + item.id + '\"></input><br>';\r\n }\r\n }\r\n HTMLtext += '</div>';\r\n });\r\n HTMLtext += '</div><br>';\r\n return HTMLtext;\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesAssets')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesAssets',\r\n config: {\r\n url: '/AthletesAssets',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.html',\r\n controller: 'AthletesAssetsController',\r\n controllerAs: 'vm',\r\n title: 'AthletesAssets'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesBodyStat')\r\n .controller('AthletesBodyStatController', AthletesBodyStatController);\r\n\r\n function AthletesBodyStatController(log, logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.BodyStatText = gettextCatalog.getString('BodyStat');\r\n vm.cm = gettextCatalog.getString('Cm');\r\n vm.kg = gettextCatalog.getString('Kg');\r\n vm.bmi = gettextCatalog.getString('Bmi');\r\n vm.sportoloNev = '';\r\n vm.data = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('TESTMERET').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('athletesBodyStat');\r\n getAthletesBodyStat(vm.sportoloId);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getAthletesBodyStat(sportoloid) {\r\n vm.data = [];\r\n dataservice.getAthletesBodyStat(sportoloid)\r\n .then(function (data) {\r\n if (data.itemsList.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('NoBodyStatFoundOnMonthlyAttendanceReports'));\r\n $rootScope.back();\r\n }\r\n vm.data = data.itemsList;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'datum');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesBodyStat')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesBodyStat',\r\n config: {\r\n url: '/athletesBodyStat',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.html',\r\n controller: 'AthletesBodyStatController',\r\n controllerAs: 'vm',\r\n title: 'AthletesBodyStat',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList')\r\n .controller('AthletesSportSpecificTestListController', AthletesSportSpecificTestListController);\r\n\r\n function AthletesSportSpecificTestListController(log, dataservice, authenticationService, $q, $state, $scope, $rootScope, gettextCatalog, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.coachId = 0;\r\n vm.felmeroFejId = 0;\r\n vm.sportoloId = -1;\r\n vm.dateTo = new Date();\r\n vm.dateFrom = new Date(vm.dateTo.getFullYear() - 1, vm.dateTo.getMonth(), 1);\r\n\r\n // Grid's variables\r\n vm.pageSize = 20;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n headerText: 'Id',\r\n textAlign: 'center',\r\n isPrimaryKey: true,\r\n visible: false\r\n },\r\n {\r\n field: 'FelmeroNeve',\r\n headerText: gettextCatalog.getString('TestName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'SzakosztalyNev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }, {\r\n field: 'EdzoNev',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#sstlCoach'\r\n }, {\r\n field: 'KorcsoportNev',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }, {\r\n field: 'Edzoertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n }, {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Datum'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }, {\r\n headerText: '',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#sstlOpen',\r\n width: 80\r\n }];\r\n\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.goToTest = goToTest;\r\n vm.goToUser = goToUser;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MODFELH'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n vm.sportoloId = results[2]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[2]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('AthletesSportSpecificTestList');\r\n felmeroFejLista();\r\n vm.UJSPFELM = results[0];\r\n vm.MODFELH = results[1];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function felmeroFejLista() {\r\n return dataservice.felmeroFejLista(0, 0, 0, 0, vm.sportoloId, vm.dateFrom, vm.dateTo)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function dateFromChange(arg) {\r\n vm.dateFrom = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function dateToChange(arg) {\r\n vm.dateTo = arg.value;\r\n felmeroFejLista();\r\n }\r\n\r\n function goToTest(SzakosztalyId, KorcsoportId, EdzoId, FelmeroElemFejId, FelmeroFejId) {\r\n paramHelper.setParams(\r\n [\r\n {'sportSpecificTest.sectionId': SzakosztalyId},\r\n {'newSportSpecificTest.sectionId': SzakosztalyId},\r\n {'sportSpecificTest.ageGroupId': KorcsoportId},\r\n {'sportSpecificTest.coachId': EdzoId},\r\n {'sportSpecificTest.felmeroElemFejId': FelmeroElemFejId},\r\n {'sportSpecificTest.felmeroFejId': FelmeroFejId},\r\n {'sportSpecificTest.highlight': vm.sportoloId}\r\n ]);\r\n\r\n $state.go('administration.sportSpecificTest.newSportSpecificTest');\r\n }\r\n\r\n function goToUser(EdzoId) {\r\n if (!vm.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.athletesSportSpecificTestList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.athletesSportSpecificTestList',\r\n config: {\r\n url: '/athletesSportSpecificTestList',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.html',\r\n controller: 'AthletesSportSpecificTestListController',\r\n controllerAs: 'vm',\r\n title: 'athletesSportSpecificTestList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.competitionResultsChart')\r\n .controller('CompetitionResultsChartController', CompetitionResultsChartController);\r\n\r\n function CompetitionResultsChartController(dataservice, log, authenticationService, $q, $rootScope, gettextCatalog, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Create variables\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.discipline = '0';\r\n vm.selectdateFrom = '';\r\n vm.selectdateTo = new Date();\r\n\r\n vm.data1 = [];\r\n vm.data2 = [];\r\n vm.data3 = [];\r\n vm.data4 = [];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.disciplineDataBound = disciplineDataBound;\r\n vm.disciplineSelect = disciplineSelect;\r\n vm.filter = filter;\r\n vm.selectdateFromChange = selectdateFromChange;\r\n vm.selectdateToChange = selectdateToChange;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMVERSEREDM')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n loadResults();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function loadResults() {\r\n var promises = [paramHelper.getParams([], ['athleteModify.sportoloId', 'athleteModify.sportoloNev'])];\r\n $q.all(promises).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('CompetitionResultsChart');\r\n getSections();\r\n\r\n angular.element('#Chart1').ejChart({\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n primaryYAxis: {\r\n title: {text: 'Értékelés'}\r\n },\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n series: [\r\n {\r\n points: vm.data1,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#358fcc',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#<br/> Értékelés : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart1,\r\n title: {text: 'Értékelés'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart2').ejChart({\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n primaryYAxis: {\r\n title: {text: 'Pont'}\r\n },\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n series: [\r\n {\r\n points: vm.data2,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#628a00',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#<br/> Pont : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart2,\r\n title: {text: 'Pont'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart3').ejChart({\r\n //Initializing Primary X Axis\r\n primaryXAxis: {\r\n title: {text: 'Verseny'}\r\n },\r\n\r\n //Initializing Primary Y Axis\r\n primaryYAxis: {\r\n title: {text: 'Távolság'}\r\n },\r\n\r\n //Initializing Common Properties for all the series\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n\r\n //Initializing Series\r\n series: [\r\n {\r\n points: vm.data3,\r\n name: 'Sales',\r\n type: 'line',\r\n fill: '#dc6f00',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#<br/> Távolság : #point.y#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart3,\r\n title: {text: 'Távolság'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n\r\n angular.element('#Chart4').ejChart({\r\n //Initializing Primary X Axis\r\n primaryXAxis: {\r\n title: {text: 'Eredmény'},\r\n labelFormat: 'mm:ss',\r\n valueType: 'datetime'\r\n },\r\n\r\n //Initializing Primary Y Axis\r\n primaryYAxis: {\r\n title: {text: 'Verseny'},\r\n rangePadding: 'additional'\r\n },\r\n\r\n //Initializing Common Properties for all the series\r\n commonSeriesOptions: {\r\n tooltip: {\r\n visible: true\r\n }\r\n },\r\n\r\n //Initializing Series\r\n series: [\r\n {\r\n points: vm.data4,\r\n name: 'Sales',\r\n type: 'line',\r\n isTransposed: true,\r\n fill: '#b81309',\r\n enableAnimation: true,\r\n marker: {\r\n shape: 'circle',\r\n size: {\r\n height: 10, width: 10\r\n },\r\n visible: true\r\n },\r\n border: {width: 3},\r\n tooltip: {format: 'Verseny: #point.VersenyLeiras#<br/> Eredmény : #point.x#'}\r\n }\r\n ],\r\n isResponsive: true,\r\n load: loadChart4,\r\n title: {text: 'Idő'},\r\n size: {height: '400'},\r\n legend: {visible: false}\r\n });\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.resultChartSectionDropDown(vm.sportoloId, vm.ageGroupId, vm.discipline).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n angular.element('#section').ejDropDownList('selectItemByValue', 0);\r\n vm.sectionId = 0;\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.resultChartAgeGroupDropDown(vm.sportoloId, vm.sectionId, vm.discipline).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', 0);\r\n vm.ageGroupId = 0;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getDiscipline();\r\n }\r\n\r\n function getDiscipline() {\r\n dataservice.resultChartVersenyszamDropDown(vm.sportoloId, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.disciplineList = data.itemsList;\r\n });\r\n }\r\n\r\n function disciplineDataBound() {\r\n angular.element('#discipline').ejDropDownList('selectItemByValue', '0');\r\n vm.discipline = '0';\r\n }\r\n\r\n function disciplineSelect(args) {\r\n vm.discipline = args.value;\r\n }\r\n\r\n function selectdateFromChange(args) {\r\n vm.selectdateFrom = args.value;\r\n }\r\n\r\n function selectdateToChange(args) {\r\n vm.selectdateTo = args.value;\r\n }\r\n\r\n function loadChart1() {\r\n vm.chart1 = this;\r\n }\r\n\r\n function loadChart2() {\r\n vm.chart2 = this;\r\n }\r\n\r\n function loadChart3() {\r\n vm.chart3 = this;\r\n }\r\n\r\n function loadChart4() {\r\n vm.chart4 = this;\r\n }\r\n\r\n function filter() {\r\n dataservice.resultChart1(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data1 = data.itemsList;\r\n vm.chart1.model.series[0].points = vm.data1;\r\n if (vm.data1.length === 0) {\r\n vm.chart1.model.series[0].marker.visible = false;\r\n }\r\n vm.chart1.redraw();\r\n });\r\n dataservice.resultChart2(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data2 = data.itemsList;\r\n vm.chart2.model.series[0].points = vm.data2;\r\n if (vm.data2.length === 0) {\r\n vm.chart2.model.series[0].marker.visible = false;\r\n }\r\n vm.chart2.redraw();\r\n });\r\n dataservice.resultChart3(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data3 = data.itemsList;\r\n vm.chart3.model.series[0].points = vm.data3;\r\n if (vm.data3.length === 0) {\r\n vm.chart3.model.series[0].marker.visible = false;\r\n }\r\n vm.chart3.redraw();\r\n });\r\n dataservice.resultDateChart(vm.sportoloId, vm.discipline, vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n vm.data4 = $filter('dateStringFilter2')(data.itemsList, 'x');\r\n vm.chart4.model.series[0].points = vm.data4;\r\n if (vm.data4.length === 0) {\r\n vm.chart4.model.series[0].marker.visible = false;\r\n }\r\n vm.chart4.redraw();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.competitionResultsChart')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.competitionResultsChart',\r\n config: {\r\n url: '/competitionResultsChart',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.html',\r\n controller: 'CompetitionResultsChartController',\r\n controllerAs: 'vm',\r\n title: 'CompetitionResultsChart'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.dataSheet')\r\n .controller('AthleteModifyDataSheetController', AthleteModifyDataSheetController);\r\n\r\n function AthleteModifyDataSheetController(log, logger, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, VIEW_DATA, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.display = false;\r\n\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.selectedItems = [0, 1];\r\n vm.sexNum = 0;\r\n vm.sexList = [\r\n {text: gettextCatalog.getString('Man'), value: 1},\r\n {text: gettextCatalog.getString('Woman'), value: -1}\r\n ];\r\n vm.betterHandList = [\r\n {text: gettextCatalog.getString('Left'), value: 1},\r\n {text: gettextCatalog.getString('Right'), value: 2},\r\n {text: gettextCatalog.getString('Both'), value: 3}\r\n ];\r\n vm.betterFootList = [\r\n {text: gettextCatalog.getString('Left'), value: 1},\r\n {text: gettextCatalog.getString('Right'), value: 2},\r\n {text: gettextCatalog.getString('Both'), value: 3}\r\n ];\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('EducationFee'), value: -1},\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n\r\n vm.parentList = [];\r\n\r\n vm.FatherMotherList = [\r\n {value: 'mother', text: gettextCatalog.getString('Mother')},\r\n {value: 'father', text: gettextCatalog.getString('Father')},\r\n ];\r\n\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = Tagdíj = 1;\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee'); // Sportszolgáltatási díjas\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n vm.emptyResultText = gettextCatalog.getString('emptyResultText');\r\n vm.fatherNames = [];\r\n vm.motherNames = [];\r\n vm.feeOfEducationDataStart = undefined; // String\r\n vm.feeOfEducationDateOk = false;\r\n vm.sectionList = []; // recived section list\r\n vm.ageGroupList = []; // recived age group list\r\n vm.coachList = []; // for reentering\r\n vm.sectionListSwal = []; // recived section list\r\n vm.ageGroupListSwal = []; // recived age group list\r\n vm.coachListSwal = []; // for reentering\r\n vm.athleteDataSwalSzakosztaly = undefined;\r\n vm.athleteDataSwalKorcsoport = undefined;\r\n vm.athleteDataSwalEdzo = undefined;\r\n vm.secondAthleteDataSwalSzakosztaly = undefined;\r\n vm.secondAthleteDataSwalKorcsoport = undefined;\r\n vm.secondAthleteDataSwalEdzo = undefined;\r\n vm.allowEdit = true;\r\n\r\n vm.isSecondCoach = false;\r\n vm.isSecondCoachChange = false;\r\n vm.secondAgeGroupList = [];\r\n vm.secondSectionList = [];\r\n vm.secondCoachList = [];\r\n vm.secondAgeGroupListSwal = [];\r\n vm.secondSectionListSwal = [];\r\n vm.secondCoachListSwal = [];\r\n vm.selectedExitDate = undefined;\r\n vm.exitAthleteDateOk = false;\r\n // Athlete parameters\r\n vm.selectedAgeGroupText = undefined; // selected age group name\r\n vm.selectedAthlete = [];\r\n vm.athleteData = {\r\n Id: undefined,\r\n AdoSzam: undefined, // String\r\n Aktiv: undefined, // Boolean\r\n AktTestmagassag: undefined, // Int32?\r\n AktTestsuly: undefined, // Int32?\r\n Allampolgarsag: undefined, // String\r\n AnyjaLeanykoriNeve: undefined, // String\r\n AnyjaNeve: undefined, // String\r\n AnyjaTestmagassaga: undefined, // Int32?\r\n ApjaTestmagassaga: undefined, // Int32\r\n BefOktdij: undefined, // Decimal\r\n BefTagdij: undefined, // Decimal\r\n DSITagsagKezdete: undefined, // DateTime\r\n EddigiEdzoi: undefined, // String\r\n EddigiSpEgyesuletei: undefined, // String\r\n EdzesreJarasKezdete: undefined, // DateTime\r\n Egyenleg: undefined, // Decimal\r\n Elerhetoseg: undefined, // String\r\n EmailCim: undefined, // String\r\n EvzarasOsszege: undefined, // Decimal?\r\n FajiEredet: undefined, // String\r\n Fenykep: undefined, // Byte[]\r\n FenykepUt: undefined, // String\r\n fileData: null,\r\n FurdokopenyDb: undefined, // String\r\n FurdokopenyErtek: undefined, // String\r\n FurdokopenyMerete: undefined, // String\r\n GyermekkoriSport: undefined, // String\r\n IdSzakosztaly: undefined, // Int32\r\n IskolaEvfolyam: undefined, // String\r\n IskolaHazszam: undefined, // String\r\n IskolaIgazgatoNeve: undefined, // String\r\n IskolaIrSzam: undefined, // String\r\n IskolaNeve: undefined, // String\r\n IskolaOsztaly: undefined, // String\r\n IskolaUtca: undefined, // String\r\n IskolaVaros: undefined, // String\r\n JelenlegiEdzo: undefined, // int\r\n KabatDb: undefined, // String\r\n KabatErtek: undefined, // String\r\n KabatMerete: undefined, // String\r\n KilepesDatuma: undefined, // DateTime\r\n KilepesIndoka: undefined, // String\r\n Korcsoport: undefined, // Int32\r\n LakcimHazszam: undefined, // String\r\n LakcimIrSzam: undefined, // String\r\n LakcimMegye: undefined, // String\r\n LakcimUtca: undefined, // String\r\n LakcimVaros: undefined, // String\r\n LeanykoriNev: undefined, // String\r\n MasodlagosSzakosztaly: undefined, // Int32?\r\n MasodlagosSzakosztalyEdzoId: undefined,\r\n MasodlagosKorcsoport: undefined,\r\n Megjegyzes: undefined, // String\r\n MelegitoDb: undefined, // String\r\n MelegitoErtek: undefined, // String\r\n MelegitoMerete: undefined, // String\r\n Neme: undefined, // String\r\n Nev: undefined, // String\r\n OsztalyFonokNeve: undefined, // String\r\n PancelNadragDb: undefined, // String\r\n PancelNadragErtek: undefined, // String\r\n PancelNadragMerete: undefined, // StringCipo\r\n UszoNadragMerete: undefined, // StringCipo\r\n PapucsDb: undefined, // String\r\n PapucsErte: undefined, // String\r\n PapucsMerete: undefined, // String\r\n CipoDb: undefined, // String\r\n CipoErtek: undefined, // String\r\n CipoMerete: undefined, // String\r\n PoloDb: undefined, // String\r\n PoloErtek: undefined, // String\r\n PoloMerete: undefined, // String\r\n PubertasVege: undefined, // DateTime\r\n RegisztraciosSzam: undefined, // String\r\n SortDb: undefined, // String\r\n SortErtek: undefined, // String\r\n SortMerete: undefined, // String\r\n SportoloiMultAnya: undefined, // String\r\n SportoloiMultApa: undefined, // String\r\n SportolokID: undefined, // Int32\r\n SzakosztalyNev: undefined, // String\r\n SzemIgSzam: undefined, // String\r\n SzuletesiHelyOrszag: undefined,\r\n SzuletesiHelyVaros: undefined, // String\r\n SzuletesiIdo: undefined, // DateTime\r\n Szulo1Elerhetosege: undefined, // String\r\n Szulo2Elerhetosege: undefined, // String\r\n SzulokFoglalkozasa: undefined, // String\r\n SzuloNeve: undefined, // String\r\n SzunideiElfoglaltsag: undefined, // String\r\n Tagdijas: undefined, // Boolean\r\n TAJSzam: undefined, // String\r\n Testmagassag: undefined, // Int32?\r\n TestneveloElerhetosege: undefined, // String\r\n TestneveloNeve: undefined, // String\r\n Testsuly: undefined, // Int32?\r\n UgyesebbKez: undefined, // String\r\n UgyesebbLabT: undefined, // String\r\n UtlevelSzam: undefined, // String\r\n UtolsoFrissites: undefined, // DateTime\r\n ValasztottSportagak: undefined, // String\r\n VersSportKezd: undefined, // DateTime\r\n VisszalepesDatuma: undefined, // DateTime?\r\n };\r\n vm.sportoloId = -1; // for sql quetion\r\n // This value show when start the new Fee of education mode\r\n vm.feeOfEducationDate = undefined;\r\n // Current coach name in text by Id\r\n vm.currentCoachNameInText = undefined;\r\n // Grid's details\r\n vm.schoolGridSelectedRowData = {};\r\n\r\n vm.columnsUsersOfAthlete = [\r\n {field: 'UserName', headerText: gettextCatalog.getString('UserName'), textAlign: 'center', width: 100},\r\n {\r\n field: 'UserTeljesNev',\r\n headerText: gettextCatalog.getString('UserFullName'),\r\n textAlign: 'center',\r\n template: '#atmotemplateDataColumn4',\r\n width: 150\r\n },\r\n {field: 'szerep', headerText: gettextCatalog.getString('Role'), textAlign: 'center', width: 80},\r\n {\r\n headerText: gettextCatalog.getString('unlinkUserFromAthlete'),\r\n textAlign: 'center',\r\n template: '#atmotemplateDataColumn5',\r\n width: 150\r\n }\r\n ];\r\n\r\n vm.columnsSchool = [\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), width: 200, textAlign: 'center'},\r\n {field: 'IskolaIrSzam', headerText: gettextCatalog.getString('SchoolZipCode'), width: 100, textAlign: 'center'},\r\n {field: 'IskolaVaros', headerText: gettextCatalog.getString('SchoolCity'), width: 75, textAlign: 'center'},\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('SchoolStreet'), width: 100, textAlign: 'center'},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('SchoolNumber'), width: 75, textAlign: 'center'},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('SchoolDirectorName'), width: 150, textAlign: 'center'}\r\n ];\r\n // Grid columnsAthleteMoveStory\r\n\r\n vm.columnsAthleteMoveStory = [\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n width: 100,\r\n template: '#atmotemplateDataColumn1'\r\n },\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), width: 100, textAlign: 'center'},\r\n {field: 'Korcsoport', headerText: gettextCatalog.getString('AgeGroup'), width: 100, textAlign: 'center'},\r\n {field: 'Felvitel', headerText: gettextCatalog.getString('StartTime'), width: 100, textAlign: 'center'},\r\n {field: 'IdoszakVege', headerText: gettextCatalog.getString('EndTime'), width: 100, textAlign: 'center'},\r\n {\r\n field: 'Belepes',\r\n headerText: gettextCatalog.getString('Enter'),\r\n textAlign: 'center',\r\n width: 70,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {\r\n field: 'Kilepes',\r\n headerText: gettextCatalog.getString('GoOut'),\r\n textAlign: 'center',\r\n width: 70,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n // Public functions\r\n // AthleteModify functions\r\n // Drop Down List function\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.getSections = getSections;\r\n\r\n // Second\r\n vm.secondSectionSelect = secondSectionSelect;\r\n vm.secondAgeGroupSelect = secondAgeGroupSelect;\r\n vm.secondAgeGroupDataBound = secondAgeGroupDataBound;\r\n vm.changeSecondAgeGroup = changeSecondAgeGroup;\r\n vm.secondCoachDropDownListDataBound = secondCoachDropDownListDataBound;\r\n vm.selectSecondCoachBtn = selectSecondCoachBtn;\r\n vm.exitingSecondSectionBtn = exitingSecondSectionBtn;\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n // Top menu buttons functions\r\n vm.anthropometry = anthropometry; // Public\r\n //vm.enteringAthlete = enteringAthlete; // public\r\n vm.generateRegNum = generateRegNum;\r\n\r\n // Image cropper variables\r\n vm.deleteImg = deleteImg; // Public, delete the photo from user profile 999 Hofi\r\n\r\n vm.save = save;\r\n vm.cropper = {}; // Ricsi\r\n vm.cropper.sourceImage = null; // Ricsi\r\n vm.cropper.croppedImage = null; // Ricsi\r\n vm.bounds = {}; // Ricsi\r\n vm.bounds.left = 0; // Ricsi\r\n vm.bounds.right = 0; // Ricsi\r\n vm.bounds.top = 0; // Ricsi\r\n vm.bounds.bottom = 0; // Ricsi\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle'); // Ricsi\r\n\r\n vm.openCropDialog = openCropDialog; // Ricsi\r\n vm.doneCropDialog = doneCropDialog; // Ricsi\r\n vm.closeCropDialog = closeCropDialog; // Ricsi\r\n // Change Age Group\r\n vm.changeAgeGroup = changeAgeGroup;\r\n // sex (gende) dropdown public function\r\n vm.sexSelect = sexSelect;\r\n // Height dropdown public function\r\n vm.changeHeight = changeHeight;\r\n // Weight dropdown public function\r\n vm.changeWeight = changeWeight;\r\n // better Hand dropdown public function\r\n vm.betterHandSelect = betterHandSelect;\r\n // better Foot dropdown public function\r\n vm.betterFootSelect = betterFootSelect;\r\n // Social security number required\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n //\r\n vm.changeFeeOfEducationBtn = changeFeeOfEducationBtn;\r\n // select coach\r\n vm.selectCoachBtn = selectCoachBtn;\r\n // Select Schools\r\n vm.selectSchools = selectSchools;\r\n // Grid selcted row\r\n vm.schoolGridSelectedRow = schoolGridSelectedRow;\r\n vm.coachList = [];\r\n vm.clearSecondSection = clearSecondSection;\r\n vm.clearSecondAgeGroup = clearSecondAgeGroup;\r\n vm.clearSecondCoach = clearSecondCoach;\r\n vm.openCoach = openCoach;\r\n vm.createLoginForAthlete = createLoginForAthlete;\r\n vm.createLoginForParents = createLoginForParents;\r\n vm.createLoginForExistingParent = createLoginForExistingParent;\r\n\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.unlinkUserFromAthlete = unlinkUserFromAthlete;\r\n\r\n // School Grid datasource initial\r\n vm.displayButtons = true;\r\n vm.coachListGridData = [];\r\n vm.tajkeres = true;\r\n vm.ADMIN = false;\r\n vm.UJEDZVALT = false;\r\n vm.MODFELH = false;\r\n vm.SPORTKILEP = false;\r\n vm.SPORTKILEPTET = false;\r\n vm.SPORTBELEPTET = false;\r\n vm.ModFizetesMod = false;\r\n vm.SPORTOLO = false;\r\n vm.SZULO = false;\r\n vm.EGESZSMEGT = false;\r\n vm.aktiv = true;\r\n vm.RUHA = {\r\n CIPO: false,\r\n PAPUCS: false,\r\n MELEGITO: false,\r\n FURDOKOPENY: false,\r\n KABAT: false,\r\n PANCELNADRAG: false,\r\n POLO: false,\r\n SORT: false,\r\n USZONADRAG: false\r\n };\r\n\r\n vm.reportParametersSchoolRequesting = {};\r\n vm.SportoloCsoportok = [];\r\n vm.SzuloCsoportok = [];\r\n\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n vm.schoolNameChanged = schoolNameChanged;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsSchool,\r\n rowSelected: schoolGridSelectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n var gridUsersOfAthlete = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columnsUsersOfAthlete,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n }\r\n });\r\n gridUsersOfAthlete.appendTo('#GridUsersOfAthlete');\r\n\r\n var grid123 = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthleteMoveStory,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid123.appendTo('#Grid123');\r\n\r\n // Activate page\r\n activate();\r\n $scope.$on('$viewContentLoaded', function () {\r\n // Set checkbox\r\n if (vm.sportoloId <= 0) {\r\n angular.element('#active').ejCheckBox({checked: true});\r\n }\r\n });\r\n\r\n function generateRegNum() {\r\n dataservice.GenerateRegNum().then(function (data) {\r\n vm.athleteData.RegisztraciosSzam = data.data;\r\n });\r\n }\r\n\r\n function getParentUserGroups() {\r\n return dataservice.SzuloCsoportokDropDownList().then(function (data) {\r\n vm.SzuloCsoportok = data.itemsList;\r\n });\r\n }\r\n\r\n function getAthleteUserGroups() {\r\n return dataservice.SportoloCsoportokDropDownList().then(function (data) {\r\n vm.SportoloCsoportok = data.itemsList;\r\n });\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId'], ['athleteModify.sportoloNev', 'selectedSectionId', 'selectedAgeGroupId', 'selectedActiveOrInactive', 'selectedPage', 'selectedRow']),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('ModFizetesMod'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('KMVERSEREDM'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MODTAGDBEALL'),\r\n authenticationService.getRight('MEGTANTFELM'),\r\n authenticationService.getRight('MEGTKPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n authenticationService.getRight('PSYCHO'),\r\n authenticationService.getRight('KIKERONYOMT'),\r\n authenticationService.getRight('TESTMERET'),\r\n authenticationService.getRight('MEGTSPORTBEF'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('LOG'),\r\n authenticationService.getRight('DOKLIST'),\r\n authenticationService.getRight('UJFELH'),\r\n getSystemSettings('NINCSOKTDIJ')\r\n ]).then(function (results) {\r\n vm.ADMIN = results[1];\r\n vm.UJEDZVALT = results[2];\r\n vm.MODFELH = results[3];\r\n vm.SPORTKILEP = results[4];\r\n vm.ModFizetesMod = results[5];\r\n vm.MODSPORTOLO = results[6];\r\n vm.SPORTOLO = results[7];\r\n vm.SZULO = results[8];\r\n vm.EGESZSMEGT = results[9];\r\n vm.KMVERSEREDM = results[10];\r\n vm.MEGTHAVIJEL = results[11];\r\n vm.MODTAGDBEALL = results[12];\r\n vm.MEGTANTFELM = results[13];\r\n vm.MEGTKPFELM = results[14];\r\n vm.MEGTSPFELM = results[15];\r\n vm.PSYCHO = results[16];\r\n vm.KIKERONYOMT = results[17];\r\n vm.TESTMERET = results[18];\r\n vm.MEGTSPORTBEF = results[19];\r\n vm.MODKOROKEZ = results[20];\r\n vm.LOG = results[21];\r\n vm.DOKLIST = results[22];\r\n vm.UJFELH = results[23];\r\n vm.NINCSOKTDIJ = results[24];\r\n vm.photoUrl = vm.noImgUrl;\r\n\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n\r\n var promises = [getSystemSettings('TAJKOTELEZO'), getSystemSettings('SNYSZKOTELEZO'), getSystemSettings('SPORTMINKOTELEZO')];\r\n $q.all(promises).then(function (results) {\r\n vm.socialSecurityNumberRequiredValue = results[0];\r\n vm.athleteRegistrationNumberRequiredValue = results[1];\r\n vm.athleteRequiredMinimumDatas = results[2];\r\n });\r\n\r\n dataservice.getAthleteData(vm.sportoloId).then(function (data) {\r\n vm.athleteData = data;\r\n RefreshClothes();\r\n vm.sportoloNev = vm.athleteData.Nev;\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('DataSheet');\r\n init();\r\n });\r\n });\r\n }\r\n\r\n function RefreshClothes() {\r\n $timeout(function () {\r\n dataservice.SzakosztalyRuhai(vm.athleteData.IdSzakosztaly, vm.athleteData.MasodlagosSzakosztaly).then(function (ruhaResponse) {\r\n vm.RUHA = ruhaResponse.data;\r\n });\r\n }, 100);\r\n }\r\n\r\n function init() {\r\n initAthleteDatas();\r\n getParentUserGroups();\r\n getAthleteUserGroups();\r\n getParentsList();\r\n getUsersBelongingToAthlete(vm.athleteData.SportolokID);\r\n getParentNames();\r\n getAthleteMoveStory(vm.athleteData.SportolokID);\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid, szerep) {\r\n var promises = [authenticationService.getRight('MODFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n if (szerep == 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink and delete the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinkedAndDeleted'));\r\n activate();\r\n });\r\n }\r\n });\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinked'));\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n function getParentsList() {\r\n dataservice.athleteAndParentDropDownList('parent')\r\n .then(function (data) {\r\n vm.parentList = data.itemsList;\r\n });\r\n }\r\n\r\n vm.parentDataSwal = undefined;\r\n\r\n function parentSwalDatabound() {\r\n if (vm.parentList.length === 1) {\r\n angular.element('#parentDropDownSwal').ejDropDownList('selectItemByValue', vm.parentList[0].value);\r\n } else {\r\n angular.element('#parentDropDownSwal').ejDropDownList('selectItemByValue', vm.parentDataSwal);\r\n }\r\n }\r\n\r\n function selectParentDropDownSwal(arg) {\r\n vm.parentDataSwal = arg.value;\r\n }\r\n\r\n function createLoginForExistingParent() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" >' +\r\n '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('SelectParentForAthlete') + '</label>' +\r\n '<input class=\"col-lg-6 col-lg-offset-6\" id=\"parentDropDownSwal\" ej-dropdownlist></div><br><br>';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForExistingParent'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.assignAthleteToParentUser(vm.parentDataSwal, vm.athleteData.SportolokID, vm.selectedSzuloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('AthleteAssignedToUserSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#parentDropDownSwal').ejDropDownList({\r\n dataSource: vm.parentList,\r\n select: selectParentDropDownSwal,\r\n value: vm.parentDataSwal,\r\n databound: parentSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.fathermotherDataSwal = undefined;\r\n\r\n function fatherMotherSwalDatabound() {\r\n if (vm.FatherMotherList.length === 1) {\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList('selectItemByValue', vm.FatherMotherList[0].value);\r\n } else {\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList('selectItemByValue', vm.fathermotherDataSwal);\r\n }\r\n }\r\n\r\n function selectFatherMotherDropDownSwal(arg) {\r\n vm.fathermotherDataSwal = arg.value;\r\n }\r\n\r\n vm.selectedSzuloCsoport = undefined;\r\n\r\n function selectParentGroupDropDownSwal(arg) {\r\n vm.selectedSzuloCsoport = arg.value;\r\n }\r\n\r\n function createLoginForParents() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '<div class=\"row\" style=\"margin-top: 10px;\" ><div class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\"><label>' + gettextCatalog.getString('WhichParent') +\r\n '</label></div><div class=\"col-lg-6\"><input id=\"fatherMotherDropDownSwal\" ej-dropdownlist></div></div><br><br>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\"><label>' + gettextCatalog.getString('SelectParentGroup') + '</label></div>' +\r\n '<div class=\"col-lg-6\"><input id=\"parentGroupsDropDownSwal\" ej-dropdownlist></div></div><br><br>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\"><label>' + gettextCatalog.getString('Username') +\r\n '</label></div><div class=\"col-lg-6\"><input id=\"parentUserName\" name=\"parentUserName\" maxlength=\"30\"></div></div>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\"><label>' + gettextCatalog.getString('Password') +\r\n '</label></div><div class=\"col-lg-6\"><input type=\"password\" id=\"parentPassword\" name=\"parentPassword\" maxlength=\"10\"></div></div>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\"><label>' + gettextCatalog.getString('PassordAgain') +\r\n '</label></div><div class=\"col-lg-6\"><input type=\"password\" id=\"parentPasswordAgain\" name=\"parentPasswordAgain\" maxlength=\"10\"></div></div>';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForParents'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n var parentUserName = document.getElementById('parentUserName').value;\r\n var parentPassword = document.getElementById('parentPassword').value;\r\n var parentPasswordAgain = document.getElementById('parentPasswordAgain').value;\r\n if (!(vm.fathermotherDataSwal == 'mother' || vm.fathermotherDataSwal == 'father')) {\r\n swal.showValidationError(gettextCatalog.getString('ChooseWhichParentRegisters'));\r\n }\r\n if (!parentPassword || parentPassword.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n }\r\n if (parentPassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtMost10CharactersLong'));\r\n }\r\n if (parentPassword !== parentPasswordAgain) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordFieldsMustMatch'));\r\n }\r\n if (!parentUserName || parentUserName.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtLeast5CharactersLong'));\r\n }\r\n if (parentUserName.length > 30) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtMost10CharactersLong'));\r\n }\r\n if (!(vm.selectedSzuloCsoport > 0)) {\r\n swal.showValidationError(gettextCatalog.getString('SelectParentUserGroup'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n var parentUserName = document.getElementById('parentUserName').value;\r\n var parentPassword = document.getElementById('parentPassword').value;\r\n dataservice.createLoginForParent(parentUserName, parentPassword, vm.fathermotherDataSwal, vm.athleteData.SportolokID, vm.selectedSzuloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('UserCreatedSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#parentGroupsDropDownSwal').ejDropDownList({\r\n dataSource: vm.SzuloCsoportok,\r\n value: vm.selectedSzuloCsoport,\r\n select: selectParentGroupDropDownSwal,\r\n width: '100%'\r\n });\r\n angular.element('#fatherMotherDropDownSwal').ejDropDownList({\r\n dataSource: vm.FatherMotherList,\r\n select: selectFatherMotherDropDownSwal,\r\n value: vm.fathermotherDataSwal,\r\n databound: fatherMotherSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.selectedSportoloCsoport = undefined;\r\n\r\n function selectAthleteGroupDropDownSwal(arg) {\r\n vm.selectedSportoloCsoport = arg.value;\r\n }\r\n\r\n function createLoginForAthlete() {\r\n var promises = [authenticationService.getRight('UJFELH')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext =\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\"><label>' + gettextCatalog.getString('Username') +\r\n '</label></div><div class=\"col-lg-6\"><input id=\"athleteUserName\" name=\"athleteUserName\" minlength=\"2\" maxlength=\"30\" style=\"width: 100%\"></div></div>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\"><label>' + gettextCatalog.getString('Password') +\r\n '</label></div><div class=\"col-lg-6\"><input type=\"password\" id=\"athletePassword\" name=\"athletePassword\" maxlength=\"10\" style=\"width: 100%\"></div></div>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\"><label>' + gettextCatalog.getString('PassordAgain') +\r\n '</label></div><div class=\"col-lg-6\"><input type=\"password\" id=\"athletePasswordAgain\" name=\"athletePasswordAgain\" minlength=\"5\" maxlength=\"10\" style=\"width: 100%\"></div></div>' +\r\n '<div class=\"row\" style=\"margin-top: 10px;\"><div class=\"col-lg-6\"><label>' + gettextCatalog.getString('SelectAthleteGroup') + '</label></div>' +\r\n '<div class=\"col-lg-6\"><input id=\"athleteGroupsDropDownSwal\" ej-dropdownlist></div></div>';\r\n swal({\r\n title: gettextCatalog.getString('CreateLoginForAthlete'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n var athleteUserName = document.getElementById('athleteUserName').value;\r\n var athletePassword = document.getElementById('athletePassword').value;\r\n var athletePasswordAgain = document.getElementById('athletePasswordAgain').value;\r\n var preConfOk = true;\r\n return new Promise(function (resolve) {\r\n if (!athletePassword || athletePassword.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtLeast5CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athletePassword.length > 10) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordMustBeAtMost10CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athletePassword != athletePasswordAgain) {\r\n swal.showValidationError(gettextCatalog.getString('PasswordFieldsMustMatch'));\r\n preConfOk = false;\r\n }\r\n if (!athleteUserName || athleteUserName.length < 5) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtLeast5CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (athleteUserName.length > 30) {\r\n swal.showValidationError(gettextCatalog.getString('UsernameMustBeAtMost10CharactersLong'));\r\n preConfOk = false;\r\n }\r\n if (!vm.selectedSportoloCsoport) {\r\n swal.showValidationError(gettextCatalog.getString('SelectAthleteUserGroup'));\r\n preConfOk = false;\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirmed) {\r\n if (isConfirmed.value) {\r\n var athleteUserName = document.getElementById('athleteUserName').value;\r\n var athletePassword = document.getElementById('athletePassword').value;\r\n dataservice.createLoginForAthlete(athleteUserName, athletePassword, vm.athleteData.SportolokID, vm.selectedSportoloCsoport).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('UserCreatedSuccessfully'));\r\n activate();\r\n }\r\n });\r\n }\r\n });\r\n angular.element('#athleteGroupsDropDownSwal').ejDropDownList({\r\n dataSource: vm.SportoloCsoportok,\r\n value: vm.selectedSportoloCsoport,\r\n select: selectAthleteGroupDropDownSwal,\r\n width: '100%'\r\n });\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n vm.sexDatabound = function () {\r\n $timeout(function () {\r\n $('#gender').ejDropDownList('selectItemByValue', vm.sexNum);\r\n }, 100);\r\n };\r\n\r\n function initAthleteDatas() {\r\n if (!vm.athleteData.currentUserCanModifyAthlete) {\r\n vm.allowEdit = false;\r\n log.successMsg(gettextCatalog.getString('AthleteDatasheetIsReadyOnly'));\r\n } else {\r\n vm.allowEdit = true;\r\n }\r\n if (vm.athleteData.Aktiv) {\r\n vm.SPORTBELEPTET = false;\r\n vm.SPORTKILEPTET = true;\r\n vm.displayButtons = true;\r\n } else {\r\n vm.SPORTBELEPTET = true;\r\n vm.SPORTKILEPTET = false;\r\n vm.displayButtons = false;\r\n }\r\n\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) {\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee');\r\n } else {\r\n vm.feeOfEducationValue = gettextCatalog.getString('EducationFee');\r\n }\r\n\r\n if (vm.athleteData.FerfiB) {\r\n vm.sexNum = 1;\r\n } else {\r\n vm.sexNum = -1;\r\n }\r\n //angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', vm.feeOfEducationValue);\r\n $timeout(function () {\r\n if (vm.athleteData.MasodlagosSzakosztalyEdzoId > 0) {\r\n vm.isSecondCoach = true;\r\n if (vm.UJEDZVALT) {\r\n vm.isSecondCoachChange = true;\r\n }\r\n } else {\r\n vm.isSecondCoach = false;\r\n vm.isSecondCoachChange = false;\r\n getSecondSections(); // show dropDown and get datas\r\n }\r\n if (vm.athleteData.FenykepUt === 'avatar_2x.png') {\r\n vm.photoUrl = vm.noImgUrl;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.athleteData.FenykepUt;\r\n }\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n function save() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO || vm.SZULO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.athleteData.UgyesebbLab = vm.athleteData.UgyesebbLabT;\r\n vm.athleteData.UgyesebbKez = vm.athleteData.UgyesebbKezT;\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n angular.element('#accordion').ejAccordion('expandAll');\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n vm.athleteData.TAJSzam = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n modifyAthlete();\r\n }\r\n }\r\n\r\n function modifyAthlete() {\r\n var parameters = {\r\n naptol: vm.feeOfEducationDataStart,\r\n kivSportolo: vm.athleteData.SportolokID,\r\n csakUjak: 0,\r\n fizModValtas: 1\r\n };\r\n\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO || vm.SZULO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.athleteData.FenykepUt = angular.element('#fileName').val();\r\n vm.athleteData.Fenykep = vm.cropper.croppedImage;\r\n } else if (vm.photoUrl === vm.noImg) {\r\n vm.athleteData.fileName = 'avatar_2x.png';\r\n vm.athleteData.Fenykep = null;\r\n } else {\r\n vm.fileName = vm.athleteData.FenykepUt;\r\n }\r\n\r\n var dsiTime = new Date(vm.athleteData.DSITagsagKezdete);\r\n\r\n if (dsiTime.getTime() > new Date()) {\r\n swal({\r\n title: gettextCatalog.getString('DateError'),\r\n text: gettextCatalog.getString('TheMemberOfDSIDateLateThenNow'),\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n if (vm.athleteData.MasodlagosSzakosztaly > 0) {\r\n if (vm.athleteData.MasodlagosKorcsoport > 0) {\r\n if (!(vm.athleteData.MasodlagosSzakosztalyEdzoId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n }\r\n dataservice.modifyAthlete(vm.athleteData)\r\n .then(function (retval) {\r\n if (retval.retValue) {\r\n if (parameters.naptol) {\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n }\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: gettextCatalog.getString('SaveAthleteSuccess'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n if (!(vm.SPORTOLO || vm.SZULO)) {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $rootScope.back();\r\n }\r\n }\r\n });\r\n } else {\r\n var message = gettextCatalog.getString(retval.message) + ' ' + gettextCatalog.getString(retval.error);\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: message,\r\n type: 'error',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: true\r\n }).then(\r\n function (isConfirm) {\r\n if (isConfirm.value) {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n if (!(vm.MODSPORTOLO || vm.SPORTOLO)) {\r\n log.permissionError();\r\n return;\r\n }\r\n\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.athleteData.Neme == 'Férfi' ? 'male' : 'female';\r\n vm.athleteData.fileName = null;\r\n vm.fileName = null;\r\n vm.athleteData.FenykepUt = 'ath_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.athleteData.FenykepUt;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.athleteData.JelenlegiEdzo)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n }\r\n }\r\n\r\n function sectionSelect() {\r\n getAgeGroups();\r\n }\r\n\r\n function getSecondSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // for (var i = 0; i < data.itemsList.length; i++) {\r\n // if (data.itemsList[i].value === vm.athleteData.IdSzakosztaly) {\r\n // data.itemsList.splice(i, 1);\r\n // }\r\n //\r\n // }\r\n vm.secondSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondSectionSelect(selectedSection) {\r\n vm.athleteData.MasodlagosSzakosztaly = selectedSection.value;\r\n getSecondAgeGroups();\r\n RefreshClothes();\r\n }\r\n\r\n function getSecondCoacheList() {\r\n return dataservice.coachDropDownList(vm.athleteData.MasodlagosSzakosztaly, vm.athleteData.MasodlagosKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondCoachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosSzakosztalyEdzoId);\r\n }\r\n }\r\n\r\n function selectSecondCoachBtn() {\r\n vm.athleteData.ModifyCoach = 2;\r\n paramHelper.setParams([\r\n {'athleteTransfer.athleteData': vm.athleteData},\r\n {'previousState': 'athletes.athletesManagement.athleteModify.dataSheet'}\r\n ]);\r\n $state.go('settings.athleteTransfer');\r\n }\r\n\r\n function changeSecondAgeGroup() {\r\n paramHelper.setParams([{\r\n 'ageGroupChange.athleteData': vm.athleteData,\r\n 'ageGroupChange.which': 2\r\n }]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getSecondAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.MasodlagosSzakosztaly)\r\n .then(function (data) {\r\n vm.secondAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondAgeGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupSelect(args) {\r\n vm.athleteData.MasodlagosKorcsoport = args.value;\r\n getSecondCoacheList();\r\n }\r\n\r\n function changeAgeGroup() {\r\n paramHelper.setParams([{\r\n 'ageGroupChange.athleteData': vm.athleteData,\r\n 'ageGroupChange.which': 1,\r\n 'ageGroupChange.backPath': 'athletesManagement.athleteModify'\r\n }]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.IdSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroupId = args.value;\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.IdSzakosztaly) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n\r\n function selectCoachBtn() {\r\n vm.athleteData.ModifyCoach = 1;\r\n paramHelper.setParams([\r\n {'athleteTransfer.athleteData': vm.athleteData},\r\n {'previousState': 'athletes.athletesManagement.athleteModify.dataSheet'}\r\n ]);\r\n $state.go('settings.athleteTransfer');\r\n }\r\n\r\n function sexSelect(arg) {\r\n vm.athleteData.FerfiB = arg.value === 1;\r\n if (vm.athleteData.FerfiB) {\r\n vm.athleteData.Neme = 'Férfi';\r\n } else {\r\n vm.athleteData.Neme = 'Nő';\r\n }\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.athleteData.Testmagassag = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.athleteData.Testsuly = args.value;\r\n }\r\n\r\n function betterHandSelect(arg) {\r\n vm.athleteData.UgyesebbKezT = arg.value;\r\n vm.athleteData.UgyesebbKez = arg.selectedText;\r\n }\r\n\r\n function betterFootSelect(arg) {\r\n vm.athleteData.UgyesebbLabT = arg.value;\r\n vm.athleteData.UgyesebbLab = arg.selectedText;\r\n }\r\n\r\n function changeFeeOfEducationBtn() {\r\n if (!vm.ModFizetesMod) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.NINCSOKTDIJ && vm.athleteData.Tagdijas) {\r\n log.errorMsg(gettextCatalog.getString('CannotChangeFromSportServiceFeeToEducationFee'));\r\n return;\r\n }\r\n vm.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n var HTMLarr = [];\r\n HTMLarr[1] = '<p id=\"datepickValidText\" style=\"color: #a94442;\" class=\"ng-hide\" ng-show=\"vm.visible\"><label>'; // It is working with Angular\r\n HTMLarr[2] = gettextCatalog.getString('PleasGiveTheStartMonth'); // Kérlek a sportszolgáltatási díj kezdő hónapját add meg!\r\n HTMLarr[3] = '</label><br></p><div class=\"control\"><label>';\r\n HTMLarr[4] = gettextCatalog.getString('SelectDate'); // Válaszd ki a szolgáltatás kezdő dátumát!\r\n HTMLarr[5] = ' ';\r\n HTMLarr[6] = gettextCatalog.getString('ThechangeWillStartInTheNextMonth'); // A változtatás csak a jövő hónaptól lesz érvényes;\r\n HTMLarr[7] = '<br></label></div><div style=\"padding-left:30%\"><input class=\"form-group cts-form-group\" id=\"datepick\" type=\"text\" style=\"margin-bottom: 1em\"></div>';\r\n var HTMLtext = HTMLarr.join('');\r\n swal({\r\n title: gettextCatalog.getString('ReallyDoYouchangeThefeeMode'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Change'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function preConfirm() {\r\n vm.feeOfEducationDataStart = angular.element('#datepick').data('ejDatePicker').getValue();\r\n if (!vm.feeOfEducationDateOk) {\r\n swal.showValidationError(gettextCatalog.getString('SelectDateError'));\r\n return false;\r\n }\r\n return true;\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) { // Ha Tagdijas másnéven Sportszolg dijas\r\n vm.athleteData.Tagdijas = false;\r\n vm.feeOfEducationValue = gettextCatalog.getString('EducationFee'); // Csere Okt díjasra\r\n } else { // sportoszolg díjas\r\n vm.athleteData.Tagdijas = true;\r\n vm.feeOfEducationValue = gettextCatalog.getString('SportServiceFee'); // csere Tagdijasra, Sportszolg dijasasra\r\n }\r\n $scope.$apply();\r\n // The date value modified to valid value, soh info about it\r\n return true; // bind to swal 'Modified'\r\n } else {\r\n swal(gettextCatalog.getString('notChangedPayMode') + ' ' + getTagDijText());\r\n }\r\n }, function () {\r\n });\r\n // Set DatePicker\r\n var now = new Date();\r\n var current;\r\n if (now.getMonth() == 11) {\r\n current = new Date(now.getFullYear() + 1, 0, 1);\r\n } else {\r\n current = new Date(now.getFullYear(), now.getMonth() + 1, 1);\r\n }\r\n vm.feeOfEducationDateOk = true;\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: function (args) {\r\n // Get current date\r\n var currentDate = new Date();\r\n var selectedDate = new Date(args.value);\r\n if (selectedDate.getFullYear() < currentDate.getFullYear()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else if (selectedDate.getMonth() <= currentDate.getMonth()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else if (selectedDate.getDate() > currentDate.getDate()) {\r\n // Error, no correct date\r\n vm.feeOfEducationDateOk = false;\r\n } else {\r\n // Ok, the date is correct\r\n vm.feeOfEducationDateOk = true;\r\n vm.feeOfEducationDate = new Date(args.value);\r\n vm.feeOfEducationDate = vm.feeOfEducationDate.toLocaleDateString().replace(/\\s/g, '').replace(/\\./g, '-').slice(0, -1);\r\n }\r\n },\r\n value: current\r\n });\r\n\r\n // Get the current selected text\r\n function getTagDijText() {\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n // Oktatási díj = 0 - Sportszolgáltatási díj = 1;\r\n if (vm.athleteData.Tagdijas) {\r\n return gettextCatalog.getString('SportServiceFee');\r\n } else {\r\n return gettextCatalog.getString('EducationFee');\r\n }\r\n }\r\n }\r\n\r\n function selectSchools() {\r\n if (vm.visibleSchooSelectlGrid) {\r\n angular.element('#hidedContent').css('height', '0px');\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '100%');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function schoolGridSelectedRow(args) {\r\n vm.schoolGridSelectedRowData = args.data;\r\n vm.athleteData.IskolaEvfolyam = vm.schoolGridSelectedRowData.IskolaEvfolyam; // String\r\n vm.athleteData.IskolaNeve = vm.schoolGridSelectedRowData.IskolaNeve; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaVaros = vm.schoolGridSelectedRowData.IskolaVaros; // String\r\n vm.athleteData.IskolaUtca = vm.schoolGridSelectedRowData.IskolaUtca; // String\r\n vm.athleteData.IskolaHazszam = vm.schoolGridSelectedRowData.IskolaHazszam; // String\r\n vm.athleteData.IskolaOsztaly = vm.schoolGridSelectedRowData.IskolaOsztaly; // String\r\n vm.athleteData.IskolaIgazgatoNeve = vm.schoolGridSelectedRowData.IskolaIgazgatoNeve; // String\r\n vm.athleteData.TestneveloNeve = '';\r\n vm.athleteData.TestneveloElerhetosege = '';\r\n vm.athleteData.TestneveloEmail = '';\r\n vm.athleteData.OsztalyFonokNeve = '';\r\n vm.athleteData.OfTel = '';\r\n vm.athleteData.OfEmail = '';\r\n $scope.$apply();\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '0px');\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function anthropometry() {\r\n if (!vm.MEGTANTFELM) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([{'anthropometry.sportoloId': vm.athleteData.SportolokID}]);\r\n $state.go('athletes.athletesManagement.anthropometry');\r\n }\r\n }\r\n\r\n function saveExitAthletes(firstSection) {\r\n vm.datas = {};\r\n vm.athletesId = [];\r\n vm.athletesId.push(vm.athleteData.SportolokID);\r\n vm.datas.athletesId = vm.athletesId;\r\n vm.datas.selectedExitDate = vm.selectedExitDate;\r\n if (angular.isUndefined(vm.noteExitText)) {\r\n vm.noteExitText = '----';\r\n }\r\n vm.datas.noteExitText = vm.noteExitText;\r\n vm.datas.firstSection = firstSection;\r\n dataservice.saveExitAthletes(vm.datas)\r\n .then(function (answer) {\r\n // swal() kiírni az eredményt\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok'\r\n });\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n /*\r\n if (answer.value) {\r\n swal(gettextCatalog.getString('SuccesfulExitAthleteResult'), gettextCatalog.getString('SuccesfulExitAthlete'), 'success');\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport}\r\n ]);\r\n $state.go('athletes.athletesManagement.athletesList');\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('SuccesfulExitAthleteResult'),\r\n text: gettextCatalog.getString('FinallyExitAthlete') + ': ' + answer.message,\r\n type: 'warning',\r\n confirmButtonText: 'Ok'\r\n });\r\n }\r\n */\r\n $state.reload();\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n return dataservice.getSystemSettings(arg).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function getUsersBelongingToAthlete(sportoloid) {\r\n return dataservice.getUsersBelongingToAthlete(sportoloid).then(function (response) {\r\n gridUsersOfAthlete.dataSource = response.itemsList;\r\n gridUsersOfAthlete.refresh();\r\n });\r\n }\r\n\r\n function getAthleteMoveStory(id) {\r\n return dataservice.getAthleteMoveStory(id).then(function (response) {\r\n vm.coachListGridData = response.itemsList;\r\n vm.coachListGridData = $filter('dateStringFilter')(vm.coachListGridData, 'Felvitel');\r\n vm.coachListGridData = $filter('dateStringFilter')(vm.coachListGridData, 'IdoszakVege');\r\n grid123.dataSource = vm.coachListGridData;\r\n });\r\n }\r\n\r\n function clearSecondSection() {\r\n vm.athleteData.MasodlagosSzakosztaly = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.secondAgeGroupList = [];\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondSectionDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondAgeGroup() {\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondAgeGroupDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondCoach() {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n $('#secondCoachNameDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function exitingSecondSectionBtn() {\r\n if (!vm.allowEdit) {\r\n swal({\r\n title: gettextCatalog.getString('AthleteDatasheetIsReadyOnly'),\r\n type: 'warning',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n });\r\n return;\r\n }\r\n vm.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n var HTMLarr = [];\r\n\r\n HTMLarr[0] = '<p id=\"datepickValidText\" style=\"color: #a94442;\" class=\"ng-hide\" ng-show=\"vm.visible\"><label>'; // It is working with Angular\r\n HTMLarr[1] = gettextCatalog.getString('PleasGiveTheStartMonthgoneAthlete'); // Kérlek a sportszolgáltatási díj kezdő hónapját add meg!\r\n HTMLarr[2] = '</label><br></p><div style=\"margin-bottom: 10px; width: 95%;\" ><label>';\r\n HTMLarr[3] = gettextCatalog.getString('SelectDategoneAthlete'); // Válaszd ki a kiléptetés dátumát!\r\n HTMLarr[4] = '<br></label></div><div style=\"margin-left: 30%;\"><input id=\"datepick\" type=\"text\"></div>';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: gettextCatalog.getString(vm.athleteData.Nev + ' ' + gettextCatalog.getString('ExitAthleteSecondSection')),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n allowOutsideClick: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Exiting'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n preConfirm: function (Exiting) {\r\n if (Exiting.value) {\r\n var preConfOk = false;\r\n vm.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n vm.noteExitText = angular.element('#noteTextArea').val();\r\n checkExitDate(vm.selectedExitDate).then(function () {\r\n return new Promise(function (resolve) {\r\n if (vm.selectedExitDate === null || !vm.exitAthleteDateOk) {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (vm.noteExitText === null || vm.noteExitText === '') {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText'));\r\n } else {\r\n preConfOk = true;\r\n }\r\n resolve();\r\n });\r\n });\r\n }\r\n },\r\n closeOnCancel: false\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveExitAthletes(false);\r\n swal.close();\r\n return true;\r\n } else {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notExitAthlete'), 'error');\r\n }\r\n });\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: function (args) {\r\n checkDade(args.value);\r\n }\r\n });\r\n }\r\n\r\n function checkExitDate(args) {\r\n return $q(function () {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n });\r\n }\r\n\r\n function checkDade(args) {\r\n var currentDate = new Date();\r\n vm.selectedExitDate = new Date(args);\r\n vm.exitAthleteDateOk = (vm.selectedExitDate <= currentDate);\r\n vm.exitAthleteDateOk = true;\r\n }\r\n\r\n function openCoach(coachId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': coachId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function schoolNameChanged() {\r\n if (vm.athleteData.IskolaNeve && vm.athleteData.IskolaNeve.length > 0) {\r\n dataservice.getGymTeachers(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.gymTeacherDatasource = data.itemsList;\r\n });\r\n dataservice.getClassMasters(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.classMasterDatasource = data.itemsList;\r\n });\r\n } else {\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n }\r\n }\r\n\r\n vm.selectOf = selectOf;\r\n\r\n function selectOf(arg) {\r\n for (var i = 0; i < vm.classMasterDatasource.length; i++) {\r\n if (arg.value == vm.classMasterDatasource[i].value) {\r\n dataservice.getClassMasterContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.OfTel = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.OfEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n vm.selectTesiTanar = selectTesiTanar;\r\n\r\n function selectTesiTanar(arg) {\r\n for (var i = 0; i < vm.gymTeacherDatasource.length; i++) {\r\n if (arg.value == vm.gymTeacherDatasource[i].value) {\r\n dataservice.getGymTeacherContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.TestneveloElerhetosege = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.TestneveloEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n function getParentNames() {\r\n dataservice.getParentNames().then(function (data) {\r\n for (var i = 0; i < data.data.father.length; i++) {\r\n vm.fatherNames.push({value: data.data.father[i], text: data.data.father[i]});\r\n }\r\n for (var i = 0; i < data.data.mother.length; i++) {\r\n vm.motherNames.push({value: data.data.mother[i], text: data.data.mother[i]});\r\n }\r\n });\r\n }\r\n\r\n vm.selectMother = selectMother;\r\n\r\n function selectMother(arg) {\r\n if (arg && arg.value.length > 0) {\r\n var closeidx = arg.value.indexOf(')');\r\n // if (arg.value.length-1 > closeidx){return;}\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1 && !(arg.value.length - 1 > closeidx)) {\r\n getParentData('mother', arg.value, arg.value.substring(0, idx - 1));\r\n // vm.athleteData.AnyjaNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n vm.selectFather = selectFather;\r\n\r\n function selectFather(arg) {\r\n if (arg && arg.value.length > 0) {\r\n var closeidx = arg.value.indexOf(')');\r\n // if (arg.value.length-1 > closeidx){return;}\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1 && !(arg.value.length - 1 > closeidx)) {\r\n getParentData('father', arg.value, arg.value.substring(0, idx - 1));\r\n // vm.athleteData.SzuloNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n function getParentData(parent, arg, szuloNeve) {\r\n dataservice.getParentDataPOST(parent, arg).then(function (data) {\r\n // Szülő kiválasztásakor felajánljuk hogy csatolhatja már meglévő szülő userhez a sportolót\r\n if (data.data.userid > 0) {\r\n swal({\r\n title: gettextCatalog.getString('Do you want to assign the athlete to the selected parent user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.assignAthleteToParentUser(data.data.userid, vm.athleteData.SportolokID).then(function (arg) {\r\n if (arg.data > 0) {\r\n log.successMsg(gettextCatalog.getString('AthleteAssignedToUserSuccessfully'));\r\n }\r\n });\r\n }\r\n });\r\n }\r\n if (parent == 'father') {\r\n $('#fatherName').ejAutocomplete('clearText');\r\n $('#fatherName').ejAutocomplete({multiSelectMode: ej.MultiSelectMode.None, value: szuloNeve});\r\n if (data.data) {\r\n vm.athleteData.Szulo2Elerhetosege = '';\r\n vm.athleteData.ApaEmail = '';\r\n vm.athleteData.ApjaTestmagassaga = '';\r\n vm.athleteData.ApjaFoglalkozasa = '';\r\n vm.athleteData.ApaMunkahely = '';\r\n vm.athleteData.SportoloiMultApa = '';\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.ApaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.ApjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.ApjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.ApaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultApa = data.data.sportpast;\r\n }\r\n }\r\n } else if (parent == 'mother') {\r\n $('#motherName').ejAutocomplete('clearText');\r\n $('#motherName').ejAutocomplete({multiSelectMode: ej.MultiSelectMode.None, value: szuloNeve});\r\n if (data.data) {\r\n vm.athleteData.Szulo1Elerhetosege = '';\r\n vm.athleteData.AnyaEmail = '';\r\n vm.athleteData.AnyjaTestmagassaga = '';\r\n vm.athleteData.AnyjaFoglalkozasa = '';\r\n vm.athleteData.AnyaMunkahely = '';\r\n vm.athleteData.SportoloiMultAnya = '';\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.AnyaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.AnyjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.AnyjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.AnyaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultAnya = data.data.sportpast;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.dataSheet')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.dataSheet',\r\n config: {\r\n url: '/dataSheet',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.html',\r\n controller: 'AthleteModifyDataSheetController',\r\n controllerAs: 'vm',\r\n title: 'AthleteModifyDataSheet'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.files')\r\n .controller('Files2Controller', Files2Controller);\r\n\r\n function Files2Controller(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, DOMAIN) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = $rootScope.title + gettextCatalog.getString('Contracts');\r\n vm.title = gettextCatalog.getString('Contracts');\r\n\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#fitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n vm.selectedRow = -1;\r\n vm.deleteFile = deleteFile;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {browse: gettextCatalog.getString('ChooseFile'), upload: gettextCatalog.getString('UploadFile'), cancel: gettextCatalog.getString('CancelUpload')},\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {title: gettextCatalog.getString('UploadedFilesTitle'), name: gettextCatalog.getString('FileName'), size: gettextCatalog.getString('FileSize'), status: gettextCatalog.getString('FileStatus')},\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls,.mp4,.avi',\r\n complete: function () {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles();\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc, .docx, .pdf, .xls, .mp4, .avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: vm.tipus, tablaId: vm.tablaId};\r\n }\r\n });\r\n\r\n var promises = [paramHelper.getParams([], ['files.tipus', 'files.tablaId', 'weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.trainingPlanId', 'weeklyTrainingPlan.edzoNev', 'weeklyTrainingPlan.szakosztalyNev', 'weeklyTrainingPlan.korosztalyNev'])];\r\n\r\n return $q.all(promises).then(function (results) {\r\n if (results[0]['files.tipus'] !== undefined) {\r\n vm.tipus = results[0]['files.tipus'];\r\n }\r\n if (results[0]['files.tablaId'] !== undefined) {\r\n vm.tablaId = results[0]['files.tablaId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.edzoId'] !== undefined) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.edzoNev'] !== undefined) {\r\n vm.coachName = results[0]['weeklyTrainingPlan.edzoNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyId'] !== undefined) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.szakosztalyNev'] !== undefined) {\r\n vm.sectionName = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyId'] !== undefined) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.korosztalyNev'] !== undefined) {\r\n vm.ageGroupName = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n }\r\n if (results[0]['weeklyTrainingPlan.ev'] !== undefined) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n }\r\n getFiles();\r\n });\r\n }\r\n\r\n function getFiles() {\r\n dataservice.getFilesList(vm.tipus, vm.tablaId).then(\r\n function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.data = data.itemsList;\r\n });\r\n }\r\n\r\n function deleteFile() {\r\n var row = grid.getSelectedRecords()[0];\r\n if (!row) {\r\n vm.selectedRow = -1;\r\n } else {\r\n vm.selectedRow = row.Id;\r\n }\r\n if (vm.selectedRow < 0) {\r\n log.errorMsg('SelectFile');\r\n return;\r\n }\r\n\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected file?'),\r\n text: gettextCatalog.getString('You will not be able to recover it!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this file'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteFiles(vm.selectedRow).then(\r\n function () {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n getFiles();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.files')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.files',\r\n config: {\r\n url: '/files',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/files/files.html',\r\n controller: 'Files2Controller',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health',\r\n config: {\r\n title: 'Health',\r\n url: '/health',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/health.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.healthList')\r\n .controller('HealthListController', HealthListController);\r\n\r\n function HealthListController(log, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('HealthList');\r\n\r\n // Create variables\r\n vm.Id = null;\r\n vm.selectedGridRow = {};\r\n vm.dateFrom = new Date('1900-01-01');\r\n vm.dateTo = new Date();\r\n vm.beginedit = false;\r\n vm.dataTmp = '';\r\n vm.athleteName = '';\r\n vm.athleteId = '';\r\n vm.athleteSocialSecurity = '';\r\n vm.athleteBirthDate = '';\r\n vm.pageSize = 12;\r\n vm.gridHealthDatas = [];\r\n vm.allowAddNew = false;\r\n\r\n vm.columns = [\r\n {\r\n field: 'Id',\r\n isPrimaryKey: true,\r\n isIdentity: true,\r\n visible: false\r\n },\r\n {\r\n field: 'Mettol',\r\n headerText: gettextCatalog.getString('From'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Meddig',\r\n headerText: gettextCatalog.getString('To'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n //databound: typeDataBound,\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'AlTipus',\r\n headerText: gettextCatalog.getString('SubType'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Leiras',\r\n headerText: gettextCatalog.getString('Description'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Kezeles',\r\n headerText: gettextCatalog.getString('Therapy'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Letrehozas',\r\n headerText: gettextCatalog.getString('CreatedDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Modositas',\r\n headerText: gettextCatalog.getString('ModifiedDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szerkesztes',\r\n headerText: gettextCatalog.getString('Edit'),\r\n template: '#healteditcolumnTemplate',\r\n textAlign: 'center',\r\n width: 90\r\n }\r\n ];\r\n vm.editText = gettextCatalog.getString('Edit');\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n\r\n // Public functions\r\n vm.getHealthDatas = getHealthDatas;\r\n vm.goToNewHealthEvent = goToNewHealthEvent;\r\n vm.goToModifyHealthEvent = goToModifyHealthEvent;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n vm.backToDatasheet = backToDatasheet;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['athleteModify.sportoloNev', 'athleteModify.sportoloId', 'athleteModify.sportoloTaj', 'athleteModify.sportoloSzuletesiIdo', 'athleteModify.aktivSportolo']),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n\r\n $timeout(function () {\r\n vm.athleteId = results[0]['athleteModify.sportoloId'];\r\n vm.athleteName = results[0]['athleteModify.sportoloNev'];\r\n vm.athleteSocialSecurity = results[0]['athleteModify.sportoloTaj'];\r\n vm.allowAddNew = results[0]['athleteModify.aktivSportolo'];\r\n vm.athleteBirthDate = results[0]['athleteModify.sportoloSzuletesiIdo'];\r\n vm.athleteBirthDate = $filter('dateStringFilter')(vm.athleteBirthDate);\r\n getHealthDatas();\r\n }, 0);\r\n });\r\n }\r\n\r\n function getHealthDatas(from, to) {\r\n if (from) {\r\n vm.dateFrom = from;\r\n }\r\n if (to) {\r\n vm.dateTo = to;\r\n }\r\n if (vm.dateFrom === null) {\r\n vm.dateFrom = Date();\r\n }\r\n if (vm.dateTo === null) {\r\n vm.dateTo = Date();\r\n }\r\n\r\n dataservice.GetHealth(vm.athleteId, vm.dateFrom, vm.dateTo).then(function (data) {\r\n vm.dataTmp = data.itemsList;\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Letrehozas');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Meddig');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Mettol');\r\n vm.dataTmp = $filter('dateStringFilter')(vm.dataTmp, 'Modositas');\r\n\r\n vm.dataTmp.forEach(function (element) {\r\n element.Tipus = element.Tipus;\r\n });\r\n\r\n vm.gridHealthDatas = vm.dataTmp;\r\n grid.dataSource = vm.dataTmp;\r\n });\r\n }\r\n\r\n function dateToChange(args) {\r\n getHealthDatas(vm.dateFrom, args.value);\r\n }\r\n\r\n function dateFromChange(args) {\r\n getHealthDatas(args.value, vm.dateTo);\r\n }\r\n\r\n function goToNewHealthEvent() {\r\n paramHelper.setParams([{\r\n 'newHealthAthleteId': vm.athleteId,\r\n 'newHealthAthleteName': vm.athleteName,\r\n 'newHealthAthleteSocialSecurity': vm.athleteSocialSecurity,\r\n 'newHealthAthleteBirthDate': vm.athleteBirthDate,\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.newHealthEvent');\r\n }\r\n\r\n function goToModifyHealthEvent(id) {\r\n if (!vm.allowAddNew) {\r\n return;\r\n }\r\n vm.selectedGridRow = ej.DataManager(vm.gridHealthDatas).executeLocal(new ej.Query().where('Id', 'equal', id))[0];\r\n paramHelper.setParams([{\r\n 'mofifyHealthAthleteId': vm.athleteId,\r\n 'mofifyHealthAthleteName': vm.athleteName,\r\n 'mofifyHealthAthleteSocialSecurity': vm.athleteSocialSecurity,\r\n 'mofifyHealthAthleteBirthDate': vm.athleteBirthDate,\r\n 'mofifyHealthId': vm.selectedGridRow.Id,\r\n 'mofifyHealthKezeles': vm.selectedGridRow.Kezeles,\r\n 'mofifyHealthLeiras': vm.selectedGridRow.Leiras,\r\n 'mofifyHealthLetrehozas': vm.selectedGridRow.Letrehozas,\r\n 'mofifyHealthMettol': vm.selectedGridRow.Mettol,\r\n 'mofifyHealthMeddig': vm.selectedGridRow.Meddig,\r\n 'mofifyHealthTipus': vm.selectedGridRow.Tipus,\r\n 'mofifyHealthAlTipus': vm.selectedGridRow.AlTipus,\r\n 'fromState': 'healthList',\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.modifyHealthEvent');\r\n }\r\n\r\n function backToDatasheet() {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.healthList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.healthList',\r\n config: {\r\n url: '/healthList',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/healthList/healthList.html',\r\n controller: 'HealthListController',\r\n controllerAs: 'vm',\r\n title: 'HealthList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent')\r\n .controller('modifyHealthEventController', ModifyHealthEventController);\r\n\r\n function ModifyHealthEventController(log, logger, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ModifyHealthEvent');\r\n // Create variables\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n vm.documents = '';\r\n vm.params = {\r\n Id: null,\r\n SportoloId: null,\r\n Mettol: null,\r\n Meddig: null,\r\n Tipus: null,\r\n AlTipus: null,\r\n Leiras: null,\r\n Kezeles: null\r\n };\r\n\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.SubType = [];\r\n\r\n // Public functions\r\n vm.saveDatas = saveDatas;\r\n vm.fileUpload = fileUpload;\r\n vm.MainTypeSelected = MainTypeSelected;\r\n\r\n function MainTypeSelected(arg) {\r\n var mainId = 0;\r\n vm.SubType = [];\r\n for (var i = 0; i < vm.healthMainType.length; i++) {\r\n if (vm.healthMainType[i].text === arg.value) {\r\n mainId = vm.healthMainType[i].value;\r\n }\r\n }\r\n dataservice.healthSubTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n if (response.itemsList[i].FotipusId === mainId) {\r\n vm.SubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].FotipusId,\r\n });\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Activate page\r\n activate();\r\n function activate() {\r\n $q.all([paramHelper.getParams([],\r\n [\r\n 'mofifyHealthId',\r\n 'mofifyHealthAthleteId',\r\n 'mofifyHealthAthleteName',\r\n 'mofifyHealthAthleteSocialSecurity',\r\n 'mofifyHealthAthleteBirthDate',\r\n 'mofifyHealthKezeles',\r\n 'mofifyHealthLeiras',\r\n 'mofifyHealthLetrehozas',\r\n 'mofifyHealthMettol',\r\n 'mofifyHealthMeddig',\r\n 'mofifyHealthTipus',\r\n 'mofifyHealthAlTipus'\r\n ]),\r\n\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n $timeout(function () {\r\n vm.params.Id = results[0]['mofifyHealthId'];\r\n vm.params.SportoloId = results[0]['mofifyHealthAthleteId'];\r\n vm.athleteName = results[0]['mofifyHealthAthleteName'];\r\n vm.athleteSocialSecurity = results[0]['mofifyHealthAthleteSocialSecurity'];\r\n vm.athleteBirthDate = results[0]['mofifyHealthAthleteBirthDate'];\r\n vm.params.Kezeles = results[0]['mofifyHealthKezeles'];\r\n vm.params.Leiras = results[0]['mofifyHealthLeiras'];\r\n vm.params.Mettol = results[0]['mofifyHealthMettol'];\r\n vm.params.Meddig = results[0]['mofifyHealthMeddig'];\r\n $('#MainType').ejAutocomplete({\r\n value: results[0]['mofifyHealthTipus']\r\n });\r\n vm.params.AlTipus = results[0]['mofifyHealthAlTipus'];\r\n }, 1);\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function fileUpload() {\r\n //TablaId = szerkSportolo.SportolokID, TablaNev = \"Sportolok\"\r\n paramHelper.setParams([{'files.tipus': 'HealthEvent'}, {'files.tablaId': vm.params.SportoloId}]);\r\n $state.go('other.files');\r\n }\r\n\r\n function saveDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n dataservice.modifyHealthData(vm.params)\r\n .then(function () {\r\n if (vm.params.Meddig) {\r\n var from = new Date(vm.params.Mettol);\r\n var to = new Date(vm.params.Meddig);\r\n if (from > to) {\r\n log.errorMsg(gettextCatalog.getString('DateToMustNotBeBeforeDateFrom'));\r\n return;\r\n }\r\n }\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n\r\n // meglévő adatlekérés\r\n getHealthMainTypes();\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({\r\n text: response.itemsList[i].Nev,\r\n value: response.itemsList[i].Id\r\n });\r\n }\r\n MainTypeSelected({value: vm.params.Tipus});\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.modifyHealthEvent')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.modifyHealthEvent',\r\n config: {\r\n url: '/modifyHealthEvent',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.html',\r\n controller: 'modifyHealthEventController',\r\n controllerAs: 'vm',\r\n title: 'ModifyHealthEventController'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent')\r\n .controller('newHealthEventController', NewHealthEventController);\r\n\r\n function NewHealthEventController(log, logger, $state, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('newHealthEvent');\r\n\r\n // Create variables\r\n vm.EGESZSMEGT = false;\r\n vm.EGESZSMOD = false;\r\n vm.documents = '';\r\n vm.params = {\r\n SportoloId: null,\r\n Mettol: null,\r\n Meddig: null,\r\n Tipus: null,\r\n AlTipus: null,\r\n Leiras: null,\r\n Kezeles: null\r\n };\r\n\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.SubType = [];\r\n // Public functions\r\n vm.saveDatas = saveDatas;\r\n vm.fileUpload = fileUpload;\r\n vm.MainTypeSelected = MainTypeSelected;\r\n\r\n function MainTypeSelected(arg) {\r\n var mainId = 0;\r\n vm.SubType = [];\r\n for (var i = 0; i < vm.healthMainType.length; i++) {\r\n if (vm.healthMainType[i].text === arg.value) {\r\n mainId = vm.healthMainType[i].value;\r\n }\r\n }\r\n for (var i = 0; i < vm.healthSubType.length; i++) {\r\n if (vm.healthSubType[i].value === mainId) {\r\n vm.SubType.push(vm.healthSubType[i]);\r\n vm.params.AlTipus = null;\r\n }\r\n }\r\n }\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['newHealthAthleteId', 'newHealthAthleteName', 'newHealthAthleteSocialSecurity', 'newHealthAthleteBirthDate']),\r\n authenticationService.getRight('EGESZSMEGT'),\r\n authenticationService.getRight('EGESZSMOD')])\r\n .then(function (results) {\r\n $timeout(function () {\r\n vm.params.SportoloId = results[0]['newHealthAthleteId'];\r\n vm.athleteName = results[0]['newHealthAthleteName'];\r\n vm.athleteSocialSecurity = results[0]['newHealthAthleteSocialSecurity'];\r\n vm.athleteBirthDate = results[0]['newHealthAthleteBirthDate'];\r\n }, 0);\r\n vm.EGESZSMEGT = results[1];\r\n vm.EGESZSMOD = results[2];\r\n\r\n if (!vm.EGESZSMEGT) {\r\n log.permissionError();\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n\r\n function fileUpload() {\r\n paramHelper.setParams([{'files.tipus': 'HealthEvent'}, {'files.tablaId': vm.params.SportoloId}]);\r\n $state.go('other.files');\r\n }\r\n\r\n getHealthMainTypes();\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({\r\n text: response.itemsList[i].Nev,\r\n value: response.itemsList[i].Id\r\n });\r\n }\r\n });\r\n }\r\n\r\n getHealthSubTypes();\r\n function getHealthSubTypes() {\r\n dataservice.healthSubTypesList()\r\n .then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthSubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].FotipusId,\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n } else {\r\n console.log('vm.params', vm.params);\r\n if (vm.params.Meddig) {\r\n var from = new Date(vm.params.Mettol);\r\n var to = new Date(vm.params.Meddig);\r\n if (from > to) {\r\n log.errorMsg(gettextCatalog.getString('DateToMustNotBeBeforeDateFrom'));\r\n } else {\r\n dataservice.saveHealthData(vm.params)\r\n .then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n } else {\r\n dataservice.saveHealthData(vm.params)\r\n .then(function () {\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.health.newHealthEvent')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.health.newHealthEvent',\r\n config: {\r\n url: '/newHealthEvent',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.html',\r\n controller: 'newHealthEventController',\r\n controllerAs: 'vm',\r\n title: 'newHealthEventController'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest')\r\n .controller('PerformanceMotivationTestController', PerformanceMotivationTestController);\r\n\r\n function PerformanceMotivationTestController($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('PerformanceMotivationTestQ1'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ2'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ3'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ4'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ5'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ6'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ7'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ8'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ9'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ10'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ11'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ12'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ13'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ14'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ15'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ16'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ17'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ18'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ19'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ20'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ21'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ22'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ23'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ24'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ25'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ26'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ27'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ28'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ29'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ30'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ31'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ32'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ33'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ34'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ35'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ36'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ37'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ38'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ39'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ40'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ41')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PerformanceMotivationTest');\r\n }\r\n });\r\n }\r\n\r\n function saveSurvey() {\r\n var hiba = false;\r\n if (vm.sportoloId) {\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n } else {\r\n hiba = true;\r\n }\r\n if (hiba) {\r\n log.errorMsg('SurveyNotFilled');\r\n } else {\r\n dataservice.savePerformanceMotivationSurvey(vm.sportoloId, vm.answers)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest',\r\n config: {\r\n url: '/performanceMotivationTest',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.html',\r\n controller: 'PerformanceMotivationTestController',\r\n controllerAs: 'vm',\r\n title: 'PerformanceMotivationTest'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation')\r\n .controller('PerformanceMotivationTestEvaluationController', PerformanceMotivationTestEvaluationController);\r\n\r\n function PerformanceMotivationTestEvaluationController($q, gettextCatalog, dataservice, paramHelper, log, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('PerformanceMotivationTestQ1'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ2'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ3'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ4'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ5'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ6'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ7'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ8'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ9'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ10'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ11'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ12'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ13'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ14'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ15'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ16'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ17'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ18'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ19'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ20'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ21'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ22'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ23'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ24'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ25'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ26'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ27'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ28'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ29'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ30'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ31'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ32'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ33'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ34'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ35'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ36'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ37'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ38'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ39'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ40'),\r\n gettextCatalog.getString('PerformanceMotivationTestQ41')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId', 'psychology.mode', 'athleteModify.sportoloNev'], ['psychology.surveyPassword']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PerformanceMotivationTestEvaluation');\r\n vm.edit = results[0]['psychology.mode'] === 'edit';\r\n if (vm.edit) {\r\n getSurveyProtected();\r\n } else {\r\n getSurvey();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSurvey() {\r\n return dataservice.getPerformanceMotivationSurvey(vm.surveyId, true)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n });\r\n }\r\n\r\n function getSurveyProtected() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n inputValue: vm.password,\r\n closeOnConfirm: false\r\n\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n return dataservice.getPerformanceMotivationSurvey(vm.surveyId, false)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n }\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.savePerformanceMotivationSurveyEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $rootScope.back();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation',\r\n config: {\r\n url: '/performanceMotivationTestEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.html',\r\n controller: 'PerformanceMotivationTestEvaluationController',\r\n controllerAs: 'vm',\r\n title: 'performanceMotivationTestEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest')\r\n .controller('PieronTestController', PieronTestController);\r\n\r\n function PieronTestController($q, gettextCatalog, dataservice, paramHelper, log, $state, $interval, $rootScope, $scope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.time = 10;\r\n vm.timeLeftMinutes = 10;\r\n vm.timeLeftSeconds = 0;\r\n vm.lastClicked = {index1: -1, index2: -1, time: Date.Now};\r\n vm.started = false;\r\n vm.finished = false;\r\n vm.questions = [\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 6\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'}\r\n ],\r\n [// 7\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 8\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 9\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 10\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 11\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 12\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 13\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 14\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 15\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 16\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 17\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 18\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 19\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 20\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'}\r\n ]\r\n ];\r\n\r\n vm.answers = [\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 1, 1, 0, 0, 1, 1, 0, 0, 1],\r\n [1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0]\r\n ];\r\n vm.answersByMinutes = [];\r\n\r\n vm.stopInterval = stopInterval;\r\n vm.startInterval = startInterval;\r\n vm.clicked = clicked;\r\n vm.timeChanged = timeChanged;\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PieronTest');\r\n }\r\n });\r\n }\r\n\r\n function saveSurvey() {\r\n dataservice.savePieronTest(vm.sportoloId, vm.answers, vm.seen, vm.tNumber, vm.wrongAnswersNumber)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n\r\n function startInterval() {\r\n angular.element('#testTime').ejNumericTextbox('disable');\r\n vm.started = true;\r\n $scope.$apply();\r\n vm.startTime = Date.now();\r\n vm.stopPromise = $interval(function () {\r\n var temp = new Date(vm.time * 60000 - Date.now() + vm.startTime);\r\n if (vm.time * 60000 - Date.now() + vm.startTime < 0) {\r\n vm.stopInterval();\r\n } else {\r\n vm.timeLeftMinutes = temp.getMinutes();\r\n vm.timeLeftSeconds = temp.getSeconds();\r\n }\r\n }, 1000);\r\n vm.minuteTimer = $interval(function () {\r\n if (vm.time * 60000 - Date.now() + vm.startTime < 0) {\r\n stopMinuteTimer();\r\n } else {\r\n vm.answersByMinutes.push({index1: vm.lastClicked.index1, index2: vm.lastClicked.index2});\r\n }\r\n }, 60000);\r\n }\r\n\r\n function stopMinuteTimer() {\r\n $interval.cancel(vm.minuteTimer);\r\n }\r\n\r\n function stopInterval() {\r\n vm.finished = true;\r\n $scope.$apply();\r\n vm.finishTime = Date.now();\r\n $interval.cancel(vm.stopPromise);\r\n vm.wrongAnswersNumber = 0;\r\n vm.answersByMinutes.push(vm.lastClicked);\r\n vm.seen = vm.lastClicked.index1 * 20 + vm.lastClicked.index2 + 1;\r\n for (var i = 0; i < 20; i++) {\r\n for (var j = 0; j < 20; j++) {\r\n if (vm.lastClicked.index1 > i || vm.lastClicked.index1 === i && vm.lastClicked.index2 >= j) {\r\n if (vm.answers[i][j] === 1 && vm.goodAnswers[i][j] === 1) {\r\n vm.answers[i][j] = 2;\r\n } else if (vm.answers[i][j] === 0 && vm.goodAnswers[i][j] === 1 || vm.answers[i][j] === 1 && vm.goodAnswers[i][j] === 0) {\r\n vm.answers[i][j] = -1;\r\n vm.wrongAnswersNumber++;\r\n }\r\n }\r\n }\r\n }\r\n // 3 jó, 4 rossz, 5 semmi\r\n angular.forEach(vm.answersByMinutes, function (value) {\r\n if (vm.answers[value.index1][value.index2] === 2) {\r\n vm.answers[value.index1][value.index2] = 3;\r\n } else if (vm.answers[value.index1][value.index2] === -1) {\r\n vm.answers[value.index1][value.index2] = 4;\r\n } else {\r\n vm.answers[value.index1][value.index2] = 5;\r\n }\r\n });\r\n vm.tNumber = (vm.seen - vm.wrongAnswersNumber) / vm.seen * 100;\r\n }\r\n\r\n function clicked(index1, index2) {\r\n if ((vm.lastClicked.index1 < index1 || vm.lastClicked.index1 === index1 && vm.lastClicked.index2 < index2) && vm.finished === false && vm.started === true) {\r\n vm.answers[index1][index2] = 1;\r\n vm.lastClicked.index1 = index1;\r\n vm.lastClicked.index2 = index2;\r\n }\r\n }\r\n\r\n function timeChanged() {\r\n if (vm.started === false) {\r\n vm.timeLeftMinutes = vm.time;\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.pieronTest',\r\n config: {\r\n url: '/pieronTest',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.html',\r\n controller: 'PieronTestController',\r\n controllerAs: 'vm',\r\n title: 'PieronTest'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation')\r\n .controller('PieronTestEvaluation', PieronTestEvaluation);\r\n\r\n function PieronTestEvaluation($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 6\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'}\r\n ],\r\n [// 7\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 8\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 9\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 10\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 11\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 12\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 13\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'}\r\n ],\r\n [// 14\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'}\r\n ],\r\n [// 15\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 16\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'}\r\n ],\r\n [// 17\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 18\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'}\r\n ],\r\n [// 19\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron5.png'}\r\n ],\r\n [// 20\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron2.png'},\r\n {url: 'images/pieron3.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron4.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron5.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron6.png'},\r\n {url: 'images/pieron1.png'},\r\n {url: 'images/pieron7.png'},\r\n {url: 'images/pieron8.png'},\r\n {url: 'images/pieron8.png'}\r\n ]\r\n ];\r\n\r\n vm.answers = [\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r\n ];\r\n\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId', 'psychology.mode', 'athleteModify.sportoloNev'], ['psychology.surveyPassword']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('PieronTestEvaluation');\r\n vm.edit = results[0]['psychology.mode'] === 'edit';\r\n if (vm.edit) {\r\n getSurveyProtected();\r\n } else {\r\n getSurvey();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSurvey() {\r\n dataservice.getPieronTest(vm.surveyId, true)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.seen = data.kiertekelesSzam[1];\r\n vm.age = data.kiertekelesSzam[2];\r\n vm.tNumber = data.kiertekelesSzam[0];\r\n vm.wrongAnswersNumber = data.kiertekelesSzam[3];\r\n if (vm.wrongAnswersNumber === undefined) {\r\n vm.wrongAnswersNumber = 0;\r\n angular.forEach(vm.answers, function (value) {\r\n angular.forEach(value, function (value2) {\r\n if (value2 === -1) {\r\n vm.wrongAnswersNumber++;\r\n }\r\n });\r\n });\r\n }\r\n vm.ertek = [];\r\n if (vm.age < 15) {\r\n if (vm.seen < 159) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 201) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 296) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 376) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen >= 376) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 90.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 95.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.5) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.4) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.4) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 14 && vm.age < 19) {\r\n if (vm.seen < 201) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 256) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 345) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 396) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 395) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 93.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 97.0) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.8) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.6) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.6) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 18) {\r\n if (vm.seen < 178) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 214) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 261) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 323) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 322) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 88.2) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 93.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 96.2) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 97.7) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.7) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n }\r\n\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n });\r\n }\r\n\r\n function getSurveyProtected() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getPieronTest(vm.surveyId, false)\r\n .then(function (data) {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n vm.seen = data.kiertekelesSzam[1];\r\n vm.age = data.kiertekelesSzam[2];\r\n vm.tNumber = data.kiertekelesSzam[0];\r\n vm.wrongAnswersNumber = data.kiertekelesSzam[3];\r\n vm.ertek = [];\r\n if (vm.age < 15) {\r\n if (vm.seen < 159) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 201) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 296) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 376) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen >= 376) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 90.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 95.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.5) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.4) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.4) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 14 && vm.age < 19) {\r\n if (vm.seen < 201) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 256) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 345) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 396) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 395) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 93.3) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 97.0) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 98.8) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 99.6) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.6) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n } else if (vm.age > 18) {\r\n if (vm.seen < 178) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.seen < 214) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.seen < 261) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.seen < 323) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.seen > 322) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n\r\n if (vm.tNumber <= 88.2) {\r\n vm.ertek.push('Nagyon rossz');\r\n } else if (vm.tNumber <= 93.7) {\r\n vm.ertek.push('Átlag alatti');\r\n } else if (vm.tNumber <= 96.2) {\r\n vm.ertek.push('Átlagos');\r\n } else if (vm.tNumber <= 97.7) {\r\n vm.ertek.push('Átlag feletti');\r\n } else if (vm.tNumber > 99.7) {\r\n vm.ertek.push('Kiváló');\r\n }\r\n }\r\n\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n }\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.savePerformanceMotivationSurveyEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation',\r\n config: {\r\n url: '/pieronTestEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.html',\r\n controller: 'PieronTestEvaluation',\r\n controllerAs: 'vm',\r\n title: 'PieronTestEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology',\r\n config: {\r\n url: '/psychology',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/psychology.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.summary')\r\n .controller('SummaryController', SummaryController);\r\n\r\n function SummaryController($q, log, paramHelper, $state, dataservice, $scope, PSYCHOLOGY, DOMAIN, gettextCatalog, $rootScope, authenticationService) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.warteggUrl = DOMAIN.baseURL + DOMAIN.psychologyDocUrl + '/wartegg.png';\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {field: 'typeId', visible: false},\r\n {field: 'type', headerText: gettextCatalog.getString('TestsType'), textAlign: 'center', width: 100},\r\n {field: 'dateOfSurvey', headerText: gettextCatalog.getString('TestsDate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'documentOfSurvey',\r\n headerText: gettextCatalog.getString('Test'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'dateOfAssessment',\r\n headerText: gettextCatalog.getString('EvaluationsDate'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn2',\r\n width: 125\r\n },\r\n {\r\n field: 'documentOfAssessment',\r\n headerText: gettextCatalog.getString('Evaluation'),\r\n textAlign: 'center',\r\n template: '#sutemplateDataColumn3',\r\n width: 150\r\n }\r\n ];\r\n vm.open = gettextCatalog.getString('Open');\r\n vm.noEvaluationForThisTest = gettextCatalog.getString('NoEvaluationForThisTest');\r\n\r\n // Public functions\r\n vm.goToPerformanceMotivation = goToPerformanceMotivation;\r\n vm.goToPieron = goToPieron;\r\n vm.goToTenessee = goToTenessee;\r\n vm.goToShowFilledTest = goToShowFilledTest;\r\n vm.addWartegTest = addWartegTest;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], [\r\n 'athleteModify.sportoloId',\r\n 'athleteModify.sportoloNev',\r\n 'athleteModify.aktivSportolo']), authenticationService.getRight('PSYCHO')];\r\n return $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.aktiv = results[0]['athleteModify.aktivSportolo'];\r\n if (!vm.aktiv) {\r\n $('#dropdownMenu').addClass('disabled');\r\n }\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology');\r\n getPsychologyTests();\r\n }\r\n });\r\n }\r\n\r\n function getPsychologyTests() {\r\n return dataservice.getPsychologyTests(vm.sportoloId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToShowFilledTest(id, testType, password, documentOfAssessmentBool) {\r\n if (documentOfAssessmentBool) {\r\n return;\r\n }\r\n if (password) {\r\n password = 'edit';\r\n } else {\r\n password = 'open';\r\n }\r\n switch (testType) {\r\n case PSYCHOLOGY.Wartegg:\r\n paramHelper.setParams([{'psychology.psychologyId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.wartegg');\r\n break;\r\n case PSYCHOLOGY.PerformanceMotivation:\r\n paramHelper.setParams([{'psychology.surveyId': id}, {'psychology.mode': password}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.performanceMotivationTestEvaluation');\r\n break;\r\n case PSYCHOLOGY.Pieron:\r\n paramHelper.setParams([{'psychology.surveyId': id}, {'psychology.mode': password}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.pieronTestEvaluation');\r\n break;\r\n case PSYCHOLOGY.Tenessee:\r\n paramHelper.setParams([{'psychology.surveyId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation');\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n function goToPerformanceMotivation() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.performanceMotivationTest');\r\n }\r\n }\r\n\r\n function goToPieron() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.pieronTest');\r\n }\r\n }\r\n\r\n function goToTenessee() {\r\n if (!vm.aktiv) {\r\n paramHelper.setParams([{'psychology.sportoloId': vm.sportoloId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale');\r\n }\r\n }\r\n\r\n function addWartegTest() {\r\n if (!vm.aktiv) {\r\n return dataservice.saveWartegg(vm.sportoloId).then(function (data) {\r\n if (!data) {\r\n log.errorMsg(gettextCatalog.getString('ErrorOccurredWhileCreatingTheTest'));\r\n } else {\r\n getPsychologyTests();\r\n }\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.summary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.summary',\r\n config: {\r\n url: '/summary',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/summary/summary.html',\r\n controller: 'SummaryController',\r\n controllerAs: 'vm',\r\n title: 'Summary'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale')\r\n .controller('TenesseeSelfImageScaleController', TenesseeSelfImageScaleController);\r\n\r\n function TenesseeSelfImageScaleController($q, gettextCatalog, dataservice, paramHelper, log, $state, $rootScope, authenticationService) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ1'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ2'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ3'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ4'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ5'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ6'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ7'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ8'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ9'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ10'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ11'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ12'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ13'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ14'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ15'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ16'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ17'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ18'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ19'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ20'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ21'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ22'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ23'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ24'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ25'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ26'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ27'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ28'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ29'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ30'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ31'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ32'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ33'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ34'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ35'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ36'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ37'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ38'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ39'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ40'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ41'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ42'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ43'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ44'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ45'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ46'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ47'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ48'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ49'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ50'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ51'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ52'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ53'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ54'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ55'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ56'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ57'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ58'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ59'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ60'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ61'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ62'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ63'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ64'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ65'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ66'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ67'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ68'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ69'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ70'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ71'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ72'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ73'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ74'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ75'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ76'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ77'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ78'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ79'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ80'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ81'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ82'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ83'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ84'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ85'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ86'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ87'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ88'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ89'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ90'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ91'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ92'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ93'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ94'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ95'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ96'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ97'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ98'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ99'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ100')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n vm.sportoloId = 0;\r\n\r\n // Public functions\r\n vm.saveSurvey = saveSurvey;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('TenesseeSelfImageScale');\r\n }\r\n })\r\n\r\n ;\r\n }\r\n\r\n function saveSurvey() {\r\n var hiba = false;\r\n if (vm.sportoloId) {\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n } else {\r\n hiba = true;\r\n }\r\n if (hiba) {\r\n log.errorMsg('PleaseAnswerAllQuestion');\r\n } else {\r\n dataservice.saveTenesseeSelfImageScale(vm.sportoloId, vm.answers)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $state.go('psychology.summary');\r\n });\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScale',\r\n config: {\r\n url: '/tenesseeSelfImageScale',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.html',\r\n controller: 'TenesseeSelfImageScaleController',\r\n controllerAs: 'vm',\r\n title: 'tenesseeSelfImageScale'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation')\r\n .controller('TenesseeSelfImageScaleEvaluationController', TenesseeSelfImageScaleEvaluationController);\r\n\r\n function TenesseeSelfImageScaleEvaluationController($q, gettextCatalog, dataservice, paramHelper, $rootScope, authenticationService, log) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.questions = [\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ1'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ2'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ3'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ4'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ5'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ6'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ7'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ8'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ9'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ10'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ11'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ12'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ13'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ14'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ15'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ16'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ17'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ18'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ19'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ20'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ21'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ22'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ23'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ24'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ25'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ26'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ27'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ28'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ29'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ30'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ31'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ32'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ33'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ34'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ35'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ36'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ37'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ38'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ39'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ40'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ41'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ42'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ43'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ44'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ45'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ46'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ47'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ48'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ49'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ50'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ51'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ52'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ53'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ54'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ55'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ56'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ57'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ58'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ59'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ60'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ61'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ62'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ63'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ64'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ65'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ66'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ67'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ68'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ69'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ70'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ71'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ72'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ73'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ74'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ75'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ76'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ77'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ78'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ79'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ80'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ81'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ82'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ83'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ84'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ85'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ86'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ87'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ88'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ89'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ90'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ91'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ92'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ93'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ94'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ95'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ96'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ97'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ98'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ99'),\r\n gettextCatalog.getString('TenesseeSelfImageScaleQ100')\r\n ];\r\n vm.answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n\r\n // Public functions\r\n vm.saveEval = saveEval;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['psychology.surveyId'], ['psychology.surveyPassword', 'athleteModify.sportoloNev']), authenticationService.getRight('PSYCHO')])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.surveyId = results[0]['psychology.surveyId'];\r\n vm.password = results[0]['psychology.surveyPassword'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('TenesseeSelfImageScaleEvaluation');\r\n getTSFIS();\r\n }\r\n });\r\n }\r\n\r\n function getTSFIS() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getTenesseeSelfImageScaleById(vm.surveyId).then(function (data) {\r\n if (data.error === '') {\r\n vm.answers = data.kitoltottKerdoiv;\r\n vm.sportolo = {};\r\n vm.sportolo.nev = data.sportoloNeve;\r\n vm.sportolo.szuletesiDatum = data.sportoloSzuletesiDatuma;\r\n vm.sportolo.anyjaNeve = data.sportoloAnyjaNeve;\r\n vm.kitoltesDatuma = data.kitoltesDatuma;\r\n vm.kiertekelesDatuma = data.kiertekelesDatuma;\r\n vm.kiertekelesSzam = data.kiertekelesSzam;\r\n vm.kiertekelesSzoveg = data.kiertekelesSzoveg;\r\n vm.kiertekelesSzamMagyarazat = data.kiertekelesSzamMagyarazat;\r\n if (vm.kiertekelesDatuma !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n }\r\n swal.close();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function saveEval() {\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n closeOnConfirm: false,\r\n allowEscapeKey: false\r\n }).then(function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n paramHelper.setParams([{'psychology.surveyPassword': inputValue.value}]);\r\n var hiba = false;\r\n angular.forEach(vm.answers, function (value, key) {\r\n if (value === 0) {\r\n vm.answers[key] = -1;\r\n hiba = true;\r\n }\r\n });\r\n if (hiba) {\r\n log.errorMsg('SurveyNotFilled');\r\n } else {\r\n vm.encryptedHtml = Aes.Ctr.encrypt(angular.element('#rteSample').ejRTE('getHtml'), inputValue.value, 256);\r\n dataservice.saveTenesseeSelfImageScaleEval(vm.surveyId, vm.encryptedHtml)\r\n .then(function () {\r\n log.successMsg('TestSaved');\r\n $rootScope.back();\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.tenesseeSelfImageScaleEvaluation',\r\n config: {\r\n url: '/tenesseeSelfImageScaleEvaluation',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.html',\r\n controller: 'TenesseeSelfImageScaleEvaluationController',\r\n controllerAs: 'vm',\r\n title: 'TenesseeSelfImageScaleEvaluation'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","/* global Aes */\r\n\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.wartegg')\r\n .controller('WarteggController', WarteggController);\r\n\r\n function WarteggController($q, gettextCatalog, dataservice, paramHelper, $state, $rootScope, authenticationService, log, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n vm.sportoloId = 0;\r\n vm.psychologyId = 0;\r\n vm.kiertekelt = false;\r\n vm.allowEdit = false;\r\n\r\n // Public functions\r\n vm.upload = upload;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams(['athleteModify.sportoloId', 'psychology.psychologyId', 'athleteModify.sportoloNev'], ['psychology.surveyPassword', 'athleteModify.aktivSportolo']), authenticationService.getRight('PSYCHO')];\r\n return $q.all(promises).then(function (data) {\r\n if (data[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.allowEdit = data[0]['athleteModify.aktivSportolo'];\r\n $scope.$apply();\r\n });\r\n vm.psychologyId = data[0]['psychology.psychologyId'];\r\n vm.password = data[0]['psychology.surveyPassword'];\r\n vm.sportoloId = data[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = data[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('Psychology') + ' - ' + gettextCatalog.getString('WarteggTest');\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n dataservice.getWarteggTestById(vm.psychologyId)\r\n .then(function (response) {\r\n vm.kiertekelt = response.kiertekelesDatuma !== '';\r\n vm.kepfajl = response.kitoltottKerdoiv;\r\n vm.kiertekelesSzoveg = response.kiertekelesSzoveg;\r\n if (vm.kiertekelesSzoveg !== '') {\r\n vm.kiertekelesSzoveg = Aes.Ctr.decrypt(vm.kiertekelesSzoveg, inputValue.value, 256);\r\n angular.element('#rteSample').ejRTE({value: vm.kiertekelesSzoveg});\r\n }\r\n swal.close();\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function upload() {\r\n if (!vm.allowEdit) {\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Password'),\r\n text: gettextCatalog.getString('SelectPasswordForTheTest'),\r\n //type: 'input',\r\n input: 'password',\r\n animation: 'slide-from-top',\r\n inputValue: vm.password,\r\n allowOutsideClick: false,\r\n allowEscapeKey: false\r\n }).then(\r\n function (inputValue) {\r\n if (!inputValue || !inputValue.value || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return false;\r\n } else {\r\n vm.password = inputValue.value;\r\n var file = document.getElementById('file').files[0];\r\n var szoveg = angular.element('#rteSample').ejRTE('getHtml');\r\n if (file) {\r\n var r = new FileReader();\r\n if (szoveg !== '') {\r\n szoveg = Aes.Ctr.encrypt(szoveg, inputValue.value, 256);\r\n }\r\n\r\n r.onloadend = function (e) {\r\n var data = {\r\n psychologyId: vm.psychologyId,\r\n fileName: file.name,\r\n fileData: e.target.result,\r\n sportoloId: vm.sportoloId,\r\n psychologySurvey: szoveg\r\n };\r\n dataservice.uploadWartegg(data)\r\n .then(function () {\r\n swal.close();\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n };\r\n r.readAsDataURL(file);\r\n } else {\r\n if (szoveg !== '') {\r\n szoveg = Aes.Ctr.encrypt(szoveg, inputValue.value, 256);\r\n }\r\n var data = {\r\n psychologyId: vm.psychologyId,\r\n fileName: '',\r\n fileData: null,\r\n sportoloId: vm.sportoloId,\r\n psychologySurvey: szoveg\r\n };\r\n dataservice.uploadWartegg(data)\r\n .then(function () {\r\n swal.close();\r\n $state.go('athletes.athletesManagement.athleteModify.psychology.summary');\r\n });\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.psychology.wartegg')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.psychology.wartegg',\r\n config: {\r\n url: '/wartegg',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.html',\r\n controller: 'WarteggController',\r\n controllerAs: 'vm',\r\n title: 'Wartegg',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.raceResultsReport')\r\n .controller('RaceResultsReport2Controller', RaceResultsReport2Controller);\r\n\r\n function RaceResultsReport2Controller(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n\r\n // For print\r\n vm.printAthleteResult = printAthleteResult;\r\n vm.printTeamResult = printTeamResult;\r\n vm.reportParameters = {};\r\n\r\n // GRID\r\n vm.schoolGridSelectedRowData = {};\r\n vm.columnsAthlete = [\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('ResultText'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('ResultScore'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('ResultTime'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('ResultDistance'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DateFrom'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '90'\r\n },\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), headerTextAlign: 'center', width: '90', textAlign: 'center'},\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Location'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {\r\n field: 'Ertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('Jellege'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), headerTextAlign: 'center', width: '90', textAlign: 'center'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125',\r\n template: '#rareretemplateDataColumn2'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('OpenIt'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn3'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn4'\r\n }\r\n ];\r\n vm.teamsLists = [];\r\n vm.columnsTeam = [\r\n {\r\n field: 'CsapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n width: '150',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn5'\r\n },\r\n {field: 'EredmenySzoveg', headerText: gettextCatalog.getString('ResultText'), width: '200', textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: '100', textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), width: '100', textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('DateFrom'), width: '90', textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), width: '90', textAlign: 'center'},\r\n {field: 'Helyszin', headerText: gettextCatalog.getString('Location'), width: '100', textAlign: 'center'},\r\n {field: 'Helyezes', headerText: gettextCatalog.getString('AthleteRanking'), width: '120', textAlign: 'center'},\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {field: 'Ertekeles', headerText: gettextCatalog.getString('CoachRating'), width: '200', textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('Jellege'), width: '150', textAlign: 'center'},\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), headerTextAlign: 'center', width: '75', textAlign: 'center'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n headerTextAlign: 'center',\r\n width: '200',\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: '125',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn6'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('OpenIt'),\r\n width: '100',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn7'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n width: '100',\r\n textAlign: 'center',\r\n template: '#rareretemplateDataColumn8'\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n\r\n vm.openResultReportAthletes = openResultReportAthletes;\r\n vm.openResultReportTeam = openResultReportTeam;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthlete,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var grid2 = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsTeam,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n grid2.appendTo('#Grid2');\r\n grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid2);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('KMVERSEREDM'),\r\n paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])\r\n ]).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.sportoloId = results[1]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[1]['athleteModify.sportoloNev'];\r\n searchAthlete(vm.sportoloId, vm.sportoloNev);\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('RaceResultsReport');\r\n }\r\n });\r\n }\r\n\r\n function searchAthlete(id, nev) {\r\n dataservice.getResultsReportsAthlete({\r\n SportoloId: id,\r\n SportoloNev: nev\r\n })\r\n .then(function (data) {\r\n vm.athletesLists = data.itemsList;\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'SzuletesiIdo');\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'DatumTol');\r\n vm.athletesLists = $filter('dateStringFilter')(vm.athletesLists, 'DatumIg');\r\n vm.athletesLists = $filter('valueChangeFromObject')(vm.athletesLists, 'Eredmeny');\r\n grid.dataSource = vm.athletesLists;\r\n\r\n vm.teamsLists = data.itemsList2;\r\n vm.teamsLists = $filter('dateStringFilter')(vm.teamsLists, 'DatumTol');\r\n vm.teamsLists = $filter('dateStringFilter')(vm.teamsLists, 'DatumIg');\r\n vm.teamsLists = $filter('valueChangeFromObject')(vm.teamsLists, 'Eredmeny');\r\n grid2.dataSource = vm.teamsLists;\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'teams.sectionId': '0'},\r\n {'teams.ageGroupId': '0'},\r\n {'teams.team': id}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openResultReportAthletes(id) {\r\n $q.all([authenticationService.getRight('MEGTEERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportAthletes.Id': id}]);\r\n $state.go('administration.resultReportAthletes');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openResultReportTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportTeam.Id': id}]);\r\n $state.go('administration.resultReportTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function printAthleteResult(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].SportoloNev === null ? '' : data.result[0].SportoloNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n eredmeny: data.result[0].Eredmeny === null ? '' : data.result[0].Eredmeny, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n eIdo: data.result[0].EredmenyIdo === null ? '' : data.result[0].EredmenyIdo,\r\n ePont: data.result[0].EredmenyPont === null ? '' : data.result[0].EredmenyPont,\r\n eSzoveg: data.result[0].EredmenySzoveg === null ? '' : data.result[0].EredmenySzoveg, // Eredmény (szöveg input mező)\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles\r\n };\r\n var dialogObj = angular.element('#printDialogA').data('ejDialog');\r\n dialogObj.open();\r\n }, 100);\r\n });\r\n }\r\n\r\n function printTeamResult(id) {\r\n new ej2.data.DataManager(grid2.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].CsapatNev === null ? '' : data.result[0].CsapatNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles,\r\n id: data.result[0].Id === null ? '' : data.result[0].Id\r\n };\r\n var dialogObj = angular.element('#printDialogT').data('ejDialog');\r\n dialogObj.open();\r\n }, 1000);\r\n });\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.raceResultsReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.raceResultsReport',\r\n config: {\r\n url: '/raceResultsReport',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.html',\r\n controller: 'RaceResultsReport2Controller',\r\n controllerAs: 'vm',\r\n title: 'RaceResultsReport'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.trainingVisitReport')\r\n .controller('TrainingVisitReportController', TrainingVisitReportController);\r\n\r\n function TrainingVisitReportController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev + ' / ' + (ev + 1));\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear() + ' / ' + (new Date().getFullYear() + 1);\r\n vm.stackedHeaderRows = [];\r\n\r\n vm.sportoloId = undefined;\r\n vm.korcsoportId = undefined;\r\n vm.szakosztalyId = undefined;\r\n vm.columns = [];\r\n\r\n vm.columns = [\r\n {\r\n field: 'Sorszam',\r\n headerText: gettextCatalog.getString('RowNumber'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n }, {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150,\r\n template: '#AthleteColumnTemplate',\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzulEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), columns:\r\n [\r\n {\r\n field: 'AugEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), columns:\r\n [\r\n {\r\n field: 'SzeptEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), columns:\r\n [\r\n {\r\n field: 'OktEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), columns:\r\n [\r\n {\r\n field: 'NovEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), columns:\r\n [\r\n {\r\n field: 'DecEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'), columns:\r\n [\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), columns:\r\n [\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), columns:\r\n [\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), columns:\r\n [\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), columns:\r\n [\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), columns:\r\n [\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), columns:\r\n [\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), columns:\r\n [\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Attendance'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Miss'),\r\n textAlign: 'center',\r\n width: 80,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('AttendancePercent'),\r\n textAlign: 'center',\r\n width: 90,\r\n allowEditing: false\r\n }\r\n ],\r\n textAlign: 'center'\r\n }\r\n ];\r\n\r\n // Create variables\r\n\r\n // Public functions\r\n vm.reportSelect = reportSelect;\r\n vm.modifyAthletes = modifyAthletes;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['athleteModify.sportoloId', 'athleteModify.sportoloNev'], [])]).then(function (results) {\r\n vm.sportoloId = results[0]['athleteModify.sportoloId'];\r\n vm.sportoloNev = results[0]['athleteModify.sportoloNev'];\r\n $rootScope.title = vm.sportoloNev + ' - ' + gettextCatalog.getString('trainingVisitReport');\r\n });\r\n }\r\n\r\n function reportSelect() {\r\n dataservice.getTrainingVisitReport(vm.selectedYear.split('/')[0], vm.sportoloId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Public modifyAthletes(SportolokId)\r\n */\r\n function modifyAthletes(VersenyzoId, SzakosztalyId, KorosztalyId) {\r\n console.log('Versenyzo: ', VersenyzoId, ', SzakosztalyId: ', SzakosztalyId);\r\n //if (vm.MODSPORTOLO || vm.MEGTSPORTLIST) { // check permission\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': SzakosztalyId},\r\n {'athleteList.selectedAgeGroupId': KorosztalyId},\r\n {'athleteModify.sportoloId': VersenyzoId}\r\n ]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n /*} else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }*/\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteModify.trainingVisitReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteModify.trainingVisitReport',\r\n config: {\r\n url: '/trainingVisitReport',\r\n templateUrl: 'app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.html',\r\n controller: 'TrainingVisitReportController',\r\n controllerAs: 'vm',\r\n title: 'TrainingVisitReport'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteNew')\r\n .controller('AthleteNewController', AthleteNewController);\r\n\r\n function AthleteNewController(log, dataservice, $q, DOMAIN, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, VIEW_DATA, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteNew');\r\n // Create variables\r\n // Default values\r\n vm.noImgUrl = DOMAIN.baseURL + DOMAIN.userImage; // default image\r\n vm.photoUrl = vm.noImgUrl; // User image\r\n\r\n // Opened fields in Accordion\r\n vm.selectedItems = [0, 1];\r\n //Not used at the moment vm.section = ''; // section (szakosztály)\r\n //not used at the moment vm.secondSection = ''; // Second section\r\n vm.thereIsSelectedAthlete = false;\r\n vm.noSelectedAthlete = true;\r\n\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.fatherNames = [];\r\n vm.motherNames = [];\r\n getParentNames();\r\n //gettextCatalog.getString('RequiredFieldsError')\r\n vm.betterHandList = [{\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.betterFootList = [{\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('EducationFee'), value: 0},\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n\r\n // If changed the fee of education, show that the date is correct or not\r\n vm.feeOfEducationDateOk = false;\r\n vm.ageGroupList = []; // recived age group list\r\n vm.secondAgeGroupList = [];\r\n vm.sectionList = []; // recived section list\r\n vm.secondSectionList = [];\r\n vm.selectedAgeGroupId = '';\r\n\r\n // Athlete parameters\r\n vm.selectedAgeGroupText = undefined; // selected age group name\r\n vm.athleteData = {\r\n Id: undefined,\r\n AdoSzam: undefined, // String\r\n Aktiv: undefined, // Boolean\r\n AktTestmagassag: undefined, // Int32?\r\n AktTestsuly: undefined, // Int32?\r\n Allampolgarsag: undefined, // String\r\n AnyjaLeanykoriNeve: undefined, // String\r\n AnyjaNeve: undefined, // String\r\n AnyjaTestmagassaga: undefined, // Int32?\r\n ApjaTestmagassaga: undefined, // Int32\r\n BefOktdij: undefined, // Decimal\r\n BefTagdij: undefined, // Decimal\r\n DSITagsagKezdete: undefined, // DateTime\r\n EddigiEdzoi: undefined, // String\r\n EddigiSpEgyesuletei: undefined, // String\r\n EdzesreJarasKezdete: undefined, // DateTime\r\n Egyenleg: undefined, // Decimal\r\n Elerhetoseg: undefined, // String\r\n EmailCim: undefined, // String\r\n EvzarasOsszege: undefined, // Decimal?\r\n FajiEredet: undefined, // String\r\n Fenykep: undefined, // Byte[]\r\n FenykepUt: undefined, // String\r\n fileData: null,\r\n FurdokopenyDb: undefined, // String\r\n FurdokopenyErtek: undefined, // String\r\n FurdokopenyMerete: undefined, // String\r\n GyermekkoriSport: undefined, // String\r\n IdSzakosztaly: undefined, // Int32\r\n IskolaEvfolyam: undefined, // String\r\n IskolaHazszam: undefined, // String\r\n IskolaIgazgatoNeve: undefined, // String\r\n IskolaIrSzam: undefined, // String\r\n IskolaNeve: undefined, // String\r\n IskolaOsztaly: undefined, // String\r\n IskolaUtca: undefined, // String\r\n IskolaVaros: undefined, // String\r\n JelenlegiEdzo: undefined, // int\r\n KabatDb: undefined, // String\r\n KabatErtek: undefined, // String\r\n KabatMerete: undefined, // String\r\n KilepesDatuma: undefined, // DateTime\r\n KilepesIndoka: undefined, // String\r\n Korcsoport: undefined, // Int32\r\n LakcimHazszam: undefined, // String\r\n LakcimIrSzam: undefined, // String\r\n LakcimMegye: undefined, // String\r\n LakcimUtca: undefined, // String\r\n LakcimVaros: undefined, // String\r\n LeanykoriNev: undefined, // String\r\n MasodlagosSzakosztalyId: undefined, // Int32?\r\n MasodlagosKorcsoport: undefined,\r\n MasodlagosSzakosztalyEdzoId: undefined,\r\n Megjegyzes: undefined, // String\r\n MelegitoDb: undefined, // String\r\n MelegitoErtek: undefined, // String\r\n MelegitoMerete: undefined, // String\r\n Neme: undefined, // String\r\n Nev: undefined, // String\r\n OsztalyFonokNeve: undefined, // String\r\n PancelNadragDb: undefined, // String\r\n PancelNadragErtek: undefined, // String\r\n PancelNadragMerete: undefined, // String\r\n UszoNadragMerete: undefined, // String\r\n PapucsDb: undefined, // String\r\n PapucsErtek: undefined, // String\r\n PapucsMerete: undefined, // String\r\n PoloDb: undefined, // String\r\n PoloErtek: undefined, // String\r\n PoloMerete: undefined, // String\r\n PubertasVege: undefined, // DateTime\r\n RegisztraciosSzam: undefined, // String\r\n SortDb: undefined, // String\r\n SortErtek: undefined, // String\r\n SortMerete: undefined, // String\r\n SportoloiMultAnya: undefined, // String\r\n SportoloiMultApa: undefined, // String\r\n SportolokID: undefined, // Int32\r\n SzakosztalyNev: undefined, // String\r\n SzemIgSzam: undefined, // String\r\n SzuletesiHelyOrszag: undefined,\r\n SzuletesiHelyVaros: undefined, // String\r\n SzuletesiIdo: undefined, // DateTime\r\n Szulo1Elerhetosege: undefined, // String\r\n Szulo2Elerhetosege: undefined, // String\r\n AnyjaFoglalkozasa: undefined, // String\r\n ApjaFoglalkozasa: undefined,\r\n SzuloNeve: undefined, // String\r\n SzunideiElfoglaltsag: undefined, // String\r\n Tagdijas: undefined, // Boolean\r\n TAJSzam: undefined, // String\r\n Testmagassag: undefined, // Int32?\r\n TestneveloElerhetosege: undefined, // String\r\n TestneveloNeve: undefined, // String\r\n Testsuly: undefined, // Int32?\r\n UgyesebbKez: undefined, // String\r\n UgyesebbLab: undefined, // String\r\n UtlevelSzam: undefined, // String\r\n UtolsoFrissites: undefined, // DateTime\r\n ValasztottSportagak: undefined, // String\r\n VersSportKezd: undefined, // DateTime\r\n VisszalepesDatuma: undefined, // DateTime?\r\n dddd: undefined,\r\n JatekEngedelySzama: undefined\r\n };\r\n\r\n vm.RUHA = {\r\n CIPO: false,\r\n PAPUCS: false,\r\n MELEGITO: false,\r\n FURDOKOPENY: false,\r\n KABAT: false,\r\n PANCELNADRAG: false,\r\n POLO: false,\r\n SORT: false,\r\n USZONADRAG: false\r\n };\r\n\r\n vm.athleteId = -1; // for sql quetion\r\n // This value show when start the new Fee of education mode\r\n vm.feeOfEducationDate = undefined;\r\n // Current coach name in text by Id\r\n vm.currentCoachNameInText = undefined;\r\n\r\n // Grid's details\r\n vm.schoolGridSelectedRowData = {};\r\n // Grid columnsSchool\r\n\r\n vm.columnsSchool = [\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', headerTextAlign: 'center', width: 200},\r\n {field: 'IskolaIrSzam', headerText: gettextCatalog.getString('SchoolZipCode'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'IskolaVaros', headerText: gettextCatalog.getString('SchoolCity'), textAlign: 'center', headerTextAlign: 'center', width: 75},\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('SchoolStreet'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('SchoolNumber'), textAlign: 'center', headerTextAlign: 'center', width: 75},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('SchoolDirectorName'), textAlign: 'center', headerTextAlign: 'center', width: 150}\r\n ];\r\n\r\n vm.visibleSchooSelectlGrid = false;\r\n\r\n // Grid columnsAthleteMoveStory\r\n vm.columnsAthleteMoveStory = [\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('StartTime'), textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('EndTime'), textAlign: 'center'},\r\n {field: 'Belepes', headerText: gettextCatalog.getString('Enter'), textAlign: 'center'},\r\n {field: 'Kilepes', headerText: gettextCatalog.getString('GoOut'), textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n // AthleteNew functions\r\n // Drop Down List function\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.getSections = getSections;\r\n\r\n vm.secondSectionDataBound = secondSectionDataBound;\r\n vm.secondSectionSelect = secondSectionSelect;\r\n vm.secondCoachSelect = secondCoachSelect;\r\n\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.secondCoachDropDownListDataBound = secondCoachDropDownListDataBound;\r\n\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.seconAgeGroupDataBound = secondAgeGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.secondAgeGroupSelect = secondAgeGroupSelect;\r\n\r\n // Top menu buttons functions\r\n vm.goToAthleteResults = goToAthleteResults; // Public Athlete's results\r\n\r\n // Image cropper variables\r\n vm.deleteImg = deleteImg; // Public, delete the photo from user profile 999 Hofi\r\n\r\n vm.save = save;\r\n vm.cropper = {}; // Ricsi\r\n vm.cropper.sourceImage = null; // Ricsi\r\n vm.cropper.croppedImage = null; // Ricsi\r\n vm.bounds = {}; // Ricsi\r\n vm.bounds.left = 0; // Ricsi\r\n vm.bounds.right = 0; // Ricsi\r\n vm.bounds.top = 0; // Ricsi\r\n vm.bounds.bottom = 0; // Ricsi\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle'); // Ricsi\r\n\r\n vm.openCropDialog = openCropDialog; // Ricsi\r\n vm.doneCropDialog = doneCropDialog; // Ricsi\r\n vm.closeCropDialog = closeCropDialog; // Ricsi\r\n // Change Age Group\r\n vm.changeAgeGroup = changeAgeGroup;\r\n // sex (gende) dropdown public function\r\n vm.sexSelect = sexSelect;\r\n // Height dropdown public function\r\n vm.changeHeight = changeHeight;\r\n // Weight dropdown public function\r\n vm.changeWeight = changeWeight;\r\n // better Hand dropdown public function\r\n vm.betterHandDataBound = betterHandDataBound;\r\n vm.betterHandSelect = betterHandSelect;\r\n // better Foot dropdown public function\r\n vm.betterFootSelect = betterFootSelect;\r\n vm.feeOfEducationBound = feeOfEducationBound;\r\n // Social security number required\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n\r\n // select coach\r\n //vm.selectCoachBtn = selectCoachBtn;\r\n // Select Schools\r\n vm.selectSchools = selectSchools;\r\n // Public functions for grid databound\r\n vm.schoolList = [];\r\n // Grid selcted row\r\n vm.schoolGridSelectedRow = schoolGridSelectedRow;\r\n // Selected coach\r\n vm.coachSelect = coachSelect;\r\n vm.coachList = [];\r\n vm.secondCoachList = [];\r\n\r\n vm.clearSecondSection = clearSecondSection;\r\n vm.clearSecondAgeGroup = clearSecondAgeGroup;\r\n vm.clearSecondCoach = clearSecondCoach;\r\n\r\n // Active\r\n vm.activeChange = activeChange;\r\n\r\n // School Grid datasource initial\r\n vm.coachListGridData = [];\r\n\r\n vm.ADMIN = false;\r\n vm.TORLCSOPORT = false;\r\n vm.MODCSOPORT = false;\r\n\r\n vm.tajkeres = true;\r\n\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n vm.schoolNameChanged = schoolNameChanged;\r\n vm.generateRegNum = generateRegNum;\r\n\r\n vm.generateAvatar = generateAvatar;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n columns: vm.columnsSchool,\r\n rowSelected: schoolGridSelectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n\r\n // Activate page\r\n activate();\r\n $scope.$on('$viewContentLoaded', function () {\r\n // Set checkbox\r\n angular.element('#active').ejCheckBox({checked: true});\r\n });\r\n\r\n function activate() {\r\n // need paramHelper params (e.g. athleteId)\r\n $q.all([paramHelper.getParams([], ['athleteNew.sportolokId', 'athleteNew.ageGroupList', 'athleteNew.selectedSectionId', 'athleteNew.selectedSectionName', 'athleteNew.selectedAgeGroupName', 'athleteNew.selectedAgeGroupId', 'athleteNew.sectionList']), authenticationService.getRight('ADMIN'), authenticationService.getRight('TORLCSOPORT'), authenticationService.getRight('MODCSOPORT'), getSystemSettings('TAJKOTELEZO'), getSystemSettings('SNYSZKOTELEZO'), getSystemSettings('SPORTMINKOTELEZO'), getSystemSettings('NINCSOKTDIJ')]).then(function (results) {\r\n vm.ADMIN = results[1];\r\n vm.TORLCSOPORT = results[2];\r\n vm.MODCSOPORT = results[3];\r\n vm.NINCSOKTDIJ = results[7];\r\n if (vm.NINCSOKTDIJ) {\r\n vm.feeOfEducationList = [\r\n {text: gettextCatalog.getString('SportServiceFee'), value: 1}\r\n ];\r\n }\r\n vm.athleteId = results[0]['athleteNew.sportolokId'];\r\n vm.athleteData.IdSzakosztaly = results[0]['athleteNew.selectedSectionId'];\r\n vm.athleteData.SzakosztalyNev = results[0]['athleteNew.selectedSectionName'];\r\n vm.athleteData.Korcsoport = results[0]['athleteNew.selectedAgeGroupId'];\r\n vm.selectedAgeGroupText = results[0]['athleteNew.selectedAgeGroupName'];\r\n vm.athleteData.KorcsoportName = results[0]['athleteNew.selectedAgeGroupName'];\r\n\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.userImage; // User image\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.athleteData.Aktiv = true;\r\n\r\n // Get Coach list for dropDown\r\n vm.socialSecurityNumberRequiredValue = results[4];\r\n vm.athleteRegistrationNumberRequiredValue = results[5];\r\n vm.athleteRequiredMinimumDatas = results[6];\r\n\r\n RefreshClothes();\r\n // This functions runs after thel all datas arrived\r\n // Get section list\r\n getSecondSections();\r\n // set feeOfEducation dropDownList selected value\r\n feeOfEducationSetSelectedValue();\r\n // get schools\r\n //selectSchools();\r\n $timeout(function () {\r\n var t = {\r\n text: results[0]['athleteNew.selectedSectionName'],\r\n value: results[0]['athleteNew.selectedSectionId']\r\n };\r\n vm.sectionList = results[0]['athleteNew.sectionList'];\r\n\r\n vm.ageGroupList = results[0]['athleteNew.ageGroupList'];\r\n\r\n if (vm.ageGroupList != null && vm.ageGroupList.length > 0 && vm.ageGroupList[0].value === 0) {\r\n vm.ageGroupList.splice(0, 1);\r\n }\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n function generateAvatar(nem) {\r\n var ava = 'ath_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n if (ava == vm.photoUrl) {\r\n generateAvatar(nem);\r\n }\r\n return ava;\r\n }\r\n\r\n function RefreshClothes() {\r\n $timeout(function () {\r\n dataservice.SzakosztalyRuhai(vm.athleteData.IdSzakosztaly, vm.athleteData.MasodlagosSzakosztaly).then(function (ruhaResponse) {\r\n vm.RUHA = ruhaResponse.data;\r\n });\r\n }, 100);\r\n }\r\n\r\n function saveAnyway() {\r\n var value = $('#feeOfEducation').ejDropDownList('getSelectedValue');\r\n switch (value) {\r\n case 0:\r\n case '0':\r\n vm.athleteData.Tagdijas = false; // Oktatási díjas\r\n break;\r\n case 1:\r\n case '1':\r\n default:\r\n vm.athleteData.Tagdijas = true;\r\n break;\r\n }\r\n vm.athleteData.TAJSzam = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n\r\n // kép küldése, ha választott\r\n vm.athleteData.FenykepUt = vm.photoUrl;\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.athleteData.FenykepUt = angular.element('#fileName').val();\r\n vm.athleteData.Fenykep = vm.cropper.croppedImage;\r\n }\r\n\r\n if (vm.photoUrl === vm.noImg) {\r\n vm.athleteData.fileName = 'avatar_2x.png';\r\n vm.athleteData.Fenykep = null;\r\n }\r\n var dsiTime = new Date(vm.athleteData.DSITagsagKezdete);\r\n\r\n if (dsiTime.getTime() > new Date()) {\r\n swal({\r\n title: gettextCatalog.getString('DateError'),\r\n text: gettextCatalog.getString('TheMemberOfDSIDateLateThenNow'),\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n } else {\r\n if (vm.athleteData.MasodlagosSzakosztaly > 0) {\r\n if (vm.athleteData.MasodlagosKorcsoport > 0) {\r\n if (!(vm.athleteData.MasodlagosSzakosztalyEdzoId > 0)) {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('SecondSectionDetailsAreNotComplete'));\r\n return;\r\n }\r\n }\r\n dataservice.saveNewAthlete(vm.athleteData)\r\n .then(\r\n function () {\r\n swal({\r\n title: gettextCatalog.getString('SaveAthlete'),\r\n text: gettextCatalog.getString('SaveAthleteSuccess'),\r\n type: 'success',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n closeOnConfirm: false,\r\n allowOutsideClick: false\r\n }).then(\r\n function () {\r\n paramHelper.setParams([\r\n {'athleteList.selectedSectionId': vm.athleteData.IdSzakosztaly},\r\n {'athleteList.selectedAgeGroupId': vm.athleteData.Korcsoport},\r\n {'athleteList.inactiveTeams': false}\r\n ]);\r\n $state.go('athletes.athletesManagement.athletesList');\r\n });\r\n });\r\n }\r\n }\r\n\r\n function save() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n angular.element('#accordion').ejAccordion('expandAll');\r\n } else {\r\n dataservice.SimilarAthleteExist({\r\n nev: vm.athleteData.Nev,\r\n datum: vm.athleteData.SzuletesiIdo\r\n }).then(function (response) {\r\n if (response.retValue) {\r\n swal({\r\n title: gettextCatalog.getString('SimilarAthlete'),\r\n text: gettextCatalog.getString('WeFoundASimilarAthleteContinueText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n saveAnyway();\r\n }\r\n });\r\n } else {\r\n saveAnyway();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function generateRegNum() {\r\n dataservice.GenerateRegNum().then(function (data) {\r\n vm.athleteData.RegisztraciosSzam = data.data;\r\n });\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n vm.displayPhoto = vm.photoUrl;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n if (vm.athleteData.FerfiB != null) {\r\n var nem = vm.athleteData.FerfiB ? 'male' : 'female';\r\n vm.cropper.sourceImage = null;\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n } else {\r\n vm.cropper.sourceImage = null;\r\n vm.photoUrl = vm.noImgUrl;\r\n vm.displayPhoto = vm.photoUrl;\r\n }\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.athleteData.JelenlegiEdzo)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n getAgeGroups();\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.athleteData.IdSzakosztaly = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getSecondSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n // itt ki kell venni a listából az elsődleges section-t (vm.athleteData.IdSzakosztaly)\r\n // for (var i = 0; i < data.itemsList.length; i++) {\r\n // if ((data.itemsList[i].value + '') === vm.athleteData.IdSzakosztaly) {\r\n // data.itemsList.splice(i, 1);\r\n // }\r\n // }\r\n vm.secondSectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondSectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#secondSectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#secondSectionDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosSzakosztaly);\r\n }\r\n }\r\n\r\n function secondSectionSelect(selectedSection) {\r\n if (selectedSection.value > -1) {\r\n vm.athleteData.MasodlagosSzakosztalyId = selectedSection.value;\r\n getSecondAgeGroups();\r\n RefreshClothes();\r\n } else {\r\n vm.athleteData.MasodlagosSzakosztalyId = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined; // clear list until not selected agegroup\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined; // clear list until not selected agegroup\r\n vm.secondAgeGroupList = [];\r\n vm.secondCoachList = []; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function getSecondAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.MasodlagosSzakosztalyId)\r\n .then(function (data) {\r\n vm.secondAgeGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondAgeGroupDataBound() {\r\n if (vm.secondAgeGroupList.length === 1) {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.secondAgeGroupList[0].value);\r\n } else {\r\n angular.element('#secondAgeGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.MasodlagosKorcsoport);\r\n }\r\n }\r\n\r\n function secondAgeGroupSelect(args) {\r\n if (args.value > -1) {\r\n vm.athleteData.MasodlagosKorcsoport = args.value;\r\n getSecondCoachesList();\r\n } else {\r\n vm.athleteData.MasodlagosKorcsoport = undefined, // clear list until not selected agegroup\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined, // clear list until not selected agegroup\r\n vm.secondCoachList = []; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function getSecondCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.MasodlagosSzakosztaly, vm.athleteData.MasodlagosKorcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.secondCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n function secondCoachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n //vm.selectedCoach = vm.coachList[0].value;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#secondCoachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function secondCoachSelect(args) {\r\n //vm.selectedCoach = args.value;\r\n if (args.value > -1) {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = args.value;\r\n } else {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoId = undefined; // clear list until not selected agegroup\r\n }\r\n }\r\n\r\n function changeAgeGroup() {\r\n paramHelper.setParams([{'ageGroupChange.athleteData': vm.athleteData}]);\r\n $state.go('settings.ageGroupChange');\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.athleteData.IdSzakosztaly)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n //getActualCoachesList();\r\n // itt kérjük le az edzőt\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.athleteData.Korcsoport = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.athleteData.IdSzakosztaly, vm.athleteData.Korcsoport) // Kell a section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n //vm.selectedCoach = vm.coachList[0].value;\r\n vm.athleteData.JelenlegiEdzo = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachName').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.athleteData.JelenlegiEdzo = args.value;\r\n }\r\n\r\n function sexSelect(arg) {\r\n //vm.sexNum\r\n if (vm.cropper.sourceImage == null || vm.photoUrl == vm.noImgUrl) {\r\n var nem = arg.value ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n }\r\n vm.athleteData.FerfiB = arg.value === 1;\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.athleteData.Testmagassag = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.athleteData.Testsuly = args.value;\r\n }\r\n\r\n function betterHandDataBound() {\r\n angular.element('#betterHandDropDown').ejDropDownList('selectItemByText', vm.athleteData.UgyesebbKez);\r\n }\r\n\r\n function betterHandSelect(arg) {\r\n vm.athleteData.UgyesebbKezT = arg.value;\r\n vm.athleteData.UgyesebbKez = arg.selectedText;\r\n }\r\n\r\n function betterFootSelect(arg) {\r\n vm.athleteData.UgyesebbLabT = arg.value;\r\n vm.athleteData.UgyesebbLab = arg.selectedText;\r\n }\r\n\r\n function feeOfEducationBound() {\r\n angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', 1);\r\n }\r\n\r\n function feeOfEducationSetSelectedValue() {\r\n angular.element('#feeOfEducation').ejDropDownList('selectItemByValue', 'Sportszolgáltatási díjas');\r\n }\r\n\r\n function selectSchools() {\r\n if (vm.visibleSchooSelectlGrid) {\r\n angular.element('#hidedContent').css('height', '0px');\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '100%');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function schoolGridSelectedRow(args) {\r\n // Ha megvan a kiválasztott sor, el kell tüntetni a Gridet\r\n vm.schoolGridSelectedRowData = args.data;\r\n vm.athleteData.IskolaEvfolyam = vm.schoolGridSelectedRowData.IskolaEvfolyam; // String\r\n vm.athleteData.IskolaNeve = vm.schoolGridSelectedRowData.IskolaNeve; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaIrSzam = vm.schoolGridSelectedRowData.IskolaIrSzam; // String\r\n vm.athleteData.IskolaVaros = vm.schoolGridSelectedRowData.IskolaVaros; // String\r\n vm.athleteData.IskolaUtca = vm.schoolGridSelectedRowData.IskolaUtca; // String\r\n vm.athleteData.IskolaHazszam = vm.schoolGridSelectedRowData.IskolaHazszam; // String\r\n vm.athleteData.IskolaOsztaly = vm.schoolGridSelectedRowData.IskolaOsztaly; // String\r\n vm.athleteData.IskolaIgazgatoNeve = vm.schoolGridSelectedRowData.IskolaIgazgatoNeve; // String\r\n $scope.$apply();\r\n // swal dropdownList select shool and fill fields with datas\r\n angular.element('#hidedContent').css('height', '0px');\r\n vm.visibleSchooSelectlGrid = !vm.visibleSchooSelectlGrid;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.athleteData.Aktiv = args.value;\r\n }\r\n\r\n function goToAthleteResults() {\r\n var coachItem = angular.element('#coachName').data('ejDropDownList').getSelectedItem()[0];\r\n if (angular.isDefined(coachItem)) {\r\n vm.athleteData.EdzoNev = angular.element('#coachName').data('ejDropDownList').getSelectedItem()[0].innerText;\r\n } else {\r\n vm.athleteData.EdzoNev = '';\r\n }\r\n vm.athleteData.KorcsoportNev = vm.selectedAgeGroupText;\r\n paramHelper.setParams([{'raceResultsReport.athleteData': vm.athleteData}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n return dataservice.getSystemSettings(arg).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function clearSecondSection() {\r\n vm.athleteData.MasodlagosSzakosztaly = undefined;\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.secondAgeGroupList = [];\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondSectionDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondAgeGroup() {\r\n vm.athleteData.MasodlagosKorcsoport = undefined;\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n vm.secondCoachList = [];\r\n $('#secondAgeGroupDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSecondCoach() {\r\n vm.athleteData.MasodlagosSzakosztalyEdzoNev = undefined;\r\n $('#secondCoachNameDropDown').ejDropDownList('clearText');\r\n }\r\n\r\n vm.emptyResultText = gettextCatalog.getString('emptyResultText');\r\n\r\n function schoolNameChanged() {\r\n if (vm.athleteData.IskolaNeve && vm.athleteData.IskolaNeve.length > 0) {\r\n dataservice.getGymTeachers(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.gymTeacherDatasource = data.itemsList;\r\n });\r\n dataservice.getClassMasters(vm.athleteData.IskolaNeve).then(function (data) {\r\n vm.classMasterDatasource = data.itemsList;\r\n });\r\n } else {\r\n vm.gymTeacherDatasource = [];\r\n vm.classMasterDatasource = [];\r\n }\r\n }\r\n\r\n vm.selectOf = selectOf;\r\n\r\n function selectOf(arg) {\r\n for (var i = 0; i < vm.classMasterDatasource.length; i++) {\r\n if (arg.value == vm.classMasterDatasource[i].value) {\r\n dataservice.getClassMasterContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.OfTel = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.OfEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n vm.selectTesiTanar = selectTesiTanar;\r\n\r\n function selectTesiTanar(arg) {\r\n for (var i = 0; i < vm.gymTeacherDatasource.length; i++) {\r\n if (arg.value == vm.gymTeacherDatasource[i].value) {\r\n dataservice.getGymTeacherContact(arg.value).then(function (data) {\r\n if (data.data.tel) {\r\n vm.athleteData.TestneveloElerhetosege = data.data.tel;\r\n }\r\n if (data.data.email) {\r\n vm.athleteData.TestneveloEmail = data.data.email;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n function getParentNames() {\r\n dataservice.getParentNames().then(function (data) {\r\n for (var i = 0; i < data.data.father.length; i++) {\r\n vm.fatherNames.push({value: data.data.father[i], text: data.data.father[i]});\r\n }\r\n for (var i = 0; i < data.data.mother.length; i++) {\r\n vm.motherNames.push({value: data.data.mother[i], text: data.data.mother[i]});\r\n }\r\n });\r\n }\r\n\r\n vm.selectMother = selectMother;\r\n\r\n function selectMother(arg) {\r\n if (arg && arg.value.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = '';\r\n vm.athleteData.AnyaEmail = '';\r\n vm.athleteData.AnyjaTestmagassaga = '';\r\n vm.athleteData.AnyjaFoglalkozasa = '';\r\n vm.athleteData.AnyaMunkahely = '';\r\n vm.athleteData.SportoloiMultAnya = '';\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1) {\r\n getParentData('mother', arg.value);\r\n vm.athleteData.AnyjaNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n vm.selectFather = selectFather;\r\n\r\n function selectFather(arg) {\r\n if (arg && arg.value.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = '';\r\n vm.athleteData.ApaEmail = '';\r\n vm.athleteData.ApjaTestmagassaga = '';\r\n vm.athleteData.ApjaFoglalkozasa = '';\r\n vm.athleteData.ApaMunkahely = '';\r\n vm.athleteData.SportoloiMultApa = '';\r\n var idx = arg.value.indexOf('(');\r\n if (idx != -1) {\r\n getParentData('father', arg.value);\r\n vm.athleteData.SzuloNeve = arg.value.substring(0, idx - 1);\r\n }\r\n }\r\n }\r\n\r\n function getParentData(parent, arg) {\r\n dataservice.getParentDataPOST(parent, arg).then(function (data) {\r\n if (parent == 'father') {\r\n if (data.data) {\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo2Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.ApaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.ApjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.ApjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.ApaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultApa = data.data.sportpast;\r\n }\r\n }\r\n } else if (parent == 'mother') {\r\n if (data.data) {\r\n if (data.data.tel && data.data.tel.length > 0) {\r\n vm.athleteData.Szulo1Elerhetosege = data.data.tel;\r\n }\r\n if (data.data.email && data.data.email.length > 0) {\r\n vm.athleteData.AnyaEmail = data.data.email;\r\n }\r\n if (data.data.height && data.data.height.length > 0) {\r\n vm.athleteData.AnyjaTestmagassaga = data.data.height;\r\n }\r\n if (data.data.job && data.data.job.length > 0) {\r\n vm.athleteData.AnyjaFoglalkozasa = data.data.job;\r\n }\r\n if (data.data.workplace && data.data.workplace.length > 0) {\r\n vm.athleteData.AnyaMunkahely = data.data.workplace;\r\n }\r\n if (data.data.sportpast && data.data.sportpast.length > 0) {\r\n vm.athleteData.SportoloiMultAnya = data.data.sportpast;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athleteNew')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athleteNew',\r\n config: {\r\n url: '/athleteNew',\r\n templateUrl: 'app/athletes/athletesManagement/athleteNew/athleteNew.html',\r\n controller: 'AthleteNewController',\r\n controllerAs: 'vm',\r\n title: 'AthleteNew',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athletesList')\r\n .controller('AthletesListController', athletesListController);\r\n\r\n function athletesListController(log, dataservice, $q, $state, gettextCatalog, $scope, paramHelper, authenticationService, $filter, $rootScope, $timeout) {\r\n let vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n this.params = []; // for parameters sending\r\n\r\n vm.userid = authenticationService.getAuthData().id;\r\n\r\n $rootScope.title = gettextCatalog.getString('AthletesList');\r\n\r\n // Permissions\r\n this.MEGTSPORTLIST = false;\r\n this.MEGTCSOPORT = false;\r\n this.MEGTKOROSZT = false;\r\n this.MODSPORTOLO = false;\r\n this.UJSPORTOLO = false;\r\n this.MEGTSPORTLIST = false;\r\n this.SPORTKILEP = false;\r\n this.MODFELH = false;\r\n this.KMVERSEREDM = false;\r\n this.athleteResultsBtnEnabled = false;\r\n // Dropdownlist's sources\r\n this.sectionList = [];\r\n this.ageGroupList = [];\r\n this.athleteList = [];\r\n // Dropdown values\r\n this.selectedSectionId = '';\r\n this.selectedAgeGroupId = '';\r\n this.selectedAgeGroupName = '';\r\n this.sportoliId = -1;\r\n // Checkbox variables\r\n this.checkboxEnabled = false;\r\n // Grid's details\r\n this.selectedAthleteExitDate = '';\r\n this.exitAthleteDateOk = false;\r\n this.selectedExitDate = undefined;\r\n this.athleteCompetitionResult = false;\r\n this.exitAthletesEnabled = true;\r\n // Grid columns\r\n this.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Athletes'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#templateDataRow1',\r\n width: 150\r\n },\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n template: '#templateDataRow2',\r\n width: 125\r\n },\r\n {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('PayedSportServiceFee'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('PayedEducationalFee'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', headerTextAlign: 'center', width: 100}\r\n ];\r\n\r\n let grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: this.columns,\r\n rowDataBound: (args) => {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: (args) => {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = (args) => {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n let activate = () => {\r\n if (!authenticationService.isAuthenticated()) {\r\n $rootScope.login();\r\n return;\r\n }\r\n Promise.all([paramHelper.getParams([],\r\n [\r\n 'athleteList.selectedSectionId',\r\n 'athleteList.selectedAgeGroupId',\r\n 'athleteList.inactiveAthletes'\r\n ]),\r\n authenticationService.getRight('MEGTSPORTLIST'),\r\n authenticationService.getRight('MEGTCSOPORT'),\r\n authenticationService.getRight('MEGTKOROSZT'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('UJSPORTOLO'),\r\n authenticationService.getRight('SPORTKILEP'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('KMVERSEREDM')\r\n ]).then((results) => {\r\n // Nem épül fel a DOM Three, mire érték adódik\r\n $timeout(() => {\r\n this.MEGTSPORTLIST = results[1];\r\n this.MEGTCSOPORT = results[2];\r\n this.MEGTKOROSZT = results[3];\r\n this.MODSPORTOLO = results[4];\r\n this.UJSPORTOLO = results[5];\r\n this.SPORTKILEP = results[6];\r\n this.MODFELH = results[7];\r\n this.KMVERSEREDM = results[8];\r\n\r\n if (!(this.MEGTSPORTLIST)) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n // set selected values for dropDownLists\r\n this.params.sectionId = results[0]['athleteList.selectedSectionId'];\r\n this.params.selectedAgeGroupId = results[0]['athleteList.selectedAgeGroupId'];\r\n // set selected values for checkBox\r\n this.params.inactiveAthletes = results[0]['athleteList.inactiveAthletes'];\r\n // Permission for delete\r\n this.TORLCSOPORT = results[1];\r\n // Permission for modify\r\n this.MODCSOPORT = results[2];\r\n // Set params for checkBox\r\n // if (!this.params.inactiveAthletes) {\r\n // this.inactiveAthletes = false;\r\n // } else {\r\n // this.inactiveAthletes = true;\r\n // }\r\n angular.element('#active').ejCheckBox({checked: this.params.inactiveAthletes});\r\n // Get section list\r\n getSections();\r\n }, 0);\r\n });\r\n };\r\n\r\n let getSections = () => {\r\n dataservice.sectionDropDownList(0)\r\n .then((data) => {\r\n this.sectionList = data.itemsList;\r\n });\r\n };\r\n\r\n this.sectionDataBound = () => {\r\n this.selectedSectionId = this.sectionList.length === 1 ? this.sectionList[0].value : this.params.sectionId;\r\n };\r\n\r\n this.sectionSelect = (args) => {\r\n this.selectedSectionId = args.value;\r\n this.checkboxEnabled = true;\r\n if (angular.isUndefined(this.params.ageGroupId)) {\r\n //getTeams();\r\n getAthletes();\r\n }\r\n getAgeGroups();\r\n paramHelper.setParams([{'athleteList.selectedSectionId': this.selectedSectionId}]);\r\n };\r\n\r\n let getAgeGroups = () => {\r\n dataservice.ageGroupDropDownList(this.selectedSectionId)\r\n .then((data) => {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n this.ageGroupList = data.itemsList;\r\n if (this.ageGroupList.length == 1) {\r\n $timeout(() => {\r\n this.ageGroupId = this.ageGroupList[0].value;\r\n }, 0);\r\n }\r\n });\r\n };\r\n\r\n this.ageGroupDataBound = () => {\r\n if (this.ageGroupList.length === 1) {\r\n this.selectedAgeGroupId = this.ageGroupList[0].value;\r\n } else {\r\n if (this.params.sectionId && this.params.selectedAgeGroupId && parseInt(this.params.sectionId) === parseInt(this.selectedSectionId)) {\r\n this.selectedAgeGroupId = this.params.selectedAgeGroupId;\r\n } else {\r\n this.selectedAgeGroupId = 0;\r\n }\r\n }\r\n };\r\n\r\n this.ageGroupSelect = (args) => {\r\n this.selectedAgeGroupId = args.value;\r\n //getTeams();\r\n getAthletes();\r\n paramHelper.setParams([{'athleteList.selectedAgeGroupId': this.selectedAgeGroupId}]);\r\n };\r\n\r\n let getAthletes = () => {\r\n dataservice.athletesSelect(this.selectedSectionId, this.selectedAgeGroupId, this.inactiveAthletes)\r\n .then((data) => {\r\n this.athleteResultsBtnEnabled = false;\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n };\r\n\r\n this.inactiveChange = (args) => {\r\n this.inactiveAthletes = args.value;\r\n this.exitAthletesEnabled = !args.value;\r\n getAthletes();\r\n paramHelper.setParams([{'athleteList.inactiveAthletes': this.inactiveAthletes}]);\r\n };\r\n\r\n this.goToUser = (EdzoId) => {\r\n if (!this.MODFELH) {\r\n log.errorMsg(gettextCatalog.getString('YouHaveNoPermissionToThisFunction'));\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': EdzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n };\r\n\r\n this.goToNewAthlete = () => {\r\n if (this.selectedSectionId > 0) {\r\n // Save data for restore\r\n this.selectedSectionName = angular.element('#sectionDropDown').data('ejDropDownList').selectedTextValue;\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n\r\n paramHelper.setParams([\r\n {'athleteNew.sportolokId': -1},\r\n {'athleteNew.sectionList': this.sectionList},\r\n {'athleteNew.selectedSectionId': this.selectedSectionId},\r\n {'athleteNew.selectedSectionName': this.selectedSectionName},\r\n {'athleteNew.ageGroupList': this.ageGroupList},\r\n {'athleteNew.selectedAgeGroupId': this.selectedAgeGroupId},\r\n {'athleteNew.selectedAgeGroupName': this.selectedAgeGroupName},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteNew');\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('RequiredSection'));\r\n }\r\n };\r\n\r\n this.modifyAthletes = (id) => {\r\n if (this.MODSPORTOLO || this.MEGTSPORTLIST) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': id},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }\r\n };\r\n\r\n this.modifyAthletesButton = () => {\r\n if (this.MODSPORTOLO || this.MEGTSPORTLIST) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([\r\n {'athleteModify.sportoloId': selectedAthletes[0].SportolokId},\r\n {'athleteModify.sportoloNev': selectedAthletes[0].Nev},\r\n {'athleteList.selectedAgeGroupName': this.selectedAgeGroupName}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n }\r\n };\r\n\r\n let saveExitAthletes = () => {\r\n let data = {};\r\n this.athletesId = [];\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n for (let i = 0; i < selectedAthletes.length; i++) {\r\n this.athletesId.push(selectedAthletes[i].SportolokId);\r\n }\r\n data.athletesId = this.athletesId;\r\n data.selectedExitDate = this.selectedExitDate;\r\n data.noteExitText = this.noteExitText;\r\n data.firstSection = true;\r\n if (!this.SPORTKILEP) {\r\n log.errorMsg(gettextCatalog.getString('PermissionDenied'));\r\n return;\r\n }\r\n dataservice.saveExitAthletes(data)\r\n .then((answer) => {\r\n console.log('saveExitAthletes answer', answer);\r\n // swal() kiírni az eredményt\r\n if (answer.message && answer.message.length > 0) {\r\n swal({\r\n title: gettextCatalog.getString('ExitAthleteResult'),\r\n html: answer.message,\r\n type: 'warning',\r\n confirmButtonClass: 'btn-danger',\r\n confirmButtonText: 'Ok',\r\n width: '35%'\r\n });\r\n var message = answer.message.replace('<br>', '\\n').replace(/<[^>]*>/g, '');\r\n dataservice.SendSystemMessage(vm.userid, message);\r\n } else {\r\n log.successMsg('SuccesfulExitAthlete');\r\n }\r\n getAthletes();\r\n });\r\n };\r\n\r\n this.goneAthletesBtn = () => {\r\n if ($rootScope.checkRowSelection(grid)) {\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n let exitAthletesNames = '';\r\n for (let i = 0; i < selectedAthletes.length; i++) {\r\n exitAthletesNames += selectedAthletes[i].Nev + '; ';\r\n }\r\n\r\n this.visible = false; // Not need use this for angularJs, because the swa enable appear Error message\r\n\r\n let HTMLtext = `<p id=\"datepickValidText\" style=\"color: #a94442;\" class=\"ng-hide\" ng-show=\"this.visible\">\r\n <label>${gettextCatalog.getString('PleasGiveTheStartMonthgoneAthlete')}</label><br></p>\r\n <div style=\"margin-bottom: 10px; width: 95%;\" >\r\n <label>${gettextCatalog.getString('SelectDategoneAthlete')}<br></label></div>\r\n <div style=\"margin-left: 30%;\"><input id=\"datepick\" type=\"text\"></div>\r\n <br><label>${gettextCatalog.getString('ExitedAthletesNamesText')}</label><br>\r\n <textarea id=\"exitAthleteNamesTextArea\" rows=\"2\" cols=\"55\" style=\"width: 95%; resize: none; padding: 5px;\">${exitAthletesNames}</textarea><br>\r\n <br><label>${gettextCatalog.getString('ExitedAthletesText')}</label><br>\r\n <textarea id=\"noteTextArea\" rows=\"4\" cols=\"55\" style=\"width: 95%; resize: none; padding: 5px;\"></textarea>`;\r\n\r\n swal({\r\n title: gettextCatalog.getString('ExitAthlete'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Exiting'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: () => {\r\n let preConfOk = false;\r\n this.selectedExitDate = angular.element('#datepick').data('ejDatePicker').getValue(); // get value\r\n this.noteExitText = angular.element('#noteTextArea').val();\r\n return new Promise((resolve) => {\r\n if (this.selectedExitDate === null || !this.exitAthleteDateOk) {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SelectExitDate')); // Válaszd ki a kiléptetés dátumát!\r\n } else {\r\n preConfOk = true;\r\n }\r\n if (this.noteExitText === null || this.noteExitText === '') {\r\n // Must show the error message!\r\n preConfOk = false;\r\n swal.showValidationError(gettextCatalog.getString('SetNoteText')); // Írd be a kiléptetés indokát!\r\n } else {\r\n preConfOk = true;\r\n }\r\n resolve();\r\n });\r\n },\r\n closeOnCancel: false\r\n }).then((confirmed) => {\r\n if (confirmed.value) {\r\n saveExitAthletes();\r\n swal.close();\r\n return true;\r\n } else {\r\n swal(gettextCatalog.getString('Cancelled'), gettextCatalog.getString('notExitAthlete'), 'error');\r\n }\r\n });\r\n // Set DatePicker\r\n angular.element('#datepick').ejDatePicker({\r\n // set date format\r\n dateFormat: 'yyyy-MM-dd',\r\n change: (args) => {\r\n // Get current date\r\n let currentDate = new Date();\r\n this.selectedExitDate = new Date(args.value);\r\n /*\r\n if (this.selectedExitDate.getFullYear() > currentDate.getFullYear()) {\r\n // Error, no correct date\r\n this.exitAthleteDateOk = false;\r\n } else if (this.selectedExitDate.getMonth() > currentDate.getMonth()) {\r\n // Error, no correct date\r\n this.exitAthleteDateOk = false;\r\n } else {\r\n this.exitAthleteDateOk = this.selectedExitDate.getDate() === getMonthLastDay(args.value);\r\n }\r\n */\r\n this.exitAthleteDateOk = true;\r\n\r\n function getMonthLastDay(selectDate) {\r\n let date = new Date(selectDate);\r\n let y = date.getFullYear();\r\n let m = date.getMonth();\r\n let lastDay = new Date(y, m + 1, 0).getDate();\r\n return date.getDate();\r\n }\r\n }\r\n });\r\n }\r\n };\r\n\r\n this.competitionResult = () => {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n this.selectedAgeGroupName = angular.element('#ageGroupDropDown').data('ejDropDownList').selectedTextValue;\r\n let selectedAthletes = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'raceResultsReport.athleteData': selectedAthletes[0]}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n };\r\n\r\n // Activate page\r\n activate();\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement.athletesList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement.athletesList',\r\n config: {\r\n url: '/athletesList',\r\n templateUrl: 'app/athletes/athletesManagement/athletesList/athletesList.html',\r\n controller: 'AthletesListController',\r\n controllerAs: 'vm',\r\n title: 'AthletesList',\r\n settings: {\r\n navId: 211,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Tagnyilvántartás',\r\n orderTitle_en: 'Member register',\r\n parentId: 1,\r\n content: 'AthletesList',\r\n activatorPermission: ['\"MEGTSPORTLIST\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.athletesManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.athletesManagement',\r\n config: {\r\n url: '/athletesManagement',\r\n templateUrl: 'app/athletes/athletesManagement/athletesManagement.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.sections')\r\n .controller('SectionsController', SectionsController);\r\n\r\n function SectionsController(logger, log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, paramHelper, $state) {\r\n $rootScope.title = gettextCatalog.getString('Sections');\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n vm.editEnabled = false;\r\n vm.editEnabledPerm = false;\r\n\r\n vm.EditSection = EditSection;\r\n vm.AddSection = AddSection;\r\n\r\n activate();\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: '35px'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {\r\n field: 'SzakosztalyVezeto1',\r\n headerText: gettextCatalog.getString('PrimarySectionLeader'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 200\r\n },\r\n {\r\n field: 'SzakosztalyVezeto2',\r\n headerText: gettextCatalog.getString('SecondarySectionLeader'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 200\r\n },\r\n {\r\n field: 'Egyeni', headerText: gettextCatalog.getString('IndividualSport'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Csapat', headerText: gettextCatalog.getString('TeamSport'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Aktiv', headerText: gettextCatalog.getString('Aktiv'), textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 75\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n queryCellInfo: querycellinfo,\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SZAKOSZTALY')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.userId = authenticationService.getAuthData().id;\r\n vm.editEnabledPerm = result[0];\r\n getSectionData();\r\n }\r\n });\r\n }\r\n\r\n function getSectionData() {\r\n dataservice.getSectionData(0).then(function (response) {\r\n grid.dataSource = response.itemsList;\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n if (arg.column.field == 'SzakosztalyNeve') {\r\n var cell = angular.element(arg.cell);\r\n cell.css('background-color', arg.data.Szin);\r\n cell.css('color', arg.data.SzovegSzin);\r\n }\r\n }\r\n\r\n function AddSection() {\r\n paramHelper.setParams([{'editSection.SectionId': -1}]);\r\n $state.go('settings.editSection');\r\n }\r\n\r\n function EditSection() {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n vm.editSection = selectedRecords[0];\r\n paramHelper.setParams([{'editSection.SectionId': vm.editSection.SzakosztalyID}]);\r\n $state.go('settings.editSection');\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.sections')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.sections',\r\n config: {\r\n url: '/sections',\r\n templateUrl: 'app/athletes/sections/sections.html',\r\n controller: 'SectionsController',\r\n controllerAs: 'vm',\r\n title: 'Sections',\r\n settings: {\r\n navId: 142,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Szakosztályok',\r\n orderTitle_en: 'Sections',\r\n parentId: 1,\r\n content: 'Sections',\r\n activatorPermission: ['\"SZAKOSZTALY\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.addTeam')\r\n .controller('AddTeamController', AddTeamController);\r\n\r\n function AddTeamController(log, $state, dataservice, $q, DOMAIN, gettextCatalog, $scope, paramHelper, authenticationService, $rootScope, validatorHelper, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddTeam');\r\n\r\n vm.MEGTCSOPORT = false;\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n // Default values\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.formData = {\r\n FileData: null,\r\n FileName: DOMAIN.userImage,\r\n TeamName: undefined,\r\n Comment: undefined,\r\n SectionId: undefined,\r\n AgeGroupId: undefined,\r\n CoachId: undefined,\r\n ActiveTeam: true\r\n };\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n // Public functions\r\n vm.saveTeam = saveTeam;\r\n vm.saveTeamAndAddMembers = saveTeamAndAddMembers;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.simpleSave = simpleSave;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['teams.sectionId', 'teams.ageGroupId']), authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n vm.formData.SectionId = results[0]['teams.sectionId'];\r\n vm.formData.AgeGroupId = results[0]['teams.ageGroupId'];\r\n $timeout(function () {\r\n vm.MEGTCSOPORT = results[1];\r\n }, 0);\r\n angular.element('#ActiveTeam').ejCheckBox({checked: vm.formData.ActiveTeam});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#SectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#SectionId').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formData.SectionId)\r\n .then(function (data) {\r\n vm.formData.CoachId = undefined;\r\n vm.coachList = [];\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#AgeGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.AgeGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#AgeGroupId').ejDropDownList('selectItemByValue', vm.formData.AgeGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formData.AgeGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formData.SectionId, vm.formData.AgeGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#CoachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.CoachId = vm.coachList[0].value;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formData.CoachId = args.value;\r\n }\r\n\r\n function saveTeam(simpleSave) {\r\n if (angular.element('#FileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.FileData = vm.cropper.croppedImage;\r\n vm.formData.FileName = angular.element('#FileName').val();\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n dataservice.saveTeam(vm.formData)\r\n .then(function (data) {\r\n log.successMsg('TeamSaved');\r\n paramHelper.setParams([{'teams.sectionId': vm.formData.SectionId}, {'teams.ageGroupId': vm.formData.AgeGroupId}]);\r\n if (simpleSave) {\r\n $state.go('athletes.teams.teamList');\r\n } else {\r\n paramHelper.setParams([{'teams.team': data.res}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n }, function (response) {\r\n validatorHelper.validate(response, $scope.form);\r\n });\r\n }\r\n }\r\n\r\n function simpleSave() {\r\n saveTeam(true);\r\n }\r\n\r\n function saveTeamAndAddMembers() {\r\n saveTeam(false);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#FileName').val('');\r\n vm.photoUrl = vm.noImg;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.addTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.addTeam',\r\n config: {\r\n url: '/addTeam',\r\n templateUrl: 'app/athletes/teams/addTeam/addTeam.html',\r\n controller: 'AddTeamController',\r\n controllerAs: 'vm',\r\n title: 'AddTeams'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.addTeamMember')\r\n .controller('AddTeamMemberController', AddTeamMember);\r\n\r\n function AddTeamMember(log, $state, dataservice, $q, gettextCatalog, paramHelper, $scope, authenticationService, $rootScope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddTeamMember');\r\n\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', headerTextAlign: 'center', width: 35},\r\n {\r\n field: 'Name',\r\n headerText: gettextCatalog.getString('Name'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n template: '#adtemetemplateDataColumn1',\r\n width: 150\r\n },\r\n {field: 'BirthDate', headerText: gettextCatalog.getString('BirthDate'), width: 125, headerTextAlign: 'center', textAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n width: '100%',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.addTeamMemberToTeam = addTeamMemberToTeam;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MODCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['teams.sectionId', 'teams.ageGroupId', 'teams.team']), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n vm.csapat = results[0]['teams.team'];\r\n vm.korosztaly = results[0]['teams.ageGroupId'];\r\n vm.szakosztaly = results[0]['teams.sectionId'];\r\n vm.MEGTSPORTLIST = results[1];\r\n getPossibleTeamMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getPossibleTeamMembersList() {\r\n return dataservice.getPossibleTeamMembersList(vm.csapat, vm.szakosztaly, vm.korosztaly)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'BirthDate');\r\n });\r\n }\r\n\r\n function addTeamMemberToTeam() {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length !== 0) {\r\n var out = [];\r\n for (var i = 0; i < selectedRows.length && selectedRows[i]; i++) {\r\n out.push(selectedRows[i].Id);\r\n }\r\n dataservice.addTeamMemberToTeam(out, vm.csapat).then(function (data) {\r\n data = data.retValue;\r\n if (data === true) {\r\n getPossibleTeamMembersList();\r\n log.successMsg('TeamMemberAddedToTeam');\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouHaveToSelectLeastAthlete');\r\n }\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteModify.selectedSectionId': vm.szakosztaly}, {'athleteModify.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.addTeamMember')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.addTeamMember',\r\n config: {\r\n url: '/addTeamMember',\r\n templateUrl: 'app/athletes/teams/addTeamMember/addTeamMember.html',\r\n controller: 'AddTeamMemberController',\r\n controllerAs: 'vm',\r\n title: 'AddTeamMember'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.modifyTeam')\r\n .controller('ModifyTeamController', ModifyTeamController);\r\n\r\n function ModifyTeamController(log, $state, dataservice, $q, DOMAIN, gettextCatalog, $scope, paramHelper, authenticationService, $rootScope, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyTeam');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n // Default values\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.formData = {\r\n TeamId: 0,\r\n FileData: null,\r\n FileName: 'avatar_2x.png',\r\n TeamName: undefined,\r\n Comment: undefined,\r\n SectionId: undefined,\r\n AgeGroupId: undefined,\r\n CoachId: undefined,\r\n ActiveTeam: true\r\n };\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n // Public functions\r\n vm.modifyTeam = modifyTeam;\r\n vm.modifyTeamAndAddMembers = modifyTeamAndAddMembers;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.deleteImg = deleteImg;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.simpleModifyTeam = simpleModifyTeam;\r\n vm.activeCheckboxChanged = activeCheckboxChanged;\r\n vm.modifyTeamAndAddMembersButtonEnabled = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODCSOPORT'), authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $timeout(function () {\r\n vm.MODCSOPORT = results[0];\r\n });\r\n paramHelper.getParams(['teams.team']).then(function (results) {\r\n vm.formData.TeamId = results['teams.team'];\r\n getTeam().then(function () {\r\n getSections();\r\n }, function () {\r\n log.errorMsg('CantGetTeam');\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTeam() {\r\n return $q(function (resolve) {\r\n dataservice.getTeam(vm.formData.TeamId).then(function (data) {\r\n vm.team = data;\r\n vm.formData.TeamName = data.csapatNev;\r\n vm.formData.Comment = data.megjegyzes;\r\n vm.formData.SectionId = data.szakosztalyId;\r\n vm.formData.AgeGroupId = data.korosztalyId;\r\n vm.formData.CoachId = data.edzoId;\r\n angular.element('#activeCheckBox').ejCheckBox({checked: data.aktiv});\r\n vm.formData.ActiveTeam = data.aktiv;\r\n if (!data.kep || data.kep == 'avatar_2x.png') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.userImage;\r\n } else {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.teamPhotosUrl + data.kep;\r\n }\r\n\r\n vm.formData.FileName = data.kep;\r\n resolve();\r\n });\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.SectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.formData.SectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.formData.SectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.formData.SectionId)\r\n .then(function (data) {\r\n vm.coachList = [];\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.AgeGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.formData.AgeGroupId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.formData.AgeGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.formData.SectionId, vm.formData.AgeGroupId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.CoachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.formData.CoachId);\r\n }\r\n }\r\n\r\n /**\r\n * Edző kiválasztásakor fut le és lekéri a korosztály edzőit\r\n * @author Richard Keki\r\n */\r\n function coachSelect(args) {\r\n vm.formData.CoachId = args.value;\r\n }\r\n\r\n function activeCheckboxChanged(args) {\r\n vm.modifyTeamAndAddMembersButtonEnabled = args.value;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n vm.formData.ActiveTeam = args.value;\r\n }\r\n\r\n function modifyTeam(simpleSave) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n if (angular.element('#FileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.FileData = vm.cropper.croppedImage;\r\n vm.formData.FileName = angular.element('#FileName').val();\r\n }\r\n dataservice.modifyTeam(vm.formData)\r\n .then(function () {\r\n log.successMsg('TeamModified');\r\n paramHelper.setParams([{'teams.sectionId': vm.formData.SectionId}, {'teams.ageGroupId': vm.formData.AgeGroupId}]);\r\n if (simpleSave) {\r\n $state.go('athletes.teams.teamList');\r\n } else {\r\n $state.go('athletes.teams.teamMembersList');\r\n }\r\n });\r\n }\r\n }\r\n\r\n function simpleModifyTeam() {\r\n modifyTeam(true);\r\n }\r\n\r\n function modifyTeamAndAddMembers() {\r\n modifyTeam(false);\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#FileName').val('');\r\n vm.photoUrl = vm.noImg;\r\n vm.formData.FileName = 'oldDeleted';\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.modifyTeam')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.modifyTeam',\r\n config: {\r\n url: '/modifyTeam',\r\n templateUrl: 'app/athletes/teams/modifyTeam/modifyTeam.html',\r\n controller: 'ModifyTeamController',\r\n controllerAs: 'vm',\r\n title: 'ModifyTeams'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.teamList')\r\n .controller('TeamListController', TeamsCtrl);\r\n\r\n function TeamsCtrl(dataservice, $q, $state, $rootScope, gettextCatalog, $scope, paramHelper, authenticationService, log, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = this;\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('TeamList');\r\n\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n // Checkbox variables\r\n vm.inactiveTeams = false;\r\n vm.checkboxEnabled = false;\r\n // Grid's details\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'csapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 100,\r\n template: '#teamlistcolumnTemplate1'\r\n },\r\n {\r\n field: 'edzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 125,\r\n template: '#teamlistcolumnTemplate2'\r\n },\r\n {\r\n field: 'aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 75,\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {field: 'versenyzo', headerText: gettextCatalog.getString('Athletes'), textAlign: 'center', width: 75},\r\n {field: 'versenyzoFiu', headerText: gettextCatalog.getString('Man'), textAlign: 'center', width: 75},\r\n {field: 'versenyzoLany', headerText: gettextCatalog.getString('Woman'), textAlign: 'center', width: 75},\r\n {field: 'megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 200, headerTextAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n grid.dataBound = function () {\r\n if (grid.dataSource.length === 1) {\r\n grid.selectRow(0);\r\n }\r\n };\r\n\r\n // Public functions\r\n vm.inactiveChange = inactiveChange;\r\n vm.deleteTeam = deleteTeam;\r\n vm.goToAddTeam = goToAddTeam;\r\n vm.goToModifyTeam = goToModifyTeam;\r\n vm.goToTeamMembersList = goToTeamMembersList;\r\n vm.openCoach = openCoach;\r\n vm.sectionChange = sectionChange;\r\n vm.ageGroupChange = ageGroupChange;\r\n vm.openTeamResults = openTeamResults;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTCSOPORT = result;\r\n $q.all([paramHelper.getParams([], ['teams.sectionId', 'teams.ageGroupId', 'teams.inactiveTeams']), authenticationService.getRight('TORLCSOPORT'), authenticationService.getRight('MODCSOPORT'), authenticationService.getRight('UJCSOPORT'), authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n vm.defaultSection = results[0]['teams.sectionId'];\r\n vm.defaultAgeGroup = results[0]['teams.ageGroupId'];\r\n vm.inactiveTeams = results[0]['teams.inactiveTeams'];\r\n vm.TORLCSOPORT = results[1];\r\n vm.MODCSOPORT = results[2];\r\n vm.UJCSOPORT = results[3];\r\n vm.MEGTCSERJEL = results[4];\r\n if (!vm.inactiveTeams) {\r\n vm.inactiveTeams = false;\r\n }\r\n angular.element('#active').ejCheckBox({checked: vm.inactiveTeams});\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function openTeamResults() {\r\n if (vm.MEGTCSERJEL) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'teamID': selectedRecords[0].csapatId}]);\r\n $state.go('reports.raceResultsReport');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (vm.sectionList.length === 1) {\r\n $timeout(function () {\r\n vm.sectionId = vm.sectionList[0].value;\r\n }, 0);\r\n } else {\r\n $timeout(function () {\r\n vm.sectionId = vm.defaultSection;\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionChange(args) {\r\n vm.checkboxEnabled = true;\r\n if (!vm.ageGroupId && !vm.defaultAgeGroup) {\r\n getTeams(args.value, 0, vm.inactiveTeams);\r\n }\r\n getAgeGroups(args.value);\r\n paramHelper.setParams([{'teams.sectionId': args.value}]);\r\n }\r\n\r\n // Get age groups' list\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n if (vm.ageGroupList.length === 1) {\r\n $timeout(function () {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n }, 0);\r\n } else {\r\n if (vm.sectionId == vm.defaultSection) {\r\n $timeout(function () {\r\n vm.ageGroupId = vm.defaultAgeGroup;\r\n }, 0);\r\n } else {\r\n $timeout(function () {\r\n vm.ageGroupId = 0;\r\n }, 0);\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupChange(args) {\r\n getTeams(vm.sectionId, args.value, vm.inactiveTeams);\r\n paramHelper.setParams([{'teams.ageGroupId': args.value}]);\r\n }\r\n\r\n // Get teams' list\r\n function getTeams(sectionId, ageGroupId, active) {\r\n return dataservice.teamList(sectionId, ageGroupId, active).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n // when click inactives checkbox\r\n function inactiveChange(args) {\r\n vm.inactiveTeams = args.value;\r\n paramHelper.setParams([{'teams.inactiveTeams': args.value}]);\r\n if (vm.sectionId) {\r\n getTeams(vm.sectionId, vm.ageGroupId, args.value);\r\n }\r\n }\r\n\r\n function deleteTeam() {\r\n if (vm.TORLCSOPORT) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n if (selectedRecords[0].versenyzo > 0) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamWithMembers'),\r\n text: gettextCatalog.getString('TeamHasMembers'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Delete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n deleteTeamById(selectedRecords[0].csapatId);\r\n }\r\n });\r\n } else if (selectedRecords[0].aktiv === true) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeam'),\r\n text: gettextCatalog.getString('MakesTeamPassive'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Delete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n deleteTeamById(selectedRecords[0].csapatId);\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouCantDeleteInactiveTeam');\r\n }\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function deletePlayersFromTeam(id) {\r\n return dataservice.deleteTeamsPlayers(id)\r\n .then(function (data) {\r\n if (data.retValue !== true) {\r\n log.errorMsg('CantDeleted');\r\n } else {\r\n getTeams(vm.sectionId, vm.ageGroupId, vm.inactiveTeams);\r\n }\r\n });\r\n }\r\n\r\n function deleteTeamById(id) {\r\n return dataservice.deleteTeam(id).then(function (data) {\r\n if (data.retValue === true) {\r\n deletePlayersFromTeam(id);\r\n } else {\r\n log.errorMsg('TeamDeletedError', 'CantDeleted');\r\n }\r\n });\r\n }\r\n\r\n function goToAddTeam() {\r\n if (vm.UJCSOPORT) {\r\n paramHelper.setParams([{'teams.sectionId': vm.sectionId}, {'teams.ageGroupId': vm.ageGroupId}, {'teams.inactiveTeams': vm.inactiveTeams}]);\r\n $state.go('athletes.teams.addTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToModifyTeam() {\r\n if (vm.MODCSOPORT || vm.MEGTCSOPORT) {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n paramHelper.setParams([{'teams.sectionId': vm.sectionId}, {'teams.ageGroupId': vm.ageGroupId}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': selectedRecords[0].csapatId}]);\r\n $state.go('athletes.teams.modifyTeam');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToTeamMembersList(szakosztaly, korosztaly, csapat, inaktiv) {\r\n if (vm.MODCSOPORT) {\r\n if (szakosztaly && korosztaly && csapat && angular.isDefined(inaktiv)) {\r\n paramHelper.setParams([{'teams.sectionId': szakosztaly}, {'teams.ageGroupId': korosztaly}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': csapat}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n if ($rootScope.checkRowSelection(grid, true)) {\r\n var selectedRecords = $rootScope.getSelectedItems(grid);\r\n var sectionName;\r\n var ageGroupName;\r\n if (selectedRecords[0].aktiv !== false) {\r\n vm.sectionList.forEach(elem => {\r\n if (elem.value == vm.sectionId) {\r\n sectionName = elem.text;\r\n return;\r\n }\r\n });\r\n vm.ageGroupList.forEach(elem => {\r\n if (elem.value == vm.ageGroupId) {\r\n ageGroupName = elem.text;\r\n return;\r\n }\r\n });\r\n paramHelper.setParams([{'teams.sectionId': selectedRecords[0].szakosztalyId}, {'teams.ageGroupId': selectedRecords[0].korosztalyId}, {'teams.inactiveTeams': vm.inactiveTeams}, {'teams.team': selectedRecords[0].csapatId}, {'teams.teamName': selectedRecords[0].csapatNev}, {'teams.sectionName': sectionName}, {'teams.ageGroupName': ageGroupName}]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.errorMsg('YouCantViewInactiveTeamsMembers');\r\n }\r\n }\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.teamList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.teamList',\r\n config: {\r\n url: '/teamList',\r\n templateUrl: 'app/athletes/teams/teamList/teamList.html',\r\n controller: 'TeamListController',\r\n controllerAs: 'vm',\r\n title: 'TeamList',\r\n settings: {\r\n navId: 221,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Csapatok',\r\n orderTitle_en: 'Team list',\r\n parentId: 1,\r\n content: 'TeamList',\r\n activatorPermission: ['\"MEGTCSOPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.teamMembersList')\r\n .controller('TeamMembersListController', TeamMembersList);\r\n\r\n function TeamMembersList(log, $state, dataservice, $q, $filter, gettextCatalog, paramHelper, authenticationService, $scope, $rootScope) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('TeamMembersTitle');\r\n\r\n vm.now = new Date();\r\n vm.dateValue = vm.now;\r\n // Grid's variable\r\n vm.columns = [\r\n {type: 'checkbox', textAlign: 'center', width: 35},\r\n {\r\n field: 'Name',\r\n headerText: gettextCatalog.getString('Name'),\r\n template: '#temelitemplateDataColumn1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'BirthDate', headerText: gettextCatalog.getString('BirthDate'), width: 125, textAlign: 'center', headerTextAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n width: '100%',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.dateChange = dateChange;\r\n vm.deleteTeamMember = deleteTeamMember;\r\n vm.goToAddTeamMember = goToAddTeamMember;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTCSOPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams(['teams.sectionId', 'teams.ageGroupId', 'teams.team', 'teams.teamName', 'teams.sectionName', 'teams.ageGroupName'], ['teams.date']),\r\n authenticationService.getRight('MEGTSPORTLIST')\r\n ]).then(function (results) {\r\n vm.csapat = results[0]['teams.team'];\r\n vm.korosztaly = results[0]['teams.ageGroupId'];\r\n vm.szakosztaly = results[0]['teams.sectionId'];\r\n vm.teamName = results[0]['teams.teamName'];\r\n vm.sectionName = results[0]['teams.sectionName'];\r\n vm.ageGroupName = results[0]['teams.ageGroupName'];\r\n if (results[0]['teams.date'] != null) {\r\n vm.dateValue = results[0]['teams.date'];\r\n }\r\n vm.MEGTSPORTLIST = results[1];\r\n getTeamMembersList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getTeamMembersList() {\r\n dataservice.getTeamMembersList(vm.csapat, vm.dateValue).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'BirthDate');\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n if (args.value !== null) {\r\n vm.dateValue = args.value;\r\n getTeamMembersList();\r\n paramHelper.setParams([{'teams.date': vm.dateValue}]);\r\n }\r\n }\r\n\r\n function deleteTeamMember() {\r\n var selectedRows = $rootScope.getSelectedItems(grid);\r\n if (selectedRows.length !== 0) {\r\n var out = [];\r\n for (var i = 0; i < selectedRows.length; i++) {\r\n out.push(selectedRows[i].Id);\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DeleteTeamMembers'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheTeamMembers'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteTeamMember(vm.csapat, out)\r\n .then(function () {\r\n getTeamMembersList();\r\n log.successMsg('TeamMemberDeletedSuccess');\r\n });\r\n }\r\n });\r\n } else {\r\n log.errorMsg('YouHaveToSelectLeastAthlete');\r\n }\r\n }\r\n\r\n function goToAddTeamMember() {\r\n $state.go('athletes.teams.addTeamMember');\r\n }\r\n\r\n function goToNewAthlete(Id) {\r\n if (vm.MEGTSPORTLIST) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': Id}, {'athleteNew.selectedSectionId': vm.szakosztaly}, {'athleteNew.selectedAgeGroupId': vm.korosztaly}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n }\r\n})\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams.teamMembersList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams.teamMembersList',\r\n config: {\r\n url: '/teamMembersList',\r\n templateUrl: 'app/athletes/teams/teamMembersList/teamMembersList.html',\r\n controller: 'TeamMembersListController',\r\n controllerAs: 'vm',\r\n title: 'TeamMembersList'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.athletes.teams')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'athletes.teams',\r\n config: {\r\n url: '/teams',\r\n templateUrl: 'app/athletes/teams/teams.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('blocks.exception')\r\n .provider('exceptionHandler', exceptionHandlerProvider)\r\n .config(config);\r\n\r\n /**\r\n * Must configure the exception handling\r\n */\r\n function exceptionHandlerProvider() {\r\n /* jshint validthis:true */\r\n this.config = {\r\n environment: undefined\r\n };\r\n\r\n this.configure = function (environment) {\r\n this.config.environment = environment;\r\n };\r\n\r\n this.$get = function () {\r\n return {config: this.config};\r\n };\r\n }\r\n\r\n function config($provide) {\r\n $provide.decorator('$exceptionHandler', extendExceptionHandler);\r\n }\r\n\r\n function extendExceptionHandler($delegate, exceptionHandler, logger, $injector) {\r\n return function (exception) {\r\n if (!(exception && typeof exception === 'object')) {\r\n return;\r\n }\r\n var object = {\r\n vm: null,\r\n stateList: null,\r\n actualState: null,\r\n localStorage: null,\r\n ClientSideException: null,\r\n title: null\r\n };\r\n var rootScope = $injector.get('$rootScope');\r\n var LS = $injector.get('localStorageService');\r\n var keys = LS.keys();\r\n var LSItems = [];\r\n keys.forEach(function (element) {\r\n LSItems.push(element + ': ' + LS.get(element));\r\n });\r\n\r\n var ClientSideException = {Message: '', stack: ''};\r\n if (exception.__proto__.hasOwnProperty('toString')) {\r\n ClientSideException.Message = exception.toString();\r\n }\r\n if (exception.hasOwnProperty('stack')) {\r\n ClientSideException.stack = exception.stack.toString();\r\n }\r\n object.localStorage = LSItems;\r\n object.actualState = rootScope.actualState;\r\n object.stateList = rootScope.stateList;\r\n object.title = rootScope.htmlTitle;\r\n object.ClientSideException = ClientSideException;\r\n var cloneVM = $.extend(true, {}, rootScope.vm);\r\n var cloneVMkeys = Object.keys(cloneVM);\r\n cloneVMkeys.forEach(function (vmKey) {\r\n try {\r\n JSON.stringify(cloneVM[vmKey]);\r\n }\r\n catch (err) {\r\n cloneVM[vmKey] = null;\r\n }\r\n });\r\n object.vm = cloneVM;\r\n\r\n if ((ClientSideException.Message.indexOf('LogClientSideException') != -1) || (ClientSideException.stack.indexOf('LogClientSideException') != -1)) {\r\n return;\r\n }\r\n\r\n var jsonObject = JSON.stringify(object);\r\n\r\n if (exceptionHandler.config.environment !== 'development') {\r\n var dataService = $injector.get('dataservice');\r\n if (rootScope.vm.hasOwnProperty('netError') && rootScope.vm.netError == true) {\r\n return;\r\n }\r\n dataService.sendLocalException(jsonObject).then(function () {});\r\n }\r\n\r\n if (exceptionHandler.config.environment === 'development') {\r\n //logger.error(exception);\r\n $delegate(exception);\r\n }\r\n };\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('blocks.logger')\r\n .factory('logger', loggers)\r\n .provider('log', log);\r\n\r\n function loggers($log, toastr) {\r\n return {\r\n error: error,\r\n info: info,\r\n success: success,\r\n warning: warning\r\n };\r\n /////////////////////\r\n\r\n /**\r\n * Logging erros to console and sweetalert and toastr\r\n * @author Richard Keki\r\n * @param {string} message\r\n * @param {string} title\r\n * @param {string} data\r\n */\r\n function error(message, title, data) {\r\n toastr.error(message);\r\n $log.error('Error: ', message, data);\r\n if (angular.isUndefined(title)) {\r\n title = 'Error';\r\n }\r\n swal({title: title, html: message, type: 'error'});\r\n }\r\n\r\n function info(message) {\r\n toastr.info(message);\r\n $log.info('Info: ', message);\r\n }\r\n\r\n function success(message) {\r\n toastr.success(message);\r\n $log.info('Success: ', message);\r\n }\r\n\r\n function warning(message) {\r\n toastr.warning(message);\r\n $log.warn('Warning: ', message);\r\n }\r\n }\r\n\r\n function log() {\r\n this.environment = ''; // jshint ignore: line\r\n\r\n this.setEnvironment = function (env) { // jshint ignore: line\r\n this.environment = env;\r\n };\r\n\r\n this.$get = function ($injector) { // jshint ignore: line\r\n var gettextCatalog = $injector.get('gettextCatalog');\r\n var $log = $injector.get('$log');\r\n var toastr = $injector.get('toastr');\r\n var env = this.environment;\r\n var $rootScope = $injector.get('$rootScope');\r\n return {\r\n permissionError: function (back) {\r\n var message = gettextCatalog.getString('YouHaveNoPermissionToThisFunction');\r\n var title = gettextCatalog.getString('PermissionDenied');\r\n swal({title: title, html: message, type: 'error'});\r\n if (env === 'development') {\r\n $log.error(title + ': ', message);\r\n toastr.error(message);\r\n }\r\n if (back === true) {\r\n $rootScope.fromBack = true;\r\n $rootScope.back();\r\n }\r\n },\r\n\r\n errorMsg: function (message, data) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Error');\r\n if (env === 'development') {\r\n toastr.error(message);\r\n $log.error(title + ': ', message, data);\r\n }\r\n swal({title: title, html: message, type: 'error'});\r\n },\r\n\r\n htmlError: function (htmlMessage) {\r\n var title = gettextCatalog.getString('Error');\r\n if (env === 'development') {\r\n toastr.error(htmlMessage);\r\n $log.error(title + ': ' + htmlMessage);\r\n }\r\n swal({title: title, html: htmlMessage, type: 'error'});\r\n },\r\n\r\n infoMsg: function (message) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Info');\r\n toastr.info(message);\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n helpMsg: function (message) {\r\n var title = '';\r\n //var title = gettextCatalog.getString('Help');\r\n swal({title: title, html: gettextCatalog.getString(message), type: 'info'});\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n helpMsgSmall: function (message) {\r\n var title = '';\r\n //var title = gettextCatalog.getString('Help');\r\n swal({title: title, html: '<div style=\"font-size: 0.9em;\">' + gettextCatalog.getString(message) + '</div>', type: 'info'});\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n successMsg: function (message) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Success');\r\n toastr.success(message);\r\n if (env === 'development') {\r\n $log.info(title + ': ', message);\r\n }\r\n },\r\n\r\n htmlSuccess: function (htmlMessage) {\r\n // = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Success');\r\n toastr.success(htmlMessage);\r\n if (env === 'development') {\r\n $log.info(title + ': ', htmlMessage);\r\n }\r\n },\r\n\r\n warningMsg: function (message, hideSwal) {\r\n message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Warning');\r\n toastr.warning(message);\r\n if (env === 'development') {\r\n $log.warn(title + ': ', message);\r\n }\r\n if (!(hideSwal === true)) {\r\n swal({title: title, html: message, type: 'warning'});\r\n }\r\n },\r\n\r\n htmlWarning: function (message) {\r\n //message = gettextCatalog.getString(message);\r\n var title = gettextCatalog.getString('Warning');\r\n toastr.warning(message);\r\n if (env === 'development') {\r\n $log.warn(title + ': ', message);\r\n }\r\n swal({title: title, html: message, type: 'warning'});\r\n }\r\n };\r\n };\r\n }\r\n}());\r\n","/* Help configure the state-base ui.router */\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('blocks.router')\r\n .provider('routerHelper', routerHelperProvider);\r\n\r\n function routerHelperProvider($locationProvider, $stateProvider, $urlRouterProvider) {\r\n /* jshint validthis:true */\r\n var config = {\r\n docTitle: undefined,\r\n resolveAlways: {}\r\n };\r\n\r\n $locationProvider.html5Mode(false);\r\n\r\n this.configure = function (cfg) {\r\n angular.extend(config, cfg);\r\n };\r\n\r\n this.$get = RouterHelper;\r\n function RouterHelper($location, $rootScope, $state, logger, authenticationService) {\r\n var handlingStateChangeError = false;\r\n var hasOtherwise = false;\r\n var stateCounts = {\r\n errors: 0,\r\n changes: 0\r\n };\r\n\r\n var service = {\r\n configureStates: configureStates,\r\n getStates: getStates,\r\n stateCounts: stateCounts\r\n };\r\n\r\n init();\r\n\r\n return service;\r\n\r\n ///////////////\r\n\r\n function configureStates(states, otherwisePath) {\r\n states.forEach(function (state) {\r\n state.config.resolve =\r\n angular.extend(state.config.resolve || {}, config.resolveAlways);\r\n $stateProvider.state(state.state, state.config);\r\n });\r\n if (otherwisePath && !hasOtherwise) {\r\n hasOtherwise = true;\r\n $urlRouterProvider.otherwise(otherwisePath);\r\n }\r\n }\r\n\r\n function handleRoutingErrors() {\r\n // Route cancellation:\r\n // On routing error, go to the dashboard.\r\n // Provide an exit clause if it tries to do it twice.\r\n $rootScope.$on('$stateChangeError',\r\n function (event, toState, toParams, fromState, fromParams, error) {\r\n if (handlingStateChangeError) {\r\n return;\r\n }\r\n stateCounts.errors++;\r\n handlingStateChangeError = true;\r\n var destination = toState && (toState.title || toState.name || toState.loadedTemplateUrl) || 'unknown target';\r\n var msg = 'Error routing to ' + destination + '. ' +\r\n (error.data || '') + '. <br/>' + (error.statusText || '') +\r\n ': ' + (error.status || '');\r\n logger.warning(msg, [toState]);\r\n $location.path('/');\r\n }\r\n );\r\n }\r\n\r\n function init() {\r\n handleRoutingErrors();\r\n updateDocTitle();\r\n }\r\n\r\n function getStates() {\r\n return $state.get();\r\n }\r\n\r\n function updateDocTitle() {\r\n $rootScope.$on('$stateChangeSuccess',\r\n function () { // paraméterek: event, toState, toParams, fromState, fromParams\r\n if (!authenticationService.isAuthenticated()) {\r\n $state.go('login');\r\n return;\r\n }\r\n stateCounts.changes++;\r\n handlingStateChangeError = false;\r\n //var title = config.docTitle + ' ';\r\n //$rootScope.title = title; // data bind to <title>\r\n }\r\n );\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByAthletes')\r\n .controller('AnnualEducationalFeeByAthletesController', AnnualEducationalFeeByAthletesController);\r\n\r\n function AnnualEducationalFeeByAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByAthletes');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), width: 150,\r\n template: '#annualeducationalfeebyathletecolumnTemplate1',\r\n textAlign: 'center', headerTextAlign: 'center'\r\n },\r\n {\r\n field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150,\r\n template: '#annualeducationalfeebyathletecolumnTemplate2',\r\n textAlign: 'center', headerTextAlign: 'center'\r\n },\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 125, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 100,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 100,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZSP')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByAthletes(vm.year).then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByAthletes',\r\n config: {\r\n url: '/annualEducationalFeeByAthletes',\r\n templateUrl: 'app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.html',\r\n controller: 'AnnualEducationalFeeByAthletesController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByAthletes',\r\n settings: {\r\n navId: 2163,\r\n level: 2,\r\n order: 16,\r\n orderTitle_hu: 'Oktatási díj összesítés sportolónként',\r\n orderTitle_en: 'Annual Educational Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByAthletes',\r\n activatorPermission: ['\"OKTOSSZSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByCoach')\r\n .controller('AnnualEducationalFeeByCoachController', AnnualEducationalFeeByCoachController);\r\n\r\n function AnnualEducationalFeeByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByCoach');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center', headerTextAlign: 'center',\r\n template: '#annualeducationalfeebycoachcolumnTemplate'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 130, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('Elvart'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('Tenyleges'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'E1', headerText: gettextCatalog.getString('January') + ' E1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T1', headerText: gettextCatalog.getString('January') + ' T1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E2', headerText: gettextCatalog.getString('February') + ' E2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T2', headerText: gettextCatalog.getString('February') + ' T2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E3', headerText: gettextCatalog.getString('March') + ' E3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T3', headerText: gettextCatalog.getString('March') + ' T3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E4', headerText: gettextCatalog.getString('April') + ' E4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T4', headerText: gettextCatalog.getString('April') + ' T4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E5', headerText: gettextCatalog.getString('May') + ' E5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T5', headerText: gettextCatalog.getString('May') + ' T5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E6', headerText: gettextCatalog.getString('June') + ' E6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T6', headerText: gettextCatalog.getString('June') + ' T6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E7', headerText: gettextCatalog.getString('July') + ' E7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T7', headerText: gettextCatalog.getString('July') + ' T7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E8', headerText: gettextCatalog.getString('August') + ' E8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T8', headerText: gettextCatalog.getString('August') + ' T8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E9', headerText: gettextCatalog.getString('September') + ' E9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T9', headerText: gettextCatalog.getString('September') + ' T9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E10', headerText: gettextCatalog.getString('October') + ' E10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T10', headerText: gettextCatalog.getString('October') + ' T10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E11', headerText: gettextCatalog.getString('November') + ' E11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T11', headerText: gettextCatalog.getString('November') + ' T11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E12', headerText: gettextCatalog.getString('December') + ' E12', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T12', headerText: gettextCatalog.getString('December') + ' T12', textAlign: 'center', width: 115, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZEDZO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByCoach(vm.year).then(function(data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByCoach',\r\n config: {\r\n url: '/annualEducationalFeeByCoach',\r\n templateUrl: 'app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.html',\r\n controller: 'AnnualEducationalFeeByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByCoach',\r\n settings: {\r\n navId: 2153,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Oktatási díj összesítés edzőnként',\r\n orderTitle_en: 'Annual Educational Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByCoach',\r\n activatorPermission: ['\"OKTOSSZEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByOneSection')\r\n .controller('AnnualEducationalFeeByOneSectionController', AnnualEducationalFeeByOneSectionController);\r\n\r\n function AnnualEducationalFeeByOneSectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeByOneSection');\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'EdzoNeve',\r\n groupFooterTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n groupFooterTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n groupFooterTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 125,\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n template: '#annualeducationalfeebyonesectioncolumnTemplate'\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n groupFooterTemplate: 'Total freight: ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {field: 'Year', headerText: gettextCatalog.getString('Year'), visible: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n toolbar: $rootScope.toolbarItems,\r\n groupSettings: {showDropArea: false, columns: ['Year']},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.sectionSelect = sectionSelect;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SZAKOKTDIJBEF')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getDatas();\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeByOneSection(vm.sectionId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeByOneSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeByOneSection',\r\n config: {\r\n url: '/annualEducationalFeeByOneSection',\r\n templateUrl: 'app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.html',\r\n controller: 'AnnualEducationalFeeByOneSectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeByOneSection',\r\n settings: {\r\n navId: 2173,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Szakosztályonkénti oktatási díj befizetések',\r\n orderTitle_en: 'Annual Educational Fee by One Section',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeByOneSection',\r\n activatorPermission: ['\"SZAKOKTDIJBEF\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeBySection')\r\n .controller('AnnualEducationalFeeBySectionController', AnnualEducationalFeeBySectionController);\r\n\r\n function AnnualEducationalFeeBySectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualEducationalFeeBySection');\r\n\r\n // Create variables\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'SzakosztalyNeve',\r\n footerTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 140, headerTextAlign: 'center', textAlign: 'center'},\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('ElvartOssz'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 140,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('TenylegesOssz'),\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 140,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E1',\r\n headerText: gettextCatalog.getString('January') + ' E1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T1',\r\n headerText: gettextCatalog.getString('January') + ' T1',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E2',\r\n headerText: gettextCatalog.getString('February') + ' E2',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T2',\r\n headerText: gettextCatalog.getString('February') + ' T2',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E3',\r\n headerText: gettextCatalog.getString('March') + ' E3',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T3',\r\n headerText: gettextCatalog.getString('March') + ' T3',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E4',\r\n headerText: gettextCatalog.getString('April') + ' E4',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T4',\r\n headerText: gettextCatalog.getString('April') + ' T4',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E5',\r\n headerText: gettextCatalog.getString('May') + ' E5',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T5',\r\n headerText: gettextCatalog.getString('May') + ' T5',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E6',\r\n headerText: gettextCatalog.getString('June') + ' E6',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T6',\r\n headerText: gettextCatalog.getString('June') + ' T6',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E7',\r\n headerText: gettextCatalog.getString('July') + ' E7',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T7',\r\n headerText: gettextCatalog.getString('July') + ' T7',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E8',\r\n headerText: gettextCatalog.getString('August') + ' E8',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T8',\r\n headerText: gettextCatalog.getString('August') + ' T8',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E9',\r\n headerText: gettextCatalog.getString('September') + ' E9',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T9',\r\n headerText: gettextCatalog.getString('September') + ' T9',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E10',\r\n headerText: gettextCatalog.getString('October') + ' E10',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T10',\r\n headerText: gettextCatalog.getString('October') + ' T10',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E11',\r\n headerText: gettextCatalog.getString('November') + ' E11',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T11',\r\n headerText: gettextCatalog.getString('November') + ' T11',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E12',\r\n headerText: gettextCatalog.getString('December') + ' E12',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T12',\r\n headerText: gettextCatalog.getString('December') + ' T12',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n console.log('args', args);\r\n console.log('grid', grid);\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('OKTOSSZSZAKO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualEducationalFeeBySection(vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualEducationalFeeBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualEducationalFeeBySection',\r\n config: {\r\n url: '/annualEducationalFeeBySection',\r\n templateUrl: 'app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.html',\r\n controller: 'AnnualEducationalFeeBySectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualEducationalFeeBySection',\r\n settings: {\r\n navId: 2143,\r\n level: 2,\r\n order: 14,\r\n orderTitle_hu: 'Oktatási díj összesítés szakosztályonként',\r\n orderTitle_en: 'Annual Educational Fee by Section',\r\n parentId: 3,\r\n content: 'AnnualEducationalFeeBySection',\r\n activatorPermission: ['\"OKTOSSZSZAKO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByAthletes')\r\n .controller('AnnualSportServiceFeeByAthletesController', AnnualSportServiceFeeByAthletesController);\r\n\r\n function AnnualSportServiceFeeByAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByAthletes');\r\n\r\n // Create variables\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), width: 150, headerTextAlign: 'center', textAlign: 'center',\r\n template: '#annualsportservicefeebyathletecolumnTemplate1'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 125, headerTextAlign: 'center', textAlign: 'center',\r\n template: '#annualsportservicefeebyathletecolumnTemplate2'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 120, headerTextAlign: 'center', textAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('Elvart'), headerTextAlign: 'center', textAlign: 'center', width: 100, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('Tenyleges'), headerTextAlign: 'center', textAlign: 'center', width: 100, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDOSP')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeByAthletes(vm.year).then(function(data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByAthletes',\r\n config: {\r\n url: '/annualSportServiceFeeByAthletes',\r\n templateUrl: 'app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.html',\r\n controller: 'AnnualSportServiceFeeByAthletesController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByAthletes',\r\n settings: {\r\n navId: 2123,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Sportszolgáltatási díj összesítés sportolónként',\r\n orderTitle_en: 'Annual Sport Service Fee by Athlets',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByAthletes',\r\n activatorPermission: ['\"MEGTTAGDOSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByCoach')\r\n .controller('AnnualSportServiceFeeByCoachController', AnnualSportServiceFeeByCoachController);\r\n\r\n function AnnualSportServiceFeeByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByCoach');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, textAlign: 'center', headerTextAlign: 'center',\r\n template: '#annualsportservicefeebycoachcolumnTemplate'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 130, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Elvart', headerText: gettextCatalog.getString('ElvartOssz'), textAlign: 'center', headerTextAlign: 'center', width: 120, format: 'N0'},\r\n {field: 'Tenyleges', headerText: gettextCatalog.getString('TenylegesOssz'), textAlign: 'center', headerTextAlign: 'center', width: 120, format: 'N0'},\r\n {field: 'E1', headerText: gettextCatalog.getString('January') + ' E1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T1', headerText: gettextCatalog.getString('January') + ' T1', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E2', headerText: gettextCatalog.getString('February') + ' E2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T2', headerText: gettextCatalog.getString('February') + ' T2', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E3', headerText: gettextCatalog.getString('March') + ' E3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T3', headerText: gettextCatalog.getString('March') + ' T3', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E4', headerText: gettextCatalog.getString('April') + ' E4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T4', headerText: gettextCatalog.getString('April') + ' T4', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E5', headerText: gettextCatalog.getString('May') + ' E5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T5', headerText: gettextCatalog.getString('May') + ' T5', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E6', headerText: gettextCatalog.getString('June') + ' E6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T6', headerText: gettextCatalog.getString('June') + ' T6', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E7', headerText: gettextCatalog.getString('July') + ' E7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T7', headerText: gettextCatalog.getString('July') + ' T7', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E8', headerText: gettextCatalog.getString('August') + ' E8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T8', headerText: gettextCatalog.getString('August') + ' T8', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E9', headerText: gettextCatalog.getString('September') + ' E9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T9', headerText: gettextCatalog.getString('September') + ' T9', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E10', headerText: gettextCatalog.getString('October') + ' E10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T10', headerText: gettextCatalog.getString('October') + ' T10', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E11', headerText: gettextCatalog.getString('November') + ' E11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T11', headerText: gettextCatalog.getString('November') + ' T11', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'E12', headerText: gettextCatalog.getString('December') + ' E12', textAlign: 'center', width: 115, format: 'N0'},\r\n {field: 'T12', headerText: gettextCatalog.getString('December') + ' T12', textAlign: 'center', width: 115, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n vm.openCoach = openCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDOED')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeByCoach(vm.year).then(function(data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByCoach',\r\n config: {\r\n url: '/annualSportServiceFeeByCoach',\r\n templateUrl: 'app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.html',\r\n controller: 'AnnualSportServiceFeeByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByCoach',\r\n settings: {\r\n navId: 2113,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Sportszoláltatási díj összesítés edzőnként',\r\n orderTitle_en: 'Annual Sport Service Fee by Coach',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByCoach',\r\n activatorPermission: ['\"MEGTTAGDOED\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByOneSection')\r\n .controller('AnnualSportServiceFeeByOneSectionController', AnnualSportServiceFeeByOneSectionController);\r\n\r\n function AnnualSportServiceFeeByOneSectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeByOneSection');\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n groupFooterTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n groupFooterTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 125,\r\n template: '#annualsportservicefeebyonesectioncolumnTemplate',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n width: 125,\r\n groupFooterTemplate: 'Total freight: ${Sum}',\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n width: 125,\r\n format: 'N0',\r\n textAlign: 'center',\r\n headerTextAlign: 'center',\r\n },\r\n {field: 'Year', headerText: gettextCatalog.getString('Year'), visible: false}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n toolbar: $rootScope.toolbarItems,\r\n groupSettings: {showDropArea: false, columns: ['Year']},\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n locale: 'hu-HU',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SZAKOSPDIJBEF')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getDatas(args.value);\r\n }\r\n\r\n function getDatas(sectionId) {\r\n dataservice.getAnnualSportServiceFeeByOneSection(sectionId).then(function (data) {\r\n console.log('data.itemsList: ' + data.itemsList.length);\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeByOneSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeByOneSection',\r\n config: {\r\n url: '/annualSportServiceFeeByOneSection',\r\n templateUrl: 'app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.html',\r\n controller: 'AnnualSportServiceFeeByOneSectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeByOneSection',\r\n settings: {\r\n navId: 2133,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Szakosztályonkénti sportszolgáltatási díj összesítés',\r\n orderTitle_en: 'Annual Sport Service Fee by One Section',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeByOneSection',\r\n activatorPermission: ['\"SZAKOSPDIJBEF\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeBySection')\r\n .controller('AnnualSportServiceFeeBySectionController', AnnualSportServiceFeeBySectionController);\r\n\r\n function AnnualSportServiceFeeBySectionController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualSportServiceFeeBySection');\r\n\r\n // Create variables\r\n vm.data = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.year = new Date().getFullYear();\r\n\r\n vm.summaryRows = [{\r\n columns: [{\r\n type: 'Sum',\r\n field: 'SzakosztalyNeve',\r\n footerTemplate: gettextCatalog.getString('Sum')\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Elvart',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Tenyleges',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T1',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T2',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T3',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T4',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T5',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T6',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T7',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T8',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T9',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T10',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T11',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'E12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'T12',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Elvart',\r\n headerText: gettextCatalog.getString('Elvart'),\r\n textAlign: 'center',\r\n width: 125,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'Tenyleges',\r\n headerText: gettextCatalog.getString('Tenyleges'),\r\n textAlign: 'center',\r\n width: 125,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E1',\r\n headerText: gettextCatalog.getString('January') + ' E1',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T1',\r\n headerText: gettextCatalog.getString('January') + ' T1',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E2',\r\n headerText: gettextCatalog.getString('February') + ' E2',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T2',\r\n headerText: gettextCatalog.getString('February') + ' T2',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E3',\r\n headerText: gettextCatalog.getString('March') + ' E3',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T3',\r\n headerText: gettextCatalog.getString('March') + ' T3',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E4',\r\n headerText: gettextCatalog.getString('April') + ' E4',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T4',\r\n headerText: gettextCatalog.getString('April') + ' T4',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E5',\r\n headerText: gettextCatalog.getString('May') + ' E5',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T5',\r\n headerText: gettextCatalog.getString('May') + ' T5',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E6',\r\n headerText: gettextCatalog.getString('June') + ' E6',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T6',\r\n headerText: gettextCatalog.getString('June') + ' T6',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E7',\r\n headerText: gettextCatalog.getString('July') + ' E7',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T7',\r\n headerText: gettextCatalog.getString('July') + ' T7',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E8',\r\n headerText: gettextCatalog.getString('August') + ' E8',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T8',\r\n headerText: gettextCatalog.getString('August') + ' T8',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E9',\r\n headerText: gettextCatalog.getString('September') + ' E9',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T9',\r\n headerText: gettextCatalog.getString('September') + ' T9',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E10',\r\n headerText: gettextCatalog.getString('October') + ' E10',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T10',\r\n headerText: gettextCatalog.getString('October') + ' T10',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E11',\r\n headerText: gettextCatalog.getString('November') + ' E11',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T11',\r\n headerText: gettextCatalog.getString('November') + ' T11',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'E12',\r\n headerText: gettextCatalog.getString('December') + ' E12',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n },\r\n {\r\n field: 'T12',\r\n headerText: gettextCatalog.getString('December') + ' T12',\r\n textAlign: 'center',\r\n width: 115,\r\n format: 'N0'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false, showDeleteConfirmDialog: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.getDatas = getDatas;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTTAGDSZO')];\r\n $q.all(promises).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSportServiceFeeBySection(vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.annualSportServiceFeeBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.annualSportServiceFeeBySection',\r\n config: {\r\n url: '/annualSportServiceFeeBySection',\r\n templateUrl: 'app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.html',\r\n controller: 'AnnualSportServiceFeeBySectionController',\r\n controllerAs: 'vm',\r\n title: 'AnnualSportServiceFeeBySection',\r\n settings: {\r\n navId: 2103,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Sportszolgáltatási díj összesítés szakosztályonként',\r\n orderTitle_en: 'Annual Sport Service Fee by Section',\r\n parentId: 3,\r\n content: 'AnnualSportServiceFeeBySection',\r\n activatorPermission: ['\"MEGTTAGDSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business',\r\n config: {\r\n title: 'Business',\r\n url: '/business',\r\n templateUrl: 'app/business/business.html',\r\n settings: {\r\n navId: 3,\r\n level: 1,\r\n order: 3,\r\n parentId: 0,\r\n content: 'Business',\r\n faIcon: 'fa-euro-sign',\r\n activatorPermission: [\r\n '\"OKTOSSZSP\"',\r\n '\"OKTOSSZEDZO\"',\r\n '\"SZAKOKTDIJBEF\"',\r\n '\"OKTOSSZSZAKO\"',\r\n '\"MEGTTAGDOSP\"',\r\n '\"MEGTTAGDOED\"',\r\n '\"SZAKOSPDIJBEF\"',\r\n '\"MEGTTAGDSZO\"',\r\n '\"CSEKKEXPORT\"',\r\n '\"CSV\"',\r\n '\"MEGTNAPIOKTD\"',\r\n '\"MEGTNAPITAGD\"',\r\n '\"MEGTTAGDNYILV\"',\r\n '\"MEGTTAGDBEALL\"',\r\n '\"MEGTHAVIJELLEM\"',\r\n '\"MEGTTAGDHATR\"',\r\n '\"MEGTTAGDNYILV\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.checkPayment')\r\n .controller('CheckPaymentController', CheckPaymentController);\r\n\r\n function CheckPaymentController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CheckPayment');\r\n\r\n // Create variables\r\n\r\n vm.data = [];\r\n vm.dataId = [];\r\n vm.payment = '0';\r\n vm.checkNumber = '';\r\n vm.hasCheck = false;\r\n vm.selectedRecords = {};\r\n\r\n // Grid's variables\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'Osszeg',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'Versenyzo', headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'Osszeg', headerText: gettextCatalog.getString('PaidAmount'), textAlign: 'center', headerTextAlign: 'center', width: 150, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.getCheck = getCheck;\r\n vm.pay = pay;\r\n vm.save = save;\r\n vm.removePayment = removePayment;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n grid.dataSource = vm.data;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('CSEKKEXPORT')];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function getCheck() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getCheck(vm.checkNumber).then(function(data) {\r\n vm.hasCheck = true;\r\n vm.actualPayment = data;\r\n vm.actualPayment.Osszeg = vm.payment;\r\n });\r\n }\r\n\r\n function pay() {\r\n if (vm.dataId.indexOf(vm.actualPayment.Id) === -1) {\r\n vm.data.push(vm.actualPayment);\r\n vm.dataId.push(vm.actualPayment.Id);\r\n grid.refresh();\r\n }\r\n }\r\n\r\n function removePayment() {\r\n var id = grid.getSelectedRecords()[0].Id;\r\n grid.dataSource = $rootScope.deleteRows(grid);\r\n var i = vm.dataId.indexOf(id);\r\n if (i !== -1) {\r\n vm.dataId.splice(i, 1);\r\n }\r\n }\r\n\r\n function save() {\r\n dataservice.checkPaymentsSave(vm.data).then(function() {\r\n log.successMsg('Saved');\r\n vm.data = [];\r\n vm.dataId = [];\r\n vm.actualPayment = {};\r\n vm.hasCheck = false;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.checkPayment')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.checkPayment',\r\n config: {\r\n url: '/checkPayment',\r\n templateUrl: 'app/business/checkPayment/checkPayment.html',\r\n controller: 'CheckPaymentController',\r\n controllerAs: 'vm',\r\n title: 'CheckPayment',\r\n settings: {\r\n navId: 2193,\r\n level: 2,\r\n order: 19,\r\n orderTitle_hu: 'Csekkes befizetés',\r\n orderTitle_en: 'Check Payment',\r\n parentId: 3,\r\n content: 'CheckPayment',\r\n activatorPermission: ['\"CSEKKEXPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.checkPrintingExport')\r\n .controller('CheckPrintingExportController', CheckPrintingExportController);\r\n\r\n function CheckPrintingExportController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CheckPrintingExport');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n\r\n var date = new Date();\r\n var y = date.getFullYear();\r\n var m = date.getMonth();\r\n vm.dateFromValue = new Date(y, m, 1);\r\n vm.dateToValue = new Date(y, m + 1, 0);\r\n\r\n vm.data = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Name'), width: 125,\r\n textAlign: 'center', headerTextAlign: 'center',\r\n template: '#checkprintingexportcolumnTemplate1'\r\n },\r\n {\r\n field: 'NyilvantartasiSzama',\r\n headerText: gettextCatalog.getString('RegistrationNumber'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'CimeIrSzam', headerText: gettextCatalog.getString('ZipCode'), textAlign: 'center', headerTextAlign: 'center', width: 95},\r\n {field: 'CimeVaros', headerText: gettextCatalog.getString('City'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'CimeUtca', headerText: gettextCatalog.getString('Street'), ttextAlign: 'center', headerTextAlign: 'center', textAlign: 'center', width: 125},\r\n {\r\n field: 'BefizetoAzonosito',\r\n headerText: gettextCatalog.getString('BefizetoAzonosito'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {\r\n field: 'Edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', headerTextAlign: 'center', width: 125,\r\n template: '#checkprintingexportcolumnTemplate2'\r\n },\r\n {\r\n field: 'FizetendoOsszeg',\r\n headerText: gettextCatalog.getString('FizetendoOsszeg'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getDatas = getDatas;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['checkPrintingExport.sectionId',\r\n 'checkPrintingExport.dateFrom',\r\n 'checkPrintingExport.coachId',\r\n 'checkPrintingExport.dateTo']), authenticationService.getRight('CSEKKEXPORT')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['checkPrintingExport.sectionId'];\r\n vm.defaultCoachId = results[0]['checkPrintingExport.coachId'];\r\n vm.dateFromValue = results[0]['checkPrintingExport.dateFrom'];\r\n vm.dateToValue = results[0]['checkPrintingExport.dateTo'];\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getcoaches();\r\n }\r\n\r\n function getDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'checkPrintingExport.sectionId': vm.sectionId},\r\n {'checkPrintingExport.coachId': vm.coachId},\r\n {'checkPrintingExport.dateFrom': vm.dateFromValue},\r\n {'checkPrintingExport.dateTo': vm.dateToValue}\r\n ]);\r\n return dataservice.getCheckExportPrintList(vm.sectionId, vm.coachId, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n vm.athletesList = data.itemsList;\r\n grid.dataSource = vm.athletesList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.checkPrintingExport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.checkPrintingExport',\r\n config: {\r\n url: '/checkPrintingExport',\r\n templateUrl: 'app/business/checkPrintingExport/checkPrintingExport.html',\r\n controller: 'CheckPrintingExportController',\r\n controllerAs: 'vm',\r\n title: 'CheckPrintingExport',\r\n settings: {\r\n navId: 2183,\r\n level: 2,\r\n order: 18,\r\n orderTitle_hu: 'Exportálás csekknyomtatáshoz',\r\n orderTitle_en: 'Export for Check Printing',\r\n parentId: 3,\r\n content: 'CheckPrintingExport',\r\n activatorPermission: ['\"CSEKKEXPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.csvPayment')\r\n .controller('CsvPaymentController', CsvPaymentController);\r\n\r\n function CsvPaymentController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, DOMAIN, $timeout, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CsvPayment');\r\n var grid = null;\r\n var WGridHeaderSelector = null;\r\n var WGridColumnSelector = null;\r\n var WGridEnc = null;\r\n var validSelections = [];\r\n\r\n activate();\r\n\r\n function activate() {\r\n reset();\r\n validSelections = [];\r\n vm.settings.CsvPresetLoaded = false;\r\n vm.step = 0;\r\n vm.columns = [\r\n {field: 'row', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'date',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'name',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'comment',\r\n headerText: gettextCatalog.getString('PaymentComment'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'amount',\r\n headerText: gettextCatalog.getString('amount'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'payments',\r\n headerText: gettextCatalog.getString('payments'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'depositor',\r\n headerText: gettextCatalog.getString('depositor'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'accept',\r\n type: 'checkbox',\r\n headerText: gettextCatalog.getString('Accept'),\r\n textAlign: 'center',\r\n width: 100,\r\n displayAsCheckBox: true,\r\n allowEditing: false,\r\n visible: true\r\n }\r\n ];\r\n vm.csvAll = [];\r\n vm.csv = [];\r\n var promises = [authenticationService.getRight('CSV'), getSystemSettingsValue('CSVSETTINGS')];\r\n $q.all(promises).then(function (results) {\r\n if (!results[0]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.step = 1;\r\n $('#step1').show();\r\n console.log('results', results);\r\n delete vm.settings.filename;\r\n delete vm.settings.mode;\r\n delete vm.settings.AmountColumn;\r\n delete vm.settings.CommentColumn;\r\n delete vm.settings.DateColumn;\r\n delete vm.settings.DepositorColumn;\r\n delete vm.settings.headerRow;\r\n delete vm.settings.encRow;\r\n if (results[1]) {\r\n var savedSettings = JSON.parse(results[1]);\r\n console.log('activate() vm.settings', vm.settings);\r\n if (savedSettings && savedSettings.hasOwnProperty('AmountColumn')) {\r\n console.log('savedSettings', savedSettings);\r\n vm.settings.AmountColumn = savedSettings.AmountColumn;\r\n vm.settings.CommentColumn = savedSettings.CommentColumn;\r\n vm.settings.DateColumn = savedSettings.DateColumn;\r\n vm.settings.DepositorColumn = savedSettings.DepositorColumn;\r\n vm.settings.headerRow = savedSettings.headerRow;\r\n vm.settings.CsvPresetLoaded = true;\r\n }\r\n }\r\n vm.data = [];\r\n vm.alldata = [];\r\n vm.printEnabled = false;\r\n vm.saveEnabled = false;\r\n vm.firstLineIsHeader = true;\r\n createUploadButton();\r\n CreateGrid();\r\n CreateWGridHeaderSelector();\r\n }\r\n });\r\n }\r\n\r\n function reset() {\r\n grid = null;\r\n WGridHeaderSelector = null;\r\n WGridColumnSelector = null;\r\n validSelections = [];\r\n vm.processModes = [\r\n {modeName: gettextCatalog.getString('CSV_JustOneLine'), mode: 'JUSTONELINE'},\r\n {modeName: gettextCatalog.getString('CSV_Merge'), mode: 'MERGE'}\r\n ];\r\n vm.wcolumns = [\r\n {field: 'id', isPrimaryKey: true, visible: false},\r\n {field: 'enc', visible: false}\r\n ];\r\n vm.data = [];\r\n vm.alldata = [];\r\n vm.querycellinfo = querycellinfo;\r\n vm.FilterFailedTransactions = FilterFailedTransactions;\r\n vm.noHeader = noHeader;\r\n vm.noDepositor = noDepositor;\r\n vm.headerSelected = headerSelected;\r\n vm.columnSelected = columnSelected;\r\n vm.StartAgain = StartAgain;\r\n vm.Continue = Continue;\r\n vm.SaveSettings = SaveSettings;\r\n vm.modeSelect = modeSelect;\r\n vm.cellSelected = cellSelected;\r\n vm.save = save;\r\n vm.cancel = activate;\r\n vm.printEnabled = false;\r\n vm.saveEnabled = false;\r\n vm.firstLineIsHeader = true;\r\n vm.red = '#eecdcd';\r\n vm.yellow = '#eeeecd';\r\n vm.green = '#cdeecd';\r\n vm.settings = {};\r\n }\r\n\r\n function CreateWGridHeaderSelector() {\r\n WGridHeaderSelector = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n rowSelected: function (arg) {\r\n console.log('WGridHeaderSelector rowSelected', arg);\r\n headerSelected(arg);\r\n }\r\n });\r\n }\r\n\r\n function CreateWGridColumnSelector() {\r\n WGridColumnSelector = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n console.log('WGridColumnSelector __ cellSelected', arg);\r\n cellSelected(arg);\r\n }\r\n });\r\n WGridColumnSelector.appendTo('#WGridColumnSelector');\r\n }\r\n\r\n function CreateGrid() {\r\n grid = new ej2.grids.Grid({\r\n dataSource: vm.data,\r\n columns: vm.columns,\r\n queryCellInfo: querycellinfo,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Multiple', mode: 'Row'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n rowSelected: function (arg) {\r\n RowSelect(arg.rowIndex, true);\r\n },\r\n rowDeselected: function (arg) {\r\n if (arg.rowIndex.length == 1) {\r\n RowSelect(arg.rowIndex[0], false);\r\n } else {\r\n RowSelect(-1, false);\r\n }\r\n },\r\n toolbarClick: function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n }\r\n });\r\n }\r\n\r\n function RowSelect(idx, select) {\r\n //console.log('RowSelect idx=', idx, ' select=', select);\r\n if (select && idx >= 0) {\r\n //console.log('RowSelect IF vm.data[' + idx + ']', vm.data[idx]);\r\n if (vm.data[idx].amountParse == -1) {\r\n grid.clearSelection();\r\n grid.selectRows(validSelections);\r\n } else if (validSelections.indexOf(idx) == -1) {\r\n validSelections.push(idx);\r\n }\r\n } else { // Deselect\r\n var IdxOfDeselected = validSelections.indexOf(idx);\r\n if (IdxOfDeselected != -1) {\r\n //console.log('Deselect idx=', idx, ' IdxOfDeselected=', IdxOfDeselected);\r\n validSelections.splice(IdxOfDeselected, 1);\r\n //console.log('Deselect validSelections', validSelections);\r\n }\r\n }\r\n }\r\n\r\n function modeSelect(arg) {\r\n console.log('modeSelect', arg);\r\n vm.settings.mode = arg.data.mode;\r\n CSVSettings(vm.settings);\r\n vm.step = 10;\r\n }\r\n\r\n function SetCsvGrid(data) {\r\n console.log('SetCsvGrid() data', data);\r\n if (data.warning.length > 0) {\r\n log.errorMsg(data.warning, gettextCatalog.getString('Warning'));\r\n }\r\n vm.settings.filename = data.filename;\r\n vm.csvAll = [];\r\n vm.csv = [];\r\n for (var c = 0; c < data.numberOfColumns; c++) {\r\n if (data.columnWidth[c] == 0) {\r\n vm.wcolumns.push({field: 'c' + c, headerText: '', visible: false});\r\n } else {\r\n vm.wcolumns.push({field: 'c' + c, headerText: '', textAlign: 'center', width: 120});\r\n }\r\n }\r\n vm.csvAll = data.itemsList;\r\n vm.csv = data.itemsList;\r\n\r\n var node = document.getElementById('WGridHeaderSelector');\r\n while (node && node.hasChildNodes()) {\r\n node.removeChild(node.lastChild);\r\n }\r\n WGridHeaderSelector.dataSource = vm.csv;\r\n WGridHeaderSelector.columns = vm.wcolumns;\r\n WGridHeaderSelector.appendTo('#WGridHeaderSelector');\r\n $scope.$apply();\r\n }\r\n\r\n function cellSelected(arg) {\r\n console.log('CELL SELECTED STEP=' + vm.step, arg);\r\n if (vm.step >= 4) {\r\n columnChoosen(arg.cellIndex.cellIndex - 2);\r\n }\r\n if (vm.step == 3) {\r\n log.infoMsg(gettextCatalog.getString('CSV_CharacterEncodingSelected'));\r\n console.log('STEP3 - ENCODING', arg.selectedRowCellIndex[0].rowIndex, arg.data.enc);\r\n dataservice.CSVPreprocessSelectHeader(vm.settings.filename, vm.settings.headerRow, arg.data.enc).then(function (response) {\r\n console.log('CSVPreprocessSelectHeader again', response);\r\n setHeadersAndWidth(response.headerTexts, response.columnWidth);\r\n vm.csv = response.itemsList;\r\n $timeout(function () {\r\n CreateWGridColumnSelector();\r\n vm.step = 4;\r\n }, 700);\r\n });\r\n }\r\n }\r\n\r\n function CreateWGridEnc() {\r\n WGridEnc = new ej2.grids.Grid({\r\n dataSource: vm.csv,\r\n columns: vm.wcolumns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: false,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n selectionSettings: {type: 'Single', mode: 'Cell'},\r\n cellSelected: function (arg) {\r\n console.log('WGridENC __ cellSelected', arg);\r\n cellSelected(arg);\r\n }\r\n });\r\n WGridEnc.appendTo('#WGridEnc');\r\n }\r\n\r\n function columnSelected(arg) {\r\n console.log('columnSelected', arg.columnIndex - 2);\r\n if (vm.step >= 4) {\r\n columnChoosen(arg.columnIndex - 2);\r\n }\r\n }\r\n\r\n function noDepositor() {\r\n columnChoosen(-1);\r\n }\r\n\r\n function columnChoosen(columnIndex) {\r\n console.log('step=' + vm.step, ' columnSelected', columnIndex);\r\n $timeout(function () {\r\n switch (vm.step) {\r\n case 4:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentCommentSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.CommentColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 5:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentDateSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.DateColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 6:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentDepositorSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.DepositorColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n case 7:\r\n log.infoMsg(gettextCatalog.getString('CSV_PaymentAmountSelected') + ': ' + vm.wcolumns[columnIndex + 2].headerText);\r\n vm.settings.AmountColumn = columnIndex;\r\n vm.step++;\r\n break;\r\n }\r\n WGridColumnSelector.clearSelection();\r\n }, 700);\r\n }\r\n\r\n function CSVSettings(settings) {\r\n console.log('CSVSettings', settings);\r\n if (!(settings.hasOwnProperty('AmountColumn') && settings.hasOwnProperty('CommentColumn') && settings.hasOwnProperty('DateColumn') && settings.hasOwnProperty('DepositorColumn'))) {\r\n return;\r\n }\r\n dataservice.CSVSettings(settings).then(function (response) {\r\n console.log('CSVSettings response', response);\r\n vm.data = response.data.data;\r\n vm.data = $filter('dateStringFilter')(vm.data, 'date');\r\n var node = document.getElementById('GridFinal');\r\n while (node && node.hasChildNodes()) {\r\n node.removeChild(node.lastChild);\r\n }\r\n grid.columns = vm.columns;\r\n grid.dataSource = vm.data;\r\n validSelections = [];\r\n vm.data.forEach(function (row) {\r\n if (row.amountParse > 0) {\r\n validSelections.push(row.row);\r\n }\r\n });\r\n grid.appendTo('#GridFinal');\r\n var upperrChkBox = angular.element('.e-checkbox-wrapper');\r\n upperrChkBox[0].innerHTML = '';\r\n }, function (reject) {\r\n console.log('CSVSettings reject', reject);\r\n StartAgain();\r\n });\r\n }\r\n\r\n function noHeader() {\r\n headerSelected({rowIndex: -1});\r\n vm.settings.headerRow = -1;\r\n }\r\n\r\n function headerSelected(header) {\r\n console.log('headerSelected', header);\r\n if (header.rowIndex >= 0) {\r\n log.infoMsg(gettextCatalog.getString('CSV_HeaderSelected'));\r\n } else {\r\n log.infoMsg(gettextCatalog.getString('CSV_HeaderSelectedNoHeader'));\r\n }\r\n vm.step = 3;\r\n vm.settings.headerRow = header.rowIndex;\r\n dataservice.CSVPreprocessSelectHeader(vm.settings.filename, vm.settings.headerRow, 'HEADERSELECT').then(function (response) {\r\n console.log('CSVPreprocessSelectHeader', response);\r\n if (header.rowIndex >= 0) {\r\n setHeadersAndWidth(vm.csvAll[header.rowIndex], response.columnWidth);\r\n }\r\n $timeout(function () {\r\n vm.csv = [];\r\n var rowCntr = 0;\r\n response.itemsList.forEach(function (row) {\r\n if (rowCntr++ >= header.rowIndex) {\r\n vm.csv.push(row);\r\n }\r\n });\r\n CreateWGridEnc();\r\n }, 50);\r\n });\r\n }\r\n\r\n function setHeadersAndWidth(headerRow, columnWidth) {\r\n console.log('SET HEADERS', headerRow, columnWidth);\r\n var colCntr = 0;\r\n vm.wcolumns.forEach(function (column) {\r\n if (colCntr++ > 1) {\r\n column.headerText = headerRow['c' + (colCntr - 3)];\r\n column.width = columnWidth[colCntr - 3] * 10.5;\r\n }\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function createUploadButton() {\r\n angular.element('#UploadButton').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'CSVPreprocessSelectHeader',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {\r\n browse: gettextCatalog.getString('ChooseFile'),\r\n upload: gettextCatalog.getString('UploadFile'),\r\n cancel: gettextCatalog.getString('CancelUpload')\r\n },\r\n dialogAction: {\r\n modal: true,\r\n closeOnComplete: true,\r\n resize: false,\r\n drag: false\r\n },\r\n dialogText: {\r\n title: gettextCatalog.getString('UploadingAndProcessingCSV'),\r\n name: gettextCatalog.getString('FileName'),\r\n size: gettextCatalog.getString('FileSize'),\r\n status: gettextCatalog.getString('FileStatus')\r\n },\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.csv',\r\n complete: function (args) {\r\n vm.printEnabled = false;\r\n vm.saveEnabled = true;\r\n vm.data = [];\r\n var idx = args.responseText.indexOf('ExceptionMessage\":');\r\n if (idx > 0) {\r\n idx += 19;\r\n var last = args.responseText.indexOf(',', idx) - 1;\r\n log.htmlError(args.responseText.substring(idx, last));\r\n } else {\r\n $('#step1').hide();\r\n console.log('vm.settings...', vm.settings);\r\n if (vm.settings.CsvPresetLoaded) {\r\n vm.step = 8;\r\n } else {\r\n vm.step = 2;\r\n }\r\n log.infoMsg(gettextCatalog.getString('UploadSuccessed'));\r\n var response = JSON.parse(args.responseText);\r\n SetCsvGrid(response);\r\n }\r\n },\r\n error: function () {\r\n log.htmlError(gettextCatalog.getString('UploadError'));\r\n },\r\n beforeSend: function () {\r\n },\r\n begin: function (args) {\r\n args.data = {file: '', headerRow: 0};\r\n }\r\n });\r\n }\r\n\r\n function FilterFailedTransactions() {\r\n vm.alldata = vm.data;\r\n vm.data = [];\r\n $timeout(function () {\r\n vm.alldata.forEach(function (row) {\r\n if (!row.accept) {\r\n vm.data.push(row);\r\n }\r\n });\r\n grid.dataSource = vm.data;\r\n grid.allowSelection = false;\r\n vm.columns[7].visible = false;\r\n grid.refreshColumns();\r\n grid.refreshHeader();\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n\r\n function save() {\r\n var selectedRecords = grid.getSelectedRecords();\r\n console.log('save selectedRecords', selectedRecords);\r\n vm.data.forEach(function (r) {\r\n r.accept = false;\r\n });\r\n selectedRecords.forEach(function (r) {\r\n vm.data[r.row].accept = true;\r\n });\r\n console.log('save vm.data', vm.data);\r\n vm.saveEnabled = false;\r\n var param = {};\r\n param.NemElfogadottLista = [];\r\n param.ElfogadottLista = [];\r\n vm.data.forEach(function (row) {\r\n if (row.accept) {\r\n param.ElfogadottLista.push(row);\r\n } else {\r\n param.NemElfogadottLista.push(row);\r\n }\r\n });\r\n vm.step++;\r\n swal({\r\n title: gettextCatalog.getString('MailWillBeSentToYouContainingUnprocessedAndProcessedCSVLines'),\r\n type: 'question',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n }).then(function () {\r\n AcceptCSVPayment(param);\r\n }, function () {\r\n AcceptCSVPayment(param);\r\n });\r\n }\r\n\r\n function AcceptCSVPayment(param) {\r\n param.filename = vm.settings.filename;\r\n console.log('AcceptCSVPayment', param);\r\n dataservice.AcceptCSVPayment(param).then(function () {\r\n console.log('AcceptCSVPayment OK');\r\n vm.printEnabled = true;\r\n FilterFailedTransactions();\r\n }, function (arg) {\r\n vm.printEnabled = false;\r\n vm.saveEnabled = true;\r\n vm.step--;\r\n console.log('AcceptCSVPayment ERR', arg);\r\n });\r\n }\r\n\r\n function SaveSettings() {\r\n var fileNameTemp = vm.settings.filename;\r\n delete vm.settings.filename;\r\n delete vm.settings.mode;\r\n delete vm.settings.CsvPresetLoaded;\r\n var SettingsJSON = JSON.stringify(vm.settings);\r\n console.log('saveSystemSettingsValue', vm.settings, SettingsJSON);\r\n dataservice.saveSystemSettingsValue('CSVSETTINGS', SettingsJSON).then(function () {\r\n log.successMsg(gettextCatalog.getString('CSVSettingsSavedSuccessed'));\r\n });\r\n vm.settings.filename = fileNameTemp;\r\n }\r\n\r\n function Continue() {\r\n vm.step++;\r\n }\r\n\r\n function StartAgain() {\r\n dataservice.saveSystemSettingsValue('CSVSETTINGS', '{}').then(function () {\r\n log.successMsg(gettextCatalog.getString('CSVSettingsSavedSuccessed'));\r\n $state.reload();\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var cell = angular.element(arg.cell);\r\n switch (arg.column.field) {\r\n case 'date':\r\n case 'comment':\r\n case 'name':\r\n switch (arg.data.sportoloParse) {\r\n case -2:\r\n case -1:\r\n cell.css('background-color', vm.red);\r\n break;\r\n case 0:\r\n cell.css('background-color', vm.yellow);\r\n break;\r\n case 1:\r\n cell.css('background-color', vm.green);\r\n break;\r\n }\r\n break;\r\n case 'depositor':\r\n case 'amount':\r\n case 'payments':\r\n switch (arg.data.amountParse) {\r\n case -1:\r\n cell.css('background-color', vm.red);\r\n break;\r\n case 0:\r\n cell.css('background-color', vm.yellow);\r\n break;\r\n case 1:\r\n cell.css('background-color', vm.green);\r\n break;\r\n }\r\n break;\r\n case 'accept':\r\n if (arg.data.sportoloParse == 1 && arg.data.amountParse == 1) {\r\n cell.css('background-color', vm.green);\r\n }\r\n if (arg.data.sportoloParse == 0 || arg.data.amountParse == 0) {\r\n cell.css('background-color', vm.yellow);\r\n }\r\n if (arg.data.sportoloParse == -1 || arg.data.amountParse == -1) {\r\n cell.css('background-color', vm.red);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.csvPayment')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.csvPayment',\r\n config: {\r\n url: '/csvPayment',\r\n templateUrl: 'app/business/csvPayment/csvPayment.html',\r\n controller: 'CsvPaymentController',\r\n controllerAs: 'vm',\r\n title: 'CsvPayment',\r\n settings: {\r\n navId: 2203,\r\n level: 2,\r\n order: 20,\r\n orderTitle_hu: 'Átutalások importálása',\r\n orderTitle_en: 'Paid Fee',\r\n parentId: 3,\r\n content: 'CsvPayment',\r\n activatorPermission: ['\"CSV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailyEducationalFeePayments')\r\n .controller('DailyEducationalFeePaymentsController', DailyEducationalFeePaymentsController);\r\n\r\n function DailyEducationalFeePaymentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailyEducationalFeePayments');\r\n\r\n var printOpened = false;\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.numberList = [];\r\n vm.dateValue = new Date();\r\n vm.atletesList = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n vm.showAddNumber = false;\r\n vm.dateEnabled = false;\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'AdottNapiSorszamok', headerText: gettextCatalog.getString('Number'), width: 85, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'Versenyzo_Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: true, templateID: '#dailyeducationalfeepaymentscolumnTemplate1'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: true, templateID: '#dailyeducationalfeepaymentscolumnTemplate2'},\r\n {field: 'AdottNapiAtveteliElismervenyek', headerText: gettextCatalog.getString('AtveteliElismervenyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiTemaszamok', headerText: gettextCatalog.getString('Temaszam'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiKoltseghelyek', headerText: gettextCatalog.getString('Koltseghelyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiBefizetesHonapok', headerText: gettextCatalog.getString('BefizetesekHonap'), textAlign: 'center', headerTextAlign: 'center', width: 115},\r\n {field: 'AdottNapiBefizdatumok', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'osszesFizetett', headerText: gettextCatalog.getString('Fizetett'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.numberDataBound = numberDataBound;\r\n vm.numberSelect = numberSelect;\r\n vm.addNumbers = addNumbers;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n vm.print = print;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['dailyEducationalFeePayments.sectionId', 'dailyEducationalFeePayments.number', 'dailyEducationalFeePayments.coachId', 'dailyEducationalFeePayments.date']), authenticationService.getRight('MEGTNAPIOKTD')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['dailyEducationalFeePayments.sectionId'];\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailyEducationalFeePayments.number']);\r\n vm.defaultNumber = results[0]['dailyEducationalFeePayments.number'] !== null ? results[0]['dailyEducationalFeePayments.number'] : 0;\r\n vm.defaultCoachId = results[0]['dailyEducationalFeePayments.coachId'] !== null ? results[0]['dailyEducationalFeePayments.coachId'] : 0;\r\n getcoaches();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getServiceFeePaymentsNumbers(args.value);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(sectionId) {\r\n return dataservice.getEducationalFeePaymentsNumbers(sectionId, vm.dateValue).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.numberList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function numberDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.numberList[0].value);\r\n vm.selectedNumber = vm.numberList[0].value;\r\n } else {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.defaultNumber);\r\n vm.selectedNumber = vm.defaultNumber;\r\n }\r\n }\r\n\r\n function numberSelect(args) {\r\n vm.selectedNumber = args.value;\r\n vm.dateEnabled = !(args.value !== 0 && args.value !== '0');\r\n }\r\n\r\n function getAthletes() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'dailyEducationalFeePayments.sectionId': vm.sectionId}, {'dailyEducationalFeePayments.number': vm.selectedNumber}, {'dailyEducationalFeePayments.coachId': vm.coachId}]);\r\n dataservice.getAthletesForDailyPayments2(vm.sectionId, vm.coachId, vm.dateValue, vm.selectedNumber).then(function (data) {\r\n vm.atletesList = data.itemsList;\r\n grid.dataSource = vm.atletesList;\r\n grid.refresh();\r\n vm.showAddNumber = vm.selectedNumber === '-1';\r\n });\r\n }\r\n\r\n function addNumbers() {\r\n return dataservice.updateOktatasiDijfizetesek(vm.atletesList, true).then(function () {\r\n log.successMsg('Saved');\r\n getServiceFeePaymentsNumbers(vm.sectionId);\r\n getAthletes();\r\n return true;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n 'edzoId': vm.coachId,\r\n 'szakosztalyId': vm.sectionId,\r\n 'datum': vm.dateValue,\r\n 'sorszam': vm.selectedNumber,\r\n 'cimszoveg': gettextCatalog.getString('DailyEducationalFeePayments'),\r\n 'fejlec': '',\r\n 'edzokapja': false,\r\n 'sportszolg': false\r\n };\r\n $scope.$apply();\r\n\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '1', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailyEducationalFeePayments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailyEducationalFeePayments',\r\n config: {\r\n url: '/dailyEducationalFeePayments',\r\n templateUrl: 'app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.html',\r\n controller: 'DailyEducationalFeePaymentsController',\r\n controllerAs: 'vm',\r\n title: 'DailyEducationalFeePayments',\r\n settings: {\r\n navId: 263,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Napi oktatási díj befizetések',\r\n orderTitle_en: 'Daily Educational Fee Payments',\r\n parentId: 3,\r\n content: 'DailyEducationalFeePayments',\r\n activatorPermission: ['\"MEGTNAPIOKTD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailyEducationalFeesPerCoach')\r\n .controller('DailyEducationalFeesPerCoachController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailyEducationalFeesPerCoach');\r\n vm.coachList = '';\r\n vm.selectedCoach = '';\r\n vm.datumIg = new Date();\r\n vm.datumTol = new Date(new Date().setMonth(new Date().getMonth() - 1));\r\n vm.coachDataBound = coachDataBound;\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.columns = [{\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }, {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('PaidAmount'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n }, {\r\n field: 'AtveteliElismervenySorszam',\r\n headerText: gettextCatalog.getString('AcknowledgmentOfReceipt'),\r\n textAlign: 'center',\r\n width: 115,\r\n }\r\n ];\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n // Public functions\r\n vm.getFeeDatas = getFeeDatas;\r\n vm.selectCoach = selectCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTNAPIOKTD')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'defpc.coach',\r\n 'defpc.from',\r\n 'defpc.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.datumTol = results[0]['defpc.from'];\r\n vm.datumIg = results[0]['defpc.to'];\r\n vm.selectedCoach = results[0]['defpc.coach'];\r\n vm.coachIdValue = results[0]['defpc.coach'];\r\n vm.defaultCoachId = results[0]['defpc.coach'];\r\n });\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function getFeeDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n paramHelper.setParams([\r\n {'defpc.coach': vm.selectedCoach},\r\n {'defpc.from': vm.datumTol},\r\n {'defpc.to': vm.datumIg}\r\n ]);\r\n return dataservice.dailyEducationalFeesPerCoach(vm.selectedCoach, vm.datumTol, vm.datumIg).then(\r\n function (data) {\r\n vm.data = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = vm.data;\r\n }\r\n );\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function selectCoach(arg) {\r\n vm.selectedCoach = arg.value;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailyEducationalFeesPerCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailyEducationalFeesPerCoach',\r\n config: {\r\n url: '/dailyEducationalFeesPerCoach',\r\n templateUrl: 'app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.html',\r\n controller: 'DailyEducationalFeesPerCoachController',\r\n controllerAs: 'vm',\r\n title: 'DailyEducationalFeesPerCoach',\r\n settings: {\r\n navId: 283,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Napi oktatási díj befizetések edzőnként',\r\n orderTitle_en: 'Daily Educational Fee Payments Per Coach',\r\n parentId: 3,\r\n content: 'DailyEducationalFeesPerCoach',\r\n activatorPermission: ['\"MEGTNAPIOKTD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailySportServiceFeePayments')\r\n .controller('DailySportServiceFeePaymentsController', DailySportServiceFeePaymentsController);\r\n\r\n function DailySportServiceFeePaymentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DailySportServiceFeePayments');\r\n\r\n var printOpened = false;\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.numberList = [];\r\n vm.dateValue = new Date();\r\n vm.atletesList = [];\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n vm.showAddNumber = false;\r\n vm.reportParameters = {};\r\n vm.dateEnabled = false;\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'AdottNapiSorszamok', headerText: gettextCatalog.getString('Number'), width: 100, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n headerText: gettextCatalog.getString('Name'), textAlign: 'center', headerTextAlign: 'center', width: 150,\r\n template: '#dailysportservicefeepaymentscolumnTemplate1'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150,\r\n template: '#dailysportservicefeepaymentscolumnTemplate2'\r\n },\r\n {field: 'AdottNapiAtveteliElismervenyek', headerText: gettextCatalog.getString('AtveteliElismervenyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiTemaszamok', headerText: gettextCatalog.getString('Temaszam'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiKoltseghelyek', headerText: gettextCatalog.getString('Koltseghelyek'), textAlign: 'center', headerTextAlign: 'center', width: 150},\r\n {field: 'AdottNapiBefizetesHonapok', headerText: gettextCatalog.getString('BefizetesekHonap'), textAlign: 'center', headerTextAlign: 'center', width: 100},\r\n {field: 'AdottNapiBefizdatumok', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'osszesFizetett', headerText: gettextCatalog.getString('Fizetett'), textAlign: 'center', headerTextAlign: 'center', width: 100, format: 'N0'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.numberDataBound = numberDataBound;\r\n vm.numberSelect = numberSelect;\r\n vm.addNumbers = addNumbers;\r\n vm.print = print;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['dailySportServiceFeePayments.sectionId', 'dailySportServiceFeePayments.number', 'dailySportServiceFeePayments.coachId', 'dailySportServiceFeePayments.date']), authenticationService.getRight('MEGTNAPITAGD')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['dailySportServiceFeePayments.sectionId'];\r\n // angular.element('#number').ejDropDownList('selectItemByValue', results[0]['dailySportServiceFeePayments.number']);\r\n vm.defaultNumber = results[0]['dailySportServiceFeePayments.number'] !== null ? results[0]['dailySportServiceFeePayments.number'] : 0;\r\n vm.defaultCoachId = results[0]['dailySportServiceFeePayments.coachId'] !== null ? results[0]['dailySportServiceFeePayments.coachId'] : 0;\r\n getcoaches();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n dataservice.sectionDropDownList(vm.coachId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.sectionId = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getServiceFeePaymentsNumbers(args.value);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(sectionId) {\r\n return dataservice.getServiceFeePaymentsNumbers(sectionId, vm.dateValue).then(function (data) {\r\n vm.numberList = data.itemsList;\r\n vm.numberList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function numberDataBound() {\r\n if (vm.numberList.length === 1) {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.numberList[0].value);\r\n vm.selectedNumber = vm.numberList[0].value;\r\n } else {\r\n angular.element('#number').ejDropDownList('selectItemByValue', vm.defaultNumber);\r\n vm.selectedNumber = vm.defaultNumber;\r\n }\r\n }\r\n\r\n function numberSelect(args) {\r\n vm.selectedNumber = args.value;\r\n vm.dateEnabled = !(args.value !== 0 && args.value !== '0');\r\n }\r\n\r\n function getAthletes() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([{'dailySportServiceFeePayments.sectionId': vm.sectionId}, {'dailySportServiceFeePayments.number': vm.selectedNumber}, {'dailySportServiceFeePayments.coachId': vm.coachId}]);\r\n dataservice.getAthletesForDailyPayments(vm.sectionId, vm.coachId, vm.dateValue, vm.selectedNumber).then(function (data) {\r\n vm.atletesList = data.itemsList;\r\n grid.dataSource = vm.atletesList;\r\n grid.refresh();\r\n vm.showAddNumber = vm.selectedNumber === '-1';\r\n });\r\n }\r\n\r\n function addNumbers() {\r\n return dataservice.updateTagdijfizetesek(vm.atletesList, true).then(function () {\r\n log.successMsg('Saved');\r\n getServiceFeePaymentsNumbers(vm.sectionId, true);\r\n getAthletes();\r\n return true;\r\n });\r\n }\r\n\r\n function print() {\r\n vm.reportParameters = {\r\n 'edzoId': vm.coachId,\r\n 'szakosztalyId': vm.sectionId,\r\n 'datum': vm.dateValue,\r\n 'sorszam': vm.selectedNumber,\r\n 'cimszoveg': gettextCatalog.getString('DailySportServiceFeePayments'),\r\n 'fejlec': '',\r\n 'edzokapja': false,\r\n 'sportszolg': true\r\n };\r\n $scope.$apply();\r\n if (printOpened) {\r\n angular.element('#printDialog').ejDialog('open');\r\n } else {\r\n printOpened = true;\r\n angular.element('#printDialog').ejDialog({height: '99%', width: '99%', enablemodal: 'true', 'position-x': '0', 'position-y': '1', target: '#mainContent', enableresize: 'false'});\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailySportServiceFeePayments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailySportServiceFeePayments',\r\n config: {\r\n url: '/dailySportServiceFeePayments',\r\n templateUrl: 'app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.html',\r\n controller: 'DailySportServiceFeePaymentsController',\r\n controllerAs: 'vm',\r\n title: 'DailySportServiceFeePayments',\r\n settings: {\r\n navId: 253,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Napi sportszolgáltatási díj befizetések',\r\n orderTitle_en: 'Daily Sport Service Fee Payments',\r\n parentId: 3,\r\n content: 'DailySportServiceFeePayments',\r\n activatorPermission: ['\"MEGTNAPITAGD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailySportServiceFeesPerCoach')\r\n .controller('DailySportServiceFeesPerCoachController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.coachDataBound = coachDataBound;\r\n $rootScope.title = gettextCatalog.getString('DailySportServiceFeesPerCoach');\r\n\r\n vm.coachList = '';\r\n vm.selectedCoach = '';\r\n vm.maskObject = {};\r\n\r\n vm.datumIg = new Date();\r\n vm.datumTol = new Date(new Date().setMonth(new Date().getMonth() - 1));\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.nonClosedYears = [];\r\n vm.selectedYear = 0;\r\n vm.columns = [{\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 100,\r\n allowEditing: false\r\n }, {\r\n field: 'osszesFizetett',\r\n headerText: gettextCatalog.getString('PaidAmount'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false,\r\n format: 'N0'\r\n }, {\r\n field: 'AtveteliElismervenySorszam',\r\n headerText: gettextCatalog.getString('AcknowledgmentOfReceipt'),\r\n textAlign: 'center',\r\n width: 115,\r\n allowEditing: false\r\n }\r\n ];\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'osszesFizetett',\r\n footerTemplate: '${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n // Public functions\r\n vm.getFeeDatas = getFeeDatas;\r\n vm.selectCoach = selectCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTNAPITAGD')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'dssfpc.coach',\r\n 'dssfpc.from',\r\n 'dssfpc.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.datumTol = results[0]['dssfpc.from'];\r\n vm.datumIg = results[0]['dssfpc.to'];\r\n vm.selectedCoach = results[0]['dssfpc.coach'];\r\n vm.coachIdValue = results[0]['dssfpc.coach'];\r\n vm.defaultCoachId = results[0]['dssfpc.coach'];\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n //edzők lekérése\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function getFeeDatas() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n paramHelper.setParams([\r\n {'dssfpc.coach': vm.selectedCoach},\r\n {'dssfpc.from': vm.datumTol},\r\n {'dssfpc.to': vm.datumIg}\r\n ]);\r\n return dataservice.dailySportServiceFeesPerCoach(vm.selectedCoach, vm.datumTol, vm.datumIg).then(\r\n function (data) {\r\n vm.data = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n grid.dataSource = vm.data;\r\n }\r\n );\r\n }\r\n }\r\n\r\n function selectCoach(arg) {\r\n vm.selectedCoach = arg.value;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.dailySportServiceFeesPerCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.dailySportServiceFeesPerCoach',\r\n config: {\r\n url: '/dailySportServiceFeesPerCoach',\r\n templateUrl: 'app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.html',\r\n controller: 'DailySportServiceFeesPerCoachController',\r\n controllerAs: 'vm',\r\n title: 'DailySportServiceFeesPerCoach',\r\n settings: {\r\n navId: 273,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Napi sportszolgáltatási díj befizetések edzőnként',\r\n orderTitle_en: 'Daily Sport Service Fee Payments Per Coach',\r\n parentId: 3,\r\n content: 'DailySportServiceFeesPerCoach',\r\n activatorPermission: ['\"MEGTNAPITAGD\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.educationalFeeRegister')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.educationalFeeRegister',\r\n config: {\r\n url: '/educationalFeeRegister',\r\n templateUrl: 'app/business/educationalFeeRegister/educationalFeeRegister.html',\r\n controller: 'EducationalFeeRegisterController',\r\n controllerAs: 'vm',\r\n title: 'EducationalFeeRegister',\r\n settings: {\r\n navId: 233,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Oktatási díj nyilvántartás',\r\n orderTitle_en: 'Educational Fee Register',\r\n parentId: 3,\r\n content: 'EducationalFeeRegister',\r\n activatorPermission: ['\"MEGTTAGDNYILV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.modifyFees')\r\n .controller('modifyFeesController', modFeesCtrl);\r\n\r\n function modFeesCtrl(log, $rootScope, gettextCatalog, dataservice, authenticationService, $q, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('ModifyFees');\r\n\r\n var elem;\r\n var checkBoxObj;\r\n var checkBoxEditorTemplate =\r\n {\r\n create: function () {\r\n elem = document.createElement('input');\r\n return elem;\r\n },\r\n read: function () {\r\n return checkBoxObj.checked.toString();\r\n },\r\n destroy: function () {\r\n if (checkBoxObj != null) {\r\n checkBoxObj.destroy();\r\n }\r\n },\r\n write: function (args) {\r\n var s = args.element.id.toString().replace('Grid', '');\r\n checkBoxObj = new ej2.buttons.CheckBox({\r\n checked: args.rowData[s],\r\n value: args.rowData[s]\r\n });\r\n checkBoxObj.appendTo(elem);\r\n }\r\n };\r\n\r\n // Grid's details\r\n vm.toleranceDays = 10;\r\n vm.ddlYearValue = 0;\r\n vm.fromDate = new Date((new Date()).getFullYear(), 0, 1);\r\n vm.onlyNew = false;\r\n vm.saveData = saveData;\r\n vm.closeYear = closeYear;\r\n vm.meteOut = meteOut;\r\n vm.nonClosedYears = [];\r\n vm.selectedYear = 0;\r\n vm.closeYearEnabled = false;\r\n vm.yearclosed = false;\r\n vm.yearSelect = yearSelect;\r\n\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n }, {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('SectionName'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n }, {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('Fee'),\r\n textAlign: 'center',\r\n width: 100,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD',\r\n headerText: gettextCatalog.getString('ReducedFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD2',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 2',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD3',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 3',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD4',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 4',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesTD5',\r\n headerText: gettextCatalog.getString('ReducedFee') + ' 5',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'TDMentessegAdhato',\r\n headerText: gettextCatalog.getString('FeeFree'),\r\n textAlign: 'center',\r\n width: 140,\r\n type: 'boolean',\r\n edit: checkBoxEditorTemplate,\r\n displayAsCheckBox: true,\r\n allowEditing: true\r\n }, {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('EducationalFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee'),\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD2',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 2',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD3',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 3',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD4',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 4',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'KedvezmenyesOD5',\r\n headerText: gettextCatalog.getString('ReducedEducationalFee') + ' 5',\r\n textAlign: 'center',\r\n width: 140,\r\n editTemplate: vm.tableNumericEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'ODMentessegAdhato',\r\n headerText: gettextCatalog.getString('EducationalFeeFree'),\r\n textAlign: 'center',\r\n width: 140,\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n edit: checkBoxEditorTemplate,\r\n allowEditing: true\r\n }, {\r\n field: 'Temaszam',\r\n headerText: gettextCatalog.getString('ThemeNumber'),\r\n textAlign: 'center',\r\n width: 140,\r\n allowEditing: true\r\n }, {\r\n field: 'KoltsegHely',\r\n headerText: gettextCatalog.getString('FeePlace'),\r\n textAlign: 'center',\r\n width: 140,\r\n allowEditing: true\r\n }];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n frozenColumns: 2,\r\n editSettings: {allowEditing: true, mode: 'Batch', showConfirmDialog: false},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.tableNumericEditorTemplate = {\r\n create: function () {\r\n return '<input>';\r\n },\r\n read: function (args) {\r\n return args.ejMaskEdit('get_StrippedValue');\r\n },\r\n write: function (args) {\r\n var s = args.element[0].id.toString().replace('Grid', '');\r\n args.element.ejMaskEdit({\r\n width: '100%',\r\n maskFormat: 'NNN',\r\n //customCharacter: 'bBvVsS0123-',\r\n value: args.rowdata !== undefined ? args.rowdata[s] : '',\r\n readOnly: vm.readOnlyAttendance\r\n });\r\n }\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MODTAGDBEALL'), authenticationService.getRight('MEGTTAGDBEALL')]).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MODTAGDBEALL = results[1];\r\n getFeeDatas();\r\n getLastClosedYear();\r\n getReducedEducationalFeeTypes();\r\n getReducedSportServiceFeeTypes();\r\n }\r\n });\r\n }\r\n\r\n function getReducedEducationalFeeTypes() {\r\n return dataservice.getReducedEducationalFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n if (data.itemsList.length >= 5) {\r\n vm.columns[10].headerText = data.itemsList[0].text;\r\n vm.columns[11].headerText = data.itemsList[1].text;\r\n vm.columns[12].headerText = data.itemsList[2].text;\r\n vm.columns[13].headerText = data.itemsList[3].text;\r\n vm.columns[14].headerText = data.itemsList[4].text;\r\n grid.refreshColumns();\r\n }\r\n });\r\n }\r\n\r\n function getReducedSportServiceFeeTypes() {\r\n return dataservice.getReducedSportServiceFeeTypes(authenticationService.getLanguage()).then(function (data) {\r\n if (data.itemsList.length >= 5) {\r\n vm.columns[3].headerText = data.itemsList[0].text;\r\n vm.columns[4].headerText = data.itemsList[1].text;\r\n vm.columns[5].headerText = data.itemsList[2].text;\r\n vm.columns[6].headerText = data.itemsList[3].text;\r\n vm.columns[7].headerText = data.itemsList[4].text;\r\n grid.refreshColumns();\r\n }\r\n });\r\n }\r\n\r\n function yearSelect(arg) {\r\n if (arg.value) {\r\n vm.closeYearEnabled = true;\r\n }\r\n }\r\n\r\n function getFeeDatas() {\r\n return dataservice.getFeeDatas()\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.toleranceDays = data.TurelmiIdo;\r\n });\r\n }\r\n\r\n function getLastClosedYear() {\r\n return dataservice.getLastClosedYear().then(function (data) {\r\n if (data.retValue === 0 || data.retValue === '0') {\r\n data.retValue = new Date().getFullYear() - 1;\r\n }\r\n var maxYear = new Date().getFullYear() + 1;\r\n for (var i = data.retValue + 1; i < maxYear; i++) {\r\n vm.nonClosedYears.push(i);\r\n }\r\n vm.yearclosed = vm.nonClosedYears.length == 0;\r\n });\r\n }\r\n\r\n function saveDataReal() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n }\r\n grid.editModule.batchSave();\r\n // itt kell mindent elmenteni\r\n var functionData = {\r\n itemsList: grid.dataSource,\r\n TurelmiIdo: vm.toleranceDays\r\n };\r\n return dataservice.saveFeeDatas(functionData);\r\n }\r\n\r\n function saveData() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n saveDataReal().then(function () {\r\n log.successMsg('SaveFeeDataOK');\r\n });\r\n }\r\n }\r\n\r\n function closeYear() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n var functionData = {\r\n datum: vm.selectedYear,\r\n };\r\n dataservice.closeYear(functionData).then(function () {\r\n getLastClosedYear();\r\n });\r\n }\r\n }\r\n\r\n function meteOut() {\r\n if (!vm.MODTAGDBEALL) {\r\n log.permissionError();\r\n } else {\r\n // ment és kiró\r\n if (vm.onlyNew) {\r\n // csak új sportolóknak\r\n dataservice.getAthletesForMeteOut(vm.fromDate).then(function (athletes) {\r\n var athleteNames = '';\r\n for (var i = 0; i < athletes.itemsList.length; i++) {\r\n athleteNames += athletes.itemsList[i] + '<br>';\r\n }\r\n\r\n var HTMLarr = [];\r\n HTMLarr[0] = gettextCatalog.getString('');\r\n HTMLarr[1] = '<br><label>';\r\n HTMLarr[2] = gettextCatalog.getString('AthletesAffectedByMeteOut');\r\n HTMLarr[3] = '</label><br>';\r\n HTMLarr[4] = '<p style=\"text-align: left;\">';\r\n HTMLarr[5] = athleteNames;\r\n HTMLarr[6] = '</p><br>';\r\n var HTMLtext = HTMLarr.join('');\r\n\r\n swal({\r\n title: gettextCatalog.getString('MeteOutOnlyNewAthletesTitle'),\r\n html: HTMLtext,\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveDataReal().then(function () {\r\n var parameters = {\r\n naptol: vm.fromDate,\r\n kivSportolo: '',\r\n csakUjak: 1,\r\n fizModValtas: 0\r\n };\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n });\r\n }\r\n });\r\n });\r\n } else {\r\n // mindenkinek\r\n swal({\r\n title: gettextCatalog.getString('MeteOutAllAthletesTitle'),\r\n text: gettextCatalog.getString('MeteOutAllAthletesText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (confirmed) {\r\n if (confirmed.value) {\r\n saveDataReal().then(function () {\r\n var parameters = {\r\n naptol: vm.fromDate,\r\n kivSportolo: '',\r\n csakUjak: 0,\r\n fizModValtas: 0\r\n };\r\n dataservice.meteOutFee(parameters).then(function () {\r\n log.successMsg('MeteOutFeeOK');\r\n });\r\n });\r\n }\r\n }, function () {\r\n });\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.modifyFees')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.modifyFees',\r\n config: {\r\n url: '/modifyFees',\r\n templateUrl: 'app/business/modifyFees/modifyFees.html',\r\n controller: 'modifyFeesController',\r\n controllerAs: 'vm',\r\n title: 'ModifyFees',\r\n settings: {\r\n navId: 213,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Díjak beállítása',\r\n orderTitle_en: 'Set Fees',\r\n parentId: 3,\r\n content: 'ModifyFees',\r\n activatorPermission: ['\"MEGTTAGDBEALL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.monthlyAttendanceArrears')\r\n .controller('MonthlyAttendanceArrearsController', MonthlyAttendanceArrearsController);\r\n\r\n function MonthlyAttendanceArrearsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $state, $scope, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendanceReportArrears');\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 125, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', headerTextAlign: 'center', width: 150, template: '#monthlyattendancearrearscolumnTemplate'},\r\n {field: 'Datum2', headerText: gettextCatalog.getString('Date'), textAlign: 'center', headerTextAlign: 'center', width: 125},\r\n {field: 'CsoportLetszam', headerText: gettextCatalog.getString('groupStaffNumbers'), textAlign: 'center', width: 115},\r\n {field: 'Erkezett', headerText: gettextCatalog.getString('Arrived'), textAlign: 'center', width: 60},\r\n {field: 'Tavozott', headerText: gettextCatalog.getString('Departed'), textAlign: 'center', width: 60},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', headerTextAlign: 'center', width: 200},\r\n {field: 'Edzo_Alairta', headerText: gettextCatalog.getString('CoachSigned'), textAlign: 'center', headerTextAlign: 'center', width: 100, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'Szakosztalyvezeto_Alairta', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', headerTextAlign: 'center', width: 130, type: 'boolean', displayAsCheckBox: true},\r\n {field: 'utolsoKitoltottDatum', headerText: gettextCatalog.getString('ModifiedDate'), textAlign: 'center', headerTextAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.openCoach = openCoach;\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTHAVIJELLEM')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDatas();\r\n }\r\n });\r\n }\r\n\r\n function getDatas() {\r\n dataservice.getAnnualSeasonPlanArrears().then(function(data) {\r\n data.itemsList = $filter('dateYearMonthStringFilter')(data.itemsList, 'Datum2');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.monthlyAttendanceArrears')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.monthlyAttendanceArrears',\r\n config: {\r\n url: '/monthlyAttendanceArrears',\r\n templateUrl: 'app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.html',\r\n controller: 'MonthlyAttendanceArrearsController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendanceReportArrears',\r\n settings: {\r\n navId: 293,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Havi jelenléti összesítő lemaradások',\r\n orderTitle_en: 'Monthly Attendance Report Arrears',\r\n parentId: 3,\r\n content: 'MonthlyAttendanceReportArrears',\r\n activatorPermission: ['\"MEGTHAVIJELLEM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.sportServiceFeeArrears')\r\n .controller('SportServiceFeeArrearsController', SportServiceFeeArrearsController);\r\n\r\n function SportServiceFeeArrearsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, $scope, authenticationService, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('FeeArrears');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.yearList = dataservice.range(2000, new Date().getFullYear());\r\n vm.priceType = [{text: 'NK', value: 'NK'}, {text: 'K', value: 'K'}, {text: 'B', value: 'B'}, {\r\n text: 'EP',\r\n value: 'EP'\r\n }, {text: 'MT', value: 'MT'}];\r\n\r\n vm.selectedCoach = vm.coachId = 0;\r\n vm.selectedSection = 0;\r\n\r\n vm.summaryRows = [{\r\n columns: [\r\n {\r\n type: 'Sum',\r\n field: 'OsszesHatralek',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_1',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_2',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_3',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_4',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_5',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_6',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_7',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_8',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_9',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_10',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_11',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n },\r\n {\r\n type: 'Sum',\r\n field: 'Honap_12',\r\n groupCaptionTemplate: gettextCatalog.getString('Sum') + ': ${Sum}',\r\n format: 'N0'\r\n }\r\n ]\r\n }];\r\n\r\n vm.rowIndexUnderEditing = -1;\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {\r\n headerText: gettextCatalog.getString('General'), columns: [\r\n {field: 'Ev', headerText: gettextCatalog.getString('Year'), width: 80, textAlign: 'center', headerTextAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center', headerTextAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n template: '#feearrearscolumnTemplate2'\r\n },\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n template: '#feearrearscolumnTemplate1'\r\n },\r\n {\r\n field: 'Dsi_Igazolas',\r\n headerText: gettextCatalog.getString('Regisztracios'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 165\r\n },\r\n ], textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Summary'), columns: [\r\n {\r\n field: 'OsszesHatralek',\r\n headerText: gettextCatalog.getString('SumArrears'),\r\n textAlign: 'center', headerTextAlign: 'center',\r\n width: 150,\r\n format: 'N0'\r\n },\r\n ], textAlign: 'center'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Month'), columns: [\r\n {field: 'Honap_1', headerText: gettextCatalog.getString('January'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_2', headerText: gettextCatalog.getString('February'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_3', headerText: gettextCatalog.getString('March'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_4', headerText: gettextCatalog.getString('April'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_5', headerText: gettextCatalog.getString('May'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_6', headerText: gettextCatalog.getString('June'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_7', headerText: gettextCatalog.getString('July'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_8', headerText: gettextCatalog.getString('August'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_9', headerText: gettextCatalog.getString('September'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_10', headerText: gettextCatalog.getString('October'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_11', headerText: gettextCatalog.getString('November'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'},\r\n {field: 'Honap_12', headerText: gettextCatalog.getString('December'), textAlign: 'center', headerTextAlign: 'center', width: 125, format: 'N0'}\r\n ], textAlign: 'center'\r\n }\r\n ];\r\n var grid = new ej2.grids.Grid({\r\n columns: vm.columns,\r\n dataSource: [],\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowGrouping: true,\r\n groupSettings: {columns: ['SzakosztalyNeve', 'EdzoNeve']},\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: {pageCount: 5, pageSize: 2000, pageSizes: [4, 8, 20, 100, 2000]},\r\n editSettings: {allowEditing: false},\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n aggregates: vm.summaryRows,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'searching' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.getAthletes = getAthletes;\r\n vm.yearDataBound = yearDataBound;\r\n vm.yearSelect = yearSelect;\r\n vm.goToAthlete = goToAthlete;\r\n vm.openCoach = openCoach;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [paramHelper.getParams([], ['sportServiceFeeArrears.sectionId', 'sportServiceFeeArrears.year', 'sportServiceFeeArrears.coachId']), authenticationService.getRight('MEGTTAGDHATR')];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.defaultsectionId = results[0]['sportServiceFeeArrears.sectionId'];\r\n vm.defaultYear = results[0]['sportServiceFeeArrears.year'];\r\n // angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', results[0]['sportServiceFeeArrears.year']);\r\n vm.year = vm.selectedYear = results[0]['sportServiceFeeArrears.year'];\r\n vm.defaultCoachId = results[0]['sportServiceFeeArrears.coachId'];\r\n if (vm.defaultsectionId != null && vm.defaultCoachId != null && vm.year != null) {\r\n $timeout(function () {\r\n getAthletes(results[0]['sportServiceFeeArrears.sectionId'], results[0]['sportServiceFeeArrears.coachId'], results[0]['sportServiceFeeArrears.year']);\r\n }, 100);\r\n }\r\n getcoaches();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachSelect(vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.defaultCoachId);\r\n vm.coachId = vm.defaultCoachId;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n getSections();\r\n }\r\n\r\n //szakosztályok lekérése\r\n function getSections() {\r\n return dataservice.sectionDropDownList(vm.coachId, true).then(function (data) {\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.defaultsectionId);\r\n vm.selectedSection = vm.defaultsectionId;\r\n }\r\n }\r\n\r\n // Run after selection\r\n function sectionSelect(args) {\r\n vm.ReducedSportServiceFee = vm.sectionList[args.itemId].Tagdij !== null ? vm.sectionList[args.itemId].Tagdij : 0;\r\n vm.SportServiceFee = vm.sectionList[args.itemId].KedvezmenyesTagdij !== null ? vm.sectionList[args.itemId].KedvezmenyesTagdij : 0;\r\n vm.sectionId = args.value;\r\n }\r\n\r\n function yearDataBound() {\r\n if (vm.yearList.length === 1) {\r\n angular.element('#yearDropDownList').ejDropDownList('selectItemByValue', vm.yearList[0].value);\r\n vm.year = vm.yearList[0].value;\r\n }\r\n vm.year = new Date().getFullYear();\r\n }\r\n\r\n function yearSelect(args) {\r\n vm.year = args.value;\r\n }\r\n\r\n function getAthletes(sectionId, coachId, year) {\r\n if (arguments.length == 3) {\r\n vm.sectionId = sectionId;\r\n vm.coachId = coachId;\r\n vm.year = year;\r\n } else {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n }\r\n paramHelper.setParams([{'sportServiceFeeArrears.sectionId': vm.sectionId}, {'sportServiceFeeArrears.year': vm.year}, {'sportServiceFeeArrears.coachId': vm.coachId}]);\r\n dataservice.getAthletesForFeeArrears(vm.sectionId, vm.coachId, vm.year).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.sportServiceFeeArrears')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.sportServiceFeeArrears',\r\n config: {\r\n url: '/sportServiceFeeArrears',\r\n templateUrl: 'app/business/sportServiceFeeArrears/sportServiceFeeArrears.html',\r\n controller: 'SportServiceFeeArrearsController',\r\n controllerAs: 'vm',\r\n title: 'FeeArrears',\r\n settings: {\r\n navId: 243,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Díj hátralékosok',\r\n orderTitle_en: 'Fee Arrears',\r\n parentId: 3,\r\n content: 'FeeArrears',\r\n activatorPermission: ['\"MEGTTAGDHATR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.business.sportServiceFeeRegister')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'business.sportServiceFeeRegister',\r\n config: {\r\n url: '/sportServiceFeeRegister',\r\n templateUrl: 'app/business/sportServiceFeeRegister/sportServiceFeeRegister.html',\r\n controller: 'SportServiceFeeRegisterController',\r\n controllerAs: 'vm',\r\n title: 'SportServiceFeeRegister',\r\n settings: {\r\n navId: 223,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Sportszolgáltatási díj nyilvántartás',\r\n orderTitle_en: 'Sport Service Fee Register',\r\n parentId: 3,\r\n content: 'SportServiceFeeRegister',\r\n activatorPermission: ['\"MEGTTAGDNYILV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('authenticationService', authenticationService);\r\n\r\n function authenticationService(localStorageService, moment, dataservice, $rootScope, AUTH_EVENTS, $q) {\r\n return {\r\n isAuthenticated: isAuthenticated,\r\n getPermission: getPermission,\r\n noEducationalFee: noEducationalFee,\r\n getAuthData: getAuthData,\r\n logout: logout,\r\n login: login,\r\n setSessionTimeOut: setSessionTimeOut,\r\n isSessionTimeOut: isSessionTimeOut,\r\n getSessionData: getSessionData,\r\n getLanguage: getLanguage,\r\n getRights: getRights,\r\n getRight: getRight,\r\n getAccessToken: getAccessToken\r\n };\r\n\r\n function isAuthenticated() {\r\n var authData = localStorageService.get('_authData');\r\n return !authData ? false : true;\r\n }\r\n\r\n function getAccessToken() {\r\n return localStorageService.get('_authData').access_token;\r\n }\r\n\r\n function getPermission() {\r\n if (localStorageService.get('_authData') && localStorageService.get('_authData').permission) {\r\n return localStorageService.get('_authData').permission;\r\n } else {\r\n return -1;\r\n }\r\n }\r\n\r\n function getRights(data) {\r\n return $q(function (resolve) {\r\n var accessRights = [];\r\n for (var i = 0; i < data.length; i++) {\r\n accessRights.push({RightName: data[i], Allowed: false});\r\n }\r\n if (isAuthenticated()) {\r\n for (var r = 0; r < accessRights.length; r++) {\r\n for (var j = 0; j < getAuthData().accessRights.length; j++) {\r\n if (data[r].indexOf(getAuthData().accessRights[j]) >= 0 && isAuthenticated()) {\r\n accessRights[r].Allowed = true;\r\n }\r\n }\r\n }\r\n }\r\n resolve(accessRights);\r\n });\r\n }\r\n\r\n function noEducationalFee() {\r\n dataservice.noEducationalFee().then(function (result) {\r\n localStorageService.set('noEducationalFee', result.retValue);\r\n });\r\n }\r\n\r\n function getRight(data) {\r\n return $q(function (resolve) {\r\n if (!isAuthenticated()) {\r\n resolve(false);\r\n } else {\r\n data = '\"' + data + '\"';\r\n if (getAuthData().accessRights && getAuthData().accessRights.indexOf(data) >= 0) {\r\n resolve(true);\r\n }\r\n resolve(false);\r\n }\r\n });\r\n }\r\n\r\n function getLanguage() {\r\n if (isAuthenticated()) {\r\n return localStorageService.get('_authData').language;\r\n } else if (isSessionTimeOut()) {\r\n return localStorageService.get('_sessionData').language;\r\n } else {\r\n return navigator.language || navigator.userLanguage;\r\n }\r\n }\r\n\r\n function pSetAuthData(user) {\r\n if (!user) {\r\n return false;\r\n }\r\n // át kell írni a szervert, hogy adja vissza ezeket is\r\n // valamint az access_token-t is menteni kell\r\n return localStorageService.set('_authData', {\r\n id: user.id,\r\n loginName: user.loginName,\r\n userFullName: user.userFullName,\r\n picture: user.picture,\r\n language: user.language,\r\n gridRecordPerPage: user.gridRecordPerPage,\r\n pwdExpiration: moment.utc(user.expiration).format(),\r\n accessRights: user.accessRights,\r\n permission: user.permission,\r\n access_token: user.access_token\r\n });\r\n }\r\n\r\n function login(loginName, password, language) {\r\n return dataservice.login(loginName, password, language)\r\n .then(function (data) {\r\n var subscribeToTopic = data.data.school;\r\n switch (data.data.szerepkor){\r\n case '-1':\r\n subscribeToTopic += 'coach';\r\n break;\r\n case '0':\r\n subscribeToTopic += 'athlete';\r\n break;\r\n case '1':\r\n case '2':\r\n subscribeToTopic += 'parent';\r\n break;\r\n }\r\n subscribeToTopic += data.data.id;\r\n localStorage.setItem('sikertopic', subscribeToTopic);\r\n if (angular.isDefined(data.data.access_token)) {\r\n data.data.loginName = loginName;\r\n data.data.language = language;\r\n localStorageService.set(data.data.id + '.' + 'gridRecordPerPage', data.data.gridRecordPerPage);\r\n if (pSetAuthData(data.data)) {\r\n if (isSessionTimeOut() && loginName === getSessionData().loginName) {\r\n $rootScope.$broadcast(AUTH_EVENTS.login, getSessionData().url, data.data.permission);\r\n } else {\r\n $rootScope.$broadcast(AUTH_EVENTS.login, '', data.data.permission);\r\n }\r\n pClearSessionData();\r\n return true;\r\n }\r\n }\r\n return false;\r\n }).catch(function () {\r\n return false;\r\n });\r\n }\r\n\r\n function logout() {\r\n var sikertopic = localStorage.getItem('sikertopic');\r\n var firebasetoken = localStorage.getItem('firebasetoken');\r\n if (sikertopic && firebasetoken && sikertopic.length > 0 && firebasetoken.length > 0) {\r\n console.log('UNSUBSCRIBE TOPIC:', sikertopic);\r\n console.log('UNSUBSCRIBE TOKEN:', firebasetoken);\r\n dataservice.FirebaseUnsubscribeFromTopic({topic: sikertopic, token: firebasetoken}).then(function (resp) {\r\n console.log('FirebaseUnsubscribeFromTopic', resp);\r\n });\r\n }\r\n return dataservice.logout().then(function (data) {\r\n if (angular.isDefined(data) && data.retValue) {\r\n pClearAuthData();\r\n $rootScope.$broadcast(AUTH_EVENTS.logout);\r\n return true;\r\n }\r\n return false;\r\n }\r\n ).catch(function () {\r\n return false;\r\n });\r\n }\r\n\r\n function setSessionTimeOut(url) {\r\n if (isAuthenticated()) {\r\n var userInfo = getAuthData();\r\n localStorageService.set('_sessionData', {\r\n loginName: userInfo.loginName,\r\n picture: userInfo.picture,\r\n language: userInfo.language,\r\n url: url\r\n });\r\n logout();\r\n }\r\n }\r\n\r\n function isSessionTimeOut() {\r\n var sessionData = localStorageService.get('_sessionData');\r\n return !sessionData ? false : true;\r\n }\r\n\r\n function getSessionData() {\r\n return localStorageService.get('_sessionData');\r\n }\r\n\r\n function getAuthData() {\r\n return localStorageService.get('_authData');\r\n }\r\n\r\n function pClearSessionData() {\r\n return localStorageService.remove('_sessionData');\r\n }\r\n\r\n function pClearAuthData() {\r\n return localStorageService.remove('_authData', 'marMegnezte');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n var core = angular.module('app.core');\r\n\r\n core.config(toastrConfig);\r\n\r\n function toastrConfig(toastr) {\r\n toastr.options.timeOut = 4000;\r\n toastr.options.positionClass = 'toast-bottom-right';\r\n }\r\n\r\n var config = {\r\n appTitle: 'Siker2',\r\n environment: 'development', // 'development' vagy 'production'\r\n partnerLogo: 'images/partnerlogo2.png'\r\n };\r\n\r\n core.value('config', config);\r\n\r\n core.config(configure);\r\n\r\n function configure(routerHelperProvider, exceptionHandlerProvider, $httpProvider, logProvider) {\r\n if (config.environment) {\r\n logProvider.setEnvironment(config.environment);\r\n }\r\n // $compileProvider.debugInfoEnabled(false);\r\n // $httpProvider.defaults.withCredentials = true;\r\n exceptionHandlerProvider.configure(config.environment);\r\n routerHelperProvider.configure({docTitle: config.appTitle + ': '});\r\n $httpProvider.interceptors.push('httpInterceptor');\r\n }\r\n})();\r\n","/* global toastr:false, moment:false */\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .constant('toastr', toastr)\r\n .constant('moment', moment)\r\n .constant('DOMAIN', {\r\n baseURL: clientConfig.url,\r\n //baseURL: 'http://deac.sikerszoftver.hu/',\r\n //baseURL: 'http://egrivizilabda.sikerszoftver.hu/',\r\n imgBaseUrl: 'api/Photos/',\r\n webService: 'api/',\r\n noImage: 'api/Photos/noImg.jpg',\r\n userImage: 'api/Photos/avatar_2x.png',\r\n profileImgBaseUrl: 'api/Photos/Profile/',\r\n psychologyDocUrl: 'api/PsychologyDocuments/',\r\n resultReportImgBaseUrl: 'api/Photos/Versenyeredmeny/',\r\n resultReportTeamImgBaseUrl: 'api/Photos/VersenyeredmenyCsapat/',\r\n anthropometryPhotosUrl: 'api/Photos/Antropometria/',\r\n youtubeIcon: 'api/Photos/youtube.png',\r\n teamPhotosUrl: 'api/Photos/Csapat/',\r\n exerciseBaseUrl: 'api/Photos/Gyakorlatok/',\r\n messageImagesUrl: 'api/MessageImages/',\r\n justPsycho: 0\r\n }\r\n /*\r\n .constant('DOMAIN', {\r\n webService: 'http://pszicho.unideb.cts.hu/app/api/',\r\n noImage: 'http://pszicho.unideb.cts.hu/Photos/noImage.jpg',\r\n userImage: 'http://pszicho.unideb.cts.hu/Photos/avatar_2x.png',\r\n imgBaseUrl: 'http://pszicho.unideb.cts.hu/app/api/Photos/',\r\n profileImgBaseUrl: 'http://pszicho.unideb.cts.hu/app/api/Photos/Profile/',\r\n psychologyDocUrl: 'http://pszicho.unideb.cts.hu/app/api/PsychologyDocuments/',\r\n justPsycho: 1\r\n }*/\r\n )\r\n .constant('timeout', 20000) // Http request timeout 20 seconds\r\n .constant('keepalive', 7200000) // Session time keepalive 2 hours\r\n .constant('AUTH_EVENTS', {\r\n login: 'auth-login',\r\n logout: 'auth-logout',\r\n sessionTimeout: 'auth-session-timeout',\r\n notAuthorized: 'auth-not-authorized',\r\n refreshProfilePic: 'refresh-profile-picture'\r\n })\r\n .constant('LANG_EVENTS', {\r\n changeLanguage: 'change-language'\r\n })\r\n .constant('PSYCHOLOGY', {\r\n Wartegg: 1,\r\n PerformanceMotivation: 2,\r\n Pieron: 3,\r\n Tenessee: 4\r\n })\r\n .constant('VIEW_DATA', {\r\n dropDownList: {\r\n weight: {\r\n downThreshold: 20,\r\n upThreshold: 150\r\n },\r\n centimetre: {\r\n downThreshold: 100,\r\n upThreshold: 250\r\n },\r\n sex: ['Nő', 'Férfi'],\r\n hand: ['Jobb', 'Bal'],\r\n foot: ['Jobb', 'Bal'],\r\n feeOfEducation: ['Oktatási díjas', 'Sportszolgáltatási díjas'],\r\n counties: ['Bács-Kiskun', 'Baranya', 'Békés', 'Borsod-Abaúj-Zemplén', 'Csongrád', 'Fejér', 'Győr-Moson-Sopron', 'Hajdú-Bihar', 'Heves', 'Jász-Nagykun-Szolnok', 'Komárom-Esztergom', 'Nógrád', 'Pest', 'Somogy', 'Szabolcs-Szatmár-Bereg', 'Tolna', 'Vas', 'Veszprém', 'Zala', 'Budapest'],\r\n course: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15'],\r\n class: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'V', 'X', 'Y', 'Z']\r\n\r\n }\r\n })\r\n .constant('LAYOUT_EVENTS', {\r\n passwordChange: 'layout-password-change'\r\n });\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .run(appRun);\r\n\r\n /* @ngInject */\r\n function appRun(routerHelper) {\r\n // var otherwise = '/404';\r\n var otherwise = '/';\r\n routerHelper.configureStates(getStates(), otherwise);\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: '404',\r\n config: {\r\n url: '/404',\r\n templateUrl: 'app/core/404.html',\r\n title: '404'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core').config(function (/*$httpProvider*/) {\r\n // delete $httpProvider.defaults.headers.common['X-Requested-With'];\r\n })\r\n .factory('dataservice', dataservice);\r\n\r\n function dataservice($http, DOMAIN) {\r\n var service = {\r\n range: range,\r\n getURL: getURL,\r\n changePassword: changePassword,\r\n login: login,\r\n getHaveToPay: getHaveToPay,\r\n logout: logout,\r\n parentsAthletes: parentsAthletes,\r\n quickCompetitionResult: quickCompetitionResult,\r\n getPieronTest: getPieronTest,\r\n getAvailableLanguages: getAvailableLanguages,\r\n sectionDropDownList: sectionDropDownList,\r\n ageGroupDropDownList: ageGroupDropDownList,\r\n teamsDropDownList: teamsDropDownList,\r\n getAthletesForEducationalFeeRegister: getAthletesForEducationalFeeRegister,\r\n teamList: teamList,\r\n savePieronTest: savePieronTest,\r\n getUserGroupList: getUserGroupList,\r\n updateTagdijfizetesek: updateTagdijfizetesek,\r\n ageGroupDropDownListForSearch: ageGroupDropDownListForSearch,\r\n modifyEvent: modifyEvent,\r\n usersListSelect: usersListSelect,\r\n getCheck: getCheck,\r\n coachDropDownList: coachDropDownList,\r\n getCheckExportPrintList: getCheckExportPrintList,\r\n KoltsegtervOsszesitoExcelExport: KoltsegtervOsszesitoExcelExport,\r\n addUserGroup: addUserGroup,\r\n getUpAndDownPlayers: getUpAndDownPlayers,\r\n HealthReport: HealthReport,\r\n getAthletesFromFeeRegister: getAthletesFromFeeRegister,\r\n getAnnualSportServiceFeeByCoach: getAnnualSportServiceFeeByCoach,\r\n getOldCompetitivePlanByUserId: getOldCompetitivePlanByUserId,\r\n athletesSelect2: athletesSelect2,\r\n getDuplicatedAthletes: getDuplicatedAthletes,\r\n deleteMonthlyTrainingPlan: deleteMonthlyTrainingPlan,\r\n saveAnthropometry: saveAnthropometry,\r\n getAthletesForFeeArrears: getAthletesForFeeArrears,\r\n checkPaymentsSave: checkPaymentsSave,\r\n deleteHealthMainType: deleteHealthMainType,\r\n deleteHealthSubType: deleteHealthSubType,\r\n HealthMainTypeManager: HealthMainTypeManager,\r\n HealthSubTypeManager: HealthSubTypeManager,\r\n healthMainTypesList: healthMainTypesList,\r\n healthSubTypesList: healthSubTypesList,\r\n sectionDropDownListAll: sectionDropDownListAll,\r\n getSectionLeaderListBox: getSectionLeaderListBox,\r\n getEducationalFeePaymentsNumbers: getEducationalFeePaymentsNumbers,\r\n sectionDropDownListWithFees: sectionDropDownListWithFees,\r\n sectionDropDownListWithGroupStatus: sectionDropDownListWithGroupStatus,\r\n getAgeGroupTreeView: getAgeGroupTreeView,\r\n getAnnualSeasonPlanArrears: getAnnualSeasonPlanArrears,\r\n removeEvent: removeEvent,\r\n savePerformanceMotivationSurveyEval: savePerformanceMotivationSurveyEval,\r\n editUserGroup: editUserGroup,\r\n getOldAnthropometryTest: getOldAnthropometryTest,\r\n saveTeam: saveTeam,\r\n getAthletesEV: getAthletesEV,\r\n updateOktatasiDijfizetesek: updateOktatasiDijfizetesek,\r\n savePerformanceMotivationSurvey: savePerformanceMotivationSurvey,\r\n getPerformanceMotivationSurvey: getPerformanceMotivationSurvey,\r\n selectSchools: selectSchools,\r\n getOldWeeklyPlanByUserId: getOldWeeklyPlanByUserId,\r\n getWeeklyTrainingPlans: getWeeklyTrainingPlans,\r\n getAnnualCompetitiveReports: getAnnualCompetitiveReports,\r\n getClassMasters: getClassMasters,\r\n getClassMasterContact: getClassMasterContact,\r\n getMonthlyAttendanceReports: getMonthlyAttendanceReports,\r\n getTrainingAttendances: getTrainingAttendances,\r\n getMonthlyCompetitivePlans: getMonthlyCompetitivePlans,\r\n parentsAthleteAttendanceList: parentsAthleteAttendanceList,\r\n getGymTeachers: getGymTeachers,\r\n getGymTeacherContact: getGymTeacherContact,\r\n getMonthlyTrainingPlanList: getMonthlyTrainingPlanList,\r\n addSchool: addSchool,\r\n getSectionResources: getSectionResources,\r\n getAnnualSportServiceFeeByOneSection: getAnnualSportServiceFeeByOneSection,\r\n getAgeGroupResources: getAgeGroupResources,\r\n editSchool: editSchool,\r\n getAnnualEducationalFeeBySection: getAnnualEducationalFeeBySection,\r\n getAnnualEducationalFeeByOneSection: getAnnualEducationalFeeByOneSection,\r\n searchAthlete: searchAthlete,\r\n searchUser: searchUser,\r\n deleteSchool: deleteSchool,\r\n addUser: addUser,\r\n getAthleteForAnthropometry: getAthleteForAnthropometry,\r\n saveEvent: saveEvent,\r\n modifyUser: modifyUser,\r\n modifyUserMin: modifyUserMin,\r\n getTeamMembersList: getTeamMembersList,\r\n modifyTeam: modifyTeam,\r\n getPossibleTeamMembersList: getPossibleTeamMembersList,\r\n addTeamMemberToTeam: addTeamMemberToTeam,\r\n getUserGroupDropDownList: getUserGroupDropDownList,\r\n getFullUserGroupList: getFullUserGroupList,\r\n deleteTeamMember: deleteTeamMember,\r\n getAnnualSportServiceFeeBySection: getAnnualSportServiceFeeBySection,\r\n getAnnualEducationalFeeByCoach: getAnnualEducationalFeeByCoach,\r\n deleteTeam: deleteTeam,\r\n deleteTeamsPlayers: deleteTeamsPlayers,\r\n getTeam: getTeam,\r\n getAnnualEducationalFeeByAthletes: getAnnualEducationalFeeByAthletes,\r\n ageGroupList: ageGroupList,\r\n saveDailyAttendance: saveDailyAttendance,\r\n sendLocalException: sendLocalException,\r\n getResultsReportsAthlete: getResultsReportsAthlete,\r\n DeleteExercise: DeleteExercise,\r\n SimilarAthleteExist: SimilarAthleteExist,\r\n getExerciseList: getExerciseList,\r\n getExercise: getExercise,\r\n HetiEdzesTervJovahagyas: HetiEdzesTervJovahagyas,\r\n GetPaints: GetPaints,\r\n HaviEdzesTervJovahagyas: HaviEdzesTervJovahagyas,\r\n getServiceFeePaymentsNumbers: getServiceFeePaymentsNumbers,\r\n getAgeGroupMembersList: getAgeGroupMembersList,\r\n getAwayBudgetPlanList: getAwayBudgetPlanList,\r\n KoltsegtervOsszesitoKimutatas: KoltsegtervOsszesitoKimutatas,\r\n getAgeGroup: getAgeGroup,\r\n saveExercise: saveExercise,\r\n saveAgeGroup: saveAgeGroup,\r\n modifyAgeGroup: modifyAgeGroup,\r\n modifyPaint: modifyPaint,\r\n copyAllAgeGroup: copyAllAgeGroup,\r\n athletesSelect: athletesSelect,\r\n parentsAthleteAttendance: parentsAthleteAttendance,\r\n savePaint: savePaint,\r\n getPaint: getPaint,\r\n getAthletesForDailyPayments2: getAthletesForDailyPayments2,\r\n getUserData: getUserData,\r\n getUserDataMin: getUserDataMin,\r\n coachSelect: coachSelect,\r\n ageGroupSelect: ageGroupSelect,\r\n monthlyAttendanceSelect: monthlyAttendanceSelect,\r\n getAccessRights: getAccessRights,\r\n saveMonthlyAttendance: saveMonthlyAttendance,\r\n getNewAthletesInSelectedYearMonth: getNewAthletesInSelectedYearMonth,\r\n messageSave: messageSave,\r\n getUserGroupTypes: getUserGroupTypes,\r\n monthlyAttendanceAcceptByLeader: monthlyAttendanceAcceptByLeader,\r\n getAthleteData: getAthleteData,\r\n getAthleteDataMin: getAthleteDataMin,\r\n getAthletesForDailyPayments: getAthletesForDailyPayments,\r\n transferAthletes: transferAthletes,\r\n getEvents: getEvents,\r\n getAnnualSportServiceFeeByAthletes: getAnnualSportServiceFeeByAthletes,\r\n getLastMonthlyAttendanceTrainingLocationAndTime: getLastMonthlyAttendanceTrainingLocationAndTime,\r\n getAthletesForMonthlyAttendance: getAthletesForMonthlyAttendance,\r\n monthlyAttendanceSelectById: monthlyAttendanceSelectById,\r\n getAthletesCountForMonthlyAttendance: getAthletesCountForMonthlyAttendance,\r\n getMonthlyAttendanceList: getMonthlyAttendanceList,\r\n getUserUnreadedMessages: getUserUnreadedMessages,\r\n messageDelete: messageDelete,\r\n messageDeleteSent: messageDeleteSent,\r\n getUnAcceptedMonthlyAttendance: getUnAcceptedMonthlyAttendance,\r\n getUnAcceptedMonthlyCompetitionPlan: getUnAcceptedMonthlyCompetitionPlan,\r\n getUnAcceptedWeeklyCompetitionPlan: getUnAcceptedWeeklyCompetitionPlan,\r\n getUnAcceptedYearlyCompetitionPlan: getUnAcceptedYearlyCompetitionPlan,\r\n saveTenesseeSelfImageScale: saveTenesseeSelfImageScale,\r\n getPsychologyTests: getPsychologyTests,\r\n uploadWartegg: uploadWartegg,\r\n saveWartegg: saveWartegg,\r\n getTenesseeSelfImageScaleById: getTenesseeSelfImageScaleById,\r\n saveTenesseeSelfImageScaleEval: saveTenesseeSelfImageScaleEval,\r\n getMonthlyCompetitiveReports: getMonthlyCompetitiveReports,\r\n getWarteggTestById: getWarteggTestById,\r\n getWeeklyTrainingPlanList: getWeeklyTrainingPlanList,\r\n SaveAwayBudgetPlan: SaveAwayBudgetPlan,\r\n getIdegenbeliKoltsegvetesiTervEdzoList: getIdegenbeliKoltsegvetesiTervEdzoList,\r\n getIdegenbeliKoltsegvetesiTervSportoloList: getIdegenbeliKoltsegvetesiTervSportoloList,\r\n getWeeklyTravelList: getWeeklyTravelList,\r\n getWeeklyTrainingList: getWeeklyTrainingList,\r\n getAthletes: getAthletes,\r\n saveExitAthletes: saveExitAthletes,\r\n saveNewAthlete: saveNewAthlete,\r\n getAnthropometryListForPrinting: getAnthropometryListForPrinting,\r\n modifyAthlete: modifyAthlete,\r\n getSystemSettings: getSystemSettings,\r\n saveSystemSettings: saveSystemSettings,\r\n getUserGroupRights: getUserGroupRights,\r\n setUserGroupRight: setUserGroupRight,\r\n weeklyTrainingPlanSelectByIdNew: weeklyTrainingPlanSelectByIdNew,\r\n saveWeeklyTrainingPlanNew: saveWeeklyTrainingPlanNew,\r\n getFilesList: getFilesList,\r\n getResultsReports: getResultsReports,\r\n deleteFiles: deleteFiles,\r\n getCompetitiveMonthlyPlanList: getCompetitiveMonthlyPlanList,\r\n monthlyPlanSelectById: monthlyPlanSelectById,\r\n saveMonthlyCompetitionPlan: saveMonthlyCompetitionPlan,\r\n monthlyCompetitionPlanAcceptByLeader: monthlyCompetitionPlanAcceptByLeader,\r\n getCompetitiveMonthlyPlanItems: getCompetitiveMonthlyPlanItems,\r\n sectionIndividualOrTeam: sectionIndividualOrTeam,\r\n getFeeDatas: getFeeDatas,\r\n saveFeeDatas: saveFeeDatas,\r\n getAthletesForMeteOut: getAthletesForMeteOut,\r\n meteOutFee: meteOutFee,\r\n closeYear: closeYear,\r\n getLastClosedYear: getLastClosedYear,\r\n getLinks: getLinks,\r\n saveLink: saveLink,\r\n deleteLink: deleteLink,\r\n athletesBySection: athletesBySection,\r\n getUnPaidFees: getUnPaidFees,\r\n getUnPaidFeesTrainer: getUnPaidFeesTrainer,\r\n getMessages: getMessages,\r\n GetMessageGroups: GetMessageGroups,\r\n sendMessage: sendMessage,\r\n SikerMobileFreeSendNewMessage: SikerMobileFreeSendNewMessage,\r\n SikerMobileFreeSendMessage: SikerMobileFreeSendMessage,\r\n annualSeasonPlanReportSelectById: annualSeasonPlanReportSelectById,\r\n annualSeasonPlanReportSelect: annualSeasonPlanReportSelect,\r\n getTrainerEmailContact: getTrainerEmailContact,\r\n annualSeasonPlanReportMembersDataByIdSelect: annualSeasonPlanReportMembersDataByIdSelect,\r\n coachAthletesByAgeGroupForAnnualSeasonPlan: coachAthletesByAgeGroupForAnnualSeasonPlan,\r\n annualSeasonPlanDeleteMembers: annualSeasonPlanDeleteMembers,\r\n saveAnnualSeasonPlanMembers: saveAnnualSeasonPlanMembers,\r\n saveAnnualSeasonPlanHead: saveAnnualSeasonPlanHead,\r\n annualSeasonPlanReportMembersPastSelect: annualSeasonPlanReportMembersPastSelect,\r\n annualSeasonPlanReportMembersPastDelete: annualSeasonPlanReportMembersPastDelete,\r\n annualSeasonPlanReportMembersPastRefresh: annualSeasonPlanReportMembersPastRefresh,\r\n saveAnnualSeasonPlanMembersPast: saveAnnualSeasonPlanMembersPast,\r\n annualSeasonPlanReportBestResultsList: annualSeasonPlanReportBestResultsList,\r\n saveAnnualSeasonPlanBestResults: saveAnnualSeasonPlanBestResults,\r\n annualSeasonPlanReportBestResultsSelect: annualSeasonPlanReportBestResultsSelect,\r\n annualSeasonPlanReportObjectivesSelect: annualSeasonPlanReportObjectivesSelect,\r\n saveAnnualSeasonPlanCapitalObjectives: saveAnnualSeasonPlanCapitalObjectives,\r\n deleteFileAnnualSeasonPlan: deleteFileAnnualSeasonPlan,\r\n getAnnualSeasonPlanListByTrainer: getAnnualSeasonPlanListByTrainer,\r\n annualSeasonPlanCompetitionPlansAndObjectivesSelect: annualSeasonPlanCompetitionPlansAndObjectivesSelect,\r\n saveAnnualSeasonPlanCompetitionPlansAndObjectives: saveAnnualSeasonPlanCompetitionPlansAndObjectives,\r\n deleteAnnualSeasonPlanCompetitionPlansAndObjectives: deleteAnnualSeasonPlanCompetitionPlansAndObjectives,\r\n deleteAnnualSeasonPlanCompetitionPlansAndObjective: deleteAnnualSeasonPlanCompetitionPlansAndObjective,\r\n annualSeasonPlanList: annualSeasonPlanList,\r\n dailyEducationalFeesPerCoach: dailyEducationalFeesPerCoach,\r\n dailySportServiceFeesPerCoach: dailySportServiceFeesPerCoach,\r\n annualSeasponPlanTableListSelect: annualSeasponPlanTableListSelect,\r\n annualSeasponPlanTableListSelect2: annualSeasponPlanTableListSelect2,\r\n saveAnnualSeasonPlanTable: saveAnnualSeasonPlanTable,\r\n getAthleteTransferList: getAthleteTransferList,\r\n getFelmerokDatumaiDropDownList: getFelmerokDatumaiDropDownList,\r\n leavingAthletesBySection: leavingAthletesBySection,\r\n joinedAthletesBySection: joinedAthletesBySection,\r\n listAthletes: listAthletes,\r\n athletesByCoach: athletesByCoach,\r\n leavingAthletesByCoach: leavingAthletesByCoach,\r\n joinedAthletesByCoach: joinedAthletesByCoach,\r\n activeAthletesByAge: activeAthletesByAge,\r\n activeAthletesBornAtSpecificYear: activeAthletesBornAtSpecificYear,\r\n activeAthletesByMonth: activeAthletesByMonth,\r\n activeAthletesInSectionByMonth: activeAthletesInSectionByMonth,\r\n athletesNotPresentOnMonthlyAttendance: athletesNotPresentOnMonthlyAttendance,\r\n ActiveAthletesInASpecificMonth: ActiveAthletesInASpecificMonth,\r\n LeavingAthletesInASpecificMonth: LeavingAthletesInASpecificMonth,\r\n JoinedAthletesInASpecificMonth: JoinedAthletesInASpecificMonth,\r\n leavingAthletesFromASpecificCoach: leavingAthletesFromASpecificCoach,\r\n joinedAthletesToASpecificCoach: joinedAthletesToASpecificCoach,\r\n getAnnualPresenceReportByTrainersReport: getAnnualPresenceReportByTrainersReport,\r\n getAnnualPresenceReportBySectionsReport: getAnnualPresenceReportBySectionsReport,\r\n getAnnualPresenceReportBySportSchoolReport: getAnnualPresenceReportBySportSchoolReport,\r\n activeAthletesByCoach: activeAthletesByCoach,\r\n deleteWeeklyTrainingPlan: deleteWeeklyTrainingPlan,\r\n getAthleteMoveStory: getAthleteMoveStory,\r\n athleteDropDownListSelect: athleteDropDownListSelect,\r\n getCharacterOfACompetitionList: getCharacterOfACompetitionList,\r\n saveResultReportAthletes: saveResultReportAthletes,\r\n resultReportAthletesSelectById: resultReportAthletesSelectById,\r\n deleteResultsReport: deleteResultsReport,\r\n searchMemberList: searchMemberList,\r\n resultReportAthletesOlderReports: resultReportAthletesOlderReports,\r\n teamDropDownListSelect: teamDropDownListSelect,\r\n teamAthletesListSelect: teamAthletesListSelect,\r\n getCoachUsers: getCoachUsers,\r\n getEdzoKorcsoportjai: getEdzoKorcsoportjai,\r\n getTeamResultAthleteData: getTeamResultAthleteData,\r\n EredmenyJelentoAtjatszoSportoloi: EredmenyJelentoAtjatszoSportoloi,\r\n saveResultReportTeams: saveResultReportTeams,\r\n resultReportTeamSelectById: resultReportTeamSelectById,\r\n saveNewLink: saveNewLink,\r\n activeAthletesByBirthYear: activeAthletesByBirthYear,\r\n VersenyTervHaviDeleteById: VersenyTervHaviDeleteById,\r\n monthlyPlanSelectByDate: monthlyPlanSelectByDate,\r\n ujHaviVersenyeztetesiTerv: ujHaviVersenyeztetesiTerv,\r\n saveReEnteringAthletes: saveReEnteringAthletes,\r\n getAthletesForWeeklyTrainingPlan: getAthletesForWeeklyTrainingPlan,\r\n GetAwayBudgetPlan: GetAwayBudgetPlan,\r\n deleteUserGroup: deleteUserGroup,\r\n userGroupList: userGroupList,\r\n getTrainingVisitReport: getTrainingVisitReport,\r\n getSentMessages: getSentMessages,\r\n getExpiringDocuments: getExpiringDocuments,\r\n getAbsenceReport: getAbsenceReport,\r\n saveFelmeroElemFej: saveFelmeroElemFej,\r\n saveFelmeroElem: saveFelmeroElem,\r\n getSystemSettingsValue: getSystemSettingsValue,\r\n getFelmeroElemFejList: getFelmeroElemFejList,\r\n getFelmeroElemList: getFelmeroElemList,\r\n felmeroElemFejDropDownList: felmeroElemFejDropDownList,\r\n felmeroFejLista: felmeroFejLista,\r\n FelmeroMentes: FelmeroMentes,\r\n FelmeroLetrehozasa: FelmeroLetrehozasa,\r\n getFelmeroById: getFelmeroById,\r\n getSportagSpecReport: getSportagSpecReport,\r\n deleteFelmeroElemFej: deleteFelmeroElemFej,\r\n deleteFelmero: deleteFelmero,\r\n FelmeroTipusMasolas: FelmeroTipusMasolas,\r\n getSectionHasSectionLeaderRight: getSectionHasSectionLeaderRight,\r\n getSectionHasCoachRight: getSectionHasCoachRight,\r\n getOldMonthlyPlanByUserId: getOldMonthlyPlanByUserId,\r\n monthlyTrainingPlanSelectById: monthlyTrainingPlanSelectById,\r\n createLoginForAthlete: createLoginForAthlete,\r\n createLoginForParent: createLoginForParent,\r\n getAthleteidBelongsToAthleteUser: getAthleteidBelongsToAthleteUser,\r\n getUsersBelongingToAthlete: getUsersBelongingToAthlete,\r\n athleteAndParentDropDownList: athleteAndParentDropDownList,\r\n assignAthleteToParentUser: assignAthleteToParentUser,\r\n unlinkUserFromAthlete: unlinkUserFromAthlete,\r\n getParentAndAthleteUsers: getParentAndAthleteUsers,\r\n UsersUserGroup: UsersUserGroup,\r\n getUserIdsOfGroup: getUserIdsOfGroup,\r\n getUserId: getUserId,\r\n getAthletesBodyStat: getAthletesBodyStat,\r\n getAthletesOfUser: getAthletesOfUser,\r\n saveMonthlyTrainingPlan: saveMonthlyTrainingPlan,\r\n saveHealthData: saveHealthData,\r\n GetHealth: GetHealth,\r\n resultChartSectionDropDown: resultChartSectionDropDown,\r\n resultChartAgeGroupDropDown: resultChartAgeGroupDropDown,\r\n resultChartVersenyszamDropDown: resultChartVersenyszamDropDown,\r\n resultDateChart: resultDateChart,\r\n resultChart1: resultChart1,\r\n resultChart2: resultChart2,\r\n resultChart3: resultChart3,\r\n SzuloCsoportokDropDownList: SzuloCsoportokDropDownList,\r\n SportoloCsoportokDropDownList: SportoloCsoportokDropDownList,\r\n getNamesByIds: getNamesByIds,\r\n Cimjegyzek: Cimjegyzek,\r\n CimjegyzekMobil: CimjegyzekMobil,\r\n KedvezmenyNevek: KedvezmenyNevek,\r\n OktatasiKedvezmenyNevek: OktatasiKedvezmenyNevek,\r\n KedvezmenyNevekMentes: KedvezmenyNevekMentes,\r\n modifyHealthData: modifyHealthData,\r\n getReducedSportServiceFeeTypes: getReducedSportServiceFeeTypes,\r\n getReducedEducationalFeeTypes: getReducedEducationalFeeTypes,\r\n getAthleteFees: getAthleteFees,\r\n getParentNames: getParentNames,\r\n loadTrainingDiaryByMonthlyAttendanceId: loadTrainingDiaryByMonthlyAttendanceId,\r\n saveTrainingDiary: saveTrainingDiary,\r\n getTrainingDiaryReports: getTrainingDiaryReports,\r\n monthlyAttendanceRefreshAthleteData: monthlyAttendanceRefreshAthleteData,\r\n getLog: getLog,\r\n getImageOfUser: getImageOfUser,\r\n saveSystemSettingsValue: saveSystemSettingsValue,\r\n EsemenyekAttolteseHetiEdzestervre: EsemenyekAttolteseHetiEdzestervre,\r\n AtjatszoSportoloLista: AtjatszoSportoloLista,\r\n GetPaintList: GetPaintList,\r\n getParentNotifications: getParentNotifications,\r\n getParentNotifications2: getParentNotifications2,\r\n ErtesitestLatta: ErtesitestLatta,\r\n AcceptCSVPayment: AcceptCSVPayment,\r\n KoltesegvetesiTervExcelExport: KoltesegvetesiTervExcelExport,\r\n KoltesegvetesiTervVeglegesites: KoltesegvetesiTervVeglegesites,\r\n KoltesegvetesiTervLezaras: KoltesegvetesiTervLezaras,\r\n KoltesegvetesiTervJovahagyas: KoltesegvetesiTervJovahagyas,\r\n WeeklyTrainingPlaces: WeeklyTrainingPlaces,\r\n GenerateRegNum: GenerateRegNum,\r\n assetTypeList: assetTypeList,\r\n AssetManager: AssetManager,\r\n AssetsByType: AssetsByType,\r\n assetInventoryByType: assetInventoryByType,\r\n assetInventoryByPerson: assetInventoryByPerson,\r\n DeleteUndeleteAssets: DeleteUndeleteAssets,\r\n AthletesInSection: AthletesInSection,\r\n UsersInGroup: UsersInGroup,\r\n AssetIssue: AssetIssue,\r\n AssetTakeBack: AssetTakeBack,\r\n IssuedAssets: IssuedAssets,\r\n getSectionData: getSectionData,\r\n editSection: editSection,\r\n getSectionLeaders: getSectionLeaders,\r\n CSVSettings: CSVSettings,\r\n CSVPreprocessSelectHeader: CSVPreprocessSelectHeader,\r\n EdzesFejLista: EdzesFejLista,\r\n EdzesSablon: EdzesSablon,\r\n ExpiringDocuments: ExpiringDocuments,\r\n getTrainingPracticeAutoComplete: getTrainingPracticeAutoComplete,\r\n getExercises: getExercises,\r\n IdegenKoltsegTervBuszTulaj: IdegenKoltsegTervBuszTulaj,\r\n IdegenKoltsegTervBusz: IdegenKoltsegTervBusz,\r\n saveTrainingPlan: saveTrainingPlan,\r\n getParentDataPOST: getParentDataPOST,\r\n getTrainingPlanList: getTrainingPlanList,\r\n EszkozIgenyLista: EszkozIgenyLista,\r\n GetTrainingPlanById: GetTrainingPlanById,\r\n ageGroupSelectYear: ageGroupSelectYear,\r\n ageGroupSelectBetweenDates: ageGroupSelectBetweenDates,\r\n getCoachContant: getCoachContant,\r\n deleteAwayBudgetPlan: deleteAwayBudgetPlan,\r\n SzakosztalyRuhai: SzakosztalyRuhai,\r\n DeleteTrainingPlan: DeleteTrainingPlan,\r\n noEducationalFee: noEducationalFee,\r\n getMonthlyAttendanceAutoSave: getMonthlyAttendanceAutoSave,\r\n setMonthlyAttendanceAutoSave: setMonthlyAttendanceAutoSave,\r\n CopyTimeAndPlaceFromWeeklyPlan: CopyTimeAndPlaceFromWeeklyPlan,\r\n SetPushNotificationSettings: SetPushNotificationSettings,\r\n SetPushNotificationFromWeb: SetPushNotificationFromWeb,\r\n HetiEdzestervLegregebbiHet: HetiEdzestervLegregebbiHet,\r\n getCompetitionPlaces: getCompetitionPlaces,\r\n GDPRExitAthlete: GDPRExitAthlete,\r\n GetUnreadMessageCount: GetUnreadMessageCount,\r\n FirebaseSubscribeToTopic: FirebaseSubscribeToTopic,\r\n FirebaseUnsubscribeFromTopic: FirebaseUnsubscribeFromTopic,\r\n GetRecipientsBySubjectId: GetRecipientsBySubjectId,\r\n SikerMobileFreeDeleteMessages: SikerMobileFreeDeleteMessages,\r\n SikerMobileFreeLeaveConversation: SikerMobileFreeLeaveConversation,\r\n SendSystemMessage: SendSystemMessage,\r\n deletePaint: deletePaint,\r\n AthletesDataMobileList: AthletesDataMobileList,\r\n DeleteMessageImage: DeleteMessageImage\r\n };\r\n\r\n var ds = this; // jshint ignore: line\r\n\r\n return service;\r\n\r\n function SikerMobileFreeLeaveConversation(targyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeLeaveConversation',\r\n params: {\r\n targyId: targyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteMessageImage(imgPath) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileDeleteImage',\r\n data: imgPath\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deletePaint(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeletePaint',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SendSystemMessage(recipientID, messageBody) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SystemMessage',\r\n params: {\r\n recipient: recipientID,\r\n message: messageBody\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FirebaseSubscribeToTopic(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FirebaseSubscribeToTopic',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FirebaseUnsubscribeFromTopic(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FirebaseUnsubscribeFromTopic',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetRecipientsBySubjectId(subjectId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimjegyzekBySubjectId',\r\n params: {\r\n subjectId: subjectId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetUnreadMessageCount() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetUnreadMessageCount'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GDPRExitAthlete(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GDPRExitAthlete',\r\n params: {\r\n sportoloId: sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HetiEdzestervLegregebbiHet() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervLegregebbiHet'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SetPushNotificationSettings(data) {\r\n console.log(data);\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SetPushNotificationSettings',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SetPushNotificationFromWeb(data) {\r\n console.log('SetPushNotificationFromWeb', data);\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SetPushNotificationFromWeb',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CopyTimeAndPlaceFromWeeklyPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CopyTimeAndPlaceFromWeeklyPlan',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAwayBudgetPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'deleteAwayBudgetPlan',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCoachContant(edzoid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getCoachContant',\r\n params: {\r\n edzoid: edzoid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function noEducationalFee() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NoEducationalFee'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EszkozIgenyLista(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozIgenyLista',\r\n params: {\r\n EdzesFejId: EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentDataPOST(parent, arg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloAdatok',\r\n data: {\r\n parent: parent,\r\n arg: arg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IdegenKoltsegTervBuszTulaj() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenKoltsegTervBuszTulaj'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IdegenKoltsegTervBusz() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenKoltsegTervBusz'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EdzesSablon(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzesSablon',\r\n params: {\r\n EdzesFejId: EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EdzesFejLista(szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzesFejLista',\r\n params: {\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CSVPreprocessSelectHeader(file, headerRow, enc) {\r\n if (!enc) {\r\n enc = 'NULL';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CSVPreprocessSelectHeader',\r\n params: {\r\n file: file,\r\n headerRow: headerRow,\r\n enc: enc\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CSVSettings(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CSVSettings',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionLeaders() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSectionLeaders'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editSection(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'editSection',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionData(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSectionData',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function IssuedAssets(sportolo, edzo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IssuedAssets',\r\n params: {\r\n sportolo: sportolo,\r\n edzo: edzo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetTakeBack(assets, megjegyzes) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetTakeBack',\r\n data: {\r\n assets: assets,\r\n megjegyzes: megjegyzes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetIssue(assets, edzo, sportolo, megjegyzes) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetIssue',\r\n data: {\r\n assets: assets,\r\n edzo: edzo,\r\n sportolo: sportolo,\r\n megjegyzes: megjegyzes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AthletesInSection(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AthletesInSection',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function UsersInGroup(usergroup) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UsersInGroup',\r\n params: {\r\n usergroup: usergroup\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetsByType(assetType, filter) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetsByType',\r\n params: {\r\n assetType: assetType,\r\n filter: filter\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteUndeleteAssets(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteUndeleteAssets',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AssetManager(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssetManager',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetTypeList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'assetTypeList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GenerateRegNum() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GenerateRegNum'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function WeeklyTrainingPlaces() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTrainingPlaces'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervLezaras(tervid, close) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervLezaras',\r\n params: {\r\n tervid: tervid,\r\n close: close\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervVeglegesites(tervid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervVeglegesites',\r\n params: {\r\n tervid: tervid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervJovahagyas(tervid, szint) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervJovahagyas',\r\n params: {\r\n tervid: tervid,\r\n szint: szint\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltesegvetesiTervExcelExport(tervid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltesegvetesiTervExcelExport',\r\n params: {\r\n tervid: tervid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltsegtervOsszesitoExcelExport(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltsegtervOsszesitoExcelExport',\r\n params: {\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n edzoId: edzoId,\r\n dateFrom: dateFrom,\r\n dateTo: dateTo,\r\n onlyStartDate: onlyStartDate,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AcceptCSVPayment(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AcceptCSVPayment',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SaveAwayBudgetPlan(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveAwayBudgetPlan',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ErtesitestLatta(ertesitesid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ErtesitestLatta',\r\n params: {\r\n ertesitesid: ertesitesid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetAwayBudgetPlan(tervId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAwayBudgetPlan',\r\n params: {\r\n tervId: tervId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNotifications(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getParentNotifications',\r\n params: {\r\n fromDate: fromDate,\r\n toDate: toDate,\r\n currentListSize: currentListSize,\r\n moreNewer: moreNewer,\r\n moreOlder: moreOlder,\r\n load: load,\r\n size: size\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNotifications2(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getParentNotifications2',\r\n params: {\r\n fromDate: fromDate,\r\n toDate: toDate,\r\n currentListSize: currentListSize,\r\n moreNewer: moreNewer,\r\n moreOlder: moreOlder,\r\n load: load,\r\n size: size\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetPaintList(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaintList',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetPaints(sectionId, ageGroupId, coachId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaints',\r\n params: {\r\n sectionId: sectionId,\r\n ageGroupId: ageGroupId,\r\n coachId: coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getImageOfUser(userid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getImageOfUser',\r\n params: {\r\n userid: userid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLog(table, pk, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getLog',\r\n params: {\r\n table: table,\r\n pk: pk,\r\n tol: tol,\r\n ig: ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function loadTrainingDiaryByMonthlyAttendanceId(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KepzesiNaploBetoltesIdAlapjan',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EsemenyekAttolteseHetiEdzestervre(edzo, korosztaly, hetfo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EsemenyekAttolteseHetiEdzestervre',\r\n params: {\r\n edzo: edzo,\r\n korosztaly: korosztaly,\r\n hetfo: hetfo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentNames() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloNevek',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KedvezmenyNevekMentes(language, k1, k2, k3, k4, k5, ok1, ok2, ok3, ok4, ok5) {\r\n if (!k1) {\r\n k1 = '';\r\n }\r\n if (!k2) {\r\n k2 = '';\r\n }\r\n if (!k3) {\r\n k3 = '';\r\n }\r\n if (!k4) {\r\n k4 = '';\r\n }\r\n if (!k5) {\r\n k5 = '';\r\n }\r\n if (!ok1) {\r\n ok1 = '';\r\n }\r\n if (!ok2) {\r\n ok2 = '';\r\n }\r\n if (!ok3) {\r\n ok3 = '';\r\n }\r\n if (!ok4) {\r\n ok4 = '';\r\n }\r\n if (!ok5) {\r\n ok5 = '';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KedvezmenyNevekMentes',\r\n params: {\r\n language: language,\r\n k1: k1,\r\n k2: k2,\r\n k3: k3,\r\n k4: k4,\r\n k5: k5,\r\n ok1: ok1,\r\n ok2: ok2,\r\n ok3: ok3,\r\n ok4: ok4,\r\n ok5: ok5\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function OktatasiKedvezmenyNevek(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiKedvezmenyNevek',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getReducedSportServiceFeeTypes(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetReducedSportServiceFeeTypes',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getReducedEducationalFeeTypes(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetReducedEducationalFeeTypes',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KedvezmenyNevek(language) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KedvezmenyNevek',\r\n params: {\r\n language: language\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SportoloCsoportokDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloCsoportokDropDownList',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SzuloCsoportokDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloCsoportokDropDownList',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart3(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart3',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart2(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart2',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChart1(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChart1',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultDateChart(sportolo, versenyszam, mettol, meddig, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultDateChart',\r\n params: {\r\n sportolo: sportolo,\r\n versenyszam: versenyszam,\r\n mettol: mettol,\r\n meddig: meddig,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartVersenyszamDropDown(sportolo, szakosztaly, korosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartVersenyszamDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n szakosztaly: szakosztaly,\r\n korosztaly: korosztaly\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartAgeGroupDropDown(sportolo, szakosztaly, versenyszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartAgeGroupDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n szakosztaly: szakosztaly,\r\n versenyszam: versenyszam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultChartSectionDropDown(sportolo, korosztaly, versenyszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ResultChartSectionDropDownList',\r\n params: {\r\n sportolo: sportolo,\r\n korosztaly: korosztaly,\r\n versenyszam: versenyszam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesBodyStat(sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloTestmeretStatisztika',\r\n params: {sportoloid: sportoloid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserId() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUserId',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function UsersUserGroup(userid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportTagja',\r\n params: {userid: userid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getParentAndAthleteUsers(section, agegroup) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokhozKapcsolodoFelhasznalokOsszes',\r\n params: {\r\n section: section,\r\n agegroup: agegroup\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UnlinkUserFromAthlete',\r\n params: {\r\n userid: userid,\r\n sportoloid: sportoloid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athleteAndParentDropDownList(role) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloEsSportoloUserDropDownList',\r\n params: {role: role}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUsersBelongingToAthlete(sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolohozKapcsolodoFelhasznalok',\r\n params: {sportoloid: sportoloid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesOfUser() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletesOfUser'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteidBelongsToAthleteUser() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthleteidBelongsToAthleteUser'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assignAthleteToParentUser(parentuserid, sportoloid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AssignAthleteToParentUser',\r\n params: {\r\n parentuserid: parentuserid,\r\n sportoloid: sportoloid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function createLoginForParent(parentUserName, parentPassword, parent, athleteId, group) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CreateLoginForParent',\r\n params: {\r\n parentUserName: parentUserName,\r\n parentPassword: parentPassword,\r\n parent: parent,\r\n athleteId: athleteId,\r\n group: group\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function createLoginForAthlete(athleteUserName, athletePassword, athleteId, group) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CreateLoginForAthlete',\r\n params: {\r\n athleteUserName: athleteUserName,\r\n athletePassword: athletePassword,\r\n athleteId: athleteId,\r\n group: group\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroTipusMasolas(fefid, targetsection, name) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroTipusMasolas',\r\n params: {\r\n fefid: fefid,\r\n targetsection: targetsection,\r\n name: name\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroMentes(arr, ffid, fefid, section, agegroup, coach, edzoertekeles, date) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroMentes',\r\n data: {\r\n 'data': arr,\r\n 'ffid': ffid,\r\n 'fefid': fefid,\r\n 'section': section,\r\n 'agegroup': agegroup,\r\n 'coach': coach,\r\n 'edzoertekeles': edzoertekeles,\r\n 'date': date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function FelmeroLetrehozasa(coach, agegroup, fefid, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroLetrehozasa',\r\n params: {\r\n coach: coach,\r\n agegroup: agegroup,\r\n fefid: fefid,\r\n date: date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSportagSpecReport(fefid, agegroup, section, fromdate, todate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportagSpecReport',\r\n params: {\r\n fefid: fefid,\r\n agegroup: agegroup,\r\n section: section,\r\n fromdate: fromdate,\r\n todate: todate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroById(FFID) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroBetoltese',\r\n params: {\r\n FFID: FFID\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFelmeroElemFej(fefid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejTorles',\r\n params: {\r\n fefid: fefid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFelmero(ffid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroTorles',\r\n params: {\r\n ffid: ffid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFelmeroElemFej(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejLetrehozasa',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroElemFejList(section) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejLista',\r\n params: {\r\n section: section\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFelmeroElem(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemLetrehozasa',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmeroElemList(fefid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemLista',\r\n params: {\r\n fefid: fefid\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAbsenceReport(section, agegroup, coach, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Hianyzasok',\r\n params: {\r\n section: section,\r\n agegroup: agegroup,\r\n coach: coach,\r\n tol: tol,\r\n ig: ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExpiringDocuments(section, agegroup, coach, to, spc, pp, pid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'LejaroDokumentumok',\r\n params: {\r\n section: section,\r\n agegroup: agegroup,\r\n coach: coach,\r\n to: to,\r\n spc: spc,\r\n pp: pp,\r\n pid: pid,\r\n sportoloid: 0\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function userGroupList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokDropDown',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteUserGroup(userGroupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportTorlese',\r\n params: {\r\n userGroupId: userGroupId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyPlanSelectByDate(dateyear, datemonth, szakosztalyId, edzoId, newplan, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviByDate',\r\n params: {\r\n dateyear: dateyear,\r\n datemonth: datemonth,\r\n szakosztalyId: szakosztalyId,\r\n edzoId: edzoId,\r\n newplan: newplan, // Ha uj tervet akarok létrehozni akkor nem dob hibaüzenetet ha az adott hónapra nincs még versenyterv\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ujHaviVersenyeztetesiTerv(date, szakosztalyId, edzoId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UjHaviVersenyeztetesiTerv',\r\n params: {\r\n date: date,\r\n szakosztalyId: szakosztalyId,\r\n edzoId: edzoId,\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByBirthYear(sectionId, year, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AktivSportolokSzuletesievEsSzakosztalySzerint',\r\n params: {\r\n 'sectionId': sectionId,\r\n 'year': year,\r\n 'gender': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteMoveStory(SportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloMozgasa',\r\n params: {\r\n 'SportoloId': SportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function VersenyTervHaviDeleteById(id, SzakosztalyId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviDeleteById',\r\n params: {\r\n 'id': id,\r\n 'SzakosztalyId': SzakosztalyId,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByCoach(coachId, sectionId, dateFrom, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoAktivakSzama_Sportolok',\r\n params: {\r\n 'edzoId': coachId,\r\n 'szakosztalyId': sectionId,\r\n 'datumTol': dateFrom,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesToASpecificCoach(edzoId, datumTol, datumIg, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoBelepokSzama_Sportolok',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesFromASpecificCoach(edzoId, datumTol, datumIg, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKilepokSzama_Sportolok',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'neme': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function JoinedAthletesInASpecificMonth(honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa_BelepettSportolok',\r\n params: {\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function LeavingAthletesInASpecificMonth(honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa_KilepettSportolok',\r\n params: {\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ActiveAthletesInASpecificMonth(honap, datumig, szakosztalyId, neme) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasaSzakosztalyonkent_sportolok',\r\n params: {\r\n 'honap': honap,\r\n 'datumig': datumig,\r\n 'szakosztalyId': szakosztalyId,\r\n 'gender': neme\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesNotPresentOnMonthlyAttendance(datumTol, datumIg, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletinNemSzereploSportolok',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'tol': datumTol,\r\n 'ig': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesInSectionByMonth(datumTol, datumIg, SzakosztalyNeve, sectionId) {\r\n if (!sectionId) {\r\n sectionId = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasaSzakosztalyonkent',\r\n params: {\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg,\r\n 'sectionId': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByMonth(datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamanakAlakulasa',\r\n params: {\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesBornAtSpecificYear(year, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokEvszamSzerint',\r\n params: {\r\n 'ev': year,\r\n 'szakosztalyId': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function activeAthletesByAge(date, sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzuletesiIdoAlapjan',\r\n params: {\r\n 'datum': date,\r\n 'szakosztaly': sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesByCoach(dateFrom, dateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'BelepoSportolokSzamaEdzonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesByCoach(dateFrom, dateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KilepoSportolokSzamaEdzonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesByCoach(date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokSzamaEdzonkent',\r\n params: {\r\n 'datum': date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function listAthletes(dateFrom, dateTo, state, sectionId, gender) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportolokListaSzakosztalyonkent',\r\n params: {\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'state': state,\r\n 'sectionId': sectionId,\r\n 'gender': gender\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function leavingAthletesBySection(queryDateFrom, queryDateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyKilepokSzama',\r\n params: {\r\n 'datum': queryDateFrom,\r\n 'datum2': queryDateTo,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function joinedAthletesBySection(queryDateFrom, queryDateTo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyBelepokSzama',\r\n params: {\r\n 'datum': queryDateFrom,\r\n 'datum2': queryDateTo,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function range(start, stop, step) {\r\n if (stop == null) {\r\n stop = start || 0;\r\n start = 0;\r\n }\r\n step = step || 1;\r\n\r\n if (start <= stop) {\r\n var length = Math.max(Math.ceil((stop - start) / step), 0);\r\n var range = Array(length);\r\n\r\n for (var idx = 0; idx <= length; idx++, start += step) {\r\n range[idx] = start;\r\n }\r\n } else {\r\n var length = Math.max(Math.ceil((start - stop) / step), 0);\r\n var range = Array(length);\r\n\r\n for (var idx = 0; idx <= length; idx++, start -= step) {\r\n range[idx] = start;\r\n }\r\n }\r\n\r\n return range;\r\n }\r\n\r\n function getURL() {\r\n return DOMAIN.baseURL + DOMAIN.webService;\r\n }\r\n\r\n function changePassword(oldPwd, newPwd) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ChangePassword',\r\n data: {\r\n 'oldPassword': oldPwd,\r\n 'newPassword': newPwd\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function login(loginName, password, language) {\r\n ds.req = {\r\n type: 'apiTOKEN',\r\n url: DOMAIN.baseURL + 'Token',\r\n data: $.param({\r\n grant_type: 'password',\r\n username: loginName,\r\n password: password,\r\n language: language,\r\n })\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function logout() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Logout'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getHaveToPay() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaveToPay'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAvailableLanguages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AvailableLanguages'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownList(edzoId, osszesSzakosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownList',\r\n params: {edzoId: edzoId, osszesSzakosztaly: osszesSzakosztaly}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListWithGroupStatus(edzoId, osszesSzakosztaly) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownListWithGroupStatus',\r\n params: {edzoId: edzoId, osszesSzakosztaly: osszesSzakosztaly}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListAll() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDropDownListAll'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionDropDownListWithFees(edzoId) {\r\n if (!edzoId) {\r\n edzoId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijDropDownLista',\r\n params: {edzoId: edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getDuplicatedAthletes(inactivesToo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DuplikaltFelhasznalokSelect',\r\n params: {inactivesToo: inactivesToo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesFromFeeRegister(sectionId, coachId, year, months) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForFeeRegister',\r\n params: {sectionId: sectionId, year: year, coachId: coachId, months: months}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForEducationalFeeRegister(sectionId, coachId, year, months) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForEducationalFeeRegister',\r\n params: {sectionId: sectionId, year: year, coachId: coachId, months: months}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupDropDownList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokDropDownList',\r\n params: {'szakosztalyId': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getIdegenbeliKoltsegvetesiTervEdzoList(szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetIdegenbeliKoltsegvetesiTervEdzoList',\r\n params: {szakosztalyId: szakosztalyId, korosztalyId: korosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAwayBudgetPlanList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate, type, versenyHely) {\r\n if (!onlyStartDate) {\r\n onlyStartDate = false;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IdegenbeliKoltsegvetesiTervLista',\r\n params: {\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n edzoId: edzoId,\r\n dateFrom: dateFrom,\r\n dateTo: dateTo,\r\n onlyStartDate: onlyStartDate,\r\n type: type,\r\n versenyHely: versenyHely\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupDropDownListForSearch(sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokDropDownListForSearch',\r\n params: {'sectionId': sectionId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthReport(dateFrom, dateTo, szakosztalyId, korcsoportId, edzoId, fotipus, altipus) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthReport',\r\n params: {\r\n 'fotipus': fotipus,\r\n 'altipus': altipus,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUpAndDownPlayers(szakosztalyId, korcsoportId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AtjatszoSportolokSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'korcsoportId': korcsoportId, 'edzoId': edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyCompetitivePlans(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviVersenyeztetesiTervLeadasokSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHaviJelenletikSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingDiaryReports(tol, ig, szakosztalyId, edzoId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviKepzesiNaplokSelect',\r\n params: {\r\n 'tol': tol,\r\n 'ig': ig,\r\n 'szakosztalyId': szakosztalyId,\r\n 'edzoId': edzoId,\r\n 'korosztalyId': korosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualCompetitiveReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiEvesVersenyeztetesiTervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyCompetitiveReports(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHaviVersenyeztetesiTervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingPlans(tol, ig, szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VezetoiHetiEdzestervekSelect',\r\n params: {'szakosztalyId': szakosztalyId, 'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingAttendances(tol, ig, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzeslatogatasListaSelect',\r\n params: {'tol': tol, 'edzoId': edzoId, 'ig': ig}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupTypes() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetUserGroupTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamsDropDownList(sectionId, ageGroupId, coachId) {\r\n if (sectionId === undefined) {\r\n sectionId = 0;\r\n }\r\n if (ageGroupId === undefined) {\r\n ageGroupId = 0;\r\n }\r\n if (coachId === undefined) {\r\n coachId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TeamsDropDownList',\r\n params: {\r\n 'sectionId': sectionId,\r\n 'ageGroupId': ageGroupId,\r\n 'coachId': coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamImg(csapatId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteTeamImg',\r\n params: {'csapatId': csapatId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyokList',\r\n params: {'szakosztalyId': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupMembersList(szakosztaly, korcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalySportoloi',\r\n params: {\r\n 'szakosztaly': szakosztaly,\r\n 'korcsoport': korcsoport\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getServiceFeePaymentsNumbers(szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiTagdijfizetesekSorszamok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'datum': datum\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEducationalFeePaymentsNumbers(szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktatasiDijFizetesekSorszamok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'datum': datum\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCheck(checkNumber) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkBefizetesBetolt',\r\n params: {'azonosito': checkNumber}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCheckExportPrintList(sectionId, coachId, dateFromValue, dateToValue) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkNyomtatasLista',\r\n params: {\r\n 'SzakosztalyId': sectionId,\r\n 'EdzoId': coachId,\r\n 'datumTol': dateFromValue,\r\n 'datumIg': dateToValue\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroup(korcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorosztalyLekerese',\r\n params: {'id': korcsoport}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachDropDownList(szakosztalyId, korosztalyId, datumtol, datumig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoDropDownList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korosztalyId,\r\n datumtol: datumtol,\r\n datumig: datumig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnthropometryListForPrinting(from, to) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TomegesAntropometriaNyomtatas',\r\n params: {\r\n 'from': from,\r\n 'to': to\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamList(szakosztalyId, korosztalyId, inactive) {\r\n if (angular.isUndefined(korosztalyId) || korosztalyId === '') {\r\n korosztalyId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatList',\r\n params: {'szakosztalyId': szakosztalyId, 'korosztalyId': korosztalyId, 'inactive': inactive}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTeam(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTeam',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getIdegenbeliKoltsegvetesiTervSportoloList(szakosztalyId, AgeGroups) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetIdegenbeliKoltsegvetesiTervSportoloList',\r\n data: {szakosztalyId: szakosztalyId, AgeGroups: AgeGroups}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveExercise(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveExercise',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAgeGroup(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnthropometry(ant, fileData, fileName) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AntropometriaMentes',\r\n data: {\r\n ant: ant,\r\n fileData: fileData,\r\n fileName: fileName\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePerformanceMotivationSurvey(athleteId, answers) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePerformanceMotivationSurvey',\r\n data: {\r\n answers: answers,\r\n sportoloId: athleteId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePieronTest(sportoloId, answers, seen, tNumber, wrongAnswersNumber) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePieronTest',\r\n data: {\r\n sportoloId: sportoloId,\r\n answers: answers,\r\n n: seen,\r\n tNumber: tNumber,\r\n wrongAnswersNumber: wrongAnswersNumber\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePerformanceMotivationSurveyEval(surveyId, szoveg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePerformanceMotivationSurveyEval',\r\n data: {\r\n surveyId: surveyId,\r\n szoveg: szoveg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPerformanceMotivationSurvey(surveyId, noText) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPerformanceMotivationSurvey',\r\n params: {surveyId: surveyId, noText: noText}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPieronTest(surveyId, noText) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPieronTest',\r\n params: {surveyId: surveyId, noText: noText}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForDailyPayments(szakosztalyId, edzoId, datum, sorszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiTagdijFizetok',\r\n params: {datum: datum, szakosztalyId: szakosztalyId, edzoId: edzoId, sorszam: sorszam}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForDailyPayments2(szakosztalyId, edzoId, datum, sorszam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktatasiDijFizetok',\r\n params: {szakosztalyId: szakosztalyId, datum: datum, edzoId: edzoId, sorszam: sorszam}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyAgeGroup(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportModositasa',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchAthlete(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloKereses/Kereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloKereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function searchMemberList(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TaglistaKereses',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyUser(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloModositas',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyUserMin(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloModositasMin',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokKorosztalyokTreeViewLekeres'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSystemSettings',\r\n params: {valtozo: valtozo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSystemSettingsValue',\r\n params: {valtozo: valtozo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SzakosztalyRuhai(section, section2) {\r\n if (!section2) {\r\n section2 = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyRuhai',\r\n params: {section: section, section2: section2}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveSystemSettings(valtozo, ertek) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveSystemSettings',\r\n data: {valtozo: valtozo, ertek: ertek}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveSystemSettingsValue(valtozo, ertek) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveSystemSettingsValue',\r\n data: {valtozo: valtozo, ertek: ertek}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokVezetovelLekeres'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function copyAllAgeGroup(forrasSzakosztalyId, celSzakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportMasolas',\r\n params: {'forrasSzakosztalyId': forrasSzakosztalyId, 'celSzakosztalyId': celSzakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeBySection(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijBySzakosztalySelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeBySection(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijBySzakosztalySelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByOneSection(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijByEgySzakosztaly',\r\n params: {'szakosztaly': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByOneSection(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijByEgySzakosztaly',\r\n params: {'szakosztaly': szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByCoach(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijByEdzoSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByCoach(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijByEdzoSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSportServiceFeeByAthletes(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijBySportoloSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualEducationalFeeByAthletes(year) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OktatasiDijBySportoloSelect',\r\n params: {'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyTeam(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyTeam',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokDropDownList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFullUserGroupList(group) {\r\n if (!group) {\r\n group = 'all';\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportokList',\r\n params: {'group': group}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeamMembersList(teamId, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloi',\r\n params: {csapatId: teamId, date: date}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPossibleTeamMembersList(teamId, szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'csapatLehetsegesSportoloi',\r\n params: {csapatId: teamId, korcsoportId: korosztalyId, szakosztalyId: szakosztalyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addTeamMemberToTeam(sportoloId, csapatId) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloOsszerendeles',\r\n data: {\r\n CsapatId: csapatId,\r\n SportoloId: sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamMember(teamId, sportoloIds) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatSportoloTorles',\r\n data: {\r\n CsapatId: teamId,\r\n SportoloIdk: sportoloIds\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeam(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportTorlese',\r\n params: {Id: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteTeamsPlayers(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatOsszesSportoloTorles',\r\n params: {csapatId: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeam(teamId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatLekerese',\r\n params: {csapatId: teamId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function usersListSelect() {\r\n ds.req = {\r\n type: 'apiGET',\r\n withCredentials: true,\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'felhasznalokListaSelect',\r\n data: {}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addUserGroup(csoport) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportHozzaadas',\r\n data: csoport\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editUserGroup(csoport) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportModositas',\r\n data: csoport\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function selectSchools() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolakSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletes(szakosztalyId, edzoId, sportoloId) {\r\n if (sportoloId === null || sportoloId === undefined) {\r\n sportoloId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletes',\r\n params: {szakosztalyId: szakosztalyId, edzoId: edzoId, sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesEV(szakosztalyId, edzoId, sportoloId, csakAktiv) {\r\n if (sportoloId === null || sportoloId === undefined) {\r\n sportoloId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthletes',\r\n params: {szakosztalyId: szakosztalyId, edzoId: edzoId, sportoloId: sportoloId, csakAktiv: csakAktiv}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesSelect(szakosztalyId, korcsoportId, onlyInactives) {\r\n if (!szakosztalyId) {\r\n szakosztalyId = 0;\r\n }\r\n if (!korcsoportId || korcsoportId == 'Összes') {\r\n korcsoportId = 0;\r\n }\r\n onlyInactives = (onlyInactives === true);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'szakosztalySportoloi2',\r\n dataFilter: function (data) {\r\n return data.replace(/\"\\\\\\/(Date\\([0-9-]+\\))\\\\\\/\"/gi, 'new $1');\r\n },\r\n params: {'szakosztaly': szakosztalyId, 'inactive': onlyInactives, 'korcsoport': korcsoportId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesSelect2(szakosztalyId, korcsoportId) {\r\n if (!korcsoportId || korcsoportId == 'Összes') {\r\n korcsoportId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GyorsEredmenyjelentoSportoloSelect',\r\n params: {'szakosztaly': szakosztalyId, 'korcsoport': korcsoportId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function addSchool(school) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaHozzaadas',\r\n data: school\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function editSchool(newSchool) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaModositas',\r\n data: newSchool\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function transferAthletes(sportolok, edzoId, szakosztalyId, korosztalyId, datum, korcsoportValtasKell) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TransferAthletes',\r\n data: {\r\n sportolok: sportolok,\r\n edzoId: edzoId,\r\n szakosztalyId: szakosztalyId,\r\n korosztalyId: korosztalyId,\r\n datum: datum,\r\n korcsoportValtasKell: korcsoportValtasKell\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function quickCompetitionResult(sportolok) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GyorsEredmenyjelentoSportoloMentes',\r\n data: {\r\n sportolok: sportolok\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteSchool(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'IskolaTorles',\r\n params: {id: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserData(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloSelect',\r\n params: {userId: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserDataMin(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloSelectMin',\r\n params: {userId: id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteForAnthropometry(id, felmeres) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getAthleteForAnthropometry',\r\n params: {id: id, felmeres: felmeres}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldCompetitivePlanByUserId(edzoId, vtId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorabbiHaviVersTervei',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'vtId': vtId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldAnthropometryTest(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'RegiAntropometriaFelmeresekSelect',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachSelect() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoFelhasznalokDropDownSelect',\r\n data: {}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelect(edzoId, szakosztalyId, datum) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelect',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'dt': datum}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelectYear(edzoId, szakosztalyId, year) {\r\n if (!szakosztalyId) {\r\n szakosztalyId = 0;\r\n }\r\n if (!edzoId) {\r\n edzoId = 0;\r\n }\r\n if (!year) {\r\n year = moment().year;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelectYear',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'year': year}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ageGroupSelectBetweenDates(edzoId, szakosztalyId, from, to) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorcsoportokEdzoSzakosztalyDropDownSelectBetweenDates',\r\n params: {'szakId': szakosztalyId, 'edzoId': edzoId, 'from': from, 'to': to}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteFees(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthleteFees',\r\n params: {'sportoloId': sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForFeeArrears(szakosztalyId, edzoId, ev) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForFeeArrears',\r\n params: {'year': ev, 'sectionId': szakosztalyId, 'coachId': edzoId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceSelect(edzoId, szakosztalyId, korosztalyId, ev, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeres',\r\n params: {\r\n 'kivEdzo': edzoId,\r\n 'kivSzakosztaly': szakosztalyId,\r\n 'kivKorcsoport': korosztalyId,\r\n 'kivEv': ev,\r\n 'kivHonap': honap\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getGymTeachers(IskolaNeve) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TestneveloAutoComple',\r\n params: {'IskolaNeve': IskolaNeve}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getGymTeacherContact(testnevelo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TestneveloElerhetosege',\r\n params: {'testnevelo': testnevelo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getClassMasters(IskolaNeve) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OsztalyfonokAutoComplete',\r\n params: {'IskolaNeve': IskolaNeve}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getClassMasterContact(classmaster) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'OsztalyfonokElerhetosege',\r\n params: {'classmaster': classmaster}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeresById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveDailyAttendance(attendance) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiJelenletiMentes',\r\n data: attendance\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyAttendance(attendance) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiMentes',\r\n data: attendance\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTrainingDiary(tetelek, jelenletiid, keszult) {\r\n var data = {};\r\n data.edzesmunka = tetelek;\r\n data.JelenletiFejId = jelenletiid;\r\n data.keszult = keszult;\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KepzesiNaploMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteData(athleteId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'sportoloSelect',\r\n params: {'sportoloId': athleteId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteDataMin(athleteId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloSelectMin',\r\n params: {'sportoloId': athleteId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceRefreshAthleteData(fejid) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSportoloAdatokFrissites',\r\n params: {'fejid': fejid}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getNewAthletesInSelectedYearMonth(hj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UjJatekosokKivHonapbanSelect',\r\n data: hj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceAcceptByLeader(idMA) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'haviJelenletiJovahagyas',\r\n data: idMA\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HaviEdzesTervJovahagyas(id) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzesTervJovahagyas',\r\n data: id\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HetiEdzesTervJovahagyas(id) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzesTervJovahagyas',\r\n data: id\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageSave(uzenet, cimzettekId, sectionId) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetMentes',\r\n data: {\r\n uzenet: uzenet,\r\n cimzettekId: cimzettekId,\r\n sectionId: sectionId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSeasonPlanArrears() {\r\n //Datum=JSON.stringify(Datum);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLemaradasok'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLastMonthlyAttendanceTrainingLocationAndTime(edzoId, kivSzakosztaly, kivKorcsoport) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiUtolsoEdzesAdatok',\r\n params: {'edzoId': edzoId, 'kivSzakosztaly': kivSzakosztaly, 'kivKorcsoport': kivKorcsoport}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForMonthlyAttendance(edzoId, kivSzakosztaly, kivKorcsoport, kivHonap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiEdzoJatekosaiKivHonapban',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'kivSzakosztaly': kivSzakosztaly,\r\n 'kivKorosztaly': kivKorcsoport,\r\n 'kivHonap': kivHonap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesCountForMonthlyAttendance(edzoId, szakosztalyId, korcsoportId, tol, ig) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSzakosztalySportoloi',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'tol': tol,\r\n 'ig': ig\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceList(edzoId, tol, ig, lezart) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletikLista',\r\n params: {'kivEdzo': edzoId, 'tol': tol, 'ig': ig, 'lezart': lezart}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserUnreadedMessages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'felhasznaloOlvasatlanUzenetei'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageDelete(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetTorlese',\r\n params: {'uzenetId': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function messageDeleteSent(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetTorleseElkuldottekbol',\r\n params: {'uzenetId': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedMonthlyAttendance() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiSzakvezAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedMonthlyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedWeeklyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHetiAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnAcceptedYearlyCompetitionPlan() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervEvesAlairni'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLinks() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkek'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkekMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveNewLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkekUj',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteLink(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HasznosLinkTorles',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEvents(datum, nezet, sectionId, training, ageGroupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetEvents',\r\n params: {training: training, datum: datum, nezet: nezet, sectionId: sectionId, ageGroupId: ageGroupId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveEvent(appointment) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveEvent',\r\n data: appointment\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyEvent(appointment) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyEvent',\r\n data: appointment\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function removeEvent(Id, year, month, day) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'RemoveEvent',\r\n data: {\r\n Id: Id,\r\n year: year,\r\n month: month,\r\n day: day\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionResources() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetSectionResources'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAgeGroupResources() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAgeGroupResources'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTenesseeSelfImageScale(athleteId, answers) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTenesseeSelfImageScale',\r\n data: {\r\n answers: answers,\r\n sportoloId: athleteId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTenesseeSelfImageScaleById(surveyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getTenesseeSelfImageScaleById',\r\n params: {surveyId: surveyId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTenesseeSelfImageScaleEval(surveyId, szoveg) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveTenesseeSelfImageScaleEval',\r\n data: {surveyId: surveyId, szoveg: szoveg}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveWartegg(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveWartegg',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function uploadWartegg(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UploadWartegg',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPsychologyTests(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getPsychologyTests',\r\n params: {sportoloId: sportoloId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWarteggTestById(testId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getWarteggTestById',\r\n params: {surveyId: testId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingPlanList(edzoId, szakosztalyId, korosztalyId, ev, text) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervekLista',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'ev': ev,\r\n 'text': text\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyTrainingPlanList(edzoId, szakosztalyId, korosztalyId, ev, text) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervekLista',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'ev': ev,\r\n 'text': text\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveExitAthletes(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveExitAthletes',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveNewAthlete(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveNewAthlete',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyAthlete(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyAthlete',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAccessRights() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JogosultsagokSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForWeeklyTrainingPlan(edzoId, korosztalyId, datumIg) {\r\n console.log('qweqwqew', datumIg);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetAthletesForWeeklyTrainingPlan',\r\n params: {edzoId: edzoId, korosztalyId: korosztalyId, datumIg: datumIg}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserGroupRights(groupId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportJogosultsagokSelect',\r\n params: {'csoportId': groupId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function setUserGroupRight(groupId, rightId, value) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsoportJogosultsagokSelect',\r\n data: {\r\n csoportId: groupId,\r\n jogId: rightId,\r\n ertek: value\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function weeklyTrainingPlanSelectByIdNew(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getHetiEdzestervByIdNew',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveWeeklyTrainingPlanNew(formData, gridData, createEvents, mindenki, checkedItems) {\r\n formData.gridData = gridData;\r\n formData.createEvents = createEvents;\r\n formData.mindenki = mindenki;\r\n formData.checkedItems = checkedItems;\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervMentesNew',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFilesList(table, tableId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getFilesList',\r\n params: {\r\n table: table,\r\n tableId: tableId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFiles(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitiveMonthlyPlanList(coachId, sectionId, selectedYear) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviLista',\r\n params: {\r\n edzoId: coachId,\r\n szakosztalyId: sectionId,\r\n ev: selectedYear\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyPlanSelectById(id, szakosztalyId, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviById',\r\n params: {\r\n id: id,\r\n szakosztalyId: szakosztalyId,\r\n egyeni: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyCompetitionPlan(cplan) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviMentes',\r\n data: cplan\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function updateTagdijfizetesek(tabla, sorszamadassal) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UpdateTagdijfizetesek',\r\n data: {tabla: tabla, sorszamadassal: sorszamadassal}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function checkPaymentsSave(tabla) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsekkBefizetesMentes',\r\n data: {tabla: tabla}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function updateOktatasiDijfizetesek(tabla, sorszamadassal) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UpdateOktatasiDijfizetesek',\r\n data: {tabla: tabla, sorszamadassal: sorszamadassal}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyCompetitionPlanAcceptByLeader(id, idSzakosztaly, tipus) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviJovahagyas',\r\n params: {\r\n idVt: id,\r\n idSzakosztaly: idSzakosztaly,\r\n tipus: tipus\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitiveMonthlyPlanItems(coachId, sectionId, date, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyTervHaviTetelekLista',\r\n params: {\r\n edzoId: coachId,\r\n szakosztalyId: sectionId,\r\n datum: date,\r\n tipus: egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getResultsReports(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokLista',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getResultsReportsAthlete(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokListaAthlete',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function savePaint(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SavePaint',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyPaint(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyPaint',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getPaint(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetPaint',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteResultsReport(resultReportID, csapatEredmeny) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyEredmenyTorlese',\r\n params: {\r\n 'Id': resultReportID,\r\n 'csapatEredmeny': csapatEredmeny\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sectionIndividualOrTeam(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyEgyeniVagyCsapat',\r\n params: {\r\n szakosztalyId: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFeeDatas(sectionId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijak',\r\n params: {sectionId: sectionId}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveFeeDatas(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalyokDijak/Save',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function meteOutFee(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijKiszabas',\r\n data: formData,\r\n timeout: 1800000\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthletesForMeteOut(fromDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TagdijUjSportolok',\r\n params: {\r\n 'naptol': fromDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function closeYear(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Evzaras',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getLastClosedYear() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUtolsoEvzaras'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athletesBySection(queryDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzakosztalySportolokSzama',\r\n params: {\r\n 'datum': queryDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnPaidFees() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getSzakosztalyEdzoHatralekosai'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUnPaidFeesTrainer() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getEdzoTagdijHatralekosai'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMessages(subjectId, pageNumber, itemsPerPage) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeGetMessages',\r\n params: {\r\n subjectId: subjectId,\r\n pageNumber: pageNumber,\r\n itemsPerPage: itemsPerPage\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSentMessages() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getFelhasznaloElkuldottUzenetei'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetMessageGroups(pageNumber, itemsPerPage, onlyUnread) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeGetMessageGroups',\r\n params: {\r\n pageNumber: pageNumber,\r\n itemsPerPage: itemsPerPage,\r\n onlyUnread: onlyUnread\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sendMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'UzenetKuldes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeSendMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeSendMessage',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeSendNewMessage(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeSendNewMessageDesktop',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getNamesByIds(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimzettLista',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthletes() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SzuloSportoloiSelect'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthleteAttendance(sportoloId, date) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HianyzasIgazolasa',\r\n params: {\r\n sportoloId: sportoloId,\r\n date: date\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function parentsAthleteAttendanceList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HianyzasokSzulo'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejSelectById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportSelect(szakosztalyId, korosztalyId, edzoId, ev, egyeni) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejSelect',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'ev': ev,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainerEmailContact(edzo) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloElerhetosegeiSelect',\r\n params: {userId: edzo}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersDataByIdSelect(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejTagokAdataiById',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function coachAthletesByAgeGroupForAnnualSeasonPlan(edzoId, szakosztalyId, korcsoportId, versenyeztetesiTervFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoSportoloiKorcsoportSelect',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'versenyeztetesiTervFejId': versenyeztetesiTervFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanDeleteMembers(versenyeztetesiTervFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokTorles',\r\n params: {\r\n 'fejId': versenyeztetesiTervFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanMembers(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokAdataiMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanHead(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervFejMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokMultjaSelectById',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastDelete(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokMultTorles',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportMembersPastRefresh(id, szakosztalyId, korcsoportId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTagokMultLekeres',\r\n params: {\r\n 'fejId': id,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanMembersPast(data) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTagokMultjaMentes',\r\n data: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportBestResultsList(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervErdemenyekSelect',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanBestResults(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervKiemelkedoEredmenyekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportBestResultsSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KiemelkEredmSelect',\r\n params: {\r\n 'versFejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function dailyEducationalFeesPerCoach(edzoId, datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiOktDijBefizetesekEdzonkent',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function dailySportServiceFeesPerCoach(edzoId, datumTol, datumIg) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'NapiSportSzolgDijBefizetesekEdzonkent',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'datumTol': datumTol,\r\n 'datumIg': datumIg\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanReportObjectivesSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCelkituzesek',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanCapitalObjectives(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCelkituzesekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteFileAnnualSeasonPlan(file, host) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervCsatoltFileTorles',\r\n params: {\r\n 'file': file,\r\n 'host': host\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualSeasonPlanListByTrainer(edzoId, vtId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorabbiEvesVersenyeztetesiTervei',\r\n params: {\r\n 'edzoId': edzoId,\r\n 'vtId': vtId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanCompetitionPlansAndObjectivesSelect(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekSelect',\r\n params: {\r\n 'fejId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanCompetitionPlansAndObjectives(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAnnualSeasonPlanCompetitionPlansAndObjectives(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersTervekTorles',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteAnnualSeasonPlanCompetitionPlansAndObjective(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervVersenyTervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasonPlanList(ev) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervListSelect',\r\n params: {\r\n 'ev': ev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasponPlanTableListSelect(fejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatSelect',\r\n params: {\r\n 'fejId': fejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function annualSeasponPlanTableListSelect2(edzo, korcsoport, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatSelect2',\r\n params: {\r\n 'edzo': edzo,\r\n 'korcsoport': korcsoport,\r\n 'honap': honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveAnnualSeasonPlanTable(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'VersenyeztetesiTervTablazatMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAthleteTransferList(szakosztalyId, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KimutatasAtigazolasLista',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getFelmerokDatumaiDropDownList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmerokDatumaiDropDownList'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportByTrainersReport(ev, honap, szakosztalyId, korosztalyId, korosztalyNev, edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasEdzonkent',\r\n params: {\r\n 'ev': ev,\r\n honap: honap,\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'korosztalyNev': korosztalyNev,\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportBySectionsReport(ev, honap, szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasSzakosztalyonkent',\r\n params: {\r\n 'ev': ev,\r\n honap: honap,\r\n 'szakosztalyId': szakosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getAnnualPresenceReportBySportSchoolReport(ev, honap) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'JelenletiEvesKimutatasSportiskolankent',\r\n params: {\r\n ev: ev,\r\n honap: honap\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteWeeklyTrainingPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HetiEdzestervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteMonthlyTrainingPlan(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervTorles',\r\n params: {\r\n 'id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function athleteDropDownListSelect(szakosztalyId, korosztalyId, sportolo1, sportolo2) {\r\n if (sportolo1 === undefined) {\r\n sportolo1 = 0;\r\n }\r\n if (sportolo2 === undefined) {\r\n sportolo2 = 0;\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloDropDownList',\r\n params: {\r\n 'szakosztaly': szakosztalyId,\r\n 'korcsoport': korosztalyId,\r\n 'sportoloId1': sportolo1,\r\n 'sportoloId2': sportolo2\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCharacterOfACompetitionList(csapat, szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentokJellegeiList',\r\n params: {\r\n 'csapat': csapat,\r\n 'szakosztalyId': szakosztalyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveResultReportAthletes(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloEredmenyJelentoMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportAthletesSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SportoloEredmenyJelentoById',\r\n params: {\r\n 'eredmenyId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportAthletesOlderReports(szakosztalyId, korcsoportId, egyeni) {\r\n if (!szakosztalyId) {\r\n return;\r\n }\r\n if (!korcsoportId) {\r\n korcsoportId = -1;\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KorabbiEredmenyJelentok',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'egyeni': egyeni\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamDropDownListSelect(szakosztalyId, korosztalyId, csapat) {\r\n if (!csapat) {\r\n csapat = 0;\r\n }\r\n if (!korosztalyId) {\r\n korosztalyId = 0;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatDropDownList',\r\n params: {\r\n 'szakosztaly': szakosztalyId,\r\n 'korcsoport': korosztalyId,\r\n 'csapat': csapat\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingVisitReport(year, sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KSportoloEdzeslatogatas',\r\n params: {\r\n 'ev': year,\r\n 'sportoloId': sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function teamAthletesListSelect(csapatId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'csapatSportoloiLista',\r\n params: {\r\n 'csapatId': csapatId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCoachUsers(szakosztalyIdk) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloEdzok',\r\n params: {\r\n 'szakId': szakosztalyIdk\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getEdzoKorcsoportjai(edzoId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EdzoKorcsoportjaiDropDownSelect',\r\n params: {\r\n 'edzoId': edzoId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AtjatszoSportoloLista(szakosztalyId, korcsoportId, edzoId, exceptTeam) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AtjatszoSportoloLista',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korcsoportId': korcsoportId,\r\n 'edzoId': edzoId,\r\n 'exceptTeam': exceptTeam\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTeamResultAthleteData(sportoloId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenySportoloAdatai',\r\n params: {\r\n 'sportoloId': sportoloId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function EredmenyJelentoAtjatszoSportoloi(csapatId, userId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EredmenyJelentoAtjatszoSportoloi',\r\n params: {\r\n 'csapatId': csapatId,\r\n 'userId': userId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveResultReportTeams(obj) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenyJelentoMentes',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function resultReportTeamSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CsapatEredmenyJelentoById',\r\n params: {\r\n 'eredmenyId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveReEnteringAthletes(sportolo) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveReEnteringAthletes',\r\n data: sportolo\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function felmeroElemFejDropDownList(szakosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroElemFejDropDownList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function felmeroFejLista(szakosztalyId, korosztalyId, edzoId, felmeroId, sportoloid, datefrom, dateto) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelmeroFejLista',\r\n params: {\r\n 'section': szakosztalyId,\r\n 'ageGroup': korosztalyId,\r\n 'coach': edzoId,\r\n 'test': felmeroId,\r\n 'sportoloid': sportoloid,\r\n 'datefrom': datefrom,\r\n 'dateto': dateto\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionHasSectionLeaderRight(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportSzakosztalyVezetoe',\r\n params: {\r\n 'felhCsopId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getSectionHasCoachRight(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'FelhasznaloCsoportEdzoje',\r\n params: {\r\n 'felhCsopId': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldWeeklyPlanByUserId(idEdzo, id) {\r\n if (id == undefined) {\r\n id = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getOldWeeklyPlanByUserId',\r\n params: {\r\n 'IdEdzo': idEdzo,\r\n 'Id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getOldMonthlyPlanByUserId(idEdzo, id) {\r\n if (id == undefined) {\r\n id = -1;\r\n }\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getOldMonthlyPlanByUserId',\r\n params: {\r\n 'IdEdzo': idEdzo,\r\n 'Id': id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyTrainingPlanSelectById(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getHaviEdzestervById',\r\n params: {'id': id}\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveMonthlyTrainingPlan(formData) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviEdzestervMentes',\r\n data: formData\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function Cimjegyzek(usersof) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'Cimjegyzek',\r\n params: {\r\n 'usersof': usersof\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function CimjegyzekMobil() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'CimjegyzekMobil'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getUserIdsOfGroup(usersof, ids) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getUserIdsOfGroup',\r\n data: {\r\n 'usersof': usersof,\r\n 'ids': ids\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetHealth(id, dateFrom, dateTo) {\r\n if (dateFrom === null || dateFrom === '' || dateFrom === undefined) {\r\n dateFrom = '1900-01-01';\r\n }\r\n if (dateTo === null || dateTo === '' || dateTo === undefined) {\r\n dateTo = '1900-01-01';\r\n }\r\n\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetHealth',\r\n params: {\r\n 'athleteId': id,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveHealthData(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SaveHealthData',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteHealthMainType(datas) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteHealthTypes',\r\n params: {\r\n 'mainTypeId': datas.mainTypeId,\r\n 'subTypeId': null\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function deleteHealthSubType(datas) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteHealthTypes',\r\n params: {\r\n 'mainTypeId': null,\r\n 'subTypeId': datas.subTypeId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SimilarAthleteExist(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SimilarAthleteExist',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthMainTypeManager(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthTypeManager',\r\n data: {\r\n 'foTipusId': datas.Id,\r\n 'foTipus': datas.Nev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function HealthSubTypeManager(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthTypeManager',\r\n data: {\r\n 'foTipusId': datas.FotipusId,\r\n 'alTipusId': datas.Id,\r\n 'alTipus': datas.AltipusNev\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function modifyHealthData(datas) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ModifyHealthData',\r\n data: datas\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function healthMainTypesList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthMainTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function healthSubTypesList() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HealthSubTypes'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function monthlyAttendanceActualDaySelect(szakosztalyId, korosztalyId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'HaviJelenletiLekeresAktualisNap',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function ExpiringDocuments() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'ExpiringDocuments'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteExercise(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteExercise',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTravelList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate, showOrder, busOwner) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTravelList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'onlyStartDate': onlyStartDate,\r\n 'showOrder': showOrder,\r\n 'busOwner': busOwner\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getWeeklyTrainingList(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, showWeeks, helyszin) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'WeeklyTrainingList',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'showWeeks': showWeeks,\r\n 'helyszin': helyszin\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function KoltsegtervOsszesitoKimutatas(szakosztalyId, korosztalyId, edzoId, dateFrom, dateTo, onlyStartDate) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'KoltsegtervOsszesitoKimutatas',\r\n params: {\r\n 'szakosztalyId': szakosztalyId,\r\n 'korosztalyId': korosztalyId,\r\n 'edzoId': edzoId,\r\n 'dateFrom': dateFrom,\r\n 'dateTo': dateTo,\r\n 'onlyStartDate': onlyStartDate\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetInventoryByType(eszkTipusId, szabad, aktiv, osszes) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozNyilvantartas',\r\n params: {\r\n 'eszkTipusId': eszkTipusId,\r\n 'szabad': szabad,\r\n 'aktiv': aktiv,\r\n 'all': osszes\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function assetInventoryByPerson(user, athlete, sectionsId, ageGropu) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'EszkozNyilvantartasSzemely',\r\n params: {\r\n 'felhasznalo': user,\r\n 'sportolo': athlete,\r\n 'szakosztalyId': sectionsId,\r\n 'korosztalyId': ageGropu\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingPracticeAutoComplete() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'TrainingPracticeAutoComplete',\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExercise(id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetExercise',\r\n params: {\r\n id: id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExerciseList(data) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetExerciseList',\r\n params: data\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getExercises(sectionId, ageGroupId, coachId, bodyPart, exercisesType, nature, outfit, difficulty, necessaryArea, video, pattern, designer, time, nyilvanos) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getExercises',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'korosztalyId': ageGroupId,\r\n 'edzoId': coachId,\r\n 'testresz': bodyPart,\r\n 'tipus': exercisesType,\r\n 'jellege': nature,\r\n 'felszereles': outfit,\r\n 'nehezseg': difficulty,\r\n 'szuksegesTerulet': necessaryArea,\r\n 'video': video,\r\n 'mintaKep': pattern,\r\n 'kifesto': designer,\r\n 'time': time,\r\n 'nyilvanos': nyilvanos\r\n }\r\n\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function saveTrainingPlan(obj) {\r\n //CoachId, TrainingName, SectionId, AgeGroupId, Location, Public, Data\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'saveTrainingPlan',\r\n data: obj\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getTrainingPlanList(sectionId, ageGroupId, coachId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'getTrainingPlanList',\r\n params: {\r\n 'szakosztalyId': sectionId,\r\n 'korosztalyId': ageGroupId,\r\n 'edzoId': coachId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function GetTrainingPlanById(Id) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetTrainingPlanById',\r\n params: {\r\n 'Id': Id\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function DeleteTrainingPlan(EdzesFejId) {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'DeleteTrainingPlan',\r\n params: {\r\n 'EdzesFejId': EdzesFejId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function sendLocalException(error) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'LogClientSideException',\r\n data: {\r\n error: error\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getMonthlyAttendanceAutoSave() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'MonthlyAttendanceAutoSave'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function setMonthlyAttendanceAutoSave(autoSave) {\r\n ds.req = {\r\n type: 'apiPOST',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'MonthlyAttendanceAutoSave',\r\n data: autoSave\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function getCompetitionPlaces() {\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'GetCompetitionPlaces'\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function SikerMobileFreeDeleteMessages(targyId) {\r\n console.log('targyId', targyId);\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'SikerMobileFreeDeleteMessages',\r\n params: {\r\n 'targyId': targyId\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n\r\n function AthletesDataMobileList(szakosztaly, korcsoport) {\r\n console.log('AthletesDataMobileList');\r\n ds.req = {\r\n type: 'apiGET',\r\n url: DOMAIN.baseURL + DOMAIN.webService + 'AthletesDataMobileList',\r\n params: {\r\n 'szakosztaly': szakosztaly,\r\n 'korcsoport': korcsoport,\r\n 'inactive': false\r\n }\r\n };\r\n return $http(ds.req);\r\n }\r\n }\r\n})();\r\n","/* global XRegExp */\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .directive('ctsDropdownList', ctsDropdownList)\r\n .directive('ctsAutoComplete', ctsAutoComplete)\r\n .directive('ctsColorPicker', ctsColorPicker)\r\n .directive('ctsDatePicker', ctsDatePicker)\r\n .directive('ctsDateTimePicker', ctsDateTimePicker)\r\n .directive('ctsMaskBox', ctsMaskBox)\r\n .directive('ctsCheckBox', ctsCheckBox)\r\n .directive('ctsHorizontalCheckBox', ctsHorizontalCheckBox)\r\n .directive('ctsTextBox', ctsTextBox)\r\n .directive('ctsTextBoxTajSzam', ctsTextBoxTajSzam)\r\n .directive('ctsTextArea', ctsTextArea)\r\n .directive('ctsTextBoxPhoneNumber', ctsTextBoxPhoneNumber)\r\n .directive('ctsTextBoxEmail', ctsTextBoxEmail)\r\n .directive('ctsTextBoxTaxId', ctsTextBoxTaxId)\r\n .directive('ctsTextBoxPassportNumber', ctsTextBoxPassportNumber)\r\n .directive('ctsListBox', ctsListBox)\r\n .directive('ctsNumericTextBox', ctsNumericTextBox)\r\n .directive('ctsRating', ctsRating)\r\n .directive('report', report)\r\n .directive('preventEnterSubmit', preventEnterSubmit)\r\n .directive('fileDropzone', fileDropzone)\r\n .directive('ngFileSelect', ngFileSelect)\r\n .directive('htWidgetHeader', htWidgetHeader);\r\n\r\n function htWidgetHeader(log, gettextCatalog) {\r\n //Usage:\r\n //<div ht-widget-header title=\"vm.map.title\"></div>\r\n // Creates:\r\n // <div ht-widget-header=\"\"\r\n // title=\"Movie\"\r\n // allow-collapse=\"true\" </div>\r\n function link($scope) {\r\n $scope.helpText = gettextCatalog.getString('Help');\r\n $scope.openHelp = function () {\r\n log.helpMsgSmall($scope.textId);\r\n };\r\n }\r\n\r\n return {\r\n link: link,\r\n scope: {\r\n 'title': '@',\r\n 'textId': '@'\r\n },\r\n template: '<div class=\"widget-head\">' +\r\n '<h2 class=\"page-title\">{{title|translate}}' +\r\n '<a class=\"pull-right helpText\" ng-click=\"openHelp()\"> <span class=\"glyphicon glyphicon-info-sign\"></span> </a>' +\r\n '</h2></div>',\r\n restrict: 'EA'\r\n };\r\n }\r\n\r\n function ctsDropdownList(gettextCatalog) {\r\n function controller($scope) {\r\n if ($scope.create() !== undefined) {\r\n $scope.create2 = function (data) {\r\n $scope.create()({value: data.value});\r\n };\r\n }\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n } else if ($scope.open() !== undefined) {\r\n $scope.open2 = function () {\r\n $scope.open()();\r\n };\r\n }\r\n if ($scope.databound() !== undefined) {\r\n $scope.databound2 = function (data) {\r\n $scope.databound()(data);\r\n };\r\n }\r\n if ($scope.select() !== undefined) {\r\n $scope.select2 = function (data) {\r\n $scope.select()(data);\r\n };\r\n }\r\n //if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = 'PleaseChoose';\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDropDownList({\r\n enabled: newValue,\r\n locale: $scope.locale,\r\n fields: {\r\n text: $scope.fieldText,\r\n value: $scope.fieldValue\r\n },\r\n value: $scope.value,\r\n dataSource: $scope.datasource,\r\n width: '100%',\r\n watermarkText: gettextCatalog.getString($scope.ctsPlaceholder),\r\n create: $scope.create2,\r\n change: $scope.change2,\r\n dataBound: $scope.databound2,\r\n select: $scope.select2,\r\n selectedIndex: $scope.selectedindex\r\n });\r\n });\r\n }\r\n if (!$scope.fieldValue) {\r\n $scope.fieldValue = 'value';\r\n }\r\n if (!$scope.fieldText) {\r\n $scope.fieldText = 'text';\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n create: '&',\r\n clear: '&',\r\n open: '&',\r\n databound: '&',\r\n datasource: '=',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n postfix: '@',\r\n select: '&',\r\n validationRules: '=?',\r\n value: '=?',\r\n selectedindex: '=?',\r\n fieldValue: '@?',\r\n fieldText: '@?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-dropdownlist e-locale=\"locale\" e-fields-value=\"fieldValue\" e-fields-text=\"fieldText\" e-value=\"value\" e-datasource=\"datasource\" e-width=\"100%\" e-watermarktext=\"{{ctsPlaceholder|translate}}\" e-create=\"create2\" e-change=\"change2\" e-enabled=\"enabled\" e-dataBound=\"databound2\" e-select=\"select2\" e-selectedIndex=\"selectedindex\">' +\r\n '<span data-ng-if=\"clear2 !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear2()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"open2 !== undefined\" class=\"input-group-addon\" data-ng-click=\"open2()\"><i' +\r\n ' class=\"glyphicon glyphicon-eye-open\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function autocompleteWatch($timeout, newValue, oldValue, required, maxlength, $scope) {\r\n if (angular.isDefined(newValue)) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (required) {\r\n if (newValue === '') {\r\n $timeout(function () {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n $scope.$apply();\r\n }, 100);\r\n } else {\r\n $timeout(function () {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n if (maxlength && newValue) {\r\n if (newValue.length < maxlength) {\r\n $scope.form[$scope.name].$setValidity('maxlength', true);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('maxlength', false);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n function ctsAutoComplete($timeout) {\r\n function controller($scope) {\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if (!$scope.showPopupButton) {\r\n $scope.showPopupButton = false;\r\n }\r\n if (!$scope.delaySuggestionTimeout) {\r\n $scope.delaySuggestionTimeout = '0';\r\n }\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.multiSelect === 'true') {\r\n $scope.multiSelectMode = ej.MultiSelectMode.VisualMode;\r\n } else {\r\n $scope.multiSelect = false;\r\n $scope.multiSelectMode = ej.MultiSelectMode.None;\r\n }\r\n if (!$scope.allowAddNew) {\r\n $scope.allowAddNew = false;\r\n } else {\r\n $scope.allowAddNew = true;\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejAutocomplete({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n autocompleteWatch($timeout, newValue, oldValue, $scope.validationRules.required, $scope.validationRules.maxlength, $scope);\r\n });\r\n $scope.$on('submitted', function () {\r\n $scope.value = angular.element('#' + $scope.name).ejAutocomplete('getValue');\r\n autocompleteWatch($scope.value, undefined, $scope.validationRules.required, $scope.validationRules.maxlength, $scope);\r\n // $scope.$apply();\r\n });\r\n\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n clear: '&',\r\n datasource: '=',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n emptyResultText: '@?',\r\n postfix: '@',\r\n select: '&',\r\n validationRules: '=?',\r\n value: '=?',\r\n addnewtext: '=?',\r\n showPopupButton: '=?',\r\n delaySuggestionTimeout: '@',\r\n multiSelect: '@?',\r\n allowAddNew: '=?',\r\n owndisabled: '=?',\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" type=\"text\" name=\"{{name}}\" ej-autocomplete e-delaySuggestionTimeout=\"delaySuggestionTimeout\" e-emptyResultText=\"{{\\'emptyResultText\\'|translate}}\" e-change=\"change2\" e-locale=\"locale\" e-showPopupButton=\"showPopupButton\" e-addnewtext=\"addnewtext\" e-value=\"value\" e-datasource=\"datasource\" e-width=\"100%\" e-watermarktext=\"{{ctsPlaceholder|translate}}\" e-enabled=\"enabled\" data-ng-disabled=\"owndisabled\" e-multiSelectMode=\"multiSelectMode\" e-allowAddNew=\"true\" e-enableDistinct=\"true\" data-ng-required=\"required\"' +\r\n ' e-autoFocus=\"true\" >' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsColorPicker() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.select() !== undefined) {\r\n $scope.select2 = function (data) {\r\n $scope.select()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDropDownList({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n select: '&',\r\n label: '@',\r\n enabled: '=?',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid, }\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-ColorPicker e-locale=\"locale\" e-value=\"value\" e-width=\"100%\" placeholder=\"{{ctsPlaceholder|translate}}\" e-select=\"select2\" e-change=\"change2\" e-enabled=\"enabled\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsDatePicker() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n }\r\n $scope.refresh = function(data) {\r\n $scope.value = data.value;\r\n };\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDatePicker({enabled: newValue});\r\n });\r\n }\r\n },\r\n post: function ($scope) {\r\n $scope.form = $scope.$parent.form;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue && newValue != '') {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n // $scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n };\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n clear: '&',\r\n label: '@',\r\n name: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?',\r\n locale: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-DatePicker e-enableStrictMode=\"true\" e-startDay=\"1\" e-value=\"value\" e-locale=\"locale\" e-width=\"100%\" e-showtooltip=\"true\" e-change=\"change2\" e-focusOut=\"refresh\" e-enabled=\"enabled\">' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsDateTimePicker() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.clear() !== undefined) {\r\n $scope.clear2 = function () {\r\n $scope.clear()();\r\n };\r\n }\r\n $scope.refresh = function(data) {\r\n $scope.value = data.value;\r\n };\r\n }\r\n\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n angular.element('#' + $scope.name).ejDateTimePicker({enabled: newValue});\r\n });\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue && newValue != '') {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n $scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n clear: '&',\r\n label: '@',\r\n name: '@',\r\n interval: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-DateTimePicker e-value=\"value\" e-locale=\"locale\" e-width=\"100%\" e-datetimeformat=\"yyyy-MM-dd HH:mm\" e-watermarktext=\"éééé-hh-nn hh:mm\" e-change=\"change2\" e-focusOut=\"refresh\" e-enabled=\"enabled\" e-interval=\"interval\">' +\r\n '<span data-ng-if=\"clear() !== undefined\" class=\"input-group-addon\" data-ng-click=\"clear()()\"><i class=\"glyphicon glyphicon-trash\"></i></span>' +\r\n '<span data-ng-if=\"postfix !== undefined\" class=\"input-group-addon\">{{postfix}}</span>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsMaskBox() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.value});\r\n };\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n enabled: '=?',\r\n change: '&',\r\n label: '@',\r\n name: '@',\r\n maskFormat: '@',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n value: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" name=\"{{name}}\" ej-MaskEdit e-value=\"value\" e-locale=\"locale\" e-maskFormat=\"maskFormat\" e-width=\"100%\" placeholder=\"{{ctsPlaceholder|translate}}\" e-change=\"change2\" e-enabled=\"enabled\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBox() {\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n $scope.classes = '';\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n if ($scope.type === undefined) {\r\n $scope.type = 'text';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n },\r\n post: function ($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.$watch(function () {\r\n return $scope.ngModel;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.change()();\r\n }\r\n });\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n change: '&', //\r\n //clear: '&', //\r\n //enabled: '=?', //\r\n owndisabled: '=?',\r\n inputonly: '=?',\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n type: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n //'<input class=\"form-control addId\" name=\"{{name}}\" type=\"{{type}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"disabled\">' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"{{type}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"owndisabled\" autocomplete=\"new-password\">' +\r\n //'<div class=\"validation-messages\">' +\r\n //'<span class=\"error\">{{\\'NotValid\\'|translate}}</span>' +\r\n //'</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxTajSzam() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n\r\n if ($scope.validationRules.required === true) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n $scope.$watch(function () {\r\n return $scope.ngModel;\r\n }, function (newValue, oldValue) {\r\n if (newValue !== oldValue) {\r\n $scope.form[$scope.name].$dirty = true;\r\n if (XRegExp('([0-9]{3}-?){3}').test($scope.ngModel) === true) {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.ngModel || XRegExp('([0-9]{3}-?){3}').test($scope.ngModel) === false) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if (angular.isUndefined($scope.ctsPlaceholder)) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" e-value=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-maskFormat=\"999-999-999\" e-width=\"100%\" e-locale=\"locale\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextArea() {\r\n function link($scope) {\r\n $scope.form = $scope.$parent.form;\r\n $scope.classes = '';\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if (angular.isDefined($scope.validationRules)) {\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if (angular.isDefined($scope.validationRules.minlength)) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if (angular.isDefined($scope.validationRules.maxlength)) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if (angular.isUndefined($scope.type)) {\r\n $scope.type = 'text';\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.owndisabled === undefined) {\r\n $scope.owndisabled = false;\r\n }\r\n if ($scope.css === undefined) {\r\n $scope.css = '';\r\n }\r\n if ($scope.rows === undefined) {\r\n $scope.rows = 5;\r\n }\r\n\r\n angular.element('.test').attr('id', $scope.name);\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n css: '@',\r\n owndisabled: '=?',\r\n inputonly: '=?',\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n rows: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\" style=\"{{css}}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<textarea rows=\"{{rows}}\" style=\"resize:none\" class=\"form-control addId textarea\" name=\"{{name}}\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" data-ng-minlength=\"minlength\" data-ng-maxlength=\"maxlength\" data-ng-disabled=\"owndisabled\"> </textarea>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsHorizontalCheckBox() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.isChecked});\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n checked: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group chkbox\">' +\r\n '<form action=\"\">' +\r\n '<input class=\"addId\" ej-checkBox e-locale=\"locale\" e-checked=\"checked\" e-enabled=\"enabled\" e-change=\"change2\">  {{label|translate}}<br></form>' +\r\n '</div>',\r\n\r\n link: link\r\n };\r\n }\r\n\r\n function ctsCheckBox() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()({value: data.isChecked});\r\n };\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n } else {\r\n $scope.$watch(function () {\r\n return $scope.enabled;\r\n }, function (newValue) {\r\n if (newValue) {\r\n angular.element('#' + $scope.name).ejCheckBox('enable');\r\n } else {\r\n angular.element('#' + $scope.name).ejCheckBox('disable');\r\n }\r\n });\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n checked: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group chkbox\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"addId\" ej-checkBox e-locale=\"locale\" e-checked=\"checked\" e-enabled=\"enabled\" e-change=\"change2\">' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxPhoneNumber() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-locale=\"locale\" e-maskFormat=\"99-999-9999\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxEmail() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 128;\r\n }\r\n if ($scope.type === undefined) {\r\n $scope.type = 'text';\r\n }\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n type: '@',\r\n enabled: '=?',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" data-ng-disabled=\"!enabled\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxTaxId() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsTextBoxPassportNumber() {\r\n function link($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n $scope.required = $scope.validationRules.required === true;\r\n $scope.classes += $scope.validationRules.required === true ? ' required' : '';\r\n } else {\r\n $scope.required = false;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n scope: {\r\n label: '@',\r\n name: '@',\r\n ngModel: '=',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid && (form[name].$dirty || form.$submitted)}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" type=\"text\" placeholder=\"{{ctsPlaceholder|translate}}\" data-ng-model=\"ngModel\" data-ng-required=\"required\" ej-MaskEdit e-locale=\"locale\" e-width=\"100%\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsListBox() {\r\n function controller($scope) {\r\n if ($scope.checkChange() !== undefined) {\r\n $scope.checkChange2 = function (data) {\r\n $scope.checkChange()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n if ($scope.cssClass === undefined) {\r\n $scope.cssClass = '';\r\n }\r\n $scope.showCheckbox = $scope.showCheckbox === 'true' || $scope.showCheckbox === true;\r\n if ($scope.height === undefined) {\r\n $scope.height = 300;\r\n }\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n }\r\n\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n checkChange: '&',\r\n cssClass: '@',\r\n datasource: '=',\r\n enabled: '=?',\r\n height: '@',\r\n label: '@',\r\n name: '@',\r\n checkedIndices: '=',\r\n ctsPlaceholder: '@',\r\n showCheckbox: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div class=\"input-group\">' +\r\n '<ul class=\"addId\" name=\"{{name}}\" ej-listbox e-locale=\"locale\" e-cssClass=\"cssClass\" e-checkedIndices=\"checkedIndices\" e-datasource=\"datasource\" e-showCheckbox=\"showCheckbox\" e-width=\"100%\" e-height=\"height\" placeholder=\"{{ctsPlaceholder|translate}}\" e-enabled=\"enabled\" e-checkChange=\"checkChange2\" e-enableIncrementalSearch=\"true\"></ul>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsNumericTextBox() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()(data);\r\n };\r\n }\r\n if ($scope.focusout() !== undefined) {\r\n $scope.focusout2 = function (data) {\r\n $scope.focusout()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n $scope.classes = '';\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.inputonly === true) {\r\n $scope.classes += ' inputonly';\r\n }\r\n if (!$scope.decimalplaces) {\r\n $scope.decimalplaces = 0;\r\n } else {\r\n $scope.decimalplaces = parseInt($scope.decimalplaces);\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (oldValue !== undefined && newValue !== oldValue) {\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value && $scope.value !== 0) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 1000000;\r\n }\r\n } else {\r\n $scope.required = false;\r\n $scope.minlength = 0;\r\n $scope.maxlength = Number.MAX_VALUE;\r\n }\r\n if ($scope.ctsPlaceholder === undefined) {\r\n $scope.ctsPlaceholder = $scope.label;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n focusout: '&',\r\n decimalplaces: '=?',\r\n enabled: '=?',\r\n label: '@',\r\n inputonly: '=?',\r\n name: '@',\r\n value: '=?',\r\n ctsPlaceholder: '@',\r\n validationRules: '=?',\r\n tabIndex: '@'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<input class=\"form-control addId\" name=\"{{name}}\" ej-numerictextbox e-locale=\"locale\" e-enableStrictMode=\"true\" e-watermarkText=\"{{ctsPlaceholder|translate}}\" min=\"{{minlength}}\" max=\"{{maxlength}}\" e-value=\"value\" e-minValue=\"minlength\" e-maxValue=\"maxlength\" e-enabled=\"enabled\" e-width=\"100%\" e-decimalPlaces=\"decimalplaces\" placeholder=\"{{ctsPlaceholder|translate}}\" e-change=\"change2\" e-focusout=\"focusout2\" tabIndex=\"{{tabIndex}}\">' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function ctsRating() {\r\n function controller($scope) {\r\n if ($scope.change() !== undefined) {\r\n $scope.change2 = function (data) {\r\n $scope.change()(data);\r\n };\r\n }\r\n }\r\n\r\n var link = {\r\n pre: function ($scope, element) {\r\n $scope.form = $scope.$parent.form;\r\n element[0].querySelector('.addId').id = $scope.name;\r\n $scope.locale = $scope.$root.language;\r\n if ($scope.locale === 'hu') {\r\n $scope.locale = 'hu-HU';\r\n } else if ($scope.locale === 'en') {\r\n $scope.locale = 'en-GB';\r\n }\r\n if ($scope.enabled === undefined) {\r\n $scope.enabled = true;\r\n }\r\n if ($scope.validationRules !== undefined) {\r\n $scope.classes = '';\r\n if ($scope.validationRules.required === true) {\r\n $scope.classes += ' required';\r\n $scope.$watch(function () {\r\n return $scope.value;\r\n }, function (newValue, oldValue) {\r\n if (oldValue !== undefined && newValue !== oldValue) {\r\n if (newValue === '') {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n }\r\n });\r\n $scope.$on('submitted', function () {\r\n if (!$scope.value) {\r\n $scope.form[$scope.name].$setValidity('required', false);\r\n } else {\r\n $scope.form[$scope.name].$setValidity('required', true);\r\n }\r\n //$scope.$apply();\r\n });\r\n }\r\n if ($scope.validationRules.minlength !== undefined) {\r\n $scope.minlength = $scope.validationRules.minlength;\r\n } else {\r\n $scope.minlength = 0;\r\n }\r\n if ($scope.validationRules.maxlength !== undefined) {\r\n $scope.maxlength = $scope.validationRules.maxlength;\r\n } else {\r\n $scope.maxlength = 1000000;\r\n }\r\n } else {\r\n $scope.required = false;\r\n $scope.minlength = 0;\r\n $scope.maxlength = Number.MAX_VALUE;\r\n }\r\n }\r\n };\r\n return {\r\n restrict: 'E',\r\n replace: true,\r\n controller: controller,\r\n scope: {\r\n change: '&',\r\n enabled: '=?',\r\n label: '@',\r\n name: '@',\r\n value: '=?',\r\n validationRules: '=?'\r\n },\r\n template: '<div class=\"form-group cts-form-group {{classes}}\" data-ng-class=\"{error: form[name].$invalid}\">' +\r\n '<label for=\"{{name}}\">{{label|translate}}</label>' +\r\n '<div>' +\r\n '<div class=\"form-control addId\" name=\"{{name}}\" ej-rating e-locale=\"locale\" e-value=\"value\" e-minValue=\"0\" e-maxValue=\"5\" e-enabled=\"enabled\" e-change=\"change2\"></div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.required === true\" class=\"error\">{{\\'Required\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.maxlength === true\" class=\"error\">{{\\'Maxlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '<div class=\"validation-messages\">' +\r\n '<span data-ng-if=\"form[name].$error.minlength === true\" class=\"error\">{{\\'Minlength\\'|translate}}</span>' +\r\n '</div>' +\r\n '</div>' +\r\n '</div>',\r\n link: link\r\n };\r\n }\r\n\r\n function report(localStorageService, DOMAIN) {\r\n function Link(scope, element) {\r\n var report = null;\r\n\r\n function createReportOptions() {\r\n var authData = localStorageService.get('_authData');\r\n var authToken = '';\r\n if (authData) {\r\n authToken = authData.access_token;\r\n }\r\n return {\r\n reportSource: {\r\n report: 'Siker2MVC.' + scope.reportName + ', Siker2MVC',\r\n parameters: scope.reportParameters\r\n },\r\n serviceUrl: DOMAIN.baseURL + 'api/reports/',\r\n persistSession: true,\r\n authenticationToken: authToken,\r\n ready: function () {\r\n this.refreshReport();\r\n }\r\n };\r\n }\r\n\r\n function createReport() {\r\n report = element.telerik_ReportViewer(createReportOptions()).data('telerik_ReportViewer');\r\n }\r\n\r\n //createReport();\r\n\r\n //var reportNameWatcher = scope.$watch(\"reportName\", updateReport);\r\n var reportParametersWatcher = scope.$watch('reportParameters', updateReport);\r\n\r\n function updateReport(newVal, oldVal) {\r\n if (newVal !== oldVal) {\r\n createReport();\r\n report.reportSource({\r\n report: 'Siker2MVC.' + scope.reportName + ', Siker2MVC',\r\n parameters: scope.reportParameters\r\n });\r\n report.refreshReport();\r\n }\r\n }\r\n\r\n element.on('$destroy', function () {\r\n reportParametersWatcher();\r\n });\r\n }\r\n\r\n return {\r\n restrict: 'E',\r\n scope: {\r\n reportName: '@',\r\n reportParameters: '='\r\n },\r\n link: Link\r\n };\r\n }\r\n\r\n function preventEnterSubmit() {\r\n return function (scope, el) {\r\n el.bind('keydown', function (event) {\r\n if (13 == event.which) {\r\n event.preventDefault(); // Doesn't work at all\r\n window.stop(); // Works in all browsers but IE...\r\n document.execCommand('Stop'); // Works in IE\r\n return false; // Don't even know why it's here. Does nothing.\r\n }\r\n });\r\n };\r\n }\r\n\r\n function ngFileSelect(fileReader) {\r\n return {\r\n link: function ($scope, el) {\r\n $scope.getFile = function (file) {\r\n $scope.progress = 0;\r\n fileReader.readAsDataURL(file, $scope).then(function (result) {\r\n if ($scope.$parent.$$childHead.imageDatas !== undefined) {\r\n $scope.$parent.$$childHead.imageDatas.push(result);\r\n } else {\r\n $scope.imageDatas.push(result);\r\n }\r\n });\r\n };\r\n\r\n el.bind('change', function (e) {\r\n var items = (e.srcElement || e.target).files;\r\n angular.forEach(items, function (file) {\r\n if ($scope.$parent.$$childHead.files !== undefined) {\r\n $scope.$parent.$$childHead.files.push(file);\r\n } else {\r\n $scope.files.push(file);\r\n }\r\n $scope.getFile(file);\r\n });\r\n });\r\n }\r\n\r\n };\r\n }\r\n\r\n function fileDropzone(fileReader, log, gettextCatalog) {\r\n return {\r\n restrict: 'A',\r\n link: function (scope, element) {\r\n function processDragOverOrEnter(event) {\r\n if (event != null) {\r\n event.preventDefault();\r\n }\r\n if (event.originalEvent.dataTransfer) {\r\n event.originalEvent.dataTransfer.effectAllowed = 'all';\r\n }\r\n return false;\r\n }\r\n element.bind('dragover', processDragOverOrEnter);\r\n element.bind('dragenter', processDragOverOrEnter);\r\n\r\n scope.getFile = function (file) {\r\n $scope.progress = 0;\r\n fileReader.readAsDataURL(file, $scope).then(function (result) {\r\n $scope.$parent.$$childHead.imageDatas.push(result);\r\n });\r\n };\r\n\r\n return element.bind('drop', function (event) {\r\n if (event) {\r\n event.preventDefault();\r\n }\r\n\r\n if (event.originalEvent.dataTransfer) {\r\n var items = event.originalEvent.dataTransfer.files;\r\n var largeError = '';\r\n var typeError = '';\r\n angular.forEach(items, function (file) {\r\n if (file.size <= 4194304) {\r\n if (file.type === 'image/png' || file.type === 'image/jpeg' || file.type === 'image/bmp' || file.type === 'image/gif') {\r\n scope.$parent.$$childHead.files.push(file);\r\n scope.getFile(file);\r\n } else {\r\n typeError += file.name + '<br>';\r\n }\r\n } else {\r\n largeError += file.name + '<br>';\r\n }\r\n });\r\n if (largeError) {\r\n log.errorMsg(gettextCatalog.getString('FileTooLarge') + '<br><br>' + largeError);\r\n }\r\n if (typeError) {\r\n log.errorMsg(gettextCatalog.getString('FileTypeError') + '<br><br>' + typeError);\r\n }\r\n }\r\n return false;\r\n });\r\n }\r\n };\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('fileReader', fileReader);\r\n\r\n function fileReader($q) {\r\n return {\r\n onLoad: onLoad,\r\n onError: onError,\r\n onProgress: onProgress,\r\n readAsDataURL: readAsDataURL,\r\n getReader: getReader\r\n };\r\n\r\n function onLoad(reader, deferred, scope) {\r\n return function () {\r\n scope.$apply(function () {\r\n deferred.resolve(reader.result);\r\n });\r\n };\r\n }\r\n\r\n function onError(reader, deferred, scope) {\r\n return function () {\r\n scope.$apply(function () {\r\n deferred.reject(reader.result);\r\n });\r\n };\r\n }\r\n\r\n function onProgress(reader, scope) {\r\n return function (event) {\r\n scope.$broadcast('fileProgress',\r\n {\r\n total: event.total,\r\n loaded: event.loaded\r\n });\r\n };\r\n }\r\n\r\n function getReader(deferred, scope) {\r\n var reader = new FileReader();\r\n reader.onload = onLoad(reader, deferred, scope);\r\n reader.onerror = onError(reader, deferred, scope);\r\n reader.onprogress = onProgress(reader, scope);\r\n return reader;\r\n }\r\n\r\n function readAsDataURL(file, scope) {\r\n var deferred = $q.defer();\r\n\r\n var reader = getReader(deferred, scope);\r\n reader.readAsDataURL(file);\r\n\r\n return deferred.promise;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .filter('getIndex', getIndex)\r\n .filter('startOfWeek', startOfWeek)\r\n .filter('endOfWeek', endOfWeek)\r\n .filter('addDays', addDays)\r\n .filter('stringToMoment', stringToMoment)\r\n .filter('momentToString', momentToString)\r\n .filter('dateStringFilter', dateStringFilter)\r\n .filter('dateStringFilterPromise', dateStringFilterPromise)\r\n .filter('dateStringFilter2', dateStringFilter2)\r\n .filter('dateYearMonthStringFilter', dateYearMonthStringFilter)\r\n .filter('dateTimeStringFilter', dateTimeStringFilter)\r\n .filter('dateEventFilter', dateEventFilter)\r\n .filter('datetimeFilter', datetimeFilter)\r\n .filter('textByValueFromObjFilter', textByValueFromObjFilter)\r\n .filter('valueChangeFromObject', valueChangeFromObject)\r\n .filter('dateYearMonthFilter', dateYearMonthFilter)\r\n .filter('dateYearFilter', dateYearFilter)\r\n .filter('dateMonthFilter', dateMonthFilter)\r\n .filter('dateYearMonthLongStrFilter', dateYearMonthLongStrFilter)\r\n .filter('dateToISOFilter', dateToISOFilter)\r\n .filter('addImagePathToObject', addImagePathToObject);\r\n\r\n function addDays(authenticationService) {\r\n return function (sDate, addDays) {\r\n var lang = authenticationService.getAuthData().language;\r\n var mDate = null;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mOffset = mDate.add(addDays, 'days');\r\n return mOffset.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function startOfWeek(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mMonday = moment(mDate.startOf('isoweek'));\r\n return mMonday.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function endOfWeek(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n var mMonday = moment(mDate.endOf('isoweek'));\r\n return mMonday.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function stringToMoment(authenticationService) {\r\n return function (sDate) {\r\n var lang = authenticationService.getAuthData().language;\r\n if (!lang) {\r\n lang = 'hu';\r\n }\r\n var mDate = null;\r\n if (lang == 'hu') {\r\n var mDate = moment(sDate, 'YYYY.MM.DD.');\r\n } else if (lang == 'en') {\r\n var mDate = moment(sDate, 'MM/DD/YYYY');\r\n }\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n return mDate;\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function momentToString() {\r\n return function (mDate) {\r\n if (mDate && mDate['_isValid'] && mDate['_isAMomentObject']) {\r\n return mDate.format('L');\r\n } else {\r\n return false;\r\n }\r\n };\r\n }\r\n\r\n function getIndex() {\r\n return function (list, property, findThis) {\r\n for (var i = 0; i < list.length; i++) {\r\n if (list[i][property] == findThis) {\r\n return i;\r\n }\r\n }\r\n return false;\r\n };\r\n }\r\n\r\n function dateStringFilterPromise(authenticationService, $q) {\r\n return function (input, propertyTime) {\r\n return $q(function (resolve) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n resolve('');\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('L');\r\n }\r\n });\r\n resolve(input);\r\n }\r\n });\r\n };\r\n }\r\n\r\n function dateStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('L');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateYearMonthStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('L');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -(input[key][propertyTime].length - 10))).format('YYYY. MMMM');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateTimeStringFilter(authenticationService) {\r\n return function (input, propertyTime) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (arguments.length == 1) {\r\n if (input) {\r\n return moment(input).format('LLL');\r\n } else {\r\n return '';\r\n }\r\n } else {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime]).format('LLL');\r\n }\r\n });\r\n return input;\r\n }\r\n };\r\n }\r\n\r\n function dateStringFilter2() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n var temp = moment(input[key][propertyTime]);\r\n if (temp.isValid()) {\r\n input[key][propertyTime] = new Date(temp.format('YYYY'), temp.format('M') - 1, temp.format('D'), temp.format('h'), temp.format('m'), temp.format('s'));\r\n } else {\r\n input[key][propertyTime] = '';\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateEventFilter() {\r\n return function (input) {\r\n angular.forEach(input, function (value, key) {\r\n if (input[key]['Recurrence'] === 'False' || input[key]['Recurrence'] === 'false') {\r\n input[key]['Recurrence'] = false;\r\n } else if (input[key]['Recurrence'] === 'True' || input[key]['Recurrence'] === 'true') {\r\n input[key]['Recurrence'] = true;\r\n } else if (input[key]['Recurrence'] === '1') {\r\n input[key]['Recurrence'] = 1;\r\n }\r\n if (!input[key]['StartTime']) {\r\n input[key]['StartTime'] = '';\r\n } else {\r\n input[key]['StartTime'] = new Date(moment(input[key]['StartTimeString']).format('YYYY'), moment(input[key]['StartTimeString']).format('M') - 1, moment(input[key]['StartTimeString']).format('D'), moment(input[key]['StartTimeString']).format('H'), moment(input[key]['StartTimeString']).format('m'));\r\n }\r\n if (!input[key]['EndTime']) {\r\n input[key]['EndTime'] = '';\r\n } else {\r\n input[key]['EndTime'] = new Date(moment(input[key]['EndTimeString']).format('YYYY'), moment(input[key]['EndTimeString']).format('M') - 1, moment(input[key]['EndTimeString']).format('D'), moment(input[key]['EndTimeString']).format('H'), moment(input[key]['EndTimeString']).format('m'));\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function datetimeFilter(authenticationService) {\r\n return function (input) {\r\n var lang = authenticationService.getAuthData().language;\r\n moment.locale(lang);\r\n if (input) {\r\n input = moment(input.slice(0, -9)).format('L');\r\n }\r\n return input;\r\n };\r\n }\r\n\r\n /**\r\n * textByValueFromObjFilter()\r\n *\r\n * This function find first objet if object's value equal the input value\r\n * and return the object's text value\r\n */\r\n function textByValueFromObjFilter() {\r\n return function (input, input2) {\r\n var result = '';\r\n angular.forEach(input, function (value) {\r\n if (value.value === input2) {\r\n result = value.text;\r\n }\r\n });\r\n return result;\r\n };\r\n }\r\n\r\n /**\r\n * Sportolo result modify\r\n * Comment\r\n */\r\n function valueChangeFromObject() {\r\n return function (input, input2) {\r\n var output = [];\r\n angular.forEach(input, function (value, key) {\r\n input[key] [input2] = input[key] [input2] + 3;\r\n output.push(input[key]);\r\n });\r\n return output;\r\n };\r\n }\r\n\r\n function addImagePathToObject() {\r\n return function (input, input2, input3) {\r\n var output = [];\r\n angular.forEach(input, function (value, key) {\r\n if (input[key] [input2] != null) {\r\n input[key] [input2] = input3 + input[key] [input2];\r\n } else {\r\n input[key] [input2] = input3 + 'default.png';\r\n }\r\n output.push(input[key]);\r\n });\r\n return output;\r\n };\r\n }\r\n\r\n function dateYearMonthFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('YYYY-MM');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateYearFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('YYYY');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateMonthFilter() {\r\n return function (input, propertyTime) {\r\n angular.forEach(input, function (value, key) {\r\n if (!input[key][propertyTime]) {\r\n input[key][propertyTime] = '';\r\n } else {\r\n input[key][propertyTime] = moment(input[key][propertyTime].slice(0, -9)).format('MM');\r\n }\r\n });\r\n return input;\r\n };\r\n }\r\n\r\n function dateYearMonthLongStrFilter(gettextCatalog) {\r\n return function (input) {\r\n if (arguments.length == 1) { // TODO new Date v moment\r\n var d = moment(input);\r\n var year = d.format('YYYY');\r\n var month = d.format('M');\r\n var monthStr = '';\r\n switch (month) {\r\n case '1':\r\n monthStr = gettextCatalog.getString('January');\r\n break;\r\n case '2':\r\n monthStr = gettextCatalog.getString('February');\r\n break;\r\n case '3':\r\n monthStr = gettextCatalog.getString('March');\r\n break;\r\n case '4':\r\n monthStr = gettextCatalog.getString('April');\r\n break;\r\n case '5':\r\n monthStr = gettextCatalog.getString('May');\r\n break;\r\n case '6':\r\n monthStr = gettextCatalog.getString('June');\r\n break;\r\n case '7':\r\n monthStr = gettextCatalog.getString('July');\r\n break;\r\n case '8':\r\n monthStr = gettextCatalog.getString('August');\r\n break;\r\n case '9':\r\n monthStr = gettextCatalog.getString('September');\r\n break;\r\n case '10':\r\n monthStr = gettextCatalog.getString('October');\r\n break;\r\n case '11':\r\n monthStr = gettextCatalog.getString('November');\r\n break;\r\n case '12':\r\n monthStr = gettextCatalog.getString('December');\r\n break;\r\n default:\r\n monthStr = '';\r\n break;\r\n }\r\n input = year + ' ' + monthStr;\r\n return input;\r\n }\r\n return input;\r\n };\r\n }\r\n\r\n function dateToISOFilter() {\r\n return function (input) {\r\n return moment(input, ['YYYY.MM.DD.', 'MM/DD/YYYY']).format('YYYY-MM-DD');\r\n };\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('httpInterceptor', httpInterceptor);\r\n\r\n function httpInterceptor(logger, $q, $rootScope, AUTH_EVENTS, DOMAIN, idleService, loader, localStorageService, $injector) {\r\n function Check(r, type) {\r\n // console.log('Check',r,type);\r\n switch (type){\r\n case 'request':\r\n if (r && r.url && r.url.indexOf('LogClientSideException') === -1) {\r\n return true;\r\n }\r\n break;\r\n case 'response':\r\n return true;\r\n break;\r\n case 'responseError':\r\n return true;\r\n break;\r\n }\r\n return false;\r\n }\r\n\r\n // Szerver oldali hibánál elküldi a kliens oldalon lévő adatokat is\r\n function LogServerSideException(ServerSideException, $injector) {\r\n if (!ServerSideException || ServerSideException == null || (ServerSideException && ServerSideException.toString().indexOf('LogClientSideException') !== -1)) {\r\n return;\r\n }\r\n var object = {\r\n ServerSideException: ServerSideException,\r\n vm: null,\r\n stateList: null,\r\n actualState: null,\r\n localStorage: null,\r\n title: null\r\n };\r\n var rootScope = $injector.get('$rootScope');\r\n var LS = $injector.get('localStorageService');\r\n var keys = LS.keys();\r\n var LSItems = [];\r\n keys.forEach(function (element) {\r\n LSItems.push(element + ': ' + LS.get(element));\r\n });\r\n object.localStorage = LSItems;\r\n object.actualState = rootScope.actualState;\r\n object.stateList = rootScope.stateList;\r\n object.title = rootScope.htmlTitle;\r\n object.ClientSideException = false;\r\n var cloneVM = $.extend(true, {}, rootScope.vm);\r\n var cloneVMkeys = Object.keys(cloneVM);\r\n cloneVMkeys.forEach(function (vmKey) {\r\n try {\r\n JSON.stringify(cloneVM[vmKey]);\r\n }\r\n catch (err) {\r\n cloneVM[vmKey] = null;\r\n }\r\n });\r\n object.vm = cloneVM;\r\n var jsonObject = JSON.stringify(object);\r\n var dataService = $injector.get('dataservice');\r\n if (rootScope.vm.hasOwnProperty('netError') && rootScope.vm.netError == true) {\r\n return;\r\n }\r\n dataService.sendLocalException(jsonObject).then(function () {});\r\n }\r\n\r\n function processRequest() {\r\n loader.delayedStart();\r\n }\r\n\r\n function processResponse() {\r\n loader.end();\r\n }\r\n\r\n return {\r\n request: function (config) {\r\n if (Check(config, 'request')) {\r\n processRequest();\r\n }\r\n if (config.type === 'apiGET') {\r\n config.method = 'GET';\r\n config.headers['Content-Type'] = 'application/json; charset-utf-8';\r\n var authData = localStorageService.get('_authData');\r\n if (authData) {\r\n config.headers.Authorization = 'Bearer ' + authData.access_token;\r\n }\r\n //config.timeout = 20000;\r\n } else if (config.type === 'apiPOST') {\r\n config.method = 'POST';\r\n config.headers['Content-Type'] = 'application/json; charset-utf-8';\r\n var authData = localStorageService.get('_authData');\r\n if (authData) {\r\n config.headers.Authorization = 'Bearer ' + authData.access_token;\r\n }\r\n //config.timeout = 20000;\r\n } else if (config.type === 'apiTOKEN') {\r\n config.method = 'POST';\r\n config.headers['Content-Type'] = 'application/x-www-form-urlencoded';\r\n //config.timeout = 20000;\r\n }\r\n if (config.timeout === 'undefined') {\r\n config.timeout = 20000;\r\n }\r\n return config;\r\n },\r\n requestError: function () {\r\n processResponse();\r\n },\r\n response: function (response) {\r\n // console.log('=== response response ===',response);\r\n if (response.config.url.indexOf(DOMAIN.webService) >= 0) {\r\n idleService.resetTimer();\r\n }\r\n if (response.data && response.data.error !== undefined) {\r\n if (response.data.message) {\r\n logger.info(response.data.message);\r\n }\r\n if (response.data.validationErrors) {\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.reject(response);\r\n // return $q.resolve(response);\r\n }\r\n if (response.data.error !== '') {\r\n if (response.data.error) {\r\n response.data.error = response.data.error === '' ? 'Unexpected error occurred. Please try again, later.' : response.data.error;\r\n logger.error(response.data.error, 'Error', response);\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', response);\r\n }\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.reject(response);\r\n // return $q.resolve(response);\r\n } else {\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return $q.resolve(response.data);\r\n }\r\n }\r\n if (Check(response, 'response')) {\r\n processResponse();\r\n }\r\n return response || $q.when(response);\r\n },\r\n responseError: function (rejection) {\r\n // console.log('=== responseError rejection ===',rejection);\r\n if (rejection.config && rejection.config.url.indexOf(DOMAIN.webService) >= 0) {\r\n idleService.resetTimer();\r\n }\r\n if (rejection.status === 401) {\r\n $rootScope.$broadcast(AUTH_EVENTS.notAuthorized);\r\n } else if (rejection.status === 404) {\r\n $rootScope.$broadcast();\r\n } else if (rejection.data) {\r\n if (rejection.data.error) {\r\n rejection.data.error = rejection.data.error === '' ? 'Unexpected error occurred. Please try again, later.' : rejection.data.error;\r\n logger.error(rejection.data.error, 'Error', rejection);\r\n } else if (rejection.data.ExceptionMessage) {\r\n logger.error(angular.isDefined(rejection.data.ExceptionMessage) ? rejection.data.ExceptionMessage : '', 'Error', rejection);\r\n } else if (rejection.data.Message) {\r\n logger.error((angular.isDefined(rejection.data.Message) ? rejection.data.Message : '') + ' ' + (angular.isDefined(rejection.data.MessageDetail) ? rejection.data.MessageDetail : ''), 'Error', rejection);\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', rejection);\r\n }\r\n } else {\r\n logger.error('Unexpected error occurred. Please try again, later.', 'Error', rejection);\r\n }\r\n\r\n if (Check(rejection, 'responseError')) {\r\n processResponse();\r\n }\r\n\r\n if (rejection.status != -1 && (rejection && rejection.data && rejection.data.ExceptionType != 'System.Exception')) {\r\n LogServerSideException(rejection.data.ExceptionMessage, $injector);\r\n }\r\n\r\n return $q.reject(rejection);\r\n // return $q.resolve(rejection); // Angular > 1.5.8\r\n }\r\n };\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('idleService', idleService);\r\n\r\n function idleService($rootScope, $timeout, keepalive, AUTH_EVENTS) {\r\n var idleTimer = null;\r\n\r\n function stopTimer() {\r\n if (idleTimer) {\r\n $timeout.cancel(idleTimer);\r\n }\r\n }\r\n\r\n function timerExpiring() {\r\n stopTimer();\r\n $rootScope.$broadcast(AUTH_EVENTS.sessionTimeout);\r\n }\r\n\r\n function startTimer() {\r\n idleTimer = $timeout(timerExpiring, keepalive);\r\n }\r\n\r\n function resetTimer() {\r\n stopTimer();\r\n startTimer();\r\n }\r\n\r\n startTimer();\r\n return {\r\n startTimer: startTimer,\r\n stopTimer: stopTimer,\r\n resetTimer: resetTimer\r\n };\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('loader', loader);\r\n\r\n function loader($timeout, $rootScope) {\r\n var delayIn = 500;\r\n var delayOut = 250;\r\n var queue = [];\r\n var timerPromise = null;\r\n var timerPromiseHide = null;\r\n\r\n return {\r\n delayedStart: function () {\r\n queue.push({});\r\n if (queue.length === 1) {\r\n timerPromise = $timeout(function () {\r\n if (queue.length) {\r\n showLoader();\r\n }\r\n }, delayIn);\r\n }\r\n },\r\n start: function () {\r\n queue.push({});\r\n if (queue.length === 1) {\r\n showLoader();\r\n }\r\n },\r\n end: function () {\r\n queue.pop();\r\n if (queue.length === 0) {\r\n timerPromiseHide = $timeout(function () {\r\n if (queue.length === 0) {\r\n hideLoader();\r\n if (timerPromiseHide) {\r\n $timeout.cancel(timerPromiseHide);\r\n }\r\n }\r\n }, delayOut);\r\n }\r\n }\r\n };\r\n\r\n function showLoader() {\r\n $rootScope.loader = true;\r\n }\r\n\r\n function hideLoader() {\r\n if (timerPromise) {\r\n $timeout.cancel(timerPromise);\r\n }\r\n $rootScope.loader = false;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('paramHelper', paramHelper);\r\n\r\n function paramHelper($q, localStorageService, log, gettextCatalog, authenticationService) {\r\n return {\r\n setParams: setParams,\r\n getParams: getParams,\r\n removeParam: removeParam,\r\n removeAll: removeAll,\r\n setUserNameParams: setUserNameParams,\r\n getUserNameParams: getUserNameParams\r\n };\r\n\r\n // [{key: value}, {key: value}, ...]\r\n function setParams(params) {\r\n return $q(function (resolve) {\r\n angular.forEach(params, function (value) {\r\n angular.forEach(value, function (value, key) {\r\n //console.log(key + ': ' + value);\r\n localStorageService.set(authenticationService.getAuthData().id + '.' + key, value);\r\n });\r\n });\r\n resolve(true);\r\n });\r\n }\r\n\r\n // [{key: value}, {key: value}, ...]\r\n function setUserNameParams(userName, params) {\r\n return $q(function (resolve) {\r\n angular.forEach(params, function (value) {\r\n angular.forEach(value, function (value, key) {\r\n localStorageService.set(userName + '.' + key, value);\r\n });\r\n });\r\n resolve(true);\r\n });\r\n }\r\n\r\n // [key, key, ...]\r\n function getUserNameParams(userName, params, optionalParams) {\r\n return $q(function (resolve, reject) {\r\n var result = [];\r\n angular.forEach(params, function (value) {\r\n var temp = localStorageService.get(userName + '.' + value);\r\n if (!temp) {\r\n var noParam = gettextCatalog.getString('NoParam');\r\n log.htmlError(noParam + ': ' + value);\r\n reject();\r\n } else {\r\n result[value] = temp;\r\n }\r\n });\r\n angular.forEach(optionalParams, function (value) {\r\n result[value] = localStorageService.get(userName + '.' + value);\r\n });\r\n resolve(result);\r\n });\r\n }\r\n\r\n // [key, key, ...]\r\n function getParams(params, optionalParams) {\r\n return $q(function (resolve, reject) {\r\n var result = [];\r\n if (authenticationService.getAuthData() && authenticationService.getAuthData().id) {\r\n angular.forEach(params, function (value) {\r\n var temp = localStorageService.get(authenticationService.getAuthData().id + '.' + value);\r\n if (!temp) {\r\n var noParam = gettextCatalog.getString('NoParam');\r\n log.htmlError(noParam + ': ' + value);\r\n reject();\r\n } else {\r\n result[value] = temp;\r\n //removeParam(value)\r\n }\r\n });\r\n angular.forEach(optionalParams, function (value) {\r\n result[value] = localStorageService.get(authenticationService.getAuthData().id + '.' + value);\r\n //removeParam(value);\r\n });\r\n }\r\n resolve(result);\r\n });\r\n }\r\n\r\n function removeParam(param) {\r\n localStorageService.remove(authenticationService.getAuthData().id + '.' + param);\r\n }\r\n\r\n function removeAll() {\r\n return localStorageService.clearAll();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.core')\r\n .factory('validatorHelper', validatorHelper);\r\n\r\n function validatorHelper($q) {\r\n return {\r\n validate: validate\r\n };\r\n\r\n function validate(response, form) {\r\n return $q(function (resolve) {\r\n if (response.data.validationErrors) {\r\n angular.forEach(response.data.validationErrors, function (value, key) {\r\n var fieldName = key.substring(key.indexOf('.') + 1, key.length + 1);\r\n if (form[fieldName]) {\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'required') {\r\n form[fieldName].$setValidity('required', false);\r\n }\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'maxlength') {\r\n form[fieldName].$setValidity('maxlength', false);\r\n }\r\n if (value['_errors'][0]['<ErrorMessage>k__BackingField'] === 'minlength') {\r\n form[fieldName].$setValidity('minlength', false);\r\n }\r\n }\r\n });\r\n return $q.reject(response);\r\n }\r\n resolve(true);\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.dashboard')\r\n .controller('DashboardController', DashboardController);\r\n\r\n function DashboardController($q, dataservice, log, DOMAIN, $location, localStorageService, paramHelper, $state, $scope, authenticationService, gettextCatalog, $rootScope, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MainPage');\r\n\r\n vm.messageCount = 0;\r\n //Grid nyomtatás, exportálás nyomógomb\r\n vm.datagridExpiringDocuments = [];\r\n vm.dataMonthlyAttendance = [];\r\n vm.columnsMonthlyAttendance = [];\r\n vm.dataMonthlyCompetitionPlan = [];\r\n vm.dataWeeklyCompetitionPlan = [];\r\n vm.columnsMonthlyCompetitionPlan = [];\r\n vm.dataYearlyCompetitionPlan = [];\r\n vm.columnsYearlyCompetitionPlan = [];\r\n vm.dataGridLinks = [];\r\n vm.columnsGridLinks = [];\r\n vm.dataUnpaidFees = [];\r\n vm.columnsUnpaidFees = [];\r\n vm.dataUnpaidFeesTrainer = [];\r\n vm.columnsUnpaidFeesTrainer = [];\r\n vm.HETIEDZESTERVJOVAHAGY = false;\r\n\r\n //grid permissions\r\n vm.allowGetUnAcceptedMonthlyAttendance = false;\r\n vm.allowGetUnAcceptedMonthlyCompetitionPlan = false;\r\n vm.allowGetUnAcceptedWeeklyCompetitionPlan = false;\r\n vm.allowGetUnAcceptedYearlyCompetitionPlan = false;\r\n vm.allowGetUnPaidFees = false;\r\n vm.allowGetUnPaidFeesTrainer = false;\r\n vm.allowFOLAPLINKEK = false;\r\n\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAthletes = goToNewAthletes;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.goToMonthlyCompetitonPlan = goToMonthlyCompetitonPlan;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n vm.openSportServiceFeeRegister = openSportServiceFeeRegister;\r\n vm.openSportServiceFeeArrears = openSportServiceFeeArrears;\r\n vm.openWeeklyPlan = openWeeklyPlan;\r\n vm.addNewLink = addNewLink;\r\n\r\n vm.editLink = editLink;\r\n vm.editLinkSave = editLinkSave;\r\n vm.deleteLink = deleteLink;\r\n vm.closeeditLinksWindow = closeeditLinksWindow;\r\n vm.closenewLinksWindow = closenewLinksWindow;\r\n vm.newLinkSave = newLinkSave;\r\n\r\n vm.LinkData = gettextCatalog.getString('LinkData');\r\n\r\n vm.reportParameters = [];\r\n vm.printOptions = {\r\n messages: false,\r\n mthAttendance: false,\r\n mthCmptPlan: false,\r\n yrCmptPlan: false,\r\n unpayedFee: false,\r\n stat: false,\r\n };\r\n\r\n if (DOMAIN.justPsycho === 1) {\r\n $location.path('/athletesManagement/athletesList');\r\n }\r\n\r\n // gridek generálása\r\n // 1.\r\n vm.columnsgridExpiringDocuments = [];\r\n vm.columnsgridExpiringDocuments = [\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 120,\r\n template: '#datemplateDataColumn1'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 120,\r\n template: '#datemplateDataColumn2'\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Tipus',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n width: 150\r\n }\r\n ];\r\n var gridExpiringDocuments = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsgridExpiringDocuments,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridExpiringDocuments'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridExpiringDocuments.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridExpiringDocuments);\r\n };\r\n\r\n // 2.\r\n vm.columnsMonthlyAttendance = [];\r\n vm.columnsMonthlyAttendance = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n template: '#datemplateDataColumn4'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n template: '#datemplateDataColumn3',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'CsoportLetszam',\r\n headerText: gettextCatalog.getString('groupStaffNumbers'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Erkezett',\r\n headerText: gettextCatalog.getString('Arrived'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Tavozott',\r\n headerText: gettextCatalog.getString('Departed'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridMonthlyAttendance = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMonthlyAttendance,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridMonthlyAttendance'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridMonthlyAttendance.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridMonthlyAttendance);\r\n };\r\n\r\n //3.\r\n vm.columnsMonthlyCompetitionPlan = [];\r\n vm.columnsMonthlyCompetitionPlan = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn6'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#datemplateDataColumn5',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n vm.selectedRow = [];\r\n var gridMonthlyMonthlyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsMonthlyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridMonthlyMonthlyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridMonthlyMonthlyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridMonthlyMonthlyCompetitionPlan);\r\n };\r\n\r\n //4.\r\n\r\n vm.columnsWeeklyCompetitionPlan = [];\r\n vm.columnsWeeklyCompetitionPlan = [\r\n {field: 'tervid', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center', width: 60, allowEditing: false,\r\n template: '#templateColumnETHetiLink'\r\n },\r\n {\r\n field: 'szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'korcsoport',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#templateColumnETHetiEdzo',\r\n width: 125\r\n },\r\n {\r\n field: 'hetfo',\r\n headerText: gettextCatalog.getString('Monday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'vasarnap',\r\n headerText: gettextCatalog.getString('Sunday'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridWeeklyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsWeeklyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridWeeklyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridWeeklyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridWeeklyCompetitionPlan);\r\n };\r\n\r\n //5.\r\n\r\n vm.columnsYearlyCompetitionPlan = [];\r\n vm.columnsYearlyCompetitionPlan = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn8'\r\n },\r\n {\r\n field: 'Edzo',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#datemplateDataColumn7',\r\n width: 125\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Korosztaly',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n var gridYearlyCompetitionPlan = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsYearlyCompetitionPlan,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridYearlyCompetitionPlan'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridYearlyCompetitionPlan.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridYearlyCompetitionPlan);\r\n };\r\n\r\n //6.\r\n vm.columnsUnpaidFees = [];\r\n vm.columnsUnpaidFees = [\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: 60,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn11'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#datemplateDataColumn9'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Link1',\r\n headerText: gettextCatalog.getString('PayIn'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125,\r\n template: '#datemplateDataColumn10'\r\n }\r\n ];\r\n\r\n var gridUnpaidFees = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsUnpaidFees,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Link1']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Link1']);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridUnpaidFees'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridUnpaidFees.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridUnpaidFees);\r\n };\r\n\r\n //6.1.\r\n\r\n vm.columnsUnpaidFeesTrainer = [];\r\n vm.columnsUnpaidFeesTrainer = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn12'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn13'\r\n },\r\n {\r\n field: 'Befizetett',\r\n headerText: gettextCatalog.getString('PayIn'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'OktDijak',\r\n headerText: gettextCatalog.getString('Fee'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n textAlign: 'center',\r\n width: 120,\r\n allowEditing: false\r\n }\r\n ];\r\n\r\n var gridUnpaidFeesTrainer = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsUnpaidFeesTrainer,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridUnpaidFeesTrainer'), $scope);\r\n }\r\n }\r\n });\r\n\r\n gridUnpaidFeesTrainer.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridUnpaidFeesTrainer);\r\n };\r\n\r\n //7.\r\n vm.columnsGridLinks = [];\r\n vm.columnsGridLinks = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {\r\n field: 'Hivatkozas',\r\n headerText: gettextCatalog.getString('Link'),\r\n textAlign: 'center',\r\n width: 170,\r\n allowEditing: false,\r\n template: '#datemplateDataColumn14'\r\n },\r\n {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n textAlign: 'center',\r\n width: 150,\r\n allowEditing: false\r\n },\r\n {\r\n field: 'Link',\r\n headerText: gettextCatalog.getString('LinkDesc'),\r\n textAlign: 'center',\r\n width: 125,\r\n allowEditing: false\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Edit'), textAlign: 'center', width: 120, allowEditing: false,\r\n template: '#datemplateDataColumn15'\r\n }\r\n ];\r\n\r\n var gridLinks = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowTextWrap: true,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsGridLinks,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#gridLinks'), $scope);\r\n }\r\n }\r\n });\r\n gridLinks.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, gridLinks);\r\n };\r\n\r\n activate();\r\n function activate() {\r\n if (!localStorageService.get('_authData')) {\r\n return;\r\n }\r\n\r\n $q.all([\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('TECHIGAZGATO'),\r\n authenticationService.getRight('HJALAIR1'),\r\n authenticationService.getRight('HAVIVERSTALAIR1'),\r\n authenticationService.getRight('EVVERSTALAIR1'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('MODKOROKEZ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n authenticationService.getRight('MEGTEVVERST'),\r\n authenticationService.getRight('MODSPORTOLO'),\r\n authenticationService.getRight('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPOLVASATLANOK'),\r\n getSystemSettings('FOLAPNYOMTATAS'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROJELENLETIK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHAVITERVEK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROEVESTERVEK'),\r\n getSystemSettings('FOLAPKIFIZETETLENTAGDIJAK'),\r\n getSystemSettings('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPLEJARO'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHETITERV'),\r\n authenticationService.getRight('HETIEDZESTERVJOVAHAGY'),\r\n authenticationService.getRight('GAZDASAGI'),\r\n ]).then(function (results) {\r\n vm.EDZO = results[0];\r\n vm.ADMIN = results[1];\r\n vm.SZAKOSZTVEZ = results[2];\r\n vm.TECHIGAZGATO = results[3];\r\n vm.HJALAIR1 = results[4];\r\n vm.HAVIVERSTALAIR1 = results[5];\r\n vm.EVVERSTALAIR1 = results[6];\r\n vm.MEGTFELH = results[7];\r\n vm.MODSPORTOLO = results[8];\r\n vm.MODKOROKEZ = results[9];\r\n vm.MEGTHAVIJEL = results[10];\r\n vm.MEGTHAVIVERST = results[11];\r\n vm.MEGTEVVERST = results[12];\r\n vm.MODSPORTOLO = results[13];\r\n vm.FOLAPLINKEK = results[14];\r\n vm.FOLAPOLVASATLANOK = results[15];\r\n vm.FOLAPNYOMTATAS = results[16];\r\n vm.FOLAPELFOGADASRAVAROJELENLETIK = results[17];\r\n vm.FOLAPELFOGADASRAVAROHAVITERVEK = results[18];\r\n vm.FOLAPELFOGADASRAVAROEVESTERVEK = results[19];\r\n vm.FOLAPKIFIZETETLENTAGDIJAK = results[20];\r\n vm.allowFOLAPLINKEK = results[21];\r\n vm.FOLAPLEJARO = results[22];\r\n vm.FOLAPELFOGADASRAVAROHETITERV = results[23];\r\n vm.HETIEDZESTERVJOVAHAGY = results[24];\r\n vm.GAZDASAGI = results[25];\r\n\r\n //[ szakosztalyvezeto, ADMIN, EDZO ] - HaviJelenletiSzakvezAlairniController\r\n // FOLAPELFOGADASRAVAROJELENLETIK - Elfogadásra váró havi jelenlétik megjelenítése\r\n vm.allowGetUnAcceptedMonthlyAttendance = vm.FOLAPELFOGADASRAVAROJELENLETIK && (vm.SZAKOSZTVEZ || vm.ADMIN || vm.EDZO);\r\n if (vm.allowGetUnAcceptedMonthlyAttendance) {\r\n dataservice.getUnAcceptedMonthlyAttendance().then(function (data) {\r\n vm.dataMonthlyAttendance = data.itemsList;\r\n gridMonthlyAttendance.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridMonthlyAttendance.appendTo('#gridMonthlyAttendance');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [ gazdaságis, adminisztrátor, szakosztályvezető ] - VersenyTervHaviAlairniController\r\n // FOLAPELFOGADASRAVAROHAVITERVEK - Elfogadásra váró havi versenyeztetési tervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedMonthlyCompetitionPlan = vm.FOLAPELFOGADASRAVAROHAVITERVEK && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedMonthlyCompetitionPlan) {\r\n dataservice.getUnAcceptedMonthlyCompetitionPlan().then(function (data) {\r\n vm.dataMonthlyCompetitionPlan = data.itemsList;\r\n gridMonthlyMonthlyCompetitionPlan.dataSource = vm.dataMonthlyCompetitionPlan;\r\n $timeout(function () {\r\n gridMonthlyMonthlyCompetitionPlan.appendTo('#gridMonthlyMonthlyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [vm.HETIEDZTERVJOVAHAGYKOT && (vm.ADMIN || vm.SZAKOSZTVEZ) && vm.HETIEDZESTERVJOVAHAGY; ] - VersenyTervHetiAlairni\r\n // FOLAPELFOGADASRAVAROHETITERV - Elfogadásra váró heti edzéstervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedWeeklyCompetitionPlan = vm.FOLAPELFOGADASRAVAROHETITERV && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedWeeklyCompetitionPlan) {\r\n dataservice.getUnAcceptedWeeklyCompetitionPlan().then(function (data) {\r\n vm.FOLAPELFOGADASRAVAROHETITERV = data.isAdmin || data.isSectionLeader;\r\n var dataList = data.itemsList;\r\n dataList = $filter('dateStringFilter')(dataList, 'hetfo');\r\n dataList = $filter('dateStringFilter')(dataList, 'vasarnap');\r\n gridWeeklyCompetitionPlan.dataSource = dataList;\r\n vm.dataWeeklyCompetitionPlan = dataList;\r\n $timeout(function () {\r\n gridWeeklyCompetitionPlan.appendTo('#gridWeeklyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n // [IsAdminUser, IsSzakosztalyVezetoUser, IsEdzoUser, - EVVERSTALAIR1 ] - VersenyTervEvesAlairni\r\n // FOLAPELFOGADASRAVAROEVESTERVEK - Elfogadásra váró éves versenyeztetési tervek megjelenítése a nyitólapon\r\n vm.allowGetUnAcceptedYearlyCompetitionPlan = vm.FOLAPELFOGADASRAVAROEVESTERVEK && (vm.GAZDASAGI || vm.ADMIN || vm.SZAKOSZTVEZ || vm.EDZO);\r\n if (vm.allowGetUnAcceptedYearlyCompetitionPlan) {\r\n dataservice.getUnAcceptedYearlyCompetitionPlan().then(function (data) {\r\n vm.dataYearlyCompetitionPlan = data.itemsList;\r\n gridYearlyCompetitionPlan.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridYearlyCompetitionPlan.appendTo('#gridYearlyCompetitionPlan');\r\n }, 100);\r\n });\r\n }\r\n\r\n if (vm.allowFOLAPLINKEK) {\r\n $timeout(function () {\r\n gridLinks.appendTo('#gridLinks');\r\n getLinks();\r\n }, 100);\r\n }\r\n\r\n // [IsSzakosztalyVezetoUser, Edző, MEGTTAGDHATR ]\r\n // FOLAPKIFIZETETLENTAGDIJAK - Rendezetlen tagdíjlista megjelenítése a nyitólapon\r\n\r\n vm.allowGetUnPaidFees = vm.FOLAPKIFIZETETLENTAGDIJAK && (vm.ADMIN || vm.SZAKOSZTVEZ || vm.TECHIGAZGATO);\r\n vm.allowGetUnPaidFeesTrainer = vm.EDZO;\r\n if (vm.allowGetUnPaidFees) {// getSzakosztalyEdzoHatralekosai\r\n dataservice.getUnPaidFees().then(function (data) {\r\n vm.dataUnpaidFees = data.itemsList;\r\n gridUnpaidFees.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridUnpaidFees.appendTo('#gridUnpaidFees');\r\n }, 100);\r\n });\r\n } else if (vm.FOLAPKIFIZETETLENTAGDIJAK && vm.allowGetUnPaidFeesTrainer) {// [Edző] getEdzoTagdijHatralekosai ??? Egyenleg ????\r\n dataservice.getUnPaidFeesTrainer().then(function (data) {\r\n vm.dataUnpaidFeesTrainer = data.itemsList;\r\n gridUnpaidFeesTrainer.dataSource = data.itemsList;\r\n $timeout(function () {\r\n gridUnpaidFeesTrainer.appendTo('#gridUnpaidFeesTrainer');\r\n }, 100);\r\n });\r\n }\r\n // LEJARODOCERTESITESTKAPNAK - ExpiringDocuments\r\n if (vm.FOLAPLEJARO) {\r\n dataservice.ExpiringDocuments().then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n gridExpiringDocuments.dataSource = data.itemsList;\r\n vm.datagridExpiringDocuments = data.itemsList;\r\n //generálás csak a div létrehozása után lehet ami csak az ng-if után futhat le\r\n $timeout(function () {\r\n gridExpiringDocuments.appendTo('#gridExpiringDocuments');\r\n }, 100);\r\n });\r\n }\r\n\r\n $timeout(function () {\r\n $scope.$apply();\r\n });\r\n });\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function openSportServiceFeeRegister(sectionId, coachId) {\r\n var currentYear = new Date().getFullYear();\r\n paramHelper.setParams([\r\n {'sportServiceFeeRegister.sectionId': sectionId},\r\n {'sportServiceFeeRegister.coachId': coachId},\r\n {'sportServiceFeeRegister.year': currentYear}\r\n ]);\r\n $state.go('business.sportServiceFeeRegister');\r\n }\r\n\r\n function openSportServiceFeeArrears(sectionId, coachId) {\r\n var currentYear = new Date().getFullYear();\r\n paramHelper.setParams([\r\n {'sportServiceFeeArrears.sectionId': sectionId},\r\n {'sportServiceFeeArrears.coachId': coachId},\r\n {'sportServiceFeeArrears.year': currentYear}\r\n ]);\r\n $state.go('business.sportServiceFeeArrears');\r\n }\r\n\r\n function openWeeklyPlan(tervid) {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.trainingPlanId': tervid}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n if (!vm.MEGTFELH) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthletes(athleteId) {\r\n if (!vm.MODSPORTOLO) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'athleteModify.sportoloId': athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n\r\n function goToMonthlyAttendance(maId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'monthlyAttendance.id': maId}]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function goToAnnualSeasonPlan(asId) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'AnnualSeasonPlanReport.Id': asId}]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function goToMonthlyCompetitonPlan(mcpId, edzoId, szakosztalyId) {\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n var result = gridMonthlyMonthlyCompetitionPlan.dataSource.filter(function (v) {\r\n if (v.Id === mcpId) {\r\n return v;\r\n }\r\n });\r\n paramHelper.setParams([{'competitiveMonthlyPlan.edzoId': edzoId},\r\n {'competitiveMonthlyPlan.edzoNev': result[0].Edzo},\r\n {'competitiveMonthlyPlan.szakosztalyNev': result[0].Szakosztaly},\r\n {'competitiveMonthlyPlan.szakosztalyId': szakosztalyId}, {'competitiveMonthlyPlan.competitivePlanId': mcpId}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function addNewLink() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function closenewLinksWindow() {\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function newLinkSave() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var dialogObj = angular.element('#newlink').data('ejDialog');\r\n dialogObj.close();\r\n if (vm.newLink && vm.newLink.Hivatkozas && vm.newLink.Hivatkozas.length > 0) {\r\n dataservice.saveNewLink(vm.newLink).then(function () {\r\n getLinks();\r\n log.successMsg('NewLinkSaved');\r\n vm.newLink.Hivatkozas = '';\r\n vm.newLink.Link = '';\r\n vm.newLink.Megjegyzes = '';\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('EmptyLinkAddressCannotBeSaved'));\r\n }\r\n }\r\n\r\n function editLink(args) {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n var db = gridLinks.dataSource.length;\r\n\r\n for (var rec = 0; rec < db; rec++) {\r\n if (gridLinks.dataSource[rec].Id === args) {\r\n vm.editedLink = gridLinks.dataSource[rec];\r\n break;\r\n }\r\n }\r\n var dialogObj = angular.element('#editLinks').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function editLinkSave() {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n dataservice.saveLink(vm.editedLink).then(function () {\r\n getLinks();\r\n //TODO kell?????\r\n // var db = gridLinks.dataSource.length;\r\n // for (var rec = 0; rec < db; rec++) {\r\n // if (gridLinks.dataSource[rec].Id === vm.editedLink.Id) {\r\n // gridLinks.dataSource[rec] = vm.editedLink;\r\n // vm.dataGridLinks[rec] = vm.editedLink;\r\n //\r\n // console.log('save', gridLinks.dataSource);\r\n // gridLinks.appendTo('#gridLinks');\r\n // }\r\n // }\r\n closeeditLinksWindow();\r\n\r\n log.successMsg('LinkSaved');\r\n });\r\n }\r\n\r\n function deleteLink(arg) {\r\n if (!vm.FOLAPLINKEK) {\r\n log.permissionError();\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected link?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this link'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var p = {};\r\n p.Id = arg;\r\n dataservice.deleteLink(p).then(function () {\r\n log.successMsg('LinkDeleted');\r\n getLinks();\r\n });\r\n }\r\n });\r\n }\r\n\r\n //Felugró ablak 'Mégsem' gomb click\r\n function closeeditLinksWindow() {\r\n var dialogObj = angular.element('#editLinks').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function getLinks() {\r\n dataservice.getLinks().then(function (data) {\r\n gridLinks.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.dashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'dashboard',\r\n config: {\r\n url: '/',\r\n templateUrl: 'app/dashboard/dashboard.html',\r\n controller: 'DashboardController',\r\n controllerAs: 'vm',\r\n title: 'Dashboard',\r\n settings: {\r\n navId: 8,\r\n level: 1,\r\n order: 8,\r\n parentId: 0,\r\n content: 'Dashboard',\r\n faIcon: 'fa-play',\r\n permission: ['0', '1', '2', '3', '4', '7', '8']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.layout')\r\n .directive('htSidebar', htSidebar);\r\n\r\n /* @ngInject */\r\n function htSidebar() {\r\n // Opens and closes the sidebar menu.\r\n // Usage:\r\n // <div ht-sidebar\">\r\n // <div ht-sidebar whenDoneAnimating=\"vm.sidebarReady()\">\r\n // Creates:\r\n // <div ht-sidebar class=\"sidebar\">\r\n return {\r\n link: link,\r\n restrict: 'EA',\r\n scope: {\r\n whenDoneAnimating: '&?'\r\n }\r\n };\r\n\r\n function link(scope, element) {\r\n var dropClass = 'dropy';\r\n var openMobile = 'open';\r\n var $sidebarInner = element.find('.sidebar-inner');\r\n var $dropdownElement = element.find('.sidebar-dropdown a');\r\n\r\n element.addClass('sidebar');\r\n $dropdownElement.click(dropdown);\r\n scope.$on('autoCloseSideBar', closeSideBar);\r\n\r\n function openSideBar() {\r\n $sidebarInner.addClass(openMobile);\r\n $sidebarInner.slideDown(350, scope.whenDoneAnimating);\r\n $dropdownElement.addClass(dropClass);\r\n }\r\n\r\n function closeSideBar() {\r\n $sidebarInner.removeClass(openMobile);\r\n $sidebarInner.slideUp(350, scope.whenDoneAnimating);\r\n $dropdownElement.removeClass(dropClass);\r\n }\r\n\r\n function dropdown(e) {\r\n e.preventDefault();\r\n if (!$dropdownElement.hasClass(dropClass)) {\r\n openSideBar();\r\n } else if ($dropdownElement.hasClass(dropClass)) {\r\n closeSideBar();\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","/*jshint esversion: 6 */\r\n(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.layout')\r\n .controller('SidebarController', SidebarController);\r\n\r\n function SidebarController($state, authenticationService, localStorageService, dataservice, $rootScope, $scope) {\r\n var vm = this;\r\n vm.isCurrent = isCurrent;\r\n\r\n var language = authenticationService.getLanguage();\r\n var imgAppStoreSB = document.getElementById('NoAppStoreSB');\r\n imgAppStoreSB.src = '../../images/NoAppStore_' + language + '.png';\r\n vm.goToMobilePage = function goToMobilePage () {\r\n console.log('vm.goToMobilePage');\r\n $state.go('sikerMobile');\r\n };\r\n vm.noEducationalFee = localStorageService.get('noEducationalFee');\r\n vm.isAuthenticated = authenticationService.isAuthenticated();\r\n vm.permission = authenticationService.getPermission();\r\n vm.authenticated = authenticationService.isAuthenticated();\r\n vm.rights = authenticationService.getAuthData().accessRights;\r\n vm.checkPermissionGroup = checkPermissionGroup;\r\n vm.checkUserLevel = checkUserLevel;\r\n vm.hideAnyWay = hideAnyWay;\r\n vm.buildNumber = 'Siker 2.0 - 2019.03.06.';\r\n vm.getUnreadMessageCount = getUnreadMessageCount;\r\n $rootScope.INAKTIVMENUREJTES = true;\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n $scope.$on('msgRead', getUnreadMessageCount);\r\n\r\n getSystemSettings('INAKTIVMENUREJTES').then(function (res) {\r\n $rootScope.INAKTIVMENUREJTES = res;\r\n });\r\n vm.menuItemClicked = menuItemClicked;\r\n vm.messageCount = 0;\r\n getUnreadMessageCount();\r\n\r\n function checkPermissionGroup(activators) {\r\n if (activators) {\r\n if (activators.some(e => vm.rights.indexOf(e) !== -1)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function checkUserLevel(permission) {\r\n if (permission) {\r\n if (permission.some(e => vm.permission.indexOf(e) !== -1)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n // a 3 különböző dashboard és a szülői igazolás elrejtése végett\r\n function hideAnyWay (permission) {\r\n if (permission) {\r\n if (checkUserLevel(permission)) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n function getUnreadMessageCount() {\r\n dataservice.GetUnreadMessageCount().then(function(data) {\r\n vm.messageCount = data.res;\r\n });\r\n };\r\n\r\n function menuItemClicked(nav, level) {\r\n if (nav.settings.childRoutes === undefined || nav.settings.childRoutes.length === 0) {\r\n if (level === 1) {\r\n vm.level1Open = 0;\r\n vm.level2Open = 0;\r\n }\r\n if (window.innerWidth < 768) {\r\n $rootScope.$broadcast('autoCloseSideBar');\r\n }\r\n $state.go(nav.name);\r\n } else {\r\n switch (level) {\r\n case 1:\r\n if (nav.settings.navId === vm.level1Open) {\r\n vm.level1Open = 0;\r\n } else {\r\n vm.level1Open = nav.settings.navId;\r\n vm.level2Open = 0;\r\n }\r\n break;\r\n case 2:\r\n if (nav.settings.navId === vm.level2Open) {\r\n vm.level2Open = 0;\r\n } else {\r\n vm.level2Open = nav.settings.navId;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }\r\n\r\n function isCurrent(route) {\r\n if (!route.title || !$state.current || !$state.current.title) {\r\n return '';\r\n }\r\n var menuName = route.title;\r\n return $state.current.title === menuName ? 'current' : '';\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.login')\r\n .controller('LoginController', LoginController);\r\n\r\n function LoginController($q, dataservice, logger, authenticationService, $state, $rootScope, LANG_EVENTS, DOMAIN, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.title = 'Bejelentkezés';\r\n vm.loginName = '';\r\n vm.password = '';\r\n vm.defaultLang = '';\r\n vm.isAuthenticated = authenticationService.isAuthenticated();\r\n vm.sessionTimeout = false;\r\n vm.unknownUser = false;\r\n vm.loginWarning = '';\r\n vm.languageTemplate = '<img src=\\\"${icon}\\\" alt=\\\"lang\\\" height=\\\"20px\\\" width=\\\"20px\\\"/>' +\r\n '<span style=\\\"padding-left: 10px; vertical-align: middle\\\">${text}</span>';\r\n\r\n // Events\r\n vm.changeLanguage = changeLanguage;\r\n vm.changeLoginName = changeLoginName;\r\n vm.changePassword = changePassword;\r\n vm.login = login;\r\n vm.loginFocusOut = loginFocusOut;\r\n\r\n activate();\r\n\r\n function activate() {\r\n if (authenticationService.isAuthenticated()) {\r\n $state.go('dashboard');\r\n return;\r\n }\r\n var promises = [getAvailableLanguages(), loadSessionData()];\r\n $q.all(promises).then(function () {\r\n angular.element('#availableLang').ejDropDownList({dataSource: vm.availableLanguages});\r\n if (!authenticationService.isSessionTimeOut()) {\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', vm.defaultLang);\r\n } else {\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', authenticationService.getLanguage());\r\n }\r\n });\r\n }\r\n\r\n function getAvailableLanguages() {\r\n var browserLang = navigator.language || navigator.userLanguage;\r\n authenticationService.noEducationalFee();\r\n return dataservice.getAvailableLanguages().then(function (data) {\r\n data = data.itemsList;\r\n vm.availableLanguages = data;\r\n for (var i = 0; i < vm.availableLanguages.length; i++) {\r\n if (browserLang.toLowerCase().indexOf(vm.availableLanguages[i].value.toLowerCase()) >= 0) {\r\n vm.defaultLang = vm.availableLanguages[i].value;\r\n }\r\n }\r\n if (vm.defaultLang === '') {\r\n vm.defaultLang = data.d.defLanguage;\r\n }\r\n return vm.availableLanguages;\r\n });\r\n }\r\n\r\n function loadSessionData() {\r\n if (!authenticationService.isSessionTimeOut()) {\r\n return;\r\n }\r\n var user = authenticationService.getSessionData();\r\n vm.sessionTimeout = true;\r\n vm.loginName = user.loginName;\r\n }\r\n\r\n function login() {\r\n paramHelper.setUserNameParams(vm.loginName, [{'Login.Language': angular.element('#availableLang').ejDropDownList('getSelectedValue')}]);\r\n authenticationService.login(vm.loginName, vm.password, angular.element('#availableLang').ejDropDownList('getSelectedValue')).then(function (result) {\r\n if (!result) {\r\n angular.element('#loginName').addClass('error');\r\n angular.element('#password').addClass('error');\r\n vm.unknownUser = true;\r\n }\r\n });\r\n }\r\n\r\n function changeLanguage(args) {\r\n paramHelper.setUserNameParams(vm.loginName, [{'Login.Language': angular.element('#availableLang').ejDropDownList('getSelectedValue')}]);\r\n $rootScope.$broadcast(LANG_EVENTS.changeLanguage, args.value);\r\n vm.frmLogin.$setPristine();\r\n }\r\n\r\n function changeLoginName() {\r\n if (vm.unknownUser) {\r\n angular.element('#loginName').removeClass('error');\r\n }\r\n }\r\n function changePassword() {\r\n if (vm.unknownUser) {\r\n angular.element('#password').removeClass('error');\r\n }\r\n }\r\n\r\n function loginFocusOut() {\r\n paramHelper.getUserNameParams(vm.loginName, [], ['Login.Language']).then(function(args) {\r\n if (args['Login.Language']) {\r\n vm.defaultLang = args['Login.Language'];\r\n angular.element('#availableLang').ejDropDownList('setSelectedValue', vm.defaultLang);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.login')\r\n .directive('ngEnter', ngEnter);\r\n\r\n /* @ngInject */\r\n function ngEnter() {\r\n return {\r\n link: link,\r\n restrict: 'EA'\r\n };\r\n\r\n function link(scope, element, attrs) {\r\n element.bind('keydown keypress', function (event) {\r\n if (event.which === 13) {\r\n scope.$apply(function () {\r\n scope.$eval(attrs.ngEnter, {'event': event});\r\n });\r\n event.preventDefault();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.login')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'login',\r\n config: {\r\n url: '/login',\r\n templateUrl: 'app/login/login.html',\r\n controller: 'LoginController',\r\n controllerAs: 'vm',\r\n title: 'LogIn'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.messageCenter')\r\n .controller('MessageCenterController', MessageCenterController);\r\n\r\n function MessageCenterController($q, $rootScope, gettextCatalog, dataservice, $scope, log, authenticationService, paramHelper, $state, $timeout, DOMAIN) {\r\n let vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MessageCenterRecievedMessages');\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n //Grid nyomtatás, exportálás nyomógomb\r\n vm.isBusy = false;\r\n vm.listPageNumber = 1;\r\n vm.itemsPerMessage = 24;\r\n vm.messagePageNumber = 1;\r\n vm.listItemsPerPage = 24;\r\n vm.SelectedMessage = {};\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n vm.newMessage = false;\r\n vm.toolbarClick = toolbarClick;\r\n vm.loadMessageId = -1;\r\n vm.topicStarter = null;\r\n vm.messageImages = [];\r\n vm.recipients = [];\r\n vm.recipientsId = [];\r\n vm.recipientsList = [];\r\n vm.kicked = [];\r\n vm.tempRec = [];\r\n vm.Message = '';\r\n vm.profileImgBaseUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl;\r\n vm.messageImagesUrl = DOMAIN.baseURL + DOMAIN.messageImagesUrl;\r\n vm.searchInput = '';\r\n vm.unreadCount = 0;\r\n vm.dataMessages = [];\r\n vm.imageSet = imageSet;\r\n vm.getRecipients = getRecipients;\r\n vm.deleteAttachedImg = deleteAttachedImg;\r\n vm.removeUser = removeUser;\r\n vm.addUser = addUser;\r\n vm.selectUser = selectUser;\r\n vm.addUserDone = addUserDone;\r\n vm.addUserCancel = addUserCancel;\r\n vm.deleteImage = deleteImage;\r\n vm.searchUsers = searchUsers;\r\n vm.recipientsListSm = recipientsListSm;\r\n vm.getUnreadMessageCount = getUnreadMessageCount;\r\n vm.userFilter = userFilter;\r\n vm.getSeenName = getSeenName;\r\n\r\n $scope.$on('msgRead', getUnreadMessageCount);\r\n\r\n maxSize();\r\n activate();\r\n\r\n function activate() {\r\n setInterval(WaitForPushNotifications, 500);\r\n vm.dataMessages = [];\r\n vm.userid = authenticationService.getAuthData().id;\r\n dataservice.Cimjegyzek().then(function (data) {\r\n $timeout(function () {\r\n vm.userLevel = authenticationService.getPermission();\r\n vm.recipientsList = data.itemsList;\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n $q.all([paramHelper.getParams([], ['messageTargyId']), authenticationService.getRight('MEGTFELH'), authenticationService.getRight('UZENETMEGT'), authenticationService.getRight('UZENETTORLES')]).then(function (results) {\r\n vm.MEGTFELH = results[1];\r\n vm.UZENETMEGT = results[2];\r\n vm.UZENETTORLES = results[3];\r\n if (!vm.UZENETMEGT) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n refreshList();\r\n angular.element(document.querySelector('#message-list')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-list'));\r\n if (objDiv[0].scrollTop == objDiv[0].scrollHeight - objDiv[0].clientHeight) {\r\n vm.listPageNumber += 1;\r\n loadMoreListItem();\r\n }\r\n });\r\n $timeout(function () {\r\n if (vm.openedMessageTargyId > 0) {\r\n getMessages(vm.openedMessageTargyId);\r\n }\r\n }, 100);\r\n });\r\n }\r\n\r\n function WaitForPushNotifications() {\r\n var pushnotification = localStorage.getItem('pushnotification');\r\n if (pushnotification && pushnotification.length > 0) {\r\n localStorage.removeItem('pushnotification');\r\n var payload = JSON.parse(pushnotification);\r\n if (payload.data.page == 'messages') {\r\n refreshList();\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n $scope.$apply();\r\n }, 200);\r\n if (payload.data.contentid == vm.openedMessageTargyId) {\r\n getMessages(vm.openedMessageTargyId);\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n $scope.$apply();\r\n }, 200);\r\n }\r\n }\r\n }\r\n }\r\n\r\n function toolbarClick(id) {\r\n switch (id) {\r\n case 'new_msg':\r\n vm.newMessage = true;\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n addUser();\r\n break;\r\n case 'del_msg':\r\n if (!vm.openedMessageTargyId) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectAMessage'));\r\n return;\r\n }\r\n if (vm.topicStarter == vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('MsgDelMessagePermissionError'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantDelete'),\r\n text: gettextCatalog.getString('DoYouWantDeleteDesc'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (!vm.UZENETTORLES) {\r\n log.errorMsg(gettextCatalog.getString('MsgDelMessagePermissionError'));\r\n return;\r\n }\r\n if (isConfirm.value) {\r\n dataservice.SikerMobileFreeDeleteMessages(vm.openedMessageTargyId).then(function () {\r\n log.infoMsg('MessageMarkAsDeleted');\r\n refreshList();\r\n });\r\n $timeout(function() {\r\n vm.SelectedMessage = {};\r\n vm.openedMessageTargyId = null;\r\n vm.SelectedMessageDateSource = null;\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n break;\r\n case 'unsub_msg':\r\n if (vm.topicStarter == vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('YouCannotLeaveThisConversationBecouseYouCreatedIt'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantToLeave'),\r\n text: gettextCatalog.getString('DoYouWantToLeaveDesc'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.SikerMobileFreeLeaveConversation(vm.openedMessageTargyId).then(function() {\r\n log.infoMsg('UnsubbedFromTopic');\r\n refreshList();\r\n });\r\n }\r\n });\r\n break;\r\n }\r\n }\r\n\r\n function refreshList() {\r\n let pageNumber = vm.listPageNumber * vm.listItemsPerPage;\r\n dataservice.GetMessageGroups(1, pageNumber).then(function(data) {\r\n vm.dataMessages = data.itemsList;\r\n if (vm.dataMessages.some(elem => elem.TargyId == vm.openedMessageTargyId)) {\r\n getRecipients(vm.openedMessageTargyId);\r\n }\r\n getUnreadMessageCount();\r\n });\r\n }\r\n\r\n vm.messageClicked = function (index) {\r\n vm.isBusy = false;\r\n vm.messagePageNumber = 1;\r\n vm.SelectedMessage = vm.dataMessages[index];\r\n vm.openedMessageTargyId = vm.SelectedMessage.TargyId;\r\n vm.selectedMessageIndex = index;\r\n addUserCancel();\r\n vm.recipients = vm.dataMessages[index].Kikkel;\r\n\r\n paramHelper.setParams([{\r\n 'messageTargyId': vm.openedMessageTargyId\r\n }]);\r\n if (vm.SelectedMessage.Olvasott) {\r\n setTimeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n } else {\r\n vm.SelectedMessage.Olvasott = true;\r\n }\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n vm.messageImages = [];\r\n getMessages(vm.openedMessageTargyId);\r\n setTimeout(function() {\r\n $rootScope.$broadcast('msgRead');\r\n }, 500);\r\n };\r\n\r\n function getMessages(targyId) {\r\n getRecipients(targyId);\r\n vm.SelectedMessageDateSource = null;\r\n dataservice.getMessages(targyId).then(function (result) {\r\n vm.SelectedMessageDateSource = result.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n }\r\n\r\n vm.messageSend = function () {\r\n if (!vm.Message && $scope.files.length == 0) {\r\n vm.Message = '';\r\n return;\r\n } else if ($scope.files.length > 0 && vm.Message == '') {\r\n vm.Message = gettextCatalog.getString('picture') + '(' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = vm.Message.trim();\r\n }\r\n\r\n if (!vm.openedMessageTargyId && !vm.newMessage) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectAMessage'));\r\n } else if (vm.newMessage) {\r\n if (!vm.Message || vm.Message == '' || vm.Message == null) {\r\n if ($scope.files.length > 0) {\r\n vm.Message = gettextCatalog.getString('picture') + '(' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = '';\r\n return;\r\n }\r\n }\r\n if (!vm.tempRec || vm.tempRec.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('MsgSelectRecipient'));\r\n return;\r\n }\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0%'});\r\n\r\n vm.Obj = {};\r\n vm.Obj.Ids = [];\r\n vm.Obj.base64_images = [];\r\n for (let i = 0; i < vm.tempRec.length; i++) {\r\n vm.Obj.Ids.push(vm.tempRec[i].usersof);\r\n }\r\n if ($scope.files.length > 0) {\r\n for (let i = 0; i < $scope.files.length; i++) {\r\n vm.Obj.base64_images.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n }\r\n vm.Obj.Message = vm.Message;\r\n dataservice.SikerMobileFreeSendNewMessage(vm.Obj).then(function (result) {\r\n log.successMsg('SendSuccessful');\r\n vm.Message = null;\r\n vm.SelectedMessageDateSource = result.messageListResponse.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n refreshList();\r\n addUserCancel();\r\n vm.openedMessageTargyId = result.id;\r\n });\r\n } else {\r\n if (!vm.Message || vm.Message == '' || vm.Message == null) {\r\n if ($scope.files.length > 0 && vm.Message == '') {\r\n vm.Message = 'Képek (' + $scope.files.length + ')';\r\n } else {\r\n vm.Message = '';\r\n return;\r\n }\r\n }\r\n if ($scope.files.length > 0) {\r\n for (let i = 0; i < $scope.files.length; i++) {\r\n vm.messageImages.push({\r\n fileName: $scope.files[i].name,\r\n fileData: $scope.imageDatas[i]\r\n });\r\n }\r\n }\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: vm.Message, base64_images: vm.messageImages, recipients: vm.recipients, kicked: vm.kicked};\r\n vm.Message = '';\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n log.successMsg(gettextCatalog.getString('SendSuccessful'));\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n imageSet(vm.SelectedMessageDateSource);\r\n angular.element(document.querySelector('#message-detail')).bind('scroll', function () {\r\n let objDiv = jQuery($('#message-detail'));\r\n if (objDiv[0].scrollTop == 0 && vm.isBusy == false) {\r\n vm.messagePageNumber += 1;\r\n vm.isBusy = true;\r\n loadMoreMessage();\r\n }\r\n });\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n vm.selectedMessageIndex = 0;\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.imageDatas = [];\r\n refreshList();\r\n }\r\n });\r\n }\r\n };\r\n\r\n vm.finished = function () {\r\n let objDiv = $('#message-detail');\r\n // ne kerülön vissza a\r\n if (vm.messagePageNumber == 1) {\r\n $timeout(function() {\r\n objDiv[0].scrollTop = objDiv[0].scrollHeight;\r\n }, 0);\r\n }\r\n };\r\n\r\n function loadMoreListItem() {\r\n dataservice.GetMessageGroups(vm.listPageNumber).then(function (resp) {\r\n if (resp.itemsList.length == 0) {\r\n vm.listPageNumber -= 1;\r\n angular.element(document.querySelector('#message-list')).unbind('scroll');\r\n return;\r\n }\r\n resp.itemsList.forEach(function (item) {\r\n vm.dataMessages.push(item);\r\n });\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n });\r\n }\r\n\r\n function loadMoreMessage() {\r\n dataservice.getMessages(vm.openedMessageTargyId, vm.messagePageNumber, vm.itemsPerMessage).then(function (resp) {\r\n if (resp.itemsList.length == 0) {\r\n vm.listPageNumber += 1;\r\n angular.element(document.querySelector('#message-detail')).unbind('scroll');\r\n return;\r\n }\r\n let objDivBefore = $('#message-detail');\r\n let rowSizeBeforeLoadMore = objDivBefore[0].scrollHeight - objDivBefore[0].clientHeight;\r\n resp.itemsList.reverse().forEach(function (item) {\r\n vm.SelectedMessageDateSource.unshift(item);\r\n });\r\n\r\n $timeout(function () {\r\n vm.isBusy = false;\r\n let objDivAfter = $('#message-detail');\r\n let rowSizeAfterLoadMore = objDivAfter[0].scrollHeight - objDivAfter[0].clientHeight;\r\n objDivAfter[0].scrollTop = rowSizeAfterLoadMore - rowSizeBeforeLoadMore;\r\n $scope.$apply();\r\n }, 0);\r\n imageSet(vm.SelectedMessageDateSource);\r\n });\r\n }\r\n\r\n function imageSet(array) {\r\n for (let i = 0; i < array.length; i++) {\r\n if (array[i]['images'] != null) {\r\n for (let j = 0; j < array[i]['images'].length; j++) {\r\n array[i]['images'][j] = array[i]['images'][j].replace('_thumb', '');\r\n }\r\n }\r\n }\r\n $timeout(function () {\r\n $('.message-wrapper').each(function () {\r\n $(this).magnificPopup({\r\n delegate: 'a',\r\n type: 'image',\r\n gallery: {\r\n enabled: true\r\n }\r\n });\r\n });\r\n }, 100);\r\n }\r\n\r\n function getRecipients(subjectId) {\r\n dataservice.GetRecipientsBySubjectId(subjectId).then(function (response) {\r\n vm.recipients = response.itemsList;\r\n vm.topicStarter = response.admin;\r\n vm.recipientsId = [];\r\n vm.kicked = [];\r\n vm.tempRec = [];\r\n vm.messageImages = [];\r\n $scope.files = [];\r\n $scope.fileData = [];\r\n vm.newMessage = false;\r\n for (let i = 0; i < vm.recipients.length; i++) {\r\n vm.recipientsId.push(vm.recipients[i].value);\r\n }\r\n });\r\n }\r\n\r\n function deleteAttachedImg(index) {\r\n $scope.files.splice(index, 1);\r\n $scope.imageDatas.splice(index, 1);\r\n if ($scope.files.length == 0) {\r\n maxSize();\r\n $('#addFile').val('');\r\n $('#messageInput').prop('disabled', false);\r\n }\r\n }\r\n\r\n function removeUser(index) {\r\n if (vm.topicStarter != vm.userid) {\r\n log.errorMsg(gettextCatalog.getString('MsgModifyRecipientPermission'));\r\n return;\r\n }\r\n if (vm.recipients.length < 2) {\r\n vm.toolbarClick('del_msg');\r\n return;\r\n }\r\n let id = vm.recipients[index].value;\r\n let name = vm.recipients[index].text;\r\n swal({\r\n title: gettextCatalog.getString('MsgModifyRecipientAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('MsgModifyRecipientYes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.kicked.push(id);\r\n vm.recipientsId.splice(index, 1);\r\n let msg = name + ' ' + gettextCatalog.getString('MsgRemovedRecipientFromConv');\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: msg, recipients: vm.recipientsId, kicked: vm.kicked};\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n getRecipients(vm.openedMessageTargyId);\r\n refreshList();\r\n vm.Message = null;\r\n vm.kicked = [];\r\n maxSize();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function addUser() {\r\n $('#addUser').css({'left': '0%'});\r\n $('#recipient-container').css({'left': '-100%'});\r\n if (window.innerWidth < 768) {\r\n $('#recipients-wrapper').delay(500).animate({'top': '50px'}, 500);\r\n }\r\n }\r\n\r\n function selectUser(index) {\r\n if (vm.tempRec.includes(index)) {\r\n vm.tempRec.splice(vm.tempRec.indexOf(index), 1);\r\n } else {\r\n vm.tempRec.push(index);\r\n }\r\n }\r\n\r\n function addUserDone() {\r\n if (vm.tempRec.length < 1) {\r\n addUserCancel();\r\n return;\r\n }\r\n if (!vm.newMessage) {\r\n swal({\r\n title: gettextCatalog.getString('MsgModifyRecipientAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('MsgModifyRecipientYes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0%'});\r\n let msg = '';\r\n for (let i = 0; i < vm.tempRec.length; i++) {\r\n vm.recipientsId.push(vm.tempRec[i].value);\r\n if (vm.tempRec.length - 1 !== i) {\r\n msg += vm.tempRec[i].text + ', ';\r\n } else {\r\n msg += vm.tempRec[i].text + ' ';\r\n }\r\n }\r\n vm.tempRec = [];\r\n msg += ' ' + gettextCatalog.getString('MsgRecipientsAdded');\r\n let parameters = {SubjectId: vm.openedMessageTargyId, Message: msg, recipients: vm.recipientsId, kicked: vm.kicked};\r\n dataservice.SikerMobileFreeSendMessage(parameters).then(function (response) {\r\n if (response.retValue) {\r\n vm.SelectedMessageDateSource = response.messageListResponse.itemsList;\r\n getRecipients(vm.openedMessageTargyId);\r\n refreshList();\r\n vm.Message = null;\r\n $('#msgImg').css({'height': '0px'});\r\n maxSize();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function addUserCancel() {\r\n if (window.innerWidth < 768) {\r\n $('#recipients-wrapper').animate({'top': '-400px'}, 500, function() {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0'});\r\n });\r\n } else {\r\n $('#addUser').css({'left': '100%'});\r\n $('#recipient-container').css({'left': '0'});\r\n }\r\n $('#addUser div ul').slideUp(750);\r\n if (vm.newMessage) {\r\n vm.newMessage = false;\r\n vm.openedMessageTargyId = null;\r\n }\r\n vm.tempRec = [];\r\n vm.results = [];\r\n vm.searchInput = '';\r\n }\r\n\r\n function deleteImage(imgPath, feladoId) {\r\n if (vm.userid != feladoId) {\r\n log.errorMsg(gettextCatalog.getString('MsgDeleteImagePermission'));\r\n return;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('MsgDeleteImageAsk'),\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.DeleteMessageImage(JSON.stringify(imgPath)).then(function() {\r\n getMessages(vm.openedMessageTargyId);\r\n refreshList();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function searchUsers(key) {\r\n vm.results = [];\r\n let regex = new RegExp(key, 'gi');\r\n vm.recipientsList.forEach(function(item) {\r\n if (item.text.match(regex)) {\r\n vm.results.push(item);\r\n }\r\n });\r\n }\r\n\r\n function maxSize() {\r\n let height = $('html').height();\r\n if (window.innerWidth < 768) {\r\n $('#mainPage-message-wrapper').height(height - 82);\r\n $('#message-detail').height(height - 175);\r\n $('#recipients-wrapper').css({'top': '-400px'});\r\n } else {\r\n $('#mainPage-message-wrapper').height(height - 50);\r\n $('#message-detail').height(height - 145);\r\n $('#recipients-wrapper').css({'top': '0'});\r\n }\r\n }\r\n\r\n function recipientsListSm(action) {\r\n if (action == 'open') {\r\n $('#recipients-wrapper').animate({'top': '50px'});\r\n } else {\r\n $('#recipients-wrapper').animate({'top': '-400px'});\r\n }\r\n }\r\n\r\n function getUnreadMessageCount() {\r\n dataservice.GetUnreadMessageCount().then(function(data) {\r\n vm.unreadCount = data.res;\r\n });\r\n };\r\n\r\n function userFilter(id) {\r\n return vm.recipients.some(elem => elem.value == id);\r\n }\r\n\r\n function getSeenName(id) {\r\n var res = '';\r\n vm.recipients.forEach(elem => {\r\n if (elem.value == id) {\r\n res = elem.text;\r\n }\r\n });\r\n return res;\r\n }\r\n\r\n // EVENTEK\r\n // full címjegyzék eventek\r\n $('#addUser div').on('click', function() {\r\n if ($(this).children('ul').css('display') !== 'none') {\r\n $(this).children('ul').slideUp(750);\r\n } else {\r\n $('#addUser div ul').slideUp(750);\r\n $(this).children('ul').slideDown(750);\r\n }\r\n });\r\n $('#addUser div ul').on('click', function(e) {\r\n e.stopPropagation();\r\n });\r\n\r\n // csatolt képek megjelenítése küldés előtt\r\n $timeout(function() {\r\n $('#addFile').on('change', function() {\r\n $('#messageInput').prop('disabled', true);\r\n });\r\n $scope.$apply();\r\n }, 100);\r\n\r\n window.addEventListener('resize', () => {\r\n maxSize();\r\n });\r\n\r\n window.addEventListener('keypress', (e) => {\r\n if (e.key == 'Enter') {\r\n e.preventDefault();\r\n vm.messageSend();\r\n }\r\n });\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.messageCenter')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'messageCenter',\r\n config: {\r\n url: '/messageCenter',\r\n templateUrl: 'app/messageCenter/messageCenter.html',\r\n controller: 'MessageCenterController',\r\n controllerAs: 'vm',\r\n title: 'MessageCenter',\r\n settings: {\r\n navId: 9,\r\n level: 1,\r\n order: 9,\r\n parentId: 0,\r\n content: 'MessageCenter',\r\n faIcon: 'fa-comments',\r\n permission: ['0', '1', '2', '3', '4', '5', '6'],\r\n activatorPermission: ['\"UZENETMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.other.files')\r\n .controller('FilesController', FilesController);\r\n\r\n function FilesController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, paramHelper, DOMAIN) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = $rootScope.title + gettextCatalog.getString('Contracts');\r\n vm.title = gettextCatalog.getString('Contracts');\r\n\r\n //grid adatai\r\n vm.data = [];\r\n vm.columns = [{\r\n field: 'Id',\r\n visible: false,\r\n isPrimaryKey: true,\r\n isIdentity: true\r\n },\r\n {\r\n field: 'Filenev',\r\n headerText: gettextCatalog.getString('Filename'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n template: '#fitemplateDataColumn1',\r\n width: 150\r\n },\r\n {\r\n field: 'Datum',\r\n headerText: gettextCatalog.getString('Date'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n }\r\n ];\r\n\r\n vm.selectedRow = -1;\r\n vm.deleteFile = deleteFile;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectedRowIndex: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n angular.element('#UploadDefault').ejUploadbox({\r\n saveUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileUpload',\r\n removeUrl: DOMAIN.baseURL + DOMAIN.webService + 'FileRemove',\r\n uploadName: 'Uploadbox',\r\n allowDragAndDrop: false,\r\n autoUpload: true,\r\n buttonText: {browse: gettextCatalog.getString('ChooseFile'), upload: gettextCatalog.getString('UploadFile'), cancel: gettextCatalog.getString('CancelUpload')},\r\n dialogAction: {modal: true, closeOnComplete: true, resize: false, drag: false},\r\n dialogText: {title: gettextCatalog.getString('UploadedFilesTitle'), name: gettextCatalog.getString('FileName'), size: gettextCatalog.getString('FileSize'), status: gettextCatalog.getString('FileStatus')},\r\n dropAreaText: gettextCatalog.getString('DropFileToUpload'),\r\n extensionsAllow: '.doc,.docx,.pdf,.xls,.mp4,.avi',\r\n complete: function () {\r\n log.successMsg(gettextCatalog.getString('UploadSuccessed'));\r\n getFiles();\r\n },\r\n error: function (args) {\r\n var err = '';\r\n if (args.error === 'Only files with .doc, .docx, .pdf, .xls, .mp4, .avi extensions are allowed.') {\r\n err = gettextCatalog.getString('OnlyDocPdfXls');\r\n } else if (args.error === '500 Internal Server Error') {\r\n err = gettextCatalog.getString('ToLongFile');\r\n }\r\n log.htmlError(gettextCatalog.getString('UploadError') + '<br>' + err);\r\n },\r\n begin: function (args) {\r\n args.data = {tipus: vm.tipus, tablaId: vm.tablaId};\r\n }\r\n });\r\n\r\n var promises = [paramHelper.getParams([], ['files.tipus', 'files.tablaId', 'weeklyTrainingPlan.edzoId', 'weeklyTrainingPlan.szakosztalyId', 'weeklyTrainingPlan.korosztalyId', 'weeklyTrainingPlan.ev', 'weeklyTrainingPlan.trainingPlanId', 'weeklyTrainingPlan.edzoNev', 'weeklyTrainingPlan.szakosztalyNev', 'weeklyTrainingPlan.korosztalyNev'])];\r\n\r\n return $q.all(promises).then(function (results) {\r\n if (angular.isDefined(results[0]['files.tipus'])) {\r\n vm.tipus = results[0]['files.tipus'];\r\n }\r\n if (angular.isDefined(results[0]['files.tablaId'])) {\r\n vm.tablaId = results[0]['files.tablaId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.edzoId'])) {\r\n vm.selectedCoach = results[0]['weeklyTrainingPlan.edzoId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.edzoNev'])) {\r\n vm.coachName = results[0]['weeklyTrainingPlan.edzoNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.szakosztalyId'])) {\r\n vm.selectedSection = results[0]['weeklyTrainingPlan.szakosztalyId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.szakosztalyNev'])) {\r\n vm.sectionName = results[0]['weeklyTrainingPlan.szakosztalyNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.korosztalyId'])) {\r\n vm.selectedAgeGroup = results[0]['weeklyTrainingPlan.korosztalyId'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.korosztalyNev'])) {\r\n vm.ageGroupName = results[0]['weeklyTrainingPlan.korosztalyNev'];\r\n }\r\n if (angular.isDefined(results[0]['weeklyTrainingPlan.ev'])) {\r\n vm.selectedYear = results[0]['weeklyTrainingPlan.ev'];\r\n }\r\n getFiles();\r\n });\r\n }\r\n\r\n function getFiles() {\r\n dataservice.getFilesList(vm.tipus, vm.tablaId).then(\r\n function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function deleteFile() {\r\n if (grid.getSelectedRowIndexes().size === 0) {\r\n log.errorMsg('SelectFile');\r\n return;\r\n }\r\n\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected file?'),\r\n text: gettextCatalog.getString('You will not be able to recover it!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this file'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteFiles(vm.data[grid.getSelectedRowIndexes()[0]].Id).then(\r\n function() {\r\n log.successMsg(gettextCatalog.getString('FileDeleted'));\r\n getFiles();\r\n }\r\n );\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.other.files')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'other.files',\r\n config: {\r\n url: '/files',\r\n templateUrl: 'app/other/files/files.html',\r\n controller: 'FilesController',\r\n controllerAs: 'vm'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.other')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'other',\r\n config: {\r\n title: 'Other',\r\n url: '/other',\r\n templateUrl: 'app/other/other.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.paint')\r\n .controller('PaintController', DashboardController);\r\n\r\n function DashboardController($q, dataservice, log, DOMAIN, $location, paramHelper, $state, $scope, authenticationService, gettextCatalog, $rootScope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Paint');\r\n\r\n vm.enabledResizeRotate = false;\r\n var canvas;\r\n var ctx;\r\n var interval = null;\r\n\r\n var WIDTH = $('#canvasWrapper').width() - 17;\r\n var HEIGHT = WIDTH / 594 * 319;\r\n\r\n var scaleWidth = 1;\r\n var scaleHeight = 1;\r\n /*\r\n Modes:\r\n 0 - Pen\r\n 1 - Select\r\n 2 - Resize\r\n 3 - Rotate\r\n */\r\n vm.activeMode = 1;\r\n\r\n var paintId = null;\r\n vm.public = false;\r\n vm.sectionDropDownEnabled = true;\r\n vm.checkBoxEnabled = false;\r\n vm.deleteEnabled = false;\r\n\r\n vm.clickedElement = null;\r\n var clickedElementIndex = -1;\r\n\r\n var maxUndoStates = 10;\r\n var lineSize = 3;\r\n vm.background = 6;\r\n var arrowPointRadius = 15;\r\n var lineId = 0;\r\n var color = '#000000';\r\n var textColor = '#ffffff';\r\n var fontSize = 18;\r\n var font = fontSize + 'pt Arial';\r\n vm.label = '';\r\n var objectCounter = 0;\r\n\r\n var imageWidth = WIDTH;\r\n var imageHeight = HEIGHT;\r\n var imageObj = null;\r\n\r\n // Visszavonáshoz\r\n var stateLast = true;\r\n vm.stateId = -1;\r\n var states = [];\r\n\r\n // Animációhoz\r\n var selectedAnimationId = -1;\r\n vm.animationStates = [];\r\n\r\n // Mentés és betöltés\r\n vm.paintName = '';\r\n vm.sectionId = null;\r\n vm.agegroupId = null;\r\n vm.agegroupValue = null;\r\n vm.ageGroupList = [];\r\n\r\n var lines = [];\r\n var objects = [];\r\n\r\n function saveState() {\r\n if (stateLast === false) {\r\n for (var i = maxUndoStates; i > vm.stateId; i--) {\r\n states.splice(i, 1);\r\n }\r\n stateLast = true;\r\n }\r\n var stateTemp = {lines: $.extend(true, [], lines), objects: $.extend(true, [], objects), lineId: lineId};\r\n stateTemp.objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n if (vm.stateId < maxUndoStates) {\r\n states.push(stateTemp);\r\n vm.stateId++;\r\n } else {\r\n states.shift();\r\n states.push(stateTemp);\r\n }\r\n vm.redoEnable = false;\r\n scopeApply();\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(0, vm.sectionId).then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n $timeout(function () {\r\n if (vm.agegroupValue) {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.agegroupValue);\r\n vm.selectedAgeGroup = vm.agegroupValue;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n vm.sectionDataBound = function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n };\r\n\r\n vm.ageGroupDataBound = function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroup = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#agegroupDropDown').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n };\r\n\r\n vm.sectionSelect = function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n };\r\n\r\n vm.agegroupSelect = function agegroupSelect(args) {\r\n vm.agegroupId = args.value;\r\n };\r\n\r\n vm.undo = function undo() {\r\n if (vm.stateId > 0) {\r\n stateLast = false;\r\n vm.stateId--;\r\n lines = $.extend(true, [], states[vm.stateId].lines);\r\n objects = $.extend(true, [], states[vm.stateId].objects);\r\n lineId = states[vm.stateId].lineId;\r\n }\r\n vm.redoEnable = true;\r\n };\r\n\r\n vm.redo = function redo() {\r\n if (stateLast === false && vm.stateId + 1 < states.length) {\r\n vm.stateId++;\r\n lines = $.extend(true, [], states[vm.stateId].lines);\r\n objects = $.extend(true, [], states[vm.stateId].objects);\r\n lineId = states[vm.stateId].lineId;\r\n }\r\n if (stateLast === false && vm.stateId + 1 < states.length) {\r\n vm.redoEnable = true;\r\n } else {\r\n vm.redoEnable = false;\r\n }\r\n };\r\n\r\n var backgrounds = [{\r\n text: gettextCatalog.getString('FootballPitch'),\r\n src: '/images/football_pitch.png',\r\n value: 1\r\n },\r\n {text: gettextCatalog.getString('Grass'), src: '/images/green_background.png', value: 2},\r\n {text: gettextCatalog.getString('BasketballCourt'), src: '/images/basketball_court.png', value: 3},\r\n {text: gettextCatalog.getString('HandballCourt'), src: '/images/handball_court.png', value: 4},\r\n {text: gettextCatalog.getString('HockeyRink'), src: '/images/hockey_rink.jpeg', value: 5},\r\n {text: gettextCatalog.getString('NoBackground'), src: '/images/none.png', value: 6}];\r\n\r\n function init() {\r\n getSections();\r\n // Háttér választó\r\n $('#Background').ejDropDownList({\r\n dataSource: backgrounds,\r\n value: vm.background,\r\n template: '<div><img src=\"${src}\" style=\"height: 30px;margin-right: 1em;\"/>${text}</div>',\r\n change: backgroundChanged,\r\n enabled: vm.checkBoxEnabled,\r\n width: 250\r\n });\r\n\r\n // Vonal vastagság választó\r\n $('#LineSize').ejDropDownList({\r\n dataSource: [{text: gettextCatalog.getString('LineSize1'), src: '/images/line_size_1.png', value: 1},\r\n {text: gettextCatalog.getString('LineSize2'), src: '/images/line_size_3.png', value: 3},\r\n {text: gettextCatalog.getString('LineSize3'), src: '/images/line_size_5.png', value: 5}],\r\n value: lineSize,\r\n template: '<div><img src=\"${src}\"/></div>',\r\n change: penWidthChanged,\r\n enabled: vm.checkBoxEnabled,\r\n width: 200\r\n });\r\n\r\n // Háttérszínválasztó\r\n $('#Color').ejColorPicker({\r\n value: color,\r\n enableOpacity: false,\r\n change: colorChanged,\r\n enabled: vm.checkBoxEnabled,\r\n modelType: 'Palette'\r\n });\r\n\r\n // Szövegszínválasztó\r\n $('#TextColor').ejColorPicker({\r\n value: textColor,\r\n enableOpacity: false,\r\n change: textColorChanged,\r\n enabled: vm.checkBoxEnabled,\r\n modelType: 'Palette'\r\n });\r\n\r\n // Canvas létrehozása\r\n canvas = document.getElementById('canvas');\r\n // Szélesség a maximális szélesség\r\n canvas.width = WIDTH;\r\n // Magasság alapértelmezett\r\n canvas.height = WIDTH / 594 * 319;\r\n // Context mentése\r\n ctx = canvas.getContext('2d');\r\n // Vonalvastagás, betűtípus, betűméret beállítása\r\n ctx.lineSize = lineSize;\r\n ctx.font = '16px Arial';\r\n // Click esemény beállítása\r\n canvas.onmousedown = canvasClicked;\r\n\r\n //paramHelper.setParams([{'Paint.id': 3}]);\r\n paramHelper.getParams([], ['Paint.id']).then(function (result) {\r\n paintId = result['Paint.id'];\r\n // paintId = 3;\r\n paramHelper.removeParam('Paint.id');\r\n if (paintId) {\r\n dataservice.getPaint({id: paintId}).then(function (res) {\r\n vm.authData = authenticationService.getAuthData();\r\n vm.sectionDropDownEnabled = false;\r\n var response = res.retValue;\r\n if (response.userId === parseInt(vm.authData.id)) {\r\n vm.checkBoxEnabled = true;\r\n vm.deleteEnabled = true;\r\n $('#Background').ejDropDownList('enable');\r\n $('#LineSize').ejDropDownList('enable');\r\n $('#Color').ejColorPicker('enable');\r\n }\r\n var data = JSON.parse(response.data);\r\n vm.paintName = response.paintName;\r\n vm.sectionId = response.sectionId;\r\n vm.sectionSelect({value: vm.sectionId});\r\n vm.agegroupId = response.agegroupId;\r\n vm.agegroupValue = response.agegroupId;\r\n vm.selectedAgeGroup = response.agegroupId;\r\n lineId = data.lineId;\r\n objectCounter = data.objectCounter;\r\n ctx.scale(WIDTH / data.imageWidth, HEIGHT / data.imageHeight);\r\n scaleWidth = WIDTH / data.imageWidth;\r\n scaleHeight = HEIGHT / data.imageHeight;\r\n imageWidth = data.imageWidth;\r\n imageHeight = data.imageHeight;\r\n $('#Background').ejDropDownList('selectItemByValue', data.background);\r\n vm.public = response.publikus;\r\n data.animationStates.forEach(function (el) {\r\n el.objects.forEach(function (el2) {\r\n if (el2.type === 'ball') {\r\n var tmp = el2.image;\r\n el2.image = new Image();\r\n el2.image.src = tmp;\r\n }\r\n });\r\n });\r\n vm.animationStates = data.animationStates;\r\n lines = data.lines;\r\n data.objects.forEach(function (el) {\r\n if (el.type === 'ball') {\r\n var tmp = el.image;\r\n el.image = new Image();\r\n el.image.src = tmp;\r\n }\r\n });\r\n objects = data.objects;\r\n });\r\n }\r\n\r\n // Kirajzolás intervalból hivása\r\n saveState();\r\n interval = setInterval(draw, 10);\r\n });\r\n }\r\n\r\n // Rajzoló metódusok\r\n // Kör\r\n function circle(x, y, r) {\r\n ctx.beginPath();\r\n ctx.arc(x, y, r, 0, 2 * Math.PI, false);\r\n ctx.fill();\r\n ctx.stroke();\r\n }\r\n\r\n // Téglalap\r\n function rect(x, y, w, h) {\r\n ctx.beginPath();\r\n ctx.rect(x, y, w, h);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function triangle(x, y, w, h) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(x, y + h);\r\n ctx.lineTo(x + w, y + h);\r\n ctx.lineTo(x + w / 2, y);\r\n ctx.lineTo(x, y + h);\r\n ctx.lineTo(x + w, y + h);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function pentagon(x, y, w) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n var numberOfSides = 5;\r\n var size = w * 0.6;\r\n var Xcenter = x;\r\n var Ycenter = y;\r\n\r\n ctx.beginPath();\r\n ctx.moveTo(Xcenter + size * Math.cos(0), Ycenter + size * Math.sin(0));\r\n\r\n for (var i = 1; i <= numberOfSides; i += 1) {\r\n ctx.lineTo(Xcenter + size * Math.cos(i * 2 * Math.PI / numberOfSides), Ycenter + size * Math.sin(i * 2 * Math.PI / numberOfSides));\r\n }\r\n\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Vonal\r\n function line(x1, y1, x2, y2) {\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(x1, y1);\r\n ctx.lineTo(x2, y2);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Szaggatott vonal\r\n function dashedLine(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([5, 5]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Szaggatott vonal\r\n function dashedLine2(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([10, 5]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Nyíl\r\n function arrow(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.moveTo(fromx, fromy);\r\n ctx.lineTo(tox, toy);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(tox - headlen * Math.cos(angle + Math.PI / 7), toy - headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(tox, toy);\r\n ctx.lineTo(tox - headlen * Math.cos(angle - Math.PI / 7), toy - headlen * Math.sin(angle - Math.PI / 7));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n function sine(fromx, fromy, tox, toy) {\r\n //variables to be used when creating the arrow\r\n\r\n var oFromx = fromx;\r\n var oFromy = fromy;\r\n\r\n tox = tox - fromx;\r\n fromx = 0;\r\n toy = toy - fromy;\r\n fromy = 0;\r\n\r\n var headlen = 10;\r\n\r\n var angle = Math.atan2(toy - fromy, tox - fromx);\r\n\r\n //starting path of the arrow from the start square to the end square and drawing the stroke\r\n ctx.beginPath();\r\n ctx.setLineDash([0, 0]);\r\n ctx.lineJoin = 'round';\r\n\r\n var unit = 3;\r\n var x = fromx;\r\n var y = Math.sin(x);\r\n\r\n var cosalfa = Math.cos(angle);\r\n var sinalfa = Math.sin(angle);\r\n\r\n var length = Math.sqrt(Math.pow(tox - fromx, 2) + Math.pow(toy - fromy, 2));\r\n\r\n ctx.moveTo(fromx + oFromx, unit * y + fromy + oFromy);\r\n\r\n var newX;\r\n var newY;\r\n\r\n // Loop to draw segments\r\n for (var i = 0; i <= length; i += 1) {\r\n x = i / unit;\r\n y = Math.sin(x);\r\n\r\n var oldX = fromx + i;\r\n var oldY = unit * y + fromy;\r\n\r\n newX = oldX * cosalfa - oldY * sinalfa;\r\n newY = oldX * sinalfa + oldY * cosalfa;\r\n\r\n ctx.lineTo(newX + oFromx, newY + oFromy);\r\n }\r\n\r\n ctx.stroke();\r\n ctx.closePath();\r\n ctx.beginPath();\r\n\r\n x = newX + oFromx - headlen / 2 * Math.cos(angle + Math.PI / 2);\r\n y = newY + oFromy - headlen / 2 * Math.sin(angle + Math.PI / 2);\r\n\r\n //starting a new path from the head of the arrow to one of the sides of the point\r\n ctx.moveTo(x, y);\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 2), y + headlen * Math.sin(angle + Math.PI / 2));\r\n\r\n //path from the side point of the arrow, to the other side point\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 7), y + headlen * Math.sin(angle + Math.PI / 7));\r\n\r\n //path from the side point back to the tip of the arrow, and then again to the opposite side point\r\n ctx.lineTo(x, y);\r\n ctx.lineTo(x + headlen * Math.cos(angle + Math.PI / 2), y + headlen * Math.sin(angle + Math.PI / 2));\r\n\r\n //draws the paths created above\r\n ctx.stroke();\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n\r\n // Canvas törlése\r\n function clear() {\r\n ctx.clearRect(0, 0, WIDTH, HEIGHT);\r\n }\r\n\r\n // Vonalvastagság változik\r\n function penWidthChanged(args) {\r\n lineSize = args.value;\r\n }\r\n\r\n // Szín változik\r\n function colorChanged(args) {\r\n color = args.value;\r\n }\r\n\r\n // Szín változik\r\n function textColorChanged(args) {\r\n textColor = args.value;\r\n }\r\n\r\n // Klikk esemény\r\n function canvasClicked(e) {\r\n if (!vm.checkBoxEnabled) {\r\n return;\r\n }\r\n // Ha kijelölő mód aktív\r\n if (vm.activeMode !== 0) {\r\n // x, y koordináta meghatározása\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n var y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n // előző kijelölés törlése\r\n clearClicked();\r\n // kijelölt elem megkeresése\r\n objects.forEach(function (element, index) {\r\n if (element.type === 'rect' || element.type === 'triangle' || element.type === 'pentagon') {\r\n if (x < element.x + (element.width / 2) && x > element.x - (element.width / 2) &&\r\n y < element.y + (element.height / 2) && y > element.y - (element.height / 2)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'circle') {\r\n if (Math.pow(x - element.x, 2) + Math.pow(y - element.y, 2) < Math.pow(element.r, 2)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'arrow' || element.type === 'line' || element.type === 'dline' || element.type === 'dline2' || element.type === 'sine') {\r\n if (x < element.x1 + arrowPointRadius && x > element.x1 - arrowPointRadius &&\r\n y < element.y1 + arrowPointRadius && y > element.y1 - arrowPointRadius) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveArrowStart;\r\n canvas.onmouseup = moveEnd;\r\n } else if ((x < element.x2 + arrowPointRadius && x > element.x2 - arrowPointRadius &&\r\n y < element.y2 + arrowPointRadius && y > element.y2 - arrowPointRadius)) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n canvas.onmousemove = moveArrorEnd;\r\n canvas.onmouseup = moveEnd;\r\n } else if (isPointOnSection({x: element.x1, y: element.y1}, {\r\n x: element.x2,\r\n y: element.y2\r\n }, {x: x, y: y})) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n old.x = x;\r\n old.y = y;\r\n canvas.onmousemove = moveArrow;\r\n canvas.onmouseup = moveEnd;\r\n } else {\r\n element.clicked = false;\r\n }\r\n } else if (element.type === 'ball') {\r\n var w = element.width / 2;\r\n var h = element.height / 2;\r\n\r\n var originX = element.x - w;\r\n var originY = element.y - h;\r\n\r\n var x1 = rotate(originX, originY, element.x - w, element.y + h, element.rotate);\r\n var x2 = rotate(originX, originY, element.x + w, element.y + h, element.rotate);\r\n var x3 = rotate(originX, originY, element.x + w, element.y - h, element.rotate);\r\n var x4 = rotate(originX, originY, element.x - w, element.y - h, element.rotate);\r\n\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x1[0],\r\n // y: x1[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'red',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x2[0],\r\n // y: x2[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'yellow',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x3[0],\r\n // y: x3[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'orange',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n // objects.push({\r\n // id: objectCounter++,\r\n // type: 'rect',\r\n // x: x4[0],\r\n // y: x4[1],\r\n // width: 4,\r\n // height: 4,\r\n // color: 'brown',\r\n // textColor: textColor,\r\n // clicked: false,\r\n // lineSize: lineSize\r\n // });\r\n\r\n var maxX = Math.max(x1[0], x2[0], x3[0], x4[0]);\r\n var maxY = Math.max(x1[1], x2[1], x3[1], x4[1]);\r\n var minX = Math.min(x1[0], x2[0], x3[0], x4[0]);\r\n var minY = Math.min(x1[1], x2[1], x3[1], x4[1]);\r\n\r\n if (x > minX && x < maxX && y > minY && y < maxY) {\r\n clearClicked();\r\n vm.clickedElement = element;\r\n clickedElementIndex = index;\r\n vm.clickedElement.clicked = true;\r\n vm.label = element.label;\r\n if (vm.clickedElement.canResizeRotate) {\r\n vm.enabledResizeRotate = true;\r\n }\r\n if (vm.activeMode === 1) {\r\n canvas.onmousemove = moveObject;\r\n canvas.onmouseup = moveEnd;\r\n } else if (vm.activeMode === 2) {\r\n oldResizeX = x;\r\n canvas.onmousemove = resizeObject;\r\n canvas.onmouseup = moveEnd;\r\n } else if (vm.activeMode === 3) {\r\n oldRotateX = x;\r\n canvas.onmousemove = rotateObject;\r\n canvas.onmouseup = moveEnd;\r\n }\r\n } else {\r\n element.clicked = false;\r\n }\r\n }\r\n });\r\n // Ha rajz mód aktív\r\n } else if (vm.activeMode === 0) {\r\n lines[lineId] = {points: [], lineSize: lineSize, color: color};\r\n canvas.onmousemove = drawPen;\r\n canvas.onmouseup = stopDrawPen;\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function rotate(cx, cy, x, y, angle) {\r\n var radians = (Math.PI / 180) * angle;\r\n var cos = Math.cos(radians);\r\n var sin = Math.sin(radians);\r\n var nx = (cos * (x - cx)) - (sin * (y - cy)) + cx;\r\n var ny = (sin * (x - cx)) + (cos * (y - cy)) + cy;\r\n return [nx, ny];\r\n }\r\n\r\n function draw() {\r\n clear();\r\n if (imageObj) {\r\n ctx.drawImage(imageObj, 0, 0, imageWidth, imageHeight);\r\n }\r\n var oldFont = ctx.font;\r\n objects.forEach(function (element) {\r\n ctx.lineWidth = element.lineSize;\r\n if (element.clicked === false) {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = element.color;\r\n } else {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = '#991111';\r\n }\r\n if (element.type === 'rect') {\r\n rect(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - fontSize / 2);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'pentagon') {\r\n pentagon(element.x, element.y, element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - fontSize / 2);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'triangle') {\r\n triangle(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - 3);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'line') {\r\n line(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'sine') {\r\n sine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'dline') {\r\n dashedLine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n } else if (element.type === 'dline2') {\r\n dashedLine2(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n } else if (element.type === 'arrow') {\r\n arrow(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n } else if (element.type === 'circle') {\r\n circle(element.x, element.y, element.r);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + 10);\r\n ctx.font = oldFont;\r\n }\r\n } else if (element.type === 'ball') {\r\n var x = element.x - (element.width / 2);\r\n var y = element.y - (element.height / 2);\r\n\r\n ctx.translate(x, y);\r\n ctx.rotate(element.rotate * (Math.PI / 180));\r\n ctx.drawImage(element.image, 0, 0, element.width, element.height);\r\n\r\n if (element.clicked) {\r\n ctx.lineWidth = 2;\r\n ctx.strokeRect(0, 0, element.width, element.height);\r\n ctx.lineWidth = lineSize;\r\n }\r\n if (element.label) {\r\n ctx.fillText(element.label, 0, -5);\r\n }\r\n ctx.rotate(-element.rotate * (Math.PI / 180));\r\n ctx.translate(-x, -y);\r\n }\r\n });\r\n\r\n for (var i = 0; i < lines.length; i++) {\r\n for (var j = 0; j + 1 < lines[i].points.length; j++) {\r\n ctx.lineWidth = lines[i].lineSize;\r\n ctx.fillStyle = lines[i].color;\r\n ctx.strokeStyle = lines[i].color;\r\n line(lines[i].points[j].x, lines[i].points[j].y, lines[i].points[j + 1].x, lines[i].points[j + 1].y);\r\n }\r\n }\r\n }\r\n\r\n function drawThis(obs) {\r\n clear();\r\n if (imageObj) {\r\n ctx.drawImage(imageObj, 0, 0, imageWidth, imageHeight);\r\n }\r\n obs.objects.forEach(function (element) {\r\n ctx.lineWidth = element.lineSize;\r\n if (element.clicked === false) {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = element.color;\r\n } else {\r\n ctx.fillStyle = element.color;\r\n ctx.strokeStyle = '#991111';\r\n }\r\n if (element.type === 'rect') {\r\n rect(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x - (element.width / 2), element.y - (element.height / 2) - fontSize / 2);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'triangle') {\r\n triangle(element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x, element.y + (element.height / 2) - 3);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'line') {\r\n line(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'dline') {\r\n dashedLine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'dline2') {\r\n dashedLine2(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'arrow') {\r\n arrow(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'sine') {\r\n sine(element.x1, element.y1, element.x2, element.y2);\r\n if (element.label) {\r\n if (element.label) {\r\n if (element.y2 < element.y1) {\r\n ctx.fillText(element.label, element.x1, element.y1 + 16);\r\n } else {\r\n ctx.fillText(element.label, element.x1, element.y1 - 5);\r\n }\r\n }\r\n }\r\n element.x1 += element.deltaX1;\r\n element.y1 += element.deltaY1;\r\n element.x2 += element.deltaX2;\r\n element.y2 += element.deltaY2;\r\n } else if (element.type === 'circle') {\r\n circle(element.x, element.y, element.r);\r\n if (element.label) {\r\n ctx.font = font;\r\n ctx.fillStyle = element.textColor;\r\n ctx.textAlign = 'center';\r\n ctx.fillText(element.label, element.x - (element.r / 2), element.y - element.r - 5);\r\n }\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n } else if (element.type === 'ball') {\r\n var x = element.x - (element.width / 2);\r\n var y = element.y - (element.height / 2);\r\n\r\n ctx.translate(x, y);\r\n ctx.rotate(element.rotate * (Math.PI / 180));\r\n // ctx.drawImage(element.image, element.x - (element.width / 2), element.y - (element.height / 2), element.width, element.height);\r\n ctx.drawImage(element.image, 0, 0, element.width, element.height);\r\n\r\n if (element.clicked) {\r\n ctx.lineWidth = 2;\r\n ctx.strokeRect(0, 0, element.width, element.height);\r\n ctx.lineWidth = lineSize;\r\n }\r\n if (element.label) {\r\n ctx.fillText(element.label, 0, -5);\r\n }\r\n ctx.rotate(-element.rotate * (Math.PI / 180));\r\n ctx.translate(-x, -y);\r\n element.x += element.deltaX;\r\n element.y += element.deltaY;\r\n }\r\n });\r\n\r\n for (var i = 0; i < obs.lines.length; i++) {\r\n for (var j = 0; j + 1 < obs.lines[i].points.length; j++) {\r\n ctx.lineWidth = obs.lines[i].lineSize;\r\n ctx.fillStyle = obs.lines[i].color;\r\n ctx.strokeStyle = obs.lines[i].color;\r\n line(obs.lines[i].points[j].x, obs.lines[i].points[j].y, obs.lines[i].points[j + 1].x, obs.lines[i].points[j + 1].y);\r\n }\r\n }\r\n }\r\n\r\n // Kijelölés törlése\r\n function clearClicked() {\r\n vm.enabledResizeRotate = false;\r\n vm.label = '';\r\n vm.clickedElement = null;\r\n clickedElementIndex = -1;\r\n objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n }\r\n\r\n var oldResizeX = 0;\r\n\r\n function resizeObject(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n\r\n var resizeScale = vm.clickedElement.height / vm.clickedElement.width;\r\n vm.clickedElement.width += x - oldResizeX;\r\n vm.clickedElement.height += (x - oldResizeX) * resizeScale;\r\n oldResizeX = x;\r\n }\r\n\r\n var oldRotateX = 0;\r\n\r\n function rotateObject(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.rotate += (x - oldRotateX) * 2;\r\n oldRotateX = x;\r\n }\r\n\r\n // Mozgatások\r\n function moveObject(e) {\r\n if (vm.clickedElement.rotate) {\r\n vm.clickedElement.x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n } else {\r\n vm.clickedElement.x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y = (e.pageY - canvas.offsetTop) / scaleHeight;\r\n }\r\n }\r\n\r\n function moveArrowStart(e) {\r\n vm.clickedElement.x1 = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y1 = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n }\r\n\r\n function moveArrorEnd(e) {\r\n vm.clickedElement.x2 = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n vm.clickedElement.y2 = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n }\r\n\r\n var old = {x: 0, y: 0};\r\n\r\n function moveArrow(e) {\r\n var x = (e.pageX - canvas.offsetLeft) / scaleWidth;\r\n var y = (e.pageY - canvas.offsetTop) / scaleWidth;\r\n vm.clickedElement.x1 += x - old.x;\r\n vm.clickedElement.y1 += y - old.y;\r\n vm.clickedElement.x2 += x - old.x;\r\n vm.clickedElement.y2 += y - old.y;\r\n old.x = x;\r\n old.y = y;\r\n }\r\n\r\n // Vonal új pontjának mentése\r\n function drawPen(e) {\r\n var x = e.pageX - canvas.offsetLeft;\r\n var y = e.pageY - canvas.offsetTop;\r\n lines[lineId].points.push({x: x, y: y});\r\n }\r\n\r\n // Aktuális vonal vége\r\n function stopDrawPen() {\r\n lineId++;\r\n canvas.onmousemove = null;\r\n canvas.onmouseup = null;\r\n saveState();\r\n }\r\n\r\n // Mozgatás vége\r\n function moveEnd() {\r\n canvas.onmousemove = null;\r\n canvas.onmouseup = null;\r\n saveState();\r\n }\r\n\r\n // Rajzoló mód aktiválása\r\n vm.pen = function () {\r\n vm.activeMode = 0;\r\n clearClicked();\r\n };\r\n\r\n // Kiválasztó mód aktiválása\r\n vm.select = function () {\r\n vm.activeMode = 1;\r\n clearClicked();\r\n };\r\n\r\n // Kijelölt elem törlése\r\n vm.deleteObject = function () {\r\n if (clickedElementIndex !== -1) {\r\n clearClicked();\r\n objects.splice(clickedElementIndex, 1);\r\n saveState();\r\n }\r\n };\r\n\r\n // Hozzáadások\r\n vm.addRect = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'rect',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addTriangle = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'triangle',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addPentagon = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'pentagon',\r\n x: 500,\r\n y: 100,\r\n width: 40,\r\n height: 40,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addCircle = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'circle',\r\n x: 500,\r\n y: 125,\r\n r: 20,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addLine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'line',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addDashedLine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'dline',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addDashedLine2 = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'dline2',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addArrow = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'arrow',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addSine = function () {\r\n objects.push({\r\n id: objectCounter++,\r\n type: 'sine',\r\n x1: 500,\r\n y1: 100,\r\n x2: 600,\r\n y2: 100,\r\n color: color,\r\n textColor: textColor,\r\n clicked: false,\r\n lineSize: lineSize\r\n });\r\n saveState();\r\n };\r\n\r\n vm.addFootball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/football_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addBasketball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/basketball_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addHandball = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/handball_ball.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addCone = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 30,\r\n height: 30,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/cone.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addHockeyPuck = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 20,\r\n height: 20,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/hockey_puck.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n vm.addGoal1 = function () {\r\n var ball = {\r\n id: objectCounter++,\r\n type: 'ball',\r\n image: new Image(),\r\n x: 500,\r\n y: 100,\r\n width: 50,\r\n height: 100,\r\n rotate: 0,\r\n canResizeRotate: true\r\n };\r\n ball.image.src = '/images/goal1.png';\r\n objects.push(ball);\r\n saveState();\r\n };\r\n\r\n // Pont és pont távolsága\r\n function pointPointDistance(p1, p2) {\r\n return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));\r\n }\r\n\r\n // Pitagorasz (hiányzó befogó hossza)\r\n function pitagorasz(atfogo, befogo) {\r\n return Math.sqrt(Math.pow(atfogo, 2) - Math.pow(befogo, 2));\r\n }\r\n\r\n // Pont a vonalon van?\r\n function isPointOnSection(p1, p2, p0) {\r\n // Vonaltól való távolság, amire még megfogható\r\n var diff = 10;\r\n // Számításból eredő hiba tűrés\r\n var errorDiff = 3;\r\n var sectionDistance = pointPointDistance(p1, p2);\r\n var d = Math.abs((p2.x - p1.x) * (p1.y - p0.y) - (p1.x - p0.x) * (p2.y - p1.y)) / Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p1.y - p2.y, 2));\r\n var sectionP1 = pitagorasz(pointPointDistance(p1, p0), d);\r\n var sectionP2 = pitagorasz(pointPointDistance(p2, p0), d);\r\n\r\n if ((sectionP1 + sectionP2 < (sectionDistance + errorDiff)) && (sectionP1 + sectionP2 > (sectionDistance - errorDiff))) {\r\n return d < diff;\r\n }\r\n return false;\r\n }\r\n\r\n //\r\n function backgroundChanged(args) {\r\n vm.background = args.value;\r\n if (args.value === 6) {\r\n imageObj = null;\r\n } else {\r\n imageObj = new Image();\r\n imageObj.src = backgrounds[args.value - 1].src;\r\n }\r\n }\r\n\r\n // Minden objektum törlése\r\n vm.deleteAll = function () {\r\n imageObj = null;\r\n imageWidth = WIDTH;\r\n imageHeight = HEIGHT;\r\n scaleHeight = 1;\r\n scaleWidth = 1;\r\n objects = [];\r\n lines = [];\r\n vm.animationStates = [];\r\n states = [];\r\n paintId = null;\r\n vm.sectionDropDownEnabled = true;\r\n clearClicked();\r\n stateLast = true;\r\n vm.stateId = -1;\r\n selectedAnimationId = -1;\r\n lineId = 0;\r\n vm.label = '';\r\n color = '#000000';\r\n vm.checkBoxEnabled = true;\r\n $('#Background').ejDropDownList('enable');\r\n $('#LineSize').ejDropDownList('enable');\r\n $('#Color').ejColorPicker('enable');\r\n $('#TextColor').ejColorPicker('enable');\r\n vm.deleteEnabled = false;\r\n scopeApply();\r\n saveState();\r\n };\r\n\r\n // Szín beállítása\r\n vm.getColor = function () {\r\n if (vm.clickedElement) {\r\n color = vm.clickedElement.color;\r\n $('#Color').ejColorPicker({\r\n value: vm.clickedElement.color,\r\n enableOpacity: false,\r\n change: colorChanged,\r\n modelType: 'Palette'\r\n });\r\n }\r\n };\r\n\r\n vm.changedLabel = function () {\r\n vm.clickedElement.label = vm.label;\r\n saveState();\r\n };\r\n\r\n vm.addAnimation = function () {\r\n clearClicked();\r\n selectedAnimationId++;\r\n var stateTemp = {lines: $.extend(true, [], lines), objects: $.extend(true, [], objects), lineId: lineId};\r\n stateTemp.objects.forEach(function (element) {\r\n element.clicked = false;\r\n });\r\n vm.animationStates.push(stateTemp);\r\n };\r\n\r\n vm.saveAnimation = function () {\r\n if (selectedAnimationId >= 0) {\r\n vm.animationStates[selectedAnimationId].lines = $.extend(true, [], lines);\r\n vm.animationStates[selectedAnimationId].objects = $.extend(true, [], objects);\r\n vm.animationStates[selectedAnimationId].lineId = lineId;\r\n }\r\n };\r\n\r\n function scopeApply() {\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n\r\n vm.deleteAnimation = function () {\r\n clearClicked();\r\n if (selectedAnimationId > -1) {\r\n vm.animationStates.splice(selectedAnimationId, 1);\r\n vm.selectAnimation(vm.animationStates.length - 1);\r\n scopeApply();\r\n }\r\n };\r\n\r\n vm.selectAnimation = function (index) {\r\n clearClicked();\r\n if (index > -1) {\r\n selectedAnimationId = index;\r\n lines = $.extend(true, [], vm.animationStates[index].lines);\r\n objects = $.extend(true, [], vm.animationStates[index].objects);\r\n lineId = vm.animationStates[index].lineId;\r\n }\r\n };\r\n\r\n var fps = 60;\r\n var drawTime = 1000 / fps;\r\n var intervalTimes = 0;\r\n var timePerState = 2;\r\n var animationList = [];\r\n var stateId = 0;\r\n vm.play = function (speed) {\r\n clearClicked();\r\n timePerState = speed;\r\n intervalTimes = 0;\r\n animationList = [];\r\n stateId = 0;\r\n // Csak akkor van animáció, amikor legalább két állapot van\r\n var statesLength = vm.animationStates.length;\r\n if (statesLength > 1) {\r\n for (var i = 0; i < (statesLength - 1); i++) {\r\n animationList.push({objects: [], lines: []});\r\n vm.animationStates[i].objects.forEach(function (element) {\r\n // Ha kell animálni\r\n var nextElement = vm.animationStates[i + 1].objects.find(function (nextElement) {\r\n return element.id === nextElement.id;\r\n });\r\n if (nextElement !== undefined) {\r\n // deltaX és deltaY kiszámolása\r\n if (element.type === 'rect' || element.type === 'circle' || element.type === 'ball') {\r\n var tmp = $.extend(true, [], element);\r\n tmp.deltaX = (nextElement.x - element.x) / (timePerState * fps);\r\n tmp.deltaY = (nextElement.y - element.y) / (timePerState * fps);\r\n animationList[i].objects.push(tmp);\r\n } else if (element.type === 'line' || element.type === 'dline' || element.type === 'dline2' || element.type === 'arrow' || element.type === 'sine') {\r\n var tmp = $.extend(true, [], element);\r\n tmp.deltaX1 = (nextElement.x1 - element.x1) / (timePerState * fps);\r\n tmp.deltaY1 = (nextElement.y1 - element.y1) / (timePerState * fps);\r\n tmp.deltaX2 = (nextElement.x2 - element.x2) / (timePerState * fps);\r\n tmp.deltaY2 = (nextElement.y2 - element.y2) / (timePerState * fps);\r\n animationList[i].objects.push(tmp);\r\n }\r\n animationList[i].lines = $.extend(true, [], vm.animationStates[i].lines);\r\n }\r\n });\r\n }\r\n clearInterval(interval);\r\n interval = setInterval(drawAnimation, drawTime);\r\n stateId = 0;\r\n intervalTimes = 0;\r\n }\r\n };\r\n\r\n function drawAnimation() {\r\n if (intervalTimes >= (vm.animationStates.length - 1) * timePerState * fps) {\r\n clearInterval(interval);\r\n interval = setInterval(draw, 10);\r\n vm.selectAnimation(vm.animationStates.length - 1);\r\n } else {\r\n if (intervalTimes % (timePerState * fps) === 0) {\r\n stateId++;\r\n }\r\n intervalTimes++;\r\n drawThis(animationList[stateId - 1]);\r\n }\r\n }\r\n\r\n vm.save = function () {\r\n $timeout(function () {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n } else {\r\n var data = {\r\n lineId: lineId,\r\n objectCounter: objectCounter,\r\n background: vm.background,\r\n imageWidth: imageWidth,\r\n imageHeight: imageHeight,\r\n animationStates: $.extend(true, [], vm.animationStates),\r\n lines: lines,\r\n objects: $.extend(true, [], objects)\r\n };\r\n data.objects.forEach(function (el) {\r\n if (el.type === 'ball') {\r\n el.image = el.image.src;\r\n }\r\n });\r\n data.animationStates.forEach(function (el) {\r\n el.objects.forEach(function (el2) {\r\n if (el2.type === 'ball') {\r\n el2.image = el2.image.src;\r\n }\r\n });\r\n });\r\n if (paintId) {\r\n dataservice.modifyPaint({\r\n paintId: paintId,\r\n publikus: vm.public,\r\n data: JSON.stringify(data)\r\n }).then(function () {\r\n vm.sectionDropDownEnabled = false;\r\n log.successMsg('PaintModified');\r\n });\r\n } else {\r\n dataservice.savePaint({\r\n paintName: vm.paintName,\r\n sectionId: vm.sectionId,\r\n agegroupId: vm.agegroupId,\r\n data: JSON.stringify(data)\r\n }).then(function (data) {\r\n paintId = data.res;\r\n vm.deleteEnabled = true;\r\n vm.sectionDropDownEnabled = false;\r\n log.successMsg('PaintSaved');\r\n });\r\n }\r\n }\r\n }, 0);\r\n };\r\n\r\n vm.publicCheckboxChanged = function (args) {\r\n vm.public = args.value;\r\n };\r\n\r\n vm.deletePaint = function () {\r\n swal({\r\n title: gettextCatalog.getString('DoYouWantDelete'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('YesIWantDelete'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deletePaint(paintId).then(function () {\r\n vm.deleteAll();\r\n log.successMsg('PaintDeleted');\r\n });\r\n }\r\n });\r\n };\r\n\r\n vm.resizeObject = function () {\r\n vm.activeMode = 2;\r\n };\r\n\r\n vm.rotateObject = function () {\r\n vm.activeMode = 3;\r\n };\r\n\r\n interval = init();\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.paint')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'paint',\r\n config: {\r\n url: '/paint/',\r\n templateUrl: 'app/paint/paint.html',\r\n controller: 'PaintController',\r\n controllerAs: 'vm',\r\n title: 'Paint',\r\n /*\r\n settings: {\r\n navId: 2162,\r\n level: 2,\r\n order: 16,\r\n parentId: 2,\r\n orderTitle_hu: 'Gyakorlat ábra tervező',\r\n orderTitle_en: 'Exercise Figure Creator',\r\n content: 'Paint'\r\n }\r\n */\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.parentDashboard')\r\n .controller('ParentDashboardController', ParentDashboardController);\r\n\r\n function ParentDashboardController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ParentDashboard');\r\n\r\n vm.athletesofuser = [];\r\n vm.selectedAthlete = undefined;\r\n vm.modifyAthleteData = modifyAthleteData;\r\n vm.athleteidOfAthleteUser = -1;\r\n vm.SPORTOLO = false;\r\n vm.SZULO = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO')])\r\n .then(function (results) {\r\n if (results[0] || results[1]) {\r\n vm.SPORTOLO = results[0];\r\n vm.SZULO = results[1];\r\n getAthletesOfUser();\r\n getAthleteIDofUser();\r\n // getParentNotifications(new Date(), new Date(), 0, true, true, 'all', 9999);\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function modifyAthleteData() {\r\n if (vm.SZULO) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.selectedAthlete}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.athleteidOfAthleteUser}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n }\r\n\r\n function getAthletesOfUser() {\r\n dataservice.getAthletesOfUser()\r\n .then(function (data) {\r\n vm.athletesofuser = data.itemsList;\r\n });\r\n }\r\n\r\n function getAthleteIDofUser() {\r\n dataservice.getAthleteidBelongsToAthleteUser()\r\n .then(function (data) {\r\n vm.athleteidOfAthleteUser = data.data;\r\n });\r\n }\r\n\r\n function getParentNotifications(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size) {\r\n dataservice.getParentNotifications2(fromDate, toDate, currentListSize, moreNewer, moreOlder, load, size).then(function (data) {\r\n console.log('getParentNotifications', data);\r\n });\r\n dataservice.ErtesitestLatta(-1).then(function (data) {\r\n console.log('ErtesitestLatta', data);\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.parentDashboard')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'parentDashboard',\r\n config: {\r\n url: '/parentDashboard',\r\n templateUrl: 'app/parentDashboard/parentDashboard.html',\r\n controller: 'ParentDashboardController',\r\n controllerAs: 'vm',\r\n title: 'ParentDashboard',\r\n settings: {\r\n navId: 12,\r\n level: 1,\r\n order: 11,\r\n parentId: 0,\r\n content: 'ParentDashboard',\r\n faIcon: 'fa-play',\r\n permission: ['5']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.parentMonthlyAttendance')\r\n .controller('ParentMonthlyAttendanceController', ParentMonthlyAttendanceController);\r\n\r\n function ParentMonthlyAttendanceController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('parentMonthlyAttendance');\r\n\r\n // Create variables\r\n vm.dateValue = new Date();\r\n vm.athleteList = [];\r\n vm.athleteId = '';\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {\r\n field: 'Nap',\r\n headerText: gettextCatalog.getString('Day'),\r\n textAlign: 'center',\r\n width: 115\r\n },\r\n {\r\n field: 'Igazolt',\r\n headerText: gettextCatalog.getString('Igazolt'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n width: 70\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.saveDate = saveDate;\r\n vm.athleteDataBound = athleteDataBound;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.gridRowSelected,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [];\r\n $q.all(promises)\r\n .then(function () {\r\n getAthletes();\r\n parentsAthleteAttendanceList();\r\n })\r\n .catch(function () {\r\n log.permissionError();\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getAthletes() {\r\n return dataservice.parentsAthletes().then(function (data) {\r\n vm.athleteList = data.itemsList;\r\n });\r\n }\r\n\r\n function athleteDataBound() {\r\n if (vm.athleteList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.athleteList[0].value);\r\n vm.athleteId = vm.athleteList[0].value;\r\n }\r\n }\r\n\r\n function parentsAthleteAttendanceList() {\r\n return dataservice.parentsAthleteAttendanceList().then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Nap');\r\n });\r\n }\r\n\r\n function saveDate() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.parentsAthleteAttendance(vm.athleteId, vm.dateValue).then(function () {\r\n log.successMsg('HianyzasBejelentve');\r\n parentsAthleteAttendanceList();\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.parentMonthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'parentMonthlyAttendance',\r\n config: {\r\n url: '/parentMonthlyAttendance',\r\n templateUrl: 'app/parentMonthlyAttendance/parentMonthlyAttendance.html',\r\n controller: 'ParentMonthlyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'parentMonthlyAttendance',\r\n settings: {\r\n navId: 1200,\r\n level: 1,\r\n order: 20,\r\n parentId: 0,\r\n content: 'parentMonthlyAttendance',\r\n faIcon: 'fa-heartbeat',\r\n permission: ['5']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.absenceReport')\r\n .controller('AbsenceReportController', AbsenceReportController);\r\n\r\n function AbsenceReportController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('AbsenceReport');\r\n vm.searchSPC = true;\r\n vm.searchPP = true;\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.search = search;\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.selectdateTo = new Date();\r\n vm.fromDateSelect = fromDateSelect;\r\n vm.toDateSelect = toDateSelect;\r\n vm.SelectedSectionID = -1;\r\n vm.SelectedCoachID = -1;\r\n\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120',\r\n template: '#abretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120',\r\n template: '#abretemplateDataColumn2'\r\n },\r\n {\r\n field: 'OsszEdzesekSzama',\r\n headerText: '*' + gettextCatalog.getString('SumNumberOfTrainings'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'JelenletSzazalek',\r\n headerText: '*' + gettextCatalog.getString('AttendancePercent'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '130'\r\n },\r\n {\r\n field: 'EdzesekSzama',\r\n headerText: gettextCatalog.getString('NumberOfTrainings'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '105'\r\n },\r\n {\r\n field: 'HianyzasokSzama',\r\n headerText: gettextCatalog.getString('NumberOfAbsence'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '130'\r\n },\r\n {\r\n field: 'IgazoltHianyzasokSzama',\r\n headerText: gettextCatalog.getString('ProvenNumberOfAbsence'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'BetegsegekSzama',\r\n headerText: gettextCatalog.getString('NumberOfSickness'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '140'\r\n },\r\n {\r\n field: 'SerulesekSzama',\r\n headerText: gettextCatalog.getString('NumberOfInjuries'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '120'\r\n },\r\n {\r\n field: 'VersenyekSzama',\r\n headerText: gettextCatalog.getString('NumberOfCompetition'),\r\n headerTextAlign: 'center',\r\n textAlign: 'center',\r\n width: '125'\r\n }\r\n ];\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $timeout(function () {\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.selectdateTo = new Date();\r\n $scope.$apply();\r\n });\r\n var promises = [authenticationService.getRight('HIANYZASMEGT')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'absenceReport.sectionId',\r\n 'absenceReport.coachId',\r\n 'absenceReport.selectdateFrom',\r\n 'absenceReport.selectdateTo',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.SelectedSectionID = results[0]['absenceReport.sectionId'] ? results[0]['absenceReport.sectionId'] : vm.SelectedSectionID;\r\n vm.SelectedCoachID = results[0]['absenceReport.coachId'] ? results[0]['absenceReport.coachId'] : vm.SelectedCoachID;\r\n vm.selectdateFrom = results[0]['absenceReport.selectdateFrom'] ? results[0]['absenceReport.selectdateFrom'] : vm.selectdateFrom;\r\n vm.selectdateTo = results[0]['absenceReport.selectdateTo'] ? results[0]['absenceReport.selectdateTo'] : vm.selectdateTo;\r\n });\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'absenceReport.sectionId': vm.SelectedSectionID},\r\n {'absenceReport.coachId': vm.SelectedCoachID},\r\n {'absenceReport.selectdateFrom': vm.selectdateFrom},\r\n {'absenceReport.selectdateTo': vm.selectdateTo},\r\n ]);\r\n dataservice.getAbsenceReport(vm.SelectedSectionID, 0, vm.SelectedCoachID, vm.selectdateFrom, vm.selectdateTo)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList(SelectedSectionID) {\r\n return dataservice.coachDropDownList(SelectedSectionID, 0, vm.selectdateFrom, vm.selectdateTo)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.SelectedCoachID);\r\n }\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.SelectedSectionID);\r\n }\r\n }\r\n\r\n function fromDateSelect() {\r\n getActualCoachesList(vm.SelectedSectionID);\r\n }\r\n\r\n function toDateSelect() {\r\n getActualCoachesList(vm.SelectedSectionID);\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.absenceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.absenceReport',\r\n config: {\r\n url: '/absenceReport',\r\n templateUrl: 'app/reports/absenceReport/absenceReport.html',\r\n controller: 'AbsenceReportController',\r\n controllerAs: 'vm',\r\n title: 'AbsenceReport',\r\n settings: {\r\n navId: 2154,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Hiányzások',\r\n orderTitle_en: 'Absence',\r\n parentId: 4,\r\n content: 'AbsenceReport',\r\n activatorPermission: ['\"HIANYZASMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports',\r\n config: {\r\n url: '/annualPresenceReports',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReports.html',\r\n title: 'AnnualPresenceReports',\r\n settings: {\r\n navId: 224,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Éves jelenléti kimutatások',\r\n orderTitle_en: 'Annual Attendance Reports',\r\n parentId: 4,\r\n content: 'AnnualPresenceReports',\r\n activatorPermission: ['\"KMEVESJELEDZO\"', '\"KMEVESJELSZO\"', '\"KMEVESJELSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySections')\r\n .controller('AnnualPresenceReportsBySectionsController', AnnualPresenceReportsBySectionsController);\r\n\r\n function AnnualPresenceReportsBySectionsController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, authenticationService, paramHelper, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsBySections');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.selectedSection = {};\r\n vm.sectionDataBound = [];\r\n vm.stackedHeaderRows = [];\r\n vm.summaryRows = [];\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {\r\n field: 'VersenyzoNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#columnTemplate'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugEdzes, AugJelen, AugHianyzik,AugSzazalek',\r\n {field: 'AugEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptEdzes, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.sectionSelect = sectionSelect;\r\n vm.goToNewCoach = goToNewCoach;\r\n vm.reportSelect = reportSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELEDZO')];\r\n $q.all(promises).then(function (res) {\r\n vm.KMEVESJELEDZO = res[0];\r\n if (!vm.KMEVESJELEDZO) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'aprbs.selectedSection',\r\n 'annualPresenceReports.year',\r\n 'annualPresenceReports.month'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['annualPresenceReports.year']) {\r\n vm.selectedYear = results[0]['annualPresenceReports.year'];\r\n }\r\n if (results[0]['annualPresenceReports.month']) {\r\n vm.selectedMonth = results[0]['annualPresenceReports.month'];\r\n }\r\n if (results[0]['aprbs.selectedSection']) {\r\n vm.selectedSection = results[0]['aprbs.selectedSection'];\r\n }\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.selectedSection > 0) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n $timeout(function () {\r\n if (!(vm.selectedSection > 0)) {\r\n vm.selectedSection = vm.sectionList[0].value;\r\n }\r\n }, 0);\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n }\r\n\r\n function goToNewCoach(coachId) {\r\n if (coachId && coachId === 0 && !vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': coachId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedSection && vm.selectedYear && vm.selectedMonth) {\r\n paramHelper.setParams([\r\n {'aprbs.selectedSection': vm.selectedSection},\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportBySectionsReport(vm.selectedYear, vm.selectedMonth, vm.selectedSection)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySections')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsBySections',\r\n config: {\r\n url: '/annualPresenceReportsBySections',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.html',\r\n controller: 'AnnualPresenceReportsBySectionsController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsBySections',\r\n settings: {\r\n navId: 33234,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Éves jelenléti kimutatás szakosztályonként',\r\n orderTitle_en: 'Annual Attendance Reports by Sections',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsBySections',\r\n activatorPermission: ['\"KMEVESJELEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool')\r\n .controller('AnnualPresenceReportsBySportSchoolController', AnnualPresenceReportsBySportSchoolController);\r\n\r\n function AnnualPresenceReportsBySportSchoolController(dataservice, $q, log, authenticationService, $rootScope, gettextCatalog, $scope, paramHelper, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsBySportSchool');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n vm.reportSelect = reportSelect;\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {field: 'VersenyzoNeve', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 125},\r\n\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugEdzes, AugJelen, AugHianyzik,AugSzazalek',\r\n {field: 'AugEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'AugJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'AugHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptEdzes, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'SzeptJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'OktJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'OktHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'NovJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'NovHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {field: 'DecJelen', headerText: gettextCatalog.getString('Present'), textAlign: 'center', width: 100},\r\n {field: 'DecHianyzik', headerText: gettextCatalog.getString('NonPresent'), textAlign: 'center', width: 100},\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELSZO')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n }\r\n paramHelper.getParams([], ['annualPresenceReports.year', 'annualPresenceReports.month']).then(function (result) {\r\n $timeout(function () {\r\n if (result['annualPresenceReports.year']) {\r\n vm.selectedYear = result['annualPresenceReports.year'];\r\n }\r\n if (result['annualPresenceReports.month']) {\r\n vm.selectedMonth = result['annualPresenceReports.month'];\r\n }\r\n reportSelect();\r\n }, 0);\r\n });\r\n });\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedYear && vm.selectedMonth) {\r\n paramHelper.setParams([\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportBySportSchoolReport(vm.selectedYear, vm.selectedMonth)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsBySportSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsBySportSchool',\r\n config: {\r\n url: '/annualPresenceReportsBySportSchool',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.html',\r\n controller: 'AnnualPresenceReportsBySportSchoolController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsBySportSchool',\r\n settings: {\r\n navId: 32234,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Éves jelenléti kimutatás edzőnként',\r\n orderTitle_en: 'Annual Attendance Reports by Coaches',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsBySportSchool',\r\n activatorPermission: ['\"KMEVESJELSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers')\r\n .controller('AnnualPresenceReportsByTrainersController', AnnualPresenceReportsByTrainersController);\r\n\r\n function AnnualPresenceReportsByTrainersController(log, dataservice, $q, $rootScope, gettextCatalog, $scope, authenticationService, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualPresenceReportsByTrainers');\r\n\r\n //Évek (2010-től az aktuális évig)\r\n vm.years = [];\r\n for (var ev = 2010; ev <= new Date().getFullYear(); ev++) {\r\n vm.years.push(ev);\r\n }\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedYear = new Date().getFullYear();\r\n vm.selectedMonth = 0;\r\n\r\n //Hónapok\r\n vm.months = [\r\n {text: gettextCatalog.getString('January'), value: 0},\r\n {text: gettextCatalog.getString('February'), value: 1},\r\n {text: gettextCatalog.getString('March'), value: 2},\r\n {text: gettextCatalog.getString('April'), value: 3},\r\n {text: gettextCatalog.getString('May'), value: 4},\r\n {text: gettextCatalog.getString('June'), value: 5},\r\n {text: gettextCatalog.getString('July'), value: 6},\r\n {text: gettextCatalog.getString('August'), value: 7},\r\n {text: gettextCatalog.getString('September'), value: 8},\r\n {text: gettextCatalog.getString('October'), value: 9},\r\n {text: gettextCatalog.getString('November'), value: 10},\r\n {text: gettextCatalog.getString('December'), value: 11}\r\n ];\r\n\r\n //Kiválasztott év (alapból az aktuális)\r\n vm.selectedCoach = {};\r\n vm.coachList = [];\r\n vm.selectedSection = 0;\r\n vm.sectionDataBound = [];\r\n vm.selectedAgeGroup = 0;\r\n vm.ageGroupList = [];\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true, isIdentity: true},\r\n {field: 'Sorszam', headerText: gettextCatalog.getString('RowNumber'), textAlign: 'center', width: 120},\r\n {field: 'VersenyzoNeve', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {\r\n headerText: gettextCatalog.getString('January'), textAlign: 'center', columns: [\r\n // column: 'JanEdzes, JanJelen, JanHianyzik,JanSzazalek',\r\n {\r\n field: 'JanEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JanJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JanSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('February'), textAlign: 'center', columns: [\r\n // column: 'FebEdzes, FebJelen, FebHianyzik,FebSzazalek',\r\n {\r\n field: 'FebEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'FebJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'FebSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('March'), textAlign: 'center', columns: [\r\n // column: 'MarcEdzes, MarcJelen, MarcHianyzik,MarcSzazalek',\r\n {\r\n field: 'MarcEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MarcJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MarcSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('April'), textAlign: 'center', columns: [\r\n // column: 'AprEdzes, AprJelen, AprHianyzik,AprSzazalek',\r\n {\r\n field: 'AprEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AprJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AprSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('May'), textAlign: 'center', columns: [\r\n // column: 'MajEdzes, MajJelen, MajHianyzik,MajSzazalek',\r\n\r\n {\r\n field: 'MajEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'MajJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'MajSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('June'), textAlign: 'center', columns: [\r\n // column: 'JunEdzes, JunJelen, JunHianyzik,JunSzazalek',\r\n {\r\n field: 'JunEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JunJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JunSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('July'), textAlign: 'center', columns: [\r\n // column: 'JulEdzes, JulJelen, JulHianyzik,JulSzazalek',\r\n {\r\n field: 'JulEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'JulJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'JulSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('August'), textAlign: 'center', columns: [\r\n //column: 'AugFlo, AugJelen, AugHianyzik,AugSzazalek',\r\n {\r\n field: 'AugEdzes',\r\n headerText: gettextCatalog.getString('EdzesSzam'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'AugJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'AugSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('September'), textAlign: 'center', columns: [\r\n // column: 'SzeptFlo, SzeptJelen, SzeptHianyzik,SzeptSzazalek',\r\n {field: 'SzeptEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'SzeptJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'SzeptSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('October'), textAlign: 'center', columns: [\r\n // column: 'OktEdzes, OktJelen, OktHianyzik,OktSzazalek',\r\n {field: 'OktEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'OktJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OktSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('November'), textAlign: 'center', columns: [\r\n // column: 'NovEdzes, NovJelen, NovHianyzik,NovSzazalek',\r\n {field: 'NovEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'NovJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'NovSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('December'), textAlign: 'center', columns: [\r\n // column: 'DecEdzes, DecJelen, DecHianyzik,DecSzazalek',\r\n {field: 'DecEdzes', headerText: gettextCatalog.getString('Sum'), textAlign: 'center', width: 120},\r\n {\r\n field: 'DecJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'DecSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n },\r\n {\r\n headerText: gettextCatalog.getString('12month'), textAlign: 'center', columns: [\r\n // column: 'OsszEdzes, OsszJelen, OsszHianyzik,OsszSzazalek',\r\n {\r\n field: 'OsszEdzes',\r\n headerText: gettextCatalog.getString('Sum'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'OsszJelen',\r\n headerText: gettextCatalog.getString('Present'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszHianyzik',\r\n headerText: gettextCatalog.getString('NonPresent'),\r\n textAlign: 'center',\r\n width: 100\r\n },\r\n {\r\n field: 'OsszSzazalek',\r\n headerText: gettextCatalog.getString('JelenSzazalek'),\r\n textAlign: 'center',\r\n width: 120\r\n }\r\n ]\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.coachSelect = coachSelect;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n\r\n vm.goToNewAthlete = goToNewAthlete;\r\n vm.reportSelect = reportSelect;\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n //frozenColumns: 3,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEVESJELSP')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'aprbt.selectedSection',\r\n 'aprbt.selectedAgeGroup',\r\n 'aprbt.selectedCoach',\r\n 'annualPresenceReports.year',\r\n 'annualPresenceReports.month'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['aprbt.selectedSection']) {\r\n vm.selectedSection = results[0]['aprbt.selectedSection'];\r\n }\r\n if (results[0]['aprbt.selectedAgeGroup']) {\r\n vm.selectedAgeGroup = results[0]['aprbt.selectedAgeGroup'];\r\n }\r\n if (results[0]['aprbt.selectedCoach']) {\r\n vm.selectedCoach = results[0]['aprbt.selectedCoach'];\r\n }\r\n if (results[0]['annualPresenceReports.year']) {\r\n vm.selectedYear = results[0]['annualPresenceReports.year'];\r\n }\r\n if (results[0]['annualPresenceReports.month']) {\r\n vm.selectedMonth = results[0]['annualPresenceReports.month'];\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachDropDownList(vm.selectedSection, vm.selectedAgeGroup, new Date(vm.selectedYear, vm.selectedMonth, 1)).then(\r\n function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.coachList = data.itemsList;\r\n }\r\n );\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.selectedCoach = args.value;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSection = args.value;\r\n getAgeGroups();\r\n getCoaches();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelectYear(0, vm.selectedSection, vm.selectedYear)\r\n .then(function (data) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.selectedAgeGroup = args.value;\r\n getCoaches();\r\n }\r\n\r\n function goToNewAthlete(athleteId) {\r\n if (athleteId == 0) {\r\n return;\r\n }\r\n if (!vm.MODSPORTOLO) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'athleteModify.Id': athleteId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n }\r\n\r\n function reportSelect() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n return;\r\n }\r\n if (vm.selectedYear && vm.selectedMonth && vm.selectedSection && vm.selectedAgeGroup && vm.selectedCoach) {\r\n paramHelper.setParams([\r\n {'annualPresenceReports.year': vm.selectedYear},\r\n {'annualPresenceReports.month': vm.selectedMonth},\r\n {'aprbt.selectedSection': vm.selectedSection},\r\n {'aprbt.selectedAgeGroup': vm.selectedAgeGroup},\r\n {'aprbt.selectedCoach': vm.selectedCoach}\r\n ]);\r\n }\r\n dataservice.getAnnualPresenceReportByTrainersReport(vm.selectedYear, vm.selectedMonth, vm.selectedSection, vm.selectedAgeGroup, '', vm.selectedCoach)\r\n .then(function (data) {\r\n vm.columns2 = [];\r\n vm.columns2.push(vm.columns[0]);\r\n vm.columns2.push(vm.columns[1]);\r\n vm.columns2.push(vm.columns[2]);\r\n var j = (parseInt(vm.selectedMonth) + 3);\r\n for (var i = 0; i < 12; i++) {\r\n vm.columns2.push(vm.columns[j++]);\r\n j = j === 12 + 3 ? 3 : j;\r\n }\r\n vm.columns2.push(vm.columns[15]);\r\n grid.columns = vm.columns2;\r\n grid.refreshColumns();\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.selectedSection > 0) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#maSzakosztaly').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.selectedAgeGroup > 0) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n } else {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroup = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#maKorosztaly').ejDropDownList('selectItemByValue', vm.selectedAgeGroup);\r\n }\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.selectedCoach > 0) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.selectedCoach = vm.coachList[0].value;\r\n } else {\r\n angular.element('#maEdzo').ejDropDownList('selectItemByValue', vm.selectedCoach);\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.annualPresenceReports.annualPresenceReportsByTrainers')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.annualPresenceReports.annualPresenceReportsByTrainers',\r\n config: {\r\n url: '/annualPresenceReportsByTrainers',\r\n templateUrl: 'app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.html',\r\n controller: 'AnnualPresenceReportsByTrainersController',\r\n controllerAs: 'vm',\r\n title: 'AnnualPresenceReportsByTrainers',\r\n settings: {\r\n navId: 31234,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Éves jelenléti kimutatás sportolónként',\r\n orderTitle_en: 'Annual Attendance Reports By Athletes',\r\n parentId: 224,\r\n content: 'AnnualPresenceReportsByTrainers',\r\n activatorPermission: ['\"KMEVESJELSP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.anthropometryTestPrinting')\r\n .controller('AnthropometryTestPrintingController', AnthropometryTestPrintingController);\r\n\r\n function AnthropometryTestPrintingController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $filter, $scope, $state, paramHelper, DOMAIN, $q, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnthropometryTestPrinting');\r\n\r\n // Create variables\r\n vm.dateToValue = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());\r\n vm.dateFromValue = new Date(new Date().getFullYear(), new Date().getMonth() - 1, new Date().getDate());\r\n vm.printEnabled = false;\r\n // Grid's variables\r\n vm.columns = [\r\n {type: 'checkbox', headerText: '', textAlign: 'center', width: 35},\r\n {field: 'SportoloId', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Name'),\r\n headerTextAlign: 'center', textAlign: 'center',\r\n template: '#anthropometryTestPrintingcolumnTemplate',\r\n width: 150\r\n },\r\n {field: 'SportoloLakcim', headerText: gettextCatalog.getString('Address'), headerTextAlign: 'center', textAlign: 'center', width: 150},\r\n {field: 'Felmeres', headerText: gettextCatalog.getString('Test'), headerTextAlign: 'center', textAlign: 'center', width: 150},\r\n {field: 'Csoport', headerText: gettextCatalog.getString('Group'), headerTextAlign: 'center', textAlign: 'center', width: 125},\r\n {field: 'MeresDatuma', headerText: gettextCatalog.getString('Date'), headerTextAlign: 'center', textAlign: 'center', width: 125}\r\n ];\r\n vm.reportParameters = {};\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n $timeout(function () {\r\n var selectedRow = grid.getSelectedRecords();\r\n if (selectedRow && selectedRow.length > 0) {\r\n vm.printEnabled = true;\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n },\r\n rowDeselected: Deselect,\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function Deselect() {\r\n if (grid.getSelectedRecords().length === 0) {\r\n vm.printEnabled = false;\r\n $scope.$apply();\r\n }\r\n }\r\n\r\n // Public functions\r\n vm.search = search;\r\n vm.printSelection = printSelection;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('TomAntr').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n search();\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n dataservice.getAnthropometryListForPrinting(vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'MeresDatuma');\r\n });\r\n }\r\n\r\n function printSelection() {\r\n var selectedAthletes = $rootScope.getSelectedItems(grid);\r\n var Tomeges = '';\r\n if (selectedAthletes.length == 0) {\r\n log.errorMsg('NoSelectedAthlete');\r\n return;\r\n }\r\n angular.forEach(selectedAthletes, function (value) {\r\n if (Tomeges.length > 0) {\r\n Tomeges += ';';\r\n }\r\n Tomeges += value.Id + ',' + value.SportoloId;\r\n });\r\n vm.reportParameters = {\r\n 'Tomeges': Tomeges,\r\n 'SportoloId': 0,\r\n 'AntropometriaId': 0,\r\n 'SportiskolaLogo': (grid.dataSource[0] && grid.dataSource[0].SportiskolaLogo) ? DOMAIN.baseURL + DOMAIN.anthropometryPhotosUrl + grid.dataSource[0].SportiskolaLogo : undefined\r\n };\r\n if (Tomeges !== '') {\r\n angular.element('#printDialoganthtest').ejDialog({\r\n 'height': '95%',\r\n 'width': '95%',\r\n 'showoninit': 'false',\r\n 'enablemodal': 'true',\r\n 'position-x': '0',\r\n 'position-y': '0',\r\n 'target': '#mainContent',\r\n 'enableresize': 'false'\r\n });\r\n angular.element('#printDialoganthtest').ejDialog('open');\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.anthropometryTestPrinting')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.anthropometryTestPrinting',\r\n config: {\r\n url: '/anthropometryTestPrinting',\r\n templateUrl: 'app/reports/anthropometryTestPrinting/anthropometryTestPrinting.html',\r\n controller: 'AnthropometryTestPrintingController',\r\n controllerAs: 'vm',\r\n title: 'AnthropometryTestPrinting',\r\n settings: {\r\n navId: 2124,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Antropometria tömeges nyomtatás',\r\n orderTitle_en: 'Anthropometry Bulk Printing',\r\n parentId: 4,\r\n content: 'AnthropometryTestPrinting',\r\n activatorPermission: ['\"TomAntr\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.assetInventoryReportByType')\r\n .controller('AssetInventoryReportByTypeController', AssetInventoryReportByType);\r\n\r\n function AssetInventoryReportByType (logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, log, $filter, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AssetInventoryReportByType');\r\n\r\n vm.active = false;\r\n vm.all = true;\r\n vm.assetTypeId = undefined;\r\n vm.assetTypeList = [];\r\n vm.checkboxEnabled = false;\r\n vm.datasource = [];\r\n vm.expend = false;\r\n vm.mainGrid = [];\r\n vm.childGrid = [];\r\n vm.selectAll = selectAll;\r\n vm.AssetTypeDataBound = AssetTypeDataBound;\r\n vm.show = show;\r\n\r\n activate();\r\n vm.columns = [\r\n {field: 'EszkozId', visible: false},\r\n {field: 'EszkozMegnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 175},\r\n {field: 'EszkozTipusa', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('ItemActive'), textAlign: 'center', type: 'boolean', displayAsCheckBox: true, width: 140},\r\n {field: 'Szabad', headerText: gettextCatalog.getString('Issuable'), textAlign: 'center', type: 'boolean', displayAsCheckBox: true, width: 160},\r\n {field: 'EszkozLeiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 175},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 150},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 115},\r\n {field: 'Kinel', headerText: gettextCatalog.getString('Kinel'), textAlign: 'center', width: 150},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n vm.childGridColumns = [\r\n {field: 'MozgasId', isPrimaryKey: 'true', visible: false},\r\n {field: 'Kiadva', headerText: gettextCatalog.getString('Kiadva'), textAlign: 'center', width: 125},\r\n {field: 'Visszaveve', headerText: gettextCatalog.getString('Visszaveve'), textAlign: 'center', width: 125},\r\n {field: 'Sportolo', headerText: gettextCatalog.getString('Sportolo'), textAlign: 'center', width: 150},\r\n {field: 'Felhasznalo', headerText: gettextCatalog.getString('Felhasznalo'), textAlign: 'center', width: 150},\r\n {field: 'MegjegyzesKiadaskor', headerText: gettextCatalog.getString('MegjegyzesKiadaskor'), textAlign: 'center', width: 150},\r\n {field: 'MegjegyzesVisszavetelkor', headerText: gettextCatalog.getString('MegjegyzesVisszavetelkor'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n locale: 'hu-HU',\r\n columns: vm.columns,\r\n //allowPaging: true,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n childGrid: {\r\n locale: 'hu-HU',\r\n dataSource: [],\r\n queryString: 'EszkozId',\r\n allowPaging: true,\r\n allowSorting: true,\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.childGridColumns\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT')]).then(function (data) {\r\n vm.ESZKNYILVMEGT = data[0];\r\n if (vm.ESZKNYILVMEGT) {\r\n getAssetType();\r\n setDropDowns();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'airbt.type',\r\n 'airbt.active',\r\n 'airbt.expend',\r\n 'airbt.all'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['airbt.type'] != null) {\r\n vm.assetTypeId = results[0]['airbt.type'];\r\n // vm.active = results[0]['airbt.active'];\r\n // vm.expend = results[0]['airbt.expend'];\r\n // vm.all = results[0]['airbt.all'];\r\n // angular.element(\"#Active\").ejCheckBox ({ enabled: vm.active });\r\n // angular.element(\"#Expend\").ejCheckBox ({ enabled: vm.expend });\r\n // angular.element(\"#All\").ejCheckBox ({ enabled: vm.all });\r\n }\r\n });\r\n }\r\n\r\n function getAssetType() {\r\n dataservice.assetTypeList().then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({TipusId: 0, TipusNev: gettextCatalog.getString('All')});\r\n }\r\n vm.assetTypeList = data.itemsList;\r\n });\r\n }\r\n\r\n function selectAll() {\r\n vm.checkboxEnabled = vm.all ? true : false;\r\n }\r\n\r\n // Run after data bounded\r\n function AssetTypeDataBound() {\r\n if (vm.assetTypeId > 0) {\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId);\r\n } else {\r\n if (vm.assetTypeList.length === 1) {\r\n vm.assetTypeId = vm.assetTypeList[0].TipusId;\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId[0].value);\r\n } else {\r\n vm.assetTypeId = 0;\r\n angular.element('#AssetTypeDropDown').ejDropDownList('selectItemByValue', vm.assetTypeId);\r\n }\r\n }\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'airbt.type': vm.assetTypeId},\r\n {'airbt.active': vm.active},\r\n {'airbt.expend': vm.expend},\r\n {'airbt.all': vm.all}\r\n ]);\r\n dataservice.assetInventoryByType(vm.assetTypeId, vm.expend, vm.active, vm.all).then(function (data) {\r\n grid.dataSource = data.itemsList[0].EszkozAdatok;\r\n var childGrid = data.itemsList[0].EszkozMozgasa;\r\n childGrid = $filter('dateTimeStringFilter')(childGrid, 'Kiadva');\r\n grid.childGrid.dataSource = $filter('dateTimeStringFilter')(childGrid, 'Visszaveve');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.assetInventoryReportByType')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReportByType',\r\n config: {\r\n url: '/assetInventoryReportByType',\r\n templateUrl: 'app/reports/assetInventoryReportByType/AssetInventoryReportByType.html',\r\n controller: 'AssetInventoryReportByTypeController',\r\n controllerAs: 'vm',\r\n title: 'AssetInventoryReportByType',\r\n settings: {\r\n navId: 322224,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Eszköz nyilvántartó (Típus)',\r\n orderTitle_en: 'Asset Inventory (Type)',\r\n parentId: 2224,\r\n content: 'AssetInventoryReportByType',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.assetInventoryReportByUsers')\r\n .controller('AssetInventoryReportByUsersController', AssetInventoryReportByUsers);\r\n\r\n function AssetInventoryReportByUsers(logger, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, log, $filter, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AssetInventoryReportByUsers');\r\n\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.searchTypeAthlete = false;\r\n vm.enableAgeGropu = false;\r\n vm.ageGroupList = [];\r\n vm.sectionList = [];\r\n vm.athletecoachList = [\r\n {value: 'athlete', text: gettextCatalog.getString('Athlete')},\r\n {value: 'users', text: gettextCatalog.getString('Users')}\r\n ];\r\n vm.columns = [\r\n {field: 'KiadvaId', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: 150},\r\n {field: 'Lakcim', headerText: gettextCatalog.getString('Location'), textAlign: 'center', width: 175},\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Elerhetosege'), textAlign: 'center', width: 150},\r\n ];\r\n vm.childGridColums = [\r\n {field: 'EszkozId', visible: false},\r\n {field: 'KiadvaId', visible: false},\r\n {field: 'EszkozMegnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 150},\r\n {field: 'EszkozTipusa', headerText: gettextCatalog.getString('AssetType'), textAlign: 'center', width: 125},\r\n {field: 'EszkozLeiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 150},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 125},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 125},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n columns: vm.columns,\r\n //pageSettings: $rootScope.pageSettings,\r\n toolbar: ['Print', 'Search'],\r\n childGrid: {\r\n dataSource: [],\r\n queryString: 'KiadvaId',\r\n allowPaging: true,\r\n columns: vm.childGridColums\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.searchTypeSelect = searchTypeSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.searchTypeDateBound = searchTypeDateBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.show = show;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('ESZKNYILVMEGT')]).then(function (data) {\r\n vm.ESZKNYILVMEGT = data[0];\r\n if (!vm.ESZKNYILVMEGT) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n getSections();\r\n setDropDowns();\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'airbu.typeuser',\r\n 'airbu.section',\r\n 'airbu.agegroup'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.searchTypeUser = (results[0]['airbu.typeuser'] === true);\r\n vm.searchTypeAthlete = (results[0]['airbu.typeuser'] === false);\r\n vm.sectionId = results[0]['airbu.section'];\r\n vm.ageGroupId = results[0]['airbu.agegroup'];\r\n });\r\n }\r\n\r\n function searchTypeSelect(arg) {\r\n vm.chooseEnabled = false;\r\n switch (arg.value) {\r\n case 'athlete':\r\n vm.searchTypeAthlete = true;\r\n vm.searchTypeUser = false;\r\n vm.dropdownlabel = gettextCatalog.getString('Section');\r\n break;\r\n case 'users':\r\n vm.searchTypeAthlete = false;\r\n vm.searchTypeUser = true;\r\n vm.dropdownlabel = gettextCatalog.getString('UserGroup');\r\n break;\r\n }\r\n }\r\n\r\n function searchTypeDateBound() {\r\n if (vm.searchTypeUser) {\r\n angular.element('#searchType').ejDropDownList('selectItemByValue', vm.athletecoachList[1].value);\r\n vm.searchTypeAthlete = false;\r\n vm.searchTypeUser = true;\r\n } else {\r\n angular.element('#searchType').ejDropDownList('selectItemByValue', vm.athletecoachList[0].value);\r\n vm.searchTypeAthlete = true;\r\n vm.searchTypeUser = false;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(arg) {\r\n vm.sectionId = arg.value;\r\n vm.enableAgeGropu = true;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupId > 0) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n } else {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.sectionList[0].value;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n vm.ageGroupId = 0;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionId > 0) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n vm.sectionId = 0;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n }\r\n\r\n function show() {\r\n paramHelper.setParams([\r\n {'airbu.typeuser': (vm.searchTypeUser == true)},\r\n {'airbu.section': vm.sectionId},\r\n {'airbu.agegroup': vm.ageGroupId},\r\n ]);\r\n dataservice.assetInventoryByPerson(vm.searchTypeUser, vm.searchTypeAthlete, vm.sectionId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = data.itemsList[0].Kiknel;\r\n var childdataSource = data.itemsList[0].EszkozAdatok;\r\n childdataSource = $filter('dateTimeStringFilter')(childdataSource, 'Kiadva');\r\n grid.childGrid.dataSource = $filter('dateTimeStringFilter')(childdataSource, 'Visszaveve');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.assetInventoryReportByUsers')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReportByUsers',\r\n config: {\r\n url: '/assetInventoryReportByUsers',\r\n templateUrl: 'app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.html',\r\n controller: 'AssetInventoryReportByUsersController',\r\n controllerAs: 'vm',\r\n title: 'AssetInventoryReportByUsers',\r\n settings: {\r\n navId: 312224,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Eszköz nyilvántartó (Személy)',\r\n orderTitle_en: 'Asset Inventory (Person)',\r\n parentId: 2224,\r\n content: 'AssetInventoryReportByUsers',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.assetInventoryReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.assetInventoryReports',\r\n config: {\r\n url: '/assetInventoryReports',\r\n templateUrl: 'app/reports/assetInventoryReports/assetInventoryReports.html',\r\n title: 'AssetInventoryReports',\r\n settings: {\r\n navId: 2224,\r\n level: 2,\r\n order: 22,\r\n orderTitle_hu: 'Eszköz nyilvántartó',\r\n orderTitle_en: 'Asset Inventory',\r\n parentId: 4,\r\n content: 'AssetManagement',\r\n activatorPermission: ['\"ESZKNYILVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.athleteTransfer')\r\n .controller('AthleteTransferController2', AthleteTransferController);\r\n\r\n function AthleteTransferController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteTransfer');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 6));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#attrcolumnTemplate1'},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150, template: '#columnTemplate2'},\r\n {field: 'Kerveny_Datum', headerText: gettextCatalog.getString('Kervenyezve'), textAlign: 'center', width: 150},\r\n {field: 'Elfogadva', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('Accepted'), textAlign: 'center', width: 100},\r\n {field: 'Lezarva', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('Closed'), textAlign: 'center', width: 100},\r\n {field: 'Lezarva_datum', headerText: gettextCatalog.getString('ClosedDate'), textAlign: 'center', width: 125},\r\n {field: 'KorcsoportValtas', type: 'boolean', displayAsCheckBox: true, headerText: gettextCatalog.getString('KorcsoportValtas'), textAlign: 'center', width: 125},\r\n {field: 'KerelmezoNeve', headerText: gettextCatalog.getString('Kervenyezo'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToNewAthlete = goToNewAthlete;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('KMEDZOVALTAS')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('KMEDZOVALTAS'), paramHelper.getParams([], ['athleteTransferList.coachId', 'athleteTransferList.szakosztalyId'])]).then(function (results) {\r\n vm.KMEDZOVALTAS = results[0];\r\n vm.sectionId = results[1]['athleteTransferList.szakosztalyId'] === null ? -1 : results[1]['athleteTransferList.szakosztalyId'];\r\n vm.coachId = results[1]['athleteTransferList.coachId'] === null ? -1 : results[1]['athleteTransferList.coachId'];\r\n });\r\n getSections();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'at.section',\r\n 'at.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['at.section'];\r\n vm.coachId = results[0]['at.coach'];\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'at.section': vm.sectionId},\r\n {'at.coach': vm.coachId}\r\n ]);\r\n dataservice.getAthleteTransferList(vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'EdzoLezartaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzakosztalyVezetoJovahagyva');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'KeszitesDatum');\r\n });\r\n }\r\n\r\n function goToNewUser(edzoId) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function goToNewAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.athleteTransfer')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.athleteTransfer',\r\n config: {\r\n url: '/athleteTransfer',\r\n templateUrl: 'app/reports/athleteTransfer/athleteTransfer.html',\r\n controller: 'AthleteTransferController2',\r\n controllerAs: 'vm',\r\n title: 'AthleteTransfer',\r\n settings: {\r\n navId: 2124,\r\n level: 2,\r\n order: 12,\r\n orderTitle_hu: 'Edzőváltás',\r\n orderTitle_en: 'Change Coach',\r\n parentId: 4,\r\n content: 'AthleteTransfer',\r\n activatorPermission: ['\"KMEDZOVALTAS\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.awayBudgetPlanSummary')\r\n .controller('AwayBudgetPlanSummaryController', AwayBudgetPlanSummary);\r\n\r\n function AwayBudgetPlanSummary(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AwayBudgetPlanSummary');\r\n\r\n vm.sectionList = [];\r\n vm.sectionId = undefined;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = undefined;\r\n vm.coachList = [];\r\n vm.coachId = undefined;\r\n vm.colIndex = undefined;\r\n vm.rowindex = undefined;\r\n vm.toRange = undefined;\r\n vm.newRange = undefined;\r\n vm.fromRange = undefined;\r\n vm.onlyStartDate = false;\r\n vm.g = [];\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.onlyStartDateChanged = onlyStartDateChanged;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n\r\n vm.columns = [\r\n {\r\n visible: false\r\n },\r\n {\r\n field: 'VersenySorszam',\r\n headerText: gettextCatalog.getString('TervSorszam'),\r\n width: 90,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szakosztaly',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevHelyCsopRsz',\r\n headerText: gettextCatalog.getString('NevHelyCsopRsz'),\r\n width: 200,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'VersenyKezdesIdopont',\r\n headerText: gettextCatalog.getString('RaceStartTime'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'VersenyBefejezesIdopont',\r\n headerText: gettextCatalog.getString('RaceEndTime'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Megnevezes',\r\n headerText: gettextCatalog.getString('Appellation'),\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'UtazasiKoltseg',\r\n headerText: gettextCatalog.getString('TravelCosts'),\r\n width: 130,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Etkezes',\r\n headerText: gettextCatalog.getString('Meal'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Szallas',\r\n headerText: gettextCatalog.getString('Accommodation'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'NevezesiDij',\r\n headerText: gettextCatalog.getString('EntryFee'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'KikuldetesiKoltseg',\r\n headerText: gettextCatalog.getString('DelegacyCost'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Egyeb',\r\n headerText: gettextCatalog.getString('Other'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'Osszesen',\r\n headerText: gettextCatalog.getString('Total'),\r\n width: 120,\r\n textAlign: 'center'\r\n },\r\n {\r\n field: 'ElolegOsszege',\r\n headerText: gettextCatalog.getString('AmountOfAdvance'),\r\n width: 130,\r\n textAlign: 'center'\r\n },\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n pageSettings: $rootScope.pageSettings,\r\n allowTextWrap: true,\r\n allowSorting: false,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n enableHover: false,\r\n allowSelection: false,\r\n columns: vm.columns,\r\n rowTemplate: '#rowtemplate',\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTIDEGENKOLTSTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'awayBudgetPlanSummary.sectionId',\r\n 'awayBudgetPlanSummary.ageGroupId',\r\n 'awayBudgetPlanSummary.coachId',\r\n 'awayBudgetPlanSummary.onlyStartDate',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['awayBudgetPlanSummary.sectionId'];\r\n vm.ageGroupId = results[0]['awayBudgetPlanSummary.ageGroupId'];\r\n vm.coachId = results[0]['awayBudgetPlanSummary.coachId'];\r\n if (results[0]['awayBudgetPlanSummary.onlyStartDate']) {\r\n $timeout(function () {\r\n angular.element('#onlyStartDate').ejCheckBox({checked: results[0]['awayBudgetPlanSummary.onlyStartDate']});\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList && data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList && vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n getActualCoachesList(0);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList && vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId).then(function (data) {\r\n if (data.itemsList && data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList && vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day === 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n function show() {\r\n //vm.onlyStartDate = angular.element('#onlyStartDate').ejCheckBox('isChecked');\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'awayBudgetPlanSummary.sectionId': vm.sectionId},\r\n {'awayBudgetPlanSummary.ageGroupId': vm.ageGroupId},\r\n {'awayBudgetPlanSummary.coachId': vm.coachId},\r\n {'awayBudgetPlanSummary.onlyStartDate': vm.onlyStartDate}\r\n ]);\r\n dataservice.KoltsegtervOsszesitoKimutatas(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.onlyStartDate).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function onlyStartDateChanged(args) {\r\n $timeout(function () {\r\n vm.onlyStartDate = args.value;\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.awayBudgetPlanSummary')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.awayBudgetPlanSummary',\r\n config: {\r\n url: '/awayBudgetPlanSummary',\r\n templateUrl: 'app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.html',\r\n controller: 'AwayBudgetPlanSummaryController',\r\n controllerAs: 'vm',\r\n title: 'AwayBudgetPlanSummary',\r\n settings: {\r\n navId: 2174,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Idegenbeli költségterv összesítő kimutatás',\r\n orderTitle_en: 'Away Budget Plan Summary',\r\n parentId: 4,\r\n content: 'AwayBudgetPlanSummary',\r\n activatorPermission: ['\"MEGTIDEGENKOLTSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.duplicatedAthletes')\r\n .controller('DuplicatedAthletesController', DuplicatedAthletesController);\r\n\r\n function DuplicatedAthletesController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $filter, $scope, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('DuplicatedAthletesByNameAndSSN');\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, templat: '#duplicatedcolumnTemplate1'},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 150},\r\n {field: 'AnyjaNeve', headerText: gettextCatalog.getString('MothersName'), textAlign: 'center', width: 150},\r\n {field: 'RegisztraciosSzam', headerText: gettextCatalog.getString('Regisztracios'), textAlign: 'center', width: 150},\r\n {field: 'TajSzam', headerText: gettextCatalog.getString('SocialSecurityNumber'), textAlign: 'center', width: 150},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#duplicatedcolumnTemplate2'},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), type: 'boolean', textAlign: 'center', width: 100, displayAsCheckBox: true}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToUser = goToUser;\r\n vm.InactivesChange = InactivesChange;\r\n vm.InactivesToo = false;\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('DUPLIKALTMEGT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getDuplicatedAthletes();\r\n }\r\n });\r\n }\r\n\r\n function InactivesChange(arg) {\r\n getDuplicatedAthletes(arg.value);\r\n }\r\n\r\n function getDuplicatedAthletes(inactivesToo) {\r\n if (inactivesToo !== true) {\r\n inactivesToo = false;\r\n }\r\n dataservice.getDuplicatedAthletes(inactivesToo).then(function(data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.duplicatedAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.duplicatedAthletes',\r\n config: {\r\n url: '/duplicatedAthletes',\r\n templateUrl: 'app/reports/duplicatedAthletes/duplicatedAthletes.html',\r\n controller: 'DuplicatedAthletesController',\r\n controllerAs: 'vm',\r\n title: 'DuplicatedAthletes',\r\n settings: {\r\n navId: 2134,\r\n level: 2,\r\n order: 13,\r\n orderTitle_hu: 'Duplázott sportolók kimutatás',\r\n orderTitle_en: 'Duplicated Athletes Report',\r\n parentId: 4,\r\n content: 'DuplicatedAthletes',\r\n activatorPermission: ['\"DUPLIKALTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.expiringDocuments')\r\n .controller('ExpiringDocumentsController', ExpiringDocumentsController);\r\n\r\n function ExpiringDocumentsController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('ExpiringDocuments');\r\n vm.searchSPC = true;\r\n vm.searchPP = true;\r\n vm.searchPID = true;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.search = search;\r\n vm.openCoach = openCoach;\r\n vm.openAthlete = openAthlete;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.selectdateTo = new Date(new Date().getFullYear(), new Date().getMonth() + 1);\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n\r\n vm.columns = [\r\n {\r\n field: 'SportoloNeve',\r\n headerText: gettextCatalog.getString('Athlete'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#exdotemplateDataColumn1'\r\n },\r\n {\r\n field: 'SportorvosiLejar',\r\n headerText: gettextCatalog.getString('SportPhysicalCertificateExpirationDate'),\r\n textAlign: 'center',\r\n width: 250\r\n },\r\n {\r\n field: 'UtlevelLejar',\r\n headerText: gettextCatalog.getString('PassportExpirationDate'),\r\n textAlign: 'center',\r\n width: 180\r\n },\r\n {\r\n field: 'SzemelyiLejar',\r\n headerText: gettextCatalog.getString('PersonalIDExpirationDate'),\r\n textAlign: 'center',\r\n width: 180\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'KorosztalyNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: 120\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#exdotemplateDataColumn2'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n },\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('LEJAROMEGT')];\r\n $q.all(promises).then(function (res) {\r\n if (!res[0]) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n setDropDowns();\r\n }\r\n })\r\n .catch(function () {\r\n log.permissionError(true);\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'ed.section',\r\n 'ed.agegroup',\r\n 'ed.coach',\r\n 'ed.to'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['ed.to'] != null) {\r\n vm.selectdateTo = results[0]['ed.to'];\r\n vm.savedSection = results[0]['ed.section'];\r\n vm.savedAgegroup = results[0]['ed.agegroup'];\r\n vm.savedCoach = results[0]['ed.coach'];\r\n }\r\n });\r\n }\r\n\r\n function search() {\r\n if (!vm.searchSPC && !vm.searchPP && !vm.searchPID) {\r\n swal({\r\n title: gettextCatalog.getString('AtLeastOneConditionHaveToBeSelected'),\r\n type: 'warning',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n });\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'ed.section': vm.SelectedSectionID},\r\n {'ed.agegroup': vm.SelectedAgeGroupID},\r\n {'ed.coach': vm.SelectedCoachID},\r\n {'ed.to': vm.selectdateTo}\r\n ]);\r\n dataservice.getExpiringDocuments(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID, vm.selectdateTo, vm.searchSPC, vm.searchPP, vm.searchPID)\r\n .then(function (data) {\r\n var athleteList = data.itemsList;\r\n athleteList = $filter('dateStringFilter')(data.itemsList, 'SportorvosiLejar');\r\n grid.dataSource = $filter('dateStringFilter')(athleteList, 'UtlevelLejar');\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, new Date(2000, 1, 1), vm.selectdateTo)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function getTeamsList() {\r\n dataservice.teamsDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID)\r\n .then(function (data) {\r\n vm.teamsList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.teamsList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach() {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': 0}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.savedSection > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.savedSection);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0]);\r\n } else if (vm.SelectedSectionID > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.SelectedSectionID);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.savedAgegroup > 0) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.savedAgegroup);\r\n } else {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else if (vm.SelectedAgeGroupID > 0) {\r\n angular.element('#agegroup').ejDropDownList('selectItemByValue', vm.SelectedAgeGroupID);\r\n }\r\n }\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.savedCoach > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.savedCoach);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else if (vm.SelectedCoachID > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.SelectedCoachID);\r\n }\r\n }\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.expiringDocuments')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.expiringDocuments',\r\n config: {\r\n url: '/expiringDocuments',\r\n templateUrl: 'app/reports/expiringDocuments/expiringDocuments.html',\r\n controller: 'ExpiringDocumentsController',\r\n controllerAs: 'vm',\r\n title: 'ExpiringDocuments',\r\n settings: {\r\n navId: 2154,\r\n level: 2,\r\n order: 15,\r\n orderTitle_hu: 'Hamarosan lejáró dokumentumok, igazolások',\r\n orderTitle_en: 'Expiring documents and certificates',\r\n parentId: 4,\r\n content: 'ExpiringDocuments',\r\n activatorPermission: ['\"LEJAROMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.healthReport')\r\n .controller('HealthReportController', HealthReportController);\r\n\r\n function HealthReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('HealthReport');\r\n vm.selectdateFrom = new Date(new Date().getFullYear(), new Date().getMonth() - 1);\r\n vm.selectdateTo = new Date();\r\n vm.mainType = -1;\r\n vm.subType = -1;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.healthMainType = [];\r\n vm.healthSubType = [];\r\n vm.filteredSubTypes = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n vm.MainTypeSelect = MainTypeSelect;\r\n vm.mainTypeDataBound = mainTypeDataBound;\r\n vm.subTypeDataBound = subTypeDataBound;\r\n vm.goToModifyHealthEvent = goToModifyHealthEvent;\r\n vm.changeDateFrom = changeDateFrom;\r\n vm.changeDateTo = changeDateTo;\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#healthedit'},\r\n {field: 'SportoloNev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 120},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'EdzokNeve', headerText: gettextCatalog.getString('Coaches'), textAlign: 'center', width: 150},\r\n {field: 'MettolMeddig', headerText: gettextCatalog.getString('TimeInterval'), textAlign: 'center', width: 120},\r\n {field: 'FoTipus', headerText: gettextCatalog.getString('MainType'), textAlign: 'center', width: 150},\r\n {field: 'AlTipus', headerText: gettextCatalog.getString('SubType'), textAlign: 'center', width: 150}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('HEALTHREPORT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getHealthMainTypes();\r\n getHealthSubTypes();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'hr.section',\r\n 'hr.agegroup',\r\n 'hr.coach',\r\n 'hr.from',\r\n 'hr.to',\r\n 'hr.main',\r\n 'hr.sub'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['hr.section'];\r\n vm.ageGroupId = results[0]['hr.agegroup'];\r\n vm.coachId = results[0]['hr.coach'];\r\n vm.selectdateFrom = results[0]['hr.from'];\r\n vm.selectdateTo = results[0]['hr.to'];\r\n if (results[0]['hr.main']) {\r\n vm.mainType = results[0]['hr.main'];\r\n }\r\n if (results[0]['hr.sub']) {\r\n vm.subType = results[0]['hr.sub'];\r\n }\r\n });\r\n }\r\n\r\n function goToModifyHealthEvent(arg) {\r\n vm.selectedGridRow = ej.DataManager(grid.dataSource).executeLocal(new ej.Query().where('EgeszsegEsetId', 'equal', arg))[0];\r\n console.log('selectedGridRow', selectedGridRow);\r\n paramHelper.setParams([{\r\n 'athleteModify.sportoloId': vm.selectedGridRow.SportoloId,\r\n 'mofifyHealthAthleteId': vm.selectedGridRow.SportoloId,\r\n 'mofifyHealthAthleteName': vm.selectedGridRow.SportoloNev,\r\n 'mofifyHealthAthleteSocialSecurity': vm.selectedGridRow.taj,\r\n 'mofifyHealthAthleteBirthDate': vm.selectedGridRow.SzuletesiIdo,\r\n 'mofifyHealthId': vm.selectedGridRow.EgeszsegEsetId,\r\n 'mofifyHealthKezeles': vm.selectedGridRow.kezeles,\r\n 'mofifyHealthLeiras': vm.selectedGridRow.leiras,\r\n 'mofifyHealthLetrehozas': vm.selectedGridRow.Letrehozas,\r\n 'mofifyHealthMettol': vm.selectedGridRow.Mettol,\r\n 'mofifyHealthMeddig': vm.selectedGridRow.Meddig,\r\n 'mofifyHealthTipus': vm.selectedGridRow.FoTipus,\r\n 'mofifyHealthAlTipus': vm.selectedGridRow.AlTipus,\r\n 'fromState': 'report',\r\n }]);\r\n $state.go('athletes.athletesManagement.athleteModify.health.modifyHealthEvent');\r\n }\r\n\r\n function MainTypeSelect(arg) {\r\n var mainKey = vm.healthMainType.filter(function (MainType) {\r\n return MainType.text === arg.text;\r\n });\r\n if (mainKey[0] != undefined) {\r\n vm.filteredSubTypes = [];\r\n for (var i = 0; i < vm.healthSubType.length; i++) {\r\n if (vm.healthSubType[i].Fotipus === mainKey[0].value) {\r\n vm.filteredSubTypes.push(vm.healthSubType[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n function getHealthMainTypes() {\r\n dataservice.healthMainTypesList().then(function (response) {\r\n vm.healthMainType.push({text: gettextCatalog.getString('All'), value: -1});\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthMainType.push({text: response.itemsList[i].Nev, value: response.itemsList[i].Id});\r\n }\r\n });\r\n }\r\n\r\n function getHealthSubTypes() {\r\n dataservice.healthSubTypesList().then(function (response) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n vm.healthSubType.push({\r\n text: response.itemsList[i].AltipusNev,\r\n value: response.itemsList[i].Id,\r\n Fotipus: response.itemsList[i].FotipusId\r\n });\r\n }\r\n });\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'hr.section': vm.sectionId},\r\n {'hr.agegroup': vm.ageGroupId},\r\n {'hr.coach': vm.coachId},\r\n {'hr.from': vm.selectdateFrom},\r\n {'hr.to': vm.selectdateTo},\r\n {'hr.main': vm.mainType},\r\n {'hr.sub': vm.subType}\r\n ]);\r\n dataservice.HealthReport(vm.selectdateFrom, vm.selectdateTo, vm.sectionId, vm.ageGroupId, vm.coachId, vm.mainType, vm.subType).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n vm.sectionList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(-1);\r\n }\r\n }\r\n }\r\n\r\n function mainTypeDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#MainTypeDropDown').ejDropDownList('selectItemByValue', vm.healthMainType[0].value);\r\n } else {\r\n angular.element('#MainTypeDropDown').ejDropDownList('selectItemByValue', vm.mainType);\r\n }\r\n }\r\n\r\n function subTypeDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#SubTypeDropDown').ejDropDownList('selectItemByValue', vm.filteredSubTypes[0].value);\r\n } else {\r\n angular.element('#SubTypeDropDown').ejDropDownList('selectItemByValue', vm.subType);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function changeDateFrom(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(vm.ageGroupId);\r\n }\r\n\r\n function changeDateTo(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(vm.ageGroupId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.healthReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.healthReport',\r\n config: {\r\n url: '/healthReport',\r\n templateUrl: 'app/reports/healthReport/healthReport.html',\r\n controller: 'HealthReportController',\r\n controllerAs: 'vm',\r\n title: 'HealthReport',\r\n settings: {\r\n navId: 2184,\r\n level: 2,\r\n order: 18,\r\n orderTitle_hu: 'Egészségügyi adatok',\r\n orderTitle_en: 'Health Data',\r\n parentId: 4,\r\n content: 'HealthReport',\r\n activatorPermission: ['\"HEALTHREPORT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.annualCompetitivePlans')\r\n .controller('AnnualCompetitivePlansController', AnnualCompetitivePlansController);\r\n\r\n function AnnualCompetitivePlansController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AnnualCompetitivePlans');\r\n\r\n // Create variables\r\n vm.params = [];\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 6));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#ancoplcolumnTemplate1', textAlign: 'center', width: 60},\r\n {field: 'Egyeni', headerText: gettextCatalog.getString('Individual'), textAlign: 'center', width: 80, displayAsCheckBox: true},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150, template: '#ancopfiltersection'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150, template: '#ancopopencoach'},\r\n {field: 'KeszitesDatum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 150},\r\n {field: 'EdzoLezarta', type: 'boolean', headerText: gettextCatalog.getString('Closed'), textAlign: 'center', width: 80, displayAsCheckBox: true},\r\n {field: 'EdzoLezartaDatum', headerText: gettextCatalog.getString('ClosedDate'), textAlign: 'center', width: 125},\r\n {field: 'SzakosztalyVezetoJovahagyta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', width: 150, displayAsCheckBox: true},\r\n {field: 'SzakosztalyVezetoJovahagyva', headerText: gettextCatalog.getString('SectionLeaderSignedDate'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToAnnualSeasonPlan = goToAnnualSeasonPlan;\r\n vm.openCoach = openCoach;\r\n vm.filterSection = filterSection;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIEV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTEVVERST'), paramHelper.getParams([], ['annualCompetitivePlans.coachId', 'annualCompetitivePlans.sectionId', 'managementReports.annualCompetitivePlans.dateFrom', 'managementReports.annualCompetitivePlans.dateTo'])]).then(function (results) {\r\n vm.MEGTEVVERST = results[0];\r\n vm.dateFromValue = results[1]['managementReports.annualCompetitivePlans.dateFrom'] ? results[1]['managementReports.annualCompetitivePlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.annualCompetitivePlans.dateTo'] ? results[1]['managementReports.annualCompetitivePlans.dateTo'] : vm.dateToValue;\r\n vm.params = results[1];\r\n });\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.params['annualCompetitivePlans.sectionId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.params['annualCompetitivePlans.sectionId']);\r\n vm.params['annualCompetitivePlans.sectionId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function filterSection(id) {\r\n vm.sectionId = id;\r\n search();\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.params['annualCompetitivePlans.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.params['annualCompetitivePlans.coachId']);\r\n vm.params['annualCompetitivePlans.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getAnnualCompetitiveReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'EdzoLezartaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzakosztalyVezetoJovahagyva');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'KeszitesDatum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n paramHelper.setParams([\r\n {\r\n 'annualCompetitivePlans.sectionId': vm.sectionId\r\n },\r\n {\r\n 'annualCompetitivePlans.coachId': vm.coachId\r\n },\r\n {'managementReports.annualCompetitivePlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.annualCompetitivePlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToAnnualSeasonPlan(args) {\r\n if (!vm.MEGTEVVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'AnnualSeasonPlanReport.Id': args\r\n }]);\r\n $state.go('administration.annualSeasonPlan.annualSeasonPlanReportPage1');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.annualCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.annualCompetitivePlans',\r\n config: {\r\n url: '/annualCompetitivePlans',\r\n templateUrl: 'app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.html',\r\n controller: 'AnnualCompetitivePlansController',\r\n controllerAs: 'vm',\r\n title: 'AnnualCompetitivePlans',\r\n settings: {\r\n navId: 35244,\r\n level: 3,\r\n order: 5,\r\n orderTitle_hu: 'Éves versenyeztetési tervek',\r\n orderTitle_en: 'Annual Competition Plans',\r\n parentId: 244,\r\n content: 'AnnualCompetitivePlans',\r\n activatorPermission: ['\"VEZETOIEV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports',\r\n config: {\r\n url: '/managementReports',\r\n templateUrl: 'app/reports/managementReports/managementReports.html',\r\n title: 'ManagementReports',\r\n settings: {\r\n navId: 244,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Vezetői kimutatások',\r\n orderTitle_en: 'Management Reports',\r\n parentId: 4,\r\n content: 'ManagementReports',\r\n activatorPermission: [\r\n '\"VEZETOIHJ\"',\r\n '\"VEZETOIEV\"',\r\n '\"VEZETOIHV\"',\r\n '\"MEGTHAVIJEL\"',\r\n '\"VEZETOIHE\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.monthlyAttendanceReports')\r\n .controller('MonthlyAttendanceReportsController', MonthlyAttendanceReportsController);\r\n\r\n function MonthlyAttendanceReportsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $filter, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyAttendance');\r\n\r\n // Create variables\r\n vm.params = [];\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#moatrecolumnTemplate1', width: 60, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, template: '#marsection', textAlign: 'center'},\r\n {field: 'KorosztalyNeve', headerText: gettextCatalog.getString('AgeGroup'), width: 125, textAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, template: '#marcoach', textAlign: 'center'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'CsoportLetszam', headerText: gettextCatalog.getString('CsoportLetszam'), width: 125, textAlign: 'center'},\r\n {field: 'Erkezett', headerText: gettextCatalog.getString('Joined'), width: 100, textAlign: 'center'},\r\n {field: 'Tavozott', headerText: gettextCatalog.getString('Departed'), width: 100, textAlign: 'center'},\r\n {field: 'Edzo_Alairta', type: 'boolean', headerText: gettextCatalog.getString('CoachSigned'), width: 125, displayAsCheckBox: true, textAlign: 'center'},\r\n {field: 'Szakosztalyvezeto_Alairta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), width: 150, displayAsCheckBox: true, textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyAttendance = goToMonthlyAttendance;\r\n vm.openCoach = openCoach;\r\n vm.clickOnSection = clickOnSection;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIHJ').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTHAVIJEL'), paramHelper.getParams([], ['monthlyAttendanceReports.coachId', 'monthlyAttendanceReports.sectionId', 'managementReports.monthlyAttendanceReports.dateFrom', 'managementReports.monthlyAttendanceReports.dateTo'])]).then(function (results) {\r\n vm.MEGTHAVIJEL = results[0];\r\n vm.dateFromValue = results[1]['managementReports.monthlyAttendanceReports.dateFrom'] ? results[1]['managementReports.monthlyAttendanceReports.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.monthlyAttendanceReports.dateTo'] ? results[1]['managementReports.monthlyAttendanceReports.dateTo'] : vm.dateToValue;\r\n vm.params = results[1];\r\n });\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function clickOnSection(id) {\r\n vm.sectionId = id;\r\n search();\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.params['monthlyAttendanceReports.sectionId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.params['monthlyAttendanceReports.sectionId']);\r\n vm.params['monthlyAttendanceReports.sectionId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.params['monthlyAttendanceReports.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.params['monthlyAttendanceReports.coachId']);\r\n vm.params['monthlyAttendanceReports.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getMonthlyAttendanceReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n });\r\n\r\n paramHelper.setParams([\r\n {\r\n 'monthlyAttendanceReports.sectionId': vm.sectionId\r\n },\r\n {\r\n 'monthlyAttendanceReports.coachId': vm.coachId\r\n },\r\n {'managementReports.monthlyAttendanceReports.dateFrom': vm.dateFromValue},\r\n {'managementReports.monthlyAttendanceReports.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToMonthlyAttendance(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'monthlyAttendance.id': attendanceId\r\n }\r\n ]);\r\n $state.go('administration.monthlyAttendance.monthlyAttendanceReport');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.monthlyAttendanceReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.monthlyAttendanceReports',\r\n config: {\r\n url: '/monthlyAttendanceReports',\r\n templateUrl: 'app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.html',\r\n controller: 'MonthlyAttendanceReportsController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyAttendance',\r\n settings: {\r\n navId: 32244,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Havi jelenléti ívek',\r\n orderTitle_en: 'Monthly Attendance Sheets',\r\n parentId: 244,\r\n content: 'MonthlyAttendance',\r\n activatorPermission: ['\"VEZETOIHJ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.monthlyCompetitivePlans')\r\n .controller('MonthlyCompetitivePlansController2', MonthlyCompetitivePlansController2);\r\n\r\n function MonthlyCompetitivePlansController2(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyCompetitivePlansManagementReport');\r\n\r\n // Create variables\r\n vm.promises = [];\r\n vm.coachId = -1;\r\n vm.sectionId = -1;\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#mocomplcolumnTemplate1', width: 60, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n template: '#mocomplcolumnTemplate2',\r\n width: 150,\r\n textAlign: 'center'\r\n },\r\n {field: 'ErvenyesDatum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'AlairtaDatum', headerText: gettextCatalog.getString('SignedDate'), width: 125, textAlign: 'center'},\r\n {\r\n field: 'JovahagytaDatum',\r\n headerText: gettextCatalog.getString('SectionLeaderSignedDate'), width: 125, textAlign: 'center'\r\n },\r\n {\r\n field: 'JovahagytaNeve',\r\n headerText: gettextCatalog.getString('SectionLeaderSigned'),\r\n template: '#mocomplcolumnTemplate3', width: 150, textAlign: 'center'\r\n }\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyCompetitivePlan = goToMonthlyCompetitivePlan;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('VEZETOIHV'),\r\n authenticationService.getRight('MEGTHAVIVERST'),\r\n paramHelper.getParams([], [\r\n 'monthlyCompetitivePlans.coachId',\r\n 'monthlyCompetitivePlans.szakosztalyId', 'managementReports.monthlyCompetitivePlans.dateFrom', 'managementReports.monthlyCompetitivePlans.dateTo'])])\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTHAVIVERST = results[1];\r\n vm.dateFromValue = results[2]['managementReports.monthlyCompetitivePlans.dateFrom'] ? results[2]['managementReports.monthlyCompetitivePlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[2]['managementReports.monthlyCompetitivePlans.dateTo'] ? results[2]['managementReports.monthlyCompetitivePlans.dateTo'] : vm.dateToValue;\r\n vm.promises = results[2];\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.promises['monthlyCompetitivePlans.szakosztalyId']) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.promises['monthlyCompetitivePlans.szakosztalyId']);\r\n vm.promises['monthlyCompetitivePlans.szakosztalyId'] = null;\r\n } else if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.promises['monthlyCompetitivePlans.coachId']) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.promises['monthlyCompetitivePlans.coachId']);\r\n vm.promises['monthlyCompetitivePlans.coachId'] = null;\r\n } else if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getMonthlyCompetitiveReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'ErvenyesDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'JovahagytaDatum');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'AlairtaDatum');\r\n });\r\n paramHelper.setParams([\r\n {\r\n 'monthlyCompetitivePlans.szakosztalyId': vm.sectionId\r\n },\r\n {\r\n 'monthlyCompetitivePlans.coachId': vm.coachId\r\n },\r\n {'managementReports.monthlyCompetitivePlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.monthlyCompetitivePlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToMonthlyCompetitivePlan(planId, egyeni) {\r\n console.log(egyeni);\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'competitiveMonthlyPlan.competitivePlanId': planId\r\n },\r\n {'competitiveMonthlyPlan.szakosztalyId': vm.sectionId},\r\n {'monthlyCompetitivePlan.coachId': vm.coachId},\r\n {'competitiveMonthlyPlan.egyeni': egyeni}\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.monthlyCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.monthlyCompetitivePlans',\r\n config: {\r\n url: '/monthlyCompetitivePlans',\r\n templateUrl: 'app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.html',\r\n controller: 'MonthlyCompetitivePlansController2',\r\n controllerAs: 'vm',\r\n title: 'MonthlyCompetitivePlansManagementReport',\r\n settings: {\r\n navId: 34244,\r\n level: 3,\r\n order: 4,\r\n orderTitle_hu: 'Havi versenyeztetési tervek',\r\n orderTitle_en: 'Monthly Competitive Plans',\r\n parentId: 244,\r\n content: 'MonthlyCompetitivePlansManagementReport',\r\n activatorPermission: ['\"VEZETOIHV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.trainingDiaryReports')\r\n .controller('TrainingDiaryReportsController', TrainingDiaryReportsController);\r\n\r\n function TrainingDiaryReportsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, paramHelper, $scope, $filter, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingDiaryReports');\r\n\r\n vm.promises = [];\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#tdropentd', textAlign: 'center', width: 60},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: 150, textAlign: 'center'},\r\n {field: 'KorosztalyNeve', headerText: gettextCatalog.getString('AgeGroup'), width: 100, textAlign: 'center'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), width: 150, template: '#tdrcoach', textAlign: 'center'},\r\n {field: 'Datum', headerText: gettextCatalog.getString('Date'), width: 125, textAlign: 'center'},\r\n {field: 'EdzesNapokSzama', headerText: gettextCatalog.getString('NumberOfTrainingDays'), width: 125, textAlign: 'center'},\r\n {field: 'Edzo_Alairta', type: 'boolean', headerText: gettextCatalog.getString('CoachSigned'), textAlign: 'center', width: 125, displayAsCheckBox: true},\r\n {field: 'Szakosztalyvezeto_Alairta', type: 'boolean', headerText: gettextCatalog.getString('SectionLeaderSigned'), textAlign: 'center', width: 150, displayAsCheckBox: true}\r\n ];\r\n\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.search = search;\r\n vm.openTrainingDiary = openTrainingDiary;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupId = -1;\r\n vm.sectionId = -1;\r\n vm.coachId = -1;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n authenticationService.getRight('VEZETOIHJ'),\r\n authenticationService.getRight('MEGTHAVIJEL'),\r\n paramHelper.getParams([], [\r\n 'trainingDiaryReports.dateFromValue',\r\n 'trainingDiaryReports.dateToValue',\r\n 'trainingDiaryReports.sectionId',\r\n 'trainingDiaryReports.coachId',\r\n 'trainingDiaryReports.ageGroupId'])]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.MEGTHAVIJEL = results[1];\r\n vm.promises = results[2];\r\n if (vm.promises['trainingDiaryReports.dateFromValue']) {\r\n vm.dateFromValue = vm.promises['trainingDiaryReports.dateFromValue'];\r\n }\r\n if (vm.promises['weeklyTrainingPlans.dateToValue']) {\r\n vm.dateToValue = vm.promises['trainingDiaryReports.dateToValue'];\r\n }\r\n\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'trainingDiaryReports.dateFromValue',\r\n 'trainingDiaryReports.dateToValue',\r\n 'trainingDiaryReports.sectionId',\r\n 'trainingDiaryReports.coachId',\r\n 'trainingDiaryReports.ageGroupId'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['trainingDiaryReports.sectionId'];\r\n vm.ageGroupId = results[0]['trainingDiaryReports.ageGroupId'];\r\n vm.coachId = results[0]['trainingDiaryReports.coachId'];\r\n vm.dateFromValue = results[0]['trainingDiaryReports.dateFromValue'];\r\n vm.dateToValue = results[0]['trainingDiaryReports.dateToValue'];\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getAgeGroups(coachId) {\r\n dataservice.ageGroupSelectBetweenDates(coachId, vm.sectionId, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n vm.ageGroupList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n getAgeGroups(0);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n if (vm.coachId) {\r\n getAgeGroups(0);\r\n }\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function search() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getTrainingDiaryReports(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Datum');\r\n });\r\n\r\n paramHelper.setParams(\r\n [\r\n {'trainingDiaryReports.dateFromValue': vm.dateFromValue},\r\n {'trainingDiaryReports.dateToValue': vm.dateToValue},\r\n {'trainingDiaryReports.sectionId': vm.sectionId},\r\n {'trainingDiaryReports.coachId': vm.coachId},\r\n {'trainingDiaryReports.ageGroupId': vm.ageGroupId},\r\n ]);\r\n }\r\n\r\n function openTrainingDiary(attendanceId) {\r\n if (!vm.MEGTHAVIJEL) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'HaviJelenletiFejId': attendanceId}]);\r\n $state.go('administration.trainingDiary');\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.trainingDiaryReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.trainingDiaryReports',\r\n config: {\r\n url: '/trainingDiaryReports',\r\n templateUrl: 'app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.html',\r\n controller: 'TrainingDiaryReportsController',\r\n controllerAs: 'vm',\r\n title: 'TrainingDiaryReports',\r\n settings: {\r\n navId: 31244,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Képzési naplók',\r\n orderTitle_en: 'Training Diaries',\r\n parentId: 244,\r\n content: 'TrainingDiaryReports',\r\n activatorPermission: ['\"MEGTHAVIJEL\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.weeklyTrainingPlans')\r\n .controller('WeeklyTrainingPlansController', WeeklyTrainingPlansController);\r\n\r\n function WeeklyTrainingPlansController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $state, $scope, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('WeeklyTrainingPlans');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n\r\n vm.dateToValue = getMonday(new Date(), 6);\r\n vm.dateFromValue = getMonday(new Date(), 0);\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#wetrplcolumnTemplate1', textAlign: 'center', width: 60},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', template: '#wetrplcolumnTemplate2', width: 150},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'HetSzama', headerText: gettextCatalog.getString('WeekNumber'), textAlign: 'center', width: 115},\r\n {field: 'Makrociklus', headerText: gettextCatalog.getString('MacroCycleNumber'), textAlign: 'center', width: 150},\r\n {field: 'Hetfo', headerText: gettextCatalog.getString('Monday'), textAlign: 'center', width: 115},\r\n {field: 'Vasarnap', headerText: gettextCatalog.getString('Sunday'), textAlign: 'center', width: 115}\r\n ];\r\n\r\n // Public functions\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToWeeklyTrainingPlan = goToWeeklyTrainingPlan;\r\n vm.openCoach = openCoach;\r\n vm.coachSelect = coachSelect;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('VEZETOIHE').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n Promise.all([authenticationService.getRight('MEGTHETIEDZTERV'), paramHelper.getParams([], ['managementReports.weeklyTrainingPlans.szakosztalyId', 'managementReports.weeklyTrainingPlans.coachId', 'managementReports.weeklyTrainingPlans.dateFrom', 'managementReports.weeklyTrainingPlans.dateTo'])])\r\n .then((results) => {\r\n vm.MEGTHETIEDZTERV = results[0];\r\n vm.sectionId = results[1]['managementReports.weeklyTrainingPlans.szakosztalyId'];\r\n vm.coachId = results[1]['managementReports.weeklyTrainingPlans.coachId'];\r\n vm.dateFromValue = results[1]['managementReports.weeklyTrainingPlans.dateFrom'] ? results[1]['managementReports.weeklyTrainingPlans.dateFrom'] : vm.dateFromValue;\r\n vm.dateToValue = results[1]['managementReports.weeklyTrainingPlans.dateTo'] ? results[1]['managementReports.weeklyTrainingPlans.dateTo'] : vm.dateToValue;\r\n $timeout(function () {\r\n angular.element('#datepickerFrom').ejDatePicker({value: vm.dateFromValue});\r\n angular.element('#datepickerTo').ejDatePicker({value: vm.dateToValue});\r\n }, 0);\r\n getSections();\r\n });\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n vm.dateFromDB = function () {\r\n console.log('vm.dateFromDB');\r\n };\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value, vm.dateFromValue, vm.dateToValue);\r\n }\r\n\r\n vm.dateChange = function (args) {\r\n getActualCoachesList(vm.sectionId, args.value, vm.dateToValue);\r\n };\r\n\r\n vm.dateChange2 = function (args) {\r\n getActualCoachesList(vm.sectionId, vm.dateFromValue, args.value);\r\n };\r\n\r\n function getActualCoachesList(sectionId, dateFrom, dateTo) {\r\n return dataservice.coachDropDownList(sectionId, 0, dateFrom, dateTo).then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n search();\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getWeeklyTrainingPlans(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'Hetfo');\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'Vasarnap');\r\n });\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlans.szakosztalyId': vm.sectionId},\r\n {'weeklyTrainingPlans.coachId': vm.coachId},\r\n {'managementReports.weeklyTrainingPlans.szakosztalyId': vm.sectionId},\r\n {'managementReports.weeklyTrainingPlans.coachId': vm.coachId},\r\n {'managementReports.weeklyTrainingPlans.dateFrom': vm.dateFromValue},\r\n {'managementReports.weeklyTrainingPlans.dateTo': vm.dateToValue}\r\n ]);\r\n }\r\n\r\n function goToWeeklyTrainingPlan(trainingPlanId) {\r\n if (!vm.MEGTHETIEDZTERV) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'weeklyTrainingPlan.trainingPlanId': trainingPlanId\r\n },\r\n {\r\n 'weeklyTrainingPlans.szakosztalyId': vm.sectionId\r\n },\r\n {\r\n 'weeklyTrainingPlans.coachId': vm.coachId\r\n }\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.managementReports.weeklyTrainingPlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.managementReports.weeklyTrainingPlans',\r\n config: {\r\n url: '/weeklyTrainingPlans',\r\n templateUrl: 'app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.html',\r\n controller: 'WeeklyTrainingPlansController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTrainingPlans',\r\n settings: {\r\n navId: 33244,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Heti edzéstervek',\r\n orderTitle_en: 'Weekly Training Plans',\r\n parentId: 244,\r\n content: 'WeeklyTrainingPlans',\r\n activatorPermission: ['\"VEZETOIHE\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.monthlyCompetitivePlans')\r\n .controller('MonthlyCompetitivePlansController', MonthlyCompetitivePlansController);\r\n\r\n function MonthlyCompetitivePlansController(log, dataservice, $rootScope, gettextCatalog, authenticationService, paramHelper, $state, $scope, $q, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('MonthlyCompetitivePlans');\r\n\r\n // Create variables\r\n vm.coachList = [];\r\n vm.sectionList = [];\r\n vm.dateToValue = new Date();\r\n vm.dateFromValue = new Date(new Date().setMonth(new Date().getMonth() - 3));\r\n vm.savedSectionId = 0;\r\n vm.savedCoachId = 0;\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.coachDataBound = coachDataBound;\r\n vm.search = search;\r\n vm.goToMonthlyCompetitivePlan = goToMonthlyCompetitivePlan;\r\n vm.openCoach = openCoach;\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'SportoloId', isPrimaryKey: true, visible: false},\r\n {field: 'Link', headerText: '', textAlign: 'center', width: 60, template: '#moncompplacolumnTemplate1'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#monthlyCompetitivePlanscolumnTemplate1'\r\n },\r\n {field: 'ErvenyesDatum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'AlairtaDatum', headerText: gettextCatalog.getString('SignedDate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'JovahagytaDatum', headerText: gettextCatalog.getString('ApprovalDate'), textAlign: 'center',\r\n width: 125\r\n },\r\n {\r\n field: 'JovahagytaNeve',\r\n headerText: gettextCatalog.getString('Approval'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#monthlyCompetitivePlanscolumnTemplate2'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n gridLines: 'Both',\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMHAVIVERSTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTHAVIVERST'), paramHelper.getParams([], ['mcp.coach', 'mcp.section'])]).then(function (results) {\r\n vm.MEGTHAVIVERST = results[0];\r\n vm.sectionId = results[1]['mcp.section'];\r\n vm.coachId = results[1]['mcp.coach'] === null ? -1 : results[1]['mcp.coach'];\r\n });\r\n setDropDowns();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'mcp.section',\r\n 'mcp.coach',\r\n 'mcp.from',\r\n 'mcp.to',\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[0]['mcp.section'] > 0) {\r\n vm.savedSectionId = results[0]['mcp.section'];\r\n vm.savedCoachId = results[0]['mcp.coach'];\r\n vm.dateFromValue = results[0]['mcp.from'];\r\n vm.dateToValue = results[0]['mcp.to'];\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.savedSectionId > 0) {\r\n vm.sectionId = vm.savedSectionId;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n } else {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(sectionId) {\r\n return dataservice.coachDropDownList(sectionId, 0, vm.dateFromValue, vm.dateToValue).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.savedCoachId > 0) {\r\n vm.coachId = vm.savedCoachId;\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n } else {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n }\r\n\r\n function search() {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'mcp.section': vm.sectionId},\r\n {'mcp.coach': vm.coachId},\r\n {'mcp.from': vm.dateFromValue},\r\n {'mcp.to': vm.dateToValue}\r\n ]);\r\n dataservice.getMonthlyCompetitivePlans(vm.dateFromValue, vm.dateToValue, vm.sectionId, vm.coachId).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'ErvenyesDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'AlairtaDatum');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'JovahagytaDatum');\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function goToMonthlyCompetitivePlan(planId) {\r\n var result = $.grep(grid.currentViewData, function (e) {\r\n return e.planId == planId;\r\n });\r\n if (!vm.MEGTHAVIVERST) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {\r\n 'competitiveMonthlyPlan.edzoId': result[0].EdzoId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.edzoNev': result[0].EdzoNeve\r\n },\r\n {\r\n 'competitiveMonthlyPlan.szakosztalyNev': result[0].szakosztalyNev\r\n },\r\n {\r\n 'competitiveMonthlyPlan.szakosztalyId': result[0].SzakosztalyId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.competitivePlanId': result[0].planId\r\n },\r\n {\r\n 'competitiveMonthlyPlan.egyeni': result[0].egyeni\r\n }\r\n ]);\r\n $state.go('administration.competitiveMonthlyPlan.competitiveMonthlyPlanReport');\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.dateFromValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.dateToValue = args.value;\r\n getActualCoachesList(vm.sectionId);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.monthlyCompetitivePlans')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.monthlyCompetitivePlans',\r\n config: {\r\n url: '/monthlyCompetitivePlans',\r\n templateUrl: 'app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.html',\r\n controller: 'MonthlyCompetitivePlansController',\r\n controllerAs: 'vm',\r\n title: 'MonthlyCompetitivePlans',\r\n settings: {\r\n navId: 274,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Havi versenyeztetési tervek',\r\n orderTitle_en: 'Monthly Competitive Plans',\r\n parentId: 4,\r\n content: 'MonthlyCompetitivePlans',\r\n activatorPermission: ['\"KMHAVIVERSTERV\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.playUpAndDown')\r\n .controller('PlayUpAndDownController', PlayUpAndDownController);\r\n\r\n function PlayUpAndDownController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('PlayUpAndDown');\r\n\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#puadcoach'\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#puadath'\r\n },\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 125},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n type: 'boolean',\r\n displayAsCheckBox: true,\r\n textAlign: 'center',\r\n width: 115\r\n },\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('EducationalFee'),\r\n textAlign: 'center',\r\n width: 150\r\n },\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('PaidAmount'), textAlign: 'center', width: 150},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMATFELJATSZ').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'puad.section',\r\n 'puad.agegroup',\r\n 'puad.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n console.log('setDropDowns', results[0]);\r\n vm.sectionId = results[0]['puad.section'];\r\n vm.sectionIdValue = results[0]['puad.section'];\r\n vm.ageGroupId = results[0]['puad.agegroup'];\r\n vm.ageGroupIdValue = results[0]['puad.agegroup'];\r\n vm.coachId = results[0]['puad.coach'];\r\n vm.coachIdValue = results[0]['puad.coach'];\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n // Get sections' list\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachList = [];\r\n vm.ageGroupId = -1;\r\n getAgeGroups();\r\n }\r\n\r\n // Get age groups' list\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (!vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(agegroup) {\r\n if (!agegroup) {\r\n agegroup = 0;\r\n }\r\n return dataservice.coachDropDownList(vm.sectionId, agegroup).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: -1});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'puad.section': vm.sectionId},\r\n {'puad.agegroup': vm.ageGroupId},\r\n {'puad.coach': vm.coachId}\r\n ]);\r\n dataservice.getUpAndDownPlayers(vm.sectionId, vm.ageGroupId, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.playUpAndDown')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.playUpAndDown',\r\n config: {\r\n url: '/playUpAndDown',\r\n templateUrl: 'app/reports/playUpAndDown/playUpAndDown.html',\r\n controller: 'PlayUpAndDownController',\r\n controllerAs: 'vm',\r\n title: 'PlayUpAndDown',\r\n settings: {\r\n navId: 2104,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Át/Feljátszó sportolók',\r\n orderTitle_en: 'Play Up Athletes',\r\n parentId: 4,\r\n content: 'PlayUpAndDown',\r\n activatorPermission: ['\"KMATFELJATSZ\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.raceResultsReport')\r\n .controller('RaceResultsReportController', RaceResultsReportController);\r\n\r\n function RaceResultsReportController(log, logger, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $scope, $filter, $state, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n vm.params = [];\r\n $rootScope.title = gettextCatalog.getString('RaceResultsReport');\r\n\r\n // Create variables\r\n vm.searched = '';\r\n vm.requestedData = {\r\n Csapat: {CsapatId: undefined, CsapatNev: undefined}, // Csapat neve\r\n Szakosztaly: {SzakosztalyId: 0, SzakosztalyNev: undefined},\r\n Korcsoport: {KorcsoportId: undefined, KorcsoportNev: undefined},\r\n Edzo: {EdzoId: undefined, EdzoNev: undefined}, // int Edző (UserId)\r\n Sportolo: {SportoloId: undefined, SportoloNev: undefined, SzuletesiIdo: undefined}, // Sportoló adatai\r\n EredmenySzoveg: undefined, // Eredmény (szöveg input mező)\r\n DatumTol: undefined, // DateTime? Dátumtól\r\n DatumIg: undefined, // DateTime? Dátumig\r\n Helyszin: undefined, // string Helyszín\r\n Helyezes: undefined, // string Helyezés\r\n Ertekeles: undefined, // string Értékelés\r\n Jellege: undefined, // string Jellege\r\n Verseny: undefined, // string Verseny\r\n Eredmeny: undefined, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n Foto: undefined, // (megjeleníteni kell kiválaszás esetén)\r\n SportoloKereses: true\r\n };\r\n // For print\r\n vm.reportParameters = {};\r\n vm.reportParameters2 = {};\r\n // section\r\n vm.sectionList = [];\r\n // age group\r\n vm.ageGroupList = [];\r\n // team\r\n vm.teamsList = [];\r\n vm.selectedTeamId = undefined;\r\n // coach\r\n vm.coachList = [];\r\n vm.selectedCoachList;\r\n vm.birthDate = undefined;\r\n vm.selectdateTo = new Date();\r\n vm.requestedData.DatumIg = new Date();\r\n\r\n vm.coachRating = undefined; // Edzo ertekelese\r\n vm.athleteData = {\r\n Id: undefined,\r\n IdSzakosztaly: undefined, // Int32\r\n Korcsoport: undefined, // Int32\r\n JelenlegiEdzo: undefined, // int\r\n Nev: undefined, // String\r\n SzuletesiIdo: undefined // DateTime\r\n };\r\n\r\n vm.reportDatasGrid = [];\r\n vm.reportDatasGrid[0] = vm.reportData1;\r\n vm.reportDatasGrid[1] = vm.reportData2;\r\n vm.reportDatasGrid[2] = vm.reportData3;\r\n\r\n // GRID\r\n vm.pageData = 1;\r\n vm.actionBegin = actionBegin;\r\n vm.schoolGridSelectedRowData = {};\r\n vm.columnsAthlete = [\r\n {\r\n field: 'Link',\r\n headerText: '',\r\n textAlign: 'center',\r\n width: '60',\r\n template: '#rareretemplateDataColumn3'\r\n },\r\n {\r\n field: 'SportoloNev',\r\n headerText: gettextCatalog.getString('AthleteName'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn1'\r\n },\r\n {\r\n field: 'EredmenySzoveg',\r\n headerText: gettextCatalog.getString('ResultText'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EredmenyPont',\r\n headerText: gettextCatalog.getString('ResultScore'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'EredmenyIdo',\r\n headerText: gettextCatalog.getString('ResultTime'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'EredmenyTavolsag',\r\n headerText: gettextCatalog.getString('ResultDistance'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'DatumTol',\r\n headerText: gettextCatalog.getString('DateFrom'),\r\n textAlign: 'center',\r\n width: '100'\r\n },\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), textAlign: 'center', width: '100'},\r\n {\r\n field: 'Helyszin',\r\n headerText: gettextCatalog.getString('Location'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Helyezes',\r\n headerText: gettextCatalog.getString('Helyezes'),\r\n textAlign: 'center',\r\n width: '115'\r\n },\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '250', textAlign: 'center'},\r\n {\r\n field: 'Ertekeles',\r\n headerText: gettextCatalog.getString('CoachRating'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'Jellege',\r\n headerText: gettextCatalog.getString('Jellege'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), textAlign: 'center', width: '90'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#rareretemplateDataColumn2'\r\n },\r\n {\r\n headerText: gettextCatalog.getString('Print'),\r\n textAlign: 'center',\r\n width: '100',\r\n template: '#rareretemplateDataColumn4'\r\n }\r\n ];\r\n vm.columnsTeam = [\r\n\r\n {field: 'Link', headerText: '', width: '60', template: '#rareretemplateDataColumn7', textAlign: 'center'},\r\n {\r\n field: 'CsapatNev',\r\n headerText: gettextCatalog.getString('TeamName'),\r\n width: '150',\r\n template: '#rareretemplateDataColumn5',\r\n textAlign: 'center'\r\n },\r\n {field: 'EredmenySzoveg', headerText: gettextCatalog.getString('ResultText'), width: '200', textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), width: '115', textAlign: 'center'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), width: '115', textAlign: 'center'},\r\n {field: 'DatumTol', headerText: gettextCatalog.getString('DateFrom'), width: '90', textAlign: 'center'},\r\n {field: 'DatumIg', headerText: gettextCatalog.getString('DateTo'), width: '90', textAlign: 'center'},\r\n {field: 'Helyszin', headerText: gettextCatalog.getString('Location'), width: '125', textAlign: 'center'},\r\n {field: 'Helyezes', headerText: gettextCatalog.getString('AthleteRanking'), width: '100', textAlign: 'center'},\r\n {field: 'VersenyLeiras', headerText: gettextCatalog.getString('VersenyLeiras'), width: '200', textAlign: 'center'},\r\n {field: 'Ertekeles', headerText: gettextCatalog.getString('CoachRating'), width: '200', textAlign: 'center'},\r\n {field: 'Jellege', headerText: gettextCatalog.getString('Jellege'), width: '175', textAlign: 'center'},\r\n {field: 'Eredmeny', headerText: gettextCatalog.getString('Result'), textAlign: 'center', width: '90'}, //int Edzői értékelés (Eredmeny = -2 => 1;Eredmeny =2=> 5 )\r\n {\r\n field: 'Versenyszam',\r\n headerText: gettextCatalog.getString('Versenyszam'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: '150',\r\n template: '#rareretemplateDataColumn6',\r\n textAlign: 'center'\r\n },\r\n {field: 'Print', headerText: gettextCatalog.getString('Print'), width: '100', template: '#rareretemplateDataColumn8', textAlign: 'center'}\r\n ];\r\n\r\n // Public functions\r\n vm.clearYear = clearYear;\r\n vm.clearTeam = clearTeam;\r\n vm.clearSection = clearSection;\r\n vm.clearAgeGroup = clearAgeGroup;\r\n vm.clearCoach = clearCoach;\r\n vm.clearSelectdateFrom = clearSelectdateFrom;\r\n vm.clearSelectdateTo = clearSelectdateTo;\r\n\r\n vm.openCoach = openCoach;\r\n vm.radioButtonChecked = radioButtonChecked;\r\n vm.radioButtonClear = radioButtonClear;\r\n // Buttons for Grid\r\n vm.searchTeam = searchTeam; // Grid data change button\r\n vm.searchAthlete = searchAthlete; // Grid data change button\r\n vm.openAthlete = openAthlete;\r\n vm.openTeam = openTeam;\r\n\r\n // sectionDropDown\r\n vm.sectionDataBound = sectionDataBound; // Public\r\n vm.sectionSelect = sectionSelect; // Public\r\n // ageGroupDropDown\r\n vm.ageGroupDataBound = ageGroupDataBound; // Public\r\n vm.ageGroupSelect = ageGroupSelect; // Public\r\n // teamDropDown\r\n vm.teamsDataBound = teamsDataBound; // Public\r\n vm.teamsSelect = teamsSelect; // Public\r\n // coach\r\n vm.coachDropDownListDataBound = coachDropDownListDataBound;\r\n vm.coachSelect = coachSelect;\r\n // date pickers\r\n vm.selectdateFromChange = selectdateFromChange;\r\n vm.selectdateToChange = selectdateToChange;\r\n vm.selectBirthDate = selectBirthDate;\r\n\r\n vm.selectdCoach = '';\r\n vm.deleteResult = deleteResult;\r\n vm.open = open;\r\n vm.printAthleteResult = printAthleteResult;\r\n vm.printTeamResult = printTeamResult;\r\n\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n vm.isAdmin = false;\r\n vm.showDelButton = false;\r\n vm.selectedRowData = {};\r\n vm.nameChange = nameChange;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsAthlete,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Print']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Print']);\r\n },\r\n rowSelected: function () {\r\n $timeout(function () {\r\n vm.showDelButton = true;\r\n }, 10);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n var grid2 = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columnsTeam,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link', 'Print']);\r\n },\r\n printComplete: function (args) {\r\n $rootScope.printCompleteGrid(args, ['Link', 'Print']);\r\n },\r\n rowSelected: function () {\r\n $timeout(function () {\r\n vm.showDelButton = true;\r\n }, 10);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n grid2.appendTo('#Grid2');\r\n grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([\r\n paramHelper.getParams([], ['raceResultsReport.athleteData', 'teamID']),\r\n authenticationService.getRight('KMVERSEREDM')\r\n ]).then(function (results) {\r\n if (!results[1]) {\r\n log.permissionError(true);\r\n } else {\r\n vm.params = results;\r\n paramHelper.removeParam('raceResultsReport.athleteData'); // Clear athleteData\r\n paramHelper.removeParam('teamID'); // Clear teamID\r\n if (results[0]['teamID']) {\r\n vm.SelectedTeamID = results[0]['teamID'];\r\n getResultTeam();\r\n // Clear();\r\n } else if (results[0]['raceResultsReport.athleteData']) {\r\n vm.athleteData = results[0]['raceResultsReport.athleteData'];\r\n vm.athleteData.Nev = results[0]['raceResultsReport.athleteData'].Nev;\r\n vm.requestedData.Sportolo.SportoloId = results[0]['raceResultsReport.athleteData'].SportolokId;\r\n getActualCoachesList();\r\n searchAthlete();\r\n //Clear();\r\n } else {\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n }\r\n $timeout(function () {\r\n //angular.element('#birthDate').ejDropDownList('selectItemByValue', new Date(data.ErvenyessegTol).getFullYear() + ' / ' + new Date(data.ErvenyessegIg).getFullYear());\r\n vm.birthDate = vm.athleteData.SzuletesiIdo;\r\n }, 0);\r\n\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n getTeamsList();\r\n }\r\n });\r\n }\r\n\r\n function nameChange() {\r\n vm.requestedData.Sportolo.SportoloId = null;\r\n }\r\n\r\n function searchAthlete() {\r\n vm.searched = 'athlete';\r\n vm.requestedData.SportoloKereses = true;\r\n vm.requestedData.Sportolo.SportoloNev = vm.athleteData.Nev;\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.SelectedSectionID;\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.SelectedAgeGroupID;\r\n vm.requestedData.Edzo.EdzoId = vm.SelectedCoachID;\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n vm.requestedData.Sportolo.SzuletesiIdo = vm.birthDate;\r\n dataservice.getResultsReports(vm.requestedData)\r\n .then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumTol');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumIg');\r\n grid.dataSource = $filter('valueChangeFromObject')(data.itemsList, 'Eredmeny');\r\n vm.isAdmin = data.isAdmin;\r\n });\r\n angular.element('#hidedContent').css('height', '500px');\r\n angular.element('#hidedContent2').css('height', '0px');\r\n }\r\n\r\n function getResultTeam() {\r\n vm.requestedData.SportoloKereses = false;\r\n vm.requestedData.Sportolo.SportoloNev = vm.athleteData.Nev;\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.SelectedSectionID;\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.SelectedAgeGroupID;\r\n vm.requestedData.Edzo.EdzoId = vm.SelectedCoachID;\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n dataservice.getResultsReports(vm.requestedData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumTol');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'DatumIg');\r\n grid2.dataSource = $filter('valueChangeFromObject')(data.itemsList, 'Eredmeny');\r\n vm.isAdmin = data.isAdmin;\r\n });\r\n angular.element('#hidedContent').css('height', '0px');\r\n angular.element('#hidedContent2').css('height', '500px');\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n getTeamsList();\r\n vm.showDelButton = false;\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n vm.showDelButton = false;\r\n }\r\n\r\n function teamsSelect(args) {\r\n vm.SelectedTeamID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedTeamID = 0;\r\n }\r\n vm.requestedData.Csapat.CsapatNev = angular.element('#Team').data('ejDropDownList').currentValue;\r\n angular.element('#coach').ejDropDownList('selectItemByValue', 0);\r\n vm.requestedData.Edzo.EdzoId = undefined;\r\n vm.requestedData.Edzo.EdzoNev = undefined;\r\n vm.showDelButton = false;\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.requestedData.DatumTol, vm.requestedData.DatumIg) // Need the section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() { // getCoaches - EdzoFelhasznalokDropdownSelect. use this, when not yet selected section and age group\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n function getTeamsList() {\r\n dataservice.teamsDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID, vm.SelectedCoachID)\r\n .then(function (data) {\r\n vm.teamsList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('All')};\r\n vm.teamsList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function selectdateFromChange(args) {\r\n vm.requestedData.DatumTol = args.value; // DateTime? Dátumtól\r\n vm.requestedData.DatumTol = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function selectdateToChange(args) {\r\n vm.requestedData.DatumIg = args.value; // DateTime? Dátumig\r\n vm.requestedData.DatumIg = args.value;\r\n getActualCoachesList();\r\n }\r\n\r\n function selectBirthDate(args) {\r\n vm.birthDate = args.value; // DateTime?\r\n vm.requestedData.Sportolo.SzuletesiIdo = args.value;\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openTeam(id) {\r\n $q.all([authenticationService.getRight('MEGTCSOPORT')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'teams.sectionId': '0'},\r\n {'teams.ageGroupId': '0'},\r\n {'teams.team': id}\r\n ]);\r\n $state.go('athletes.teams.teamMembersList');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function open(id) {\r\n if (vm.requestedData.SportoloKereses === true) {\r\n $q.all([authenticationService.getRight('MEGTEERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportAthletes.Id': id}]);\r\n $state.go('administration.resultReportAthletes');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n } else {\r\n $q.all([authenticationService.getRight('MEGTCSERJEL')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'resultReportTeam.Id': id}]);\r\n $state.go('administration.resultReportTeam');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function radioButtonChecked(args) {\r\n vm.requestedData.Eredmeny = args.model.value; // Edzo ertekelese - Eredmeny int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n }\r\n\r\n function radioButtonClear() {\r\n vm.requestedData.Eredmeny = undefined;\r\n }\r\n\r\n function searchTeam() {\r\n vm.searched = 'team';\r\n getResultTeam();\r\n angular.element('#hidedContent').css('height', '0px');\r\n angular.element('#hidedContent2').css('height', '500px');\r\n }\r\n\r\n function actionBegin(args) {\r\n if (args.requestType && (args.requestType === 'paging' || args.requestType === 'sorting')) {\r\n args.cancel = true;\r\n args.previousPage = args.currentPage;\r\n }\r\n }\r\n\r\n function deleteResult() {\r\n var csapatEredmeny = undefined;\r\n var resultReportID = 0;\r\n vm.selectedRowsInGrid1 = grid.getSelectedRecords();\r\n vm.selectedRowsInGrid2 = grid2.getSelectedRecords();\r\n if (!vm.selectedRowsInGrid1[0] && !vm.selectedRowsInGrid2[0]) {\r\n csapatEredmeny = '';\r\n } else if (!vm.selectedRowsInGrid2[0] && vm.selectedRowsInGrid1[0]) {\r\n csapatEredmeny = false;\r\n resultReportID = vm.selectedRowsInGrid1[0].Id;\r\n } else if (!vm.selectedRowsInGrid1[0] && vm.selectedRowsInGrid2[0]) {\r\n csapatEredmeny = true;\r\n resultReportID = vm.selectedRowsInGrid2[0].Id;\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected result report?'),\r\n text: gettextCatalog.getString('You will not be able to recover the deleted result report!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this result report'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteResultsReport(resultReportID, csapatEredmeny)\r\n .then(function () {\r\n vm.showDelButton = false;\r\n log.successMsg(gettextCatalog.getString('ResultReportDeleted'));\r\n swal(gettextCatalog.getString('Deleted!'), '', 'success');\r\n if (vm.requestedData.SportoloKereses === true) {\r\n searchAthlete();\r\n } else {\r\n getResultTeam();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function Clear() {\r\n vm.requestedData = {\r\n Csapat: {CsapatId: undefined, CsapatNev: undefined}, // Csapat neve\r\n Szakosztaly: {SzakosztalyId: 0, SzakosztalyNev: undefined},\r\n Korcsoport: {KorcsoportId: undefined, KorcsoportNev: undefined},\r\n Edzo: {EdzoId: undefined, EdzoNev: undefined}, // int Edző (UserId)\r\n Sportolo: {SportoloId: undefined, SportoloNev: undefined, SzuletesiIdo: undefined}, // Sportoló adatai\r\n EredmenySzoveg: undefined, // Eredmény (szöveg input mező)\r\n DatumTol: undefined, // DateTime? Dátumtól\r\n DatumIg: undefined, // DateTime? Dátumig\r\n Helyszin: undefined, // string Helyszín\r\n Helyezes: undefined, // string Helyezés\r\n Ertekeles: undefined, // string Értékelés\r\n Jellege: undefined, // string Jellege\r\n Eredmeny: undefined, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n Foto: undefined, // (megjeleníteni kell kiválaszás esetén)\r\n SportoloKereses: true\r\n };\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n }\r\n\r\n function printAthleteResult(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters = {\r\n nev: data.result[0].SportoloNev === null ? '' : data.result[0].SportoloNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n eredmeny: data.result[0].Eredmeny === null ? '' : data.result[0].Eredmeny, // int Edzői értékelés (Eredmeny = -2 => 1; Eredmeny = 2 => 5 )\r\n eIdo: data.result[0].EredmenyIdo === null ? '' : data.result[0].EredmenyIdo,\r\n ePont: data.result[0].EredmenyPont === null ? '' : data.result[0].EredmenyPont,\r\n eSzoveg: data.result[0].EredmenySzoveg === null ? '' : data.result[0].EredmenySzoveg, // Eredmény (szöveg input mező)\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles\r\n };\r\n\r\n var dialogObj = angular.element('#printDialogA').data('ejDialog');\r\n dialogObj.open();\r\n }, 100);\r\n });\r\n }\r\n\r\n function printTeamResult(id) {\r\n new ej2.data.DataManager(grid2.dataSource).executeQuery(new ej2.data.Query().where('Id', 'equal', id)).then(function (data) {\r\n $timeout(function () {\r\n vm.reportParameters2 = {\r\n nev: data.result[0].CsapatNev === null ? '' : data.result[0].CsapatNev,\r\n szak: data.result[0].SzakosztalyId === null ? '' : data.result[0].SzakosztalyId,\r\n kor: data.result[0].KorcsoportId === null ? '' : data.result[0].KorcsoportId,\r\n dTol: data.result[0].DatumTol === null ? '' : data.result[0].DatumTol,\r\n dIg: data.result[0].DatumIg === null ? '' : data.result[0].DatumIg,\r\n helyezes: data.result[0].Helyezes === null ? '' : data.result[0].Helyezes,\r\n ertekeles: data.result[0].Ertekeles === null ? '' : data.result[0].Ertekeles,\r\n id: data.result[0].Id === null ? '' : data.result[0].Id\r\n };\r\n\r\n var dialogObj = angular.element('#printDialogT').data('ejDialog');\r\n dialogObj.open();\r\n }, 1000);\r\n });\r\n }\r\n\r\n function teamsDataBound() {\r\n if (vm.teamsList.length === 1) {\r\n angular.element('#Team').ejDropDownList('selectItemByValue', vm.teamsList[0].value);\r\n vm.requestedData.Csapat.CsapatId = vm.teamsList[0].value;\r\n } else {\r\n angular.element('#Team').ejDropDownList('selectItemByValue', vm.SelectedTeamID);\r\n vm.requestedData.Csapat.CsapatId = vm.SelectedTeamID;\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.ageGroupList[0].value;\r\n } else if (vm.athleteData.Korcsoport > 0) {\r\n angular.element('#ageGroup').ejDropDownList('selectItemByValue', vm.athleteData.Korcsoport);\r\n vm.requestedData.Korcsoport.KorcsoportId = vm.athleteData.Korcsoport;\r\n }\r\n }\r\n\r\n function coachDropDownListDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.requestedData.Edzo.EdzoId = vm.coachList[0].value;\r\n } else if (vm.athleteData.JelenlegiEdzo > 0) {\r\n angular.element('#coach').ejDropDownList('selectItemByValue', vm.athleteData.JelenlegiEdzo);\r\n }\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n //angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.sectionList[0].value;\r\n } else if (vm.athleteData.IdSzakosztaly > 0) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.athleteData.IdSzakosztaly);\r\n vm.requestedData.Szakosztaly.SzakosztalyId = vm.athleteData.IdSzakosztaly;\r\n }\r\n }\r\n\r\n function clearYear() {\r\n vm.selectedBirthDate = undefined;\r\n angular.element('#birthDate').ejDatePicker({value: new Date('')});\r\n }\r\n\r\n function clearTeam() {\r\n vm.SelectedTeamID = undefined;\r\n angular.element('#Team').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearSection() {\r\n vm.SelectedSectionID = undefined;\r\n angular.element('#section').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearAgeGroup() {\r\n vm.SelectedAgeGroupID = undefined;\r\n angular.element('#ageGroup').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearCoach() {\r\n vm.SelectedCoachID = undefined;\r\n angular.element('#coach').ejDropDownList({selectedIndex: -1});\r\n }\r\n\r\n function clearSelectdateFrom() {\r\n vm.selectdateFrom = undefined;\r\n angular.element('#selectdateFrom').ejDatePicker({value: new Date('')});\r\n getActualCoachesList();\r\n }\r\n\r\n function clearSelectdateTo() {\r\n vm.selectdateTo = undefined;\r\n angular.element('#selectdateTo').ejDatePicker({value: new Date('')});\r\n getActualCoachesList();\r\n }\r\n }\r\n})();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.raceResultsReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.raceResultsReport',\r\n config: {\r\n url: '/raceResultsReport',\r\n templateUrl: 'app/reports/raceResultsReport/raceResultsReport.html',\r\n controller: 'RaceResultsReportController',\r\n controllerAs: 'vm',\r\n title: 'RaceResultsReport',\r\n settings: {\r\n navId: 2114,\r\n level: 2,\r\n order: 11,\r\n orderTitle_hu: 'Versenyeredmények',\r\n orderTitle_en: 'Competition Results',\r\n parentId: 4,\r\n content: 'RaceResultsReport',\r\n activatorPermission: ['\"KMVERSEREDM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports',\r\n config: {\r\n title: 'Reports',\r\n url: '/reports',\r\n templateUrl: 'app/reports/reports.html',\r\n settings: {\r\n navId: 4,\r\n level: 1,\r\n order: 4,\r\n parentId: 0,\r\n content: 'Reports',\r\n faIcon: 'fa-chart-pie',\r\n activatorPermission: ['\"HIANYZASMEGT\"', '\"KMEVESJELEDZO\"', '\"KMEVESJELSZO\"', '\"KMEVESJELSP\"', '\"TomAntr\"', '\"KMEDZOVALTAS\"',\r\n '\"ESZKNYILVMEGT\"', '\"AssetManagement\"', '\"AthleteTransfer\"', '\"MEGTIDEGENKOLTSTERV\"', '\"MEGTKPFELM\"',\r\n '\"DUPLIKALTMEGT\"', '\"LEJAROMEGT\"', '\"HEALTHREPORT\"', '\"VEZETOIHJ\"', '\"VEZETOIEV\"', '\"VEZETOIHV\"',\r\n '\"MEGTHAVIJEL\"', '\"VEZETOIHE\"', '\"KMHAVIVERSTERV\"', '\"KMATFELJATSZ\"', '\"KMVERSEREDM\"', '\"MEGTSPFELM\"',\r\n '\"EDZLATSTAT\"', '\"MEGTHETIEDZTERVKIMUT\"', '\"UTAZTERVMEGT\"', '\"KMSPORTELETKOR\"', '\"KMSPORTEDZO\"',\r\n '\"KMSPORTALAK\"', '\"KMSPORTSZAK\"', '\"KMSPORTALAKSZO\"', '\"SPJELENLETINELK\"', '\"KMBELEPEDZO\"',\r\n '\"KMBELSZAK\"', '\"KMKILEPEDZO\"', '\"KMKILSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.sportSpecificReport')\r\n .controller('SportSpecificReportController', SportSpecificReportController);\r\n\r\n function SportSpecificReportController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $filter, $state, paramHelper, $q) {\r\n var vm = this;\r\n $rootScope.title = gettextCatalog.getString('SportSpecificReport');\r\n vm.dateFromValue = new Date(new Date().getFullYear(), 0, 1);\r\n vm.dateToValue = new Date(new Date().getFullYear(), 11, 31);\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.tipusList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupId = 0;\r\n vm.tipusId = 0;\r\n vm.querycellinfo = querycellinfo;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.tipusDataBound = tipusDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.tipusSelect = tipusSelect;\r\n vm.getData = getData;\r\n vm.dataList = [];\r\n vm.dataFelmeroElem = [];\r\n vm.testdata = [];\r\n vm.test = [];\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('AthleteName'), textAlign: 'center', width: 150},\r\n {field: 'datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.test,\r\n columns: vm.columns,\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n queryCellInfo: function (arg) {\r\n var cellIndex = -1;\r\n if (arg.column.field) {\r\n cellIndex = parseInt(arg.column.field.replace('c', ''));\r\n if (!(cellIndex >= 0)) {\r\n return;\r\n }\r\n }\r\n var cell = angular.element(arg.cell);\r\n if (vm.testdata && vm.testdata.length > 0 && cellIndex >= 0) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID, arg.data.datum);\r\n if (vm.testdata[rowIndex].Colors[cellIndex] && vm.testdata[rowIndex].Colors[cellIndex].length > 0) {\r\n cell.css('background-color', vm.testdata[rowIndex].Colors[cellIndex]);\r\n }\r\n }\r\n }\r\n });\r\n\r\n Grid2.appendTo('#Grid2');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTSPFELM').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([\r\n getSections(),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n paramHelper.getParams([], ['sportSpecificReport.SportoloID'])\r\n ]).then(function (results) {\r\n console.log('results', results);\r\n }).catch(function () {\r\n log.unknownError();\r\n });\r\n }\r\n }).catch(function () {\r\n log.unknownError();\r\n });\r\n }\r\n\r\n function resetColumns() {\r\n vm.columns = [\r\n {field: 'SportoloID', headerText: 'Id', textAlign: 'center', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 125},\r\n {field: 'datum', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125}\r\n ];\r\n }\r\n\r\n function getData() {\r\n if (!(vm.tipusId > 0)) {\r\n return;\r\n }\r\n vm.testdata = [];\r\n vm.test = [];\r\n vm.dataFelmeroElem = [];\r\n dataservice.getFelmeroElemList(vm.tipusId).then(function (elemResponse) {\r\n vm.dataFelmeroElem = elemResponse.itemsList;\r\n console.log('getFelmeroElemList() elemResponse', elemResponse);\r\n resetColumns();\r\n dataservice.getSportagSpecReport(vm.tipusId, vm.ageGroupId, vm.sectionId, vm.dateFromValue, vm.dateToValue).then(function(data) {\r\n vm.testdata = data.itemsList;\r\n console.log('getSportagSpecReport() data', data);\r\n vm.test = [];\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n var line = {};\r\n line.SportoloID = vm.testdata[i].SportoloID;\r\n line.SportoloNeve = vm.testdata[i].SportoloNeve;\r\n line.datum = vm.testdata[i].datum;\r\n for (var c = 0; c < vm.dataFelmeroElem.length; c++) {\r\n var fieldName = 'c' + c;\r\n line[fieldName] = '';\r\n }\r\n vm.test.push(line);\r\n }\r\n var strArr = [];\r\n resetColumns();\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n var fieldName = vm.dataFelmeroElem[i].fieldName;\r\n strArr.push(fieldName);\r\n vm.columns.push({field: vm.dataFelmeroElem[i].fieldName, headerText: vm.dataFelmeroElem[i].Nev, textAlign: 'center', width: 150});\r\n for (var j = 0; j < vm.test.length; j++) {\r\n vm.test[j][strArr[i]] = vm.testdata[j].Adatok1D[i];\r\n }\r\n }\r\n Grid2.dataSource = vm.test;\r\n Grid2.columns = vm.columns;\r\n Grid2.refreshColumns();\r\n Grid2.refresh();\r\n });\r\n });\r\n }\r\n\r\n function querycellinfo(arg) {\r\n var $element = angular.element(arg.cell);\r\n if (vm.testdata && vm.testdata.length > 0 && arg.cell.cellIndex >= 3) {\r\n var rowIndex = getRowIndex(arg.data.SportoloID, arg.data.datum);\r\n if (vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3] && vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3].length > 0) {\r\n $element.css('background-color', vm.testdata[rowIndex].Colors[arg.cell.cellIndex - 3]);\r\n }\r\n }\r\n }\r\n\r\n function getRowIndex(SportoloID, datum) {\r\n //console.log('getRowIndex('+SportoloID+','+datum+') vm.testdata' , vm.testdata);\r\n for (var i = 0; i < vm.testdata.length; i++) {\r\n if (vm.testdata[i].SportoloID == SportoloID && vm.testdata[i].datum == datum) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n vm.ageGroupList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n });\r\n }\r\n\r\n function getTipusList() {\r\n return dataservice.felmeroElemFejDropDownList(vm.sectionId).then(function(data) {\r\n vm.tipusList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function tipusDataBound() {\r\n if (vm.tipusList.length === 1) {\r\n angular.element('#tipusDropDown').ejDropDownList('selectItemByValue', vm.tipusList[0].value);\r\n } else {\r\n angular.element('#tipusDropDown').ejDropDownList('selectItemByValue', vm.tipusId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.tipusId = -1;\r\n getAgeGroups();\r\n getTipusList();\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getData();\r\n }\r\n\r\n function tipusSelect(args) {\r\n vm.tipusId = args.value;\r\n getData();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.sportSpecificReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.sportSpecificReport',\r\n config: {\r\n url: '/sportSpecificReport',\r\n templateUrl: 'app/reports/sportSpecificReport/sportSpecificReport.html',\r\n controller: 'SportSpecificReportController',\r\n controllerAs: 'vm',\r\n title: 'SportSpecificReport',\r\n settings: {\r\n navId: 2194,\r\n level: 2,\r\n order: 19,\r\n orderTitle_hu: 'Sportágspecifikus felmérő kimutatás',\r\n orderTitle_en: 'Sport Specific Test Report',\r\n parentId: 4,\r\n content: 'SportSpecificReport',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByAge')\r\n .controller('ActiveAthletesByAgeController', ActiveAthletesByAgeController);\r\n\r\n function ActiveAthletesByAgeController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesByAge');\r\n vm.sectionList = [];\r\n\r\n vm.columnWith = 105;\r\n vm.columns = [\r\n {field: 'SzuletesiEv', headerText: gettextCatalog.getString('BirthYear'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_year', textAlign: 'center'},\r\n {field: 'Szam', headerText: gettextCatalog.getString('NumberOfAthletes'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'},\r\n {field: 'SzamFiu', headerText: gettextCatalog.getString('NumberOfBoys'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'},\r\n {field: 'SzamLany', headerText: gettextCatalog.getString('NumberOfGirls'), width: vm.columnWith, cssClass: 'rotate90degreegridheader4', textAlign: 'center'}\r\n ];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.openSection = openSection;\r\n vm.openBirthYear = openBirthYear;\r\n\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.accessibleSectionsStr = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n vm.sectionList = [];\r\n vm.griddata = [];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSectionList().then(function () {\r\n initColumns();\r\n getNumbers(vm.Date);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getSectionList() {\r\n return dataservice.sectionDropDownListAll()\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.activeAthletesByAge(date, vm.selectedSection)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.accessibleSectionsStr = data.felhasznaloSzakosztalyaiStr;\r\n vm.yearListFull = data.itemsList;\r\n });\r\n }\r\n\r\n function openSection(sectionID, year) {\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionID) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n var yearint = parseInt(year);\r\n paramHelper.setParams([\r\n {'sectionID': sectionID},\r\n {'year': yearint}\r\n ]);\r\n $state.go('reports.statisticalReports.athletesByBirthYear');\r\n } else {\r\n log.warningMsg('You do not have permission to access the selected section details!');\r\n }\r\n }\r\n\r\n function openBirthYear(year) {\r\n paramHelper.setParams([\r\n {'year': year}\r\n ]);\r\n $state.go('reports.statisticalReports.athletesByYear');\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function initColumns() {\r\n for (var i = 0; i < vm.sectionList.length; i++) {\r\n switch (vm.sectionList[i].value) {\r\n case 1:\r\n vm.columns.push({field: '_sz_01', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops01', textAlign: 'center'});\r\n break;\r\n case 2:\r\n vm.columns.push({field: '_sz_02', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops02', textAlign: 'center'});\r\n break;\r\n case 3:\r\n vm.columns.push({field: '_sz_03', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops03', textAlign: 'center'});\r\n break;\r\n case 4:\r\n vm.columns.push({field: '_sz_04', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops04', textAlign: 'center'});\r\n break;\r\n case 5:\r\n vm.columns.push({field: '_sz_05', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops05', textAlign: 'center'});\r\n break;\r\n case 6:\r\n vm.columns.push({field: '_sz_06', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops06', textAlign: 'center'});\r\n break;\r\n case 7:\r\n vm.columns.push({field: '_sz_07', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops07', textAlign: 'center'});\r\n break;\r\n case 8:\r\n vm.columns.push({field: '_sz_08', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops08', textAlign: 'center'});\r\n break;\r\n case 9:\r\n vm.columns.push({field: '_sz_09', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops09', textAlign: 'center'});\r\n break;\r\n case 10:\r\n vm.columns.push({field: '_sz_10', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops10', textAlign: 'center'});\r\n break;\r\n case 11:\r\n vm.columns.push({field: '_sz_11', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops11', textAlign: 'center'});\r\n break;\r\n case 12:\r\n vm.columns.push({field: '_sz_12', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops12', textAlign: 'center'});\r\n break;\r\n case 13:\r\n vm.columns.push({field: '_sz_13', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops13', textAlign: 'center'});\r\n break;\r\n case 14:\r\n vm.columns.push({field: '_sz_14', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops14', textAlign: 'center'});\r\n break;\r\n case 15:\r\n vm.columns.push({field: '_sz_15', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops15', textAlign: 'center'});\r\n break;\r\n case 16:\r\n vm.columns.push({field: '_sz_16', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops16', textAlign: 'center'});\r\n break;\r\n case 17:\r\n vm.columns.push({field: '_sz_17', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops17', textAlign: 'center'});\r\n break;\r\n case 18:\r\n vm.columns.push({field: '_sz_18', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops18', textAlign: 'center'});\r\n break;\r\n case 19:\r\n vm.columns.push({field: '_sz_19', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops19', textAlign: 'center'});\r\n break;\r\n case 20:\r\n vm.columns.push({field: '_sz_20', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops20', textAlign: 'center'});\r\n break;\r\n case 21:\r\n vm.columns.push({field: '_sz_21', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops21', textAlign: 'center'});\r\n break;\r\n case 22:\r\n vm.columns.push({field: '_sz_22', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops22', textAlign: 'center'});\r\n break;\r\n case 23:\r\n vm.columns.push({field: '_sz_23', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops23', textAlign: 'center'});\r\n break;\r\n case 24:\r\n vm.columns.push({field: '_sz_24', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops24', textAlign: 'center'});\r\n break;\r\n case 25:\r\n vm.columns.push({field: '_sz_25', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops25', textAlign: 'center'});\r\n break;\r\n case 26:\r\n vm.columns.push({field: '_sz_26', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops26', textAlign: 'center'});\r\n break;\r\n case 27:\r\n vm.columns.push({field: '_sz_27', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops27', textAlign: 'center'});\r\n break;\r\n case 28:\r\n vm.columns.push({field: '_sz_28', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops28', textAlign: 'center'});\r\n break;\r\n case 29:\r\n vm.columns.push({field: '_sz_29', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops29', textAlign: 'center'});\r\n break;\r\n case 30:\r\n vm.columns.push({field: '_sz_30', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops30', textAlign: 'center'});\r\n break;\r\n case 31:\r\n vm.columns.push({field: '_sz_31', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops31', textAlign: 'center'});\r\n break;\r\n case 32:\r\n vm.columns.push({field: '_sz_32', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops32', textAlign: 'center'});\r\n break;\r\n case 33:\r\n vm.columns.push({field: '_sz_33', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops33', textAlign: 'center'});\r\n break;\r\n case 34:\r\n vm.columns.push({field: '_sz_34', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops34', textAlign: 'center'});\r\n break;\r\n case 35:\r\n vm.columns.push({field: '_sz_35', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops35', textAlign: 'center'});\r\n break;\r\n case 36:\r\n vm.columns.push({field: '_sz_36', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops36', textAlign: 'center'});\r\n break;\r\n case 37:\r\n vm.columns.push({field: '_sz_37', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops37', textAlign: 'center'});\r\n break;\r\n case 38:\r\n vm.columns.push({field: '_sz_38', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops38', textAlign: 'center'});\r\n break;\r\n case 39:\r\n vm.columns.push({field: '_sz_39', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_ops39', textAlign: 'center'});\r\n break;\r\n case vm.columnWith:\r\n vm.columns.push({field: '_sz_vm.columnWith', headerText: vm.sectionList[i].text, width: vm.columnWith, cssClass: 'rotate90degreegridheader4', template: '#aaba_opsvm.columnWith'});\r\n break;\r\n }\r\n }\r\n grid.refreshColumns();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByAge')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByAge',\r\n config: {\r\n url: '/activeAthletesByAge',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.html',\r\n controller: 'ActiveAthletesByAgeController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesByAge',\r\n settings: {\r\n navId: 37214,\r\n level: 3,\r\n order: 7,\r\n orderTitle_hu: 'Aktív sportolók kor szerint',\r\n orderTitle_en: 'Number of Active Athletes by Age',\r\n parentId: 214,\r\n content: 'ActiveAthletesByAge',\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByCoach')\r\n .controller('ActiveAthletesByCoachController', ActiveAthletesByCoachController);\r\n\r\n function ActiveAthletesByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#acatbycotemplateDataColumn1', width: 150, textAlign: 'center'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#acatbycotemplateDataColumn2', width: 125, textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'),\r\n template: '#acatbycotemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatbycotemplateDataColumn4', width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatbycotemplateDataColumn5', width: 115, textAlign: 'center'\r\n }];\r\n vm.queryDate = new Date();\r\n vm.dateChange = dateChange;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openAthleteListByCoach = openAthleteListByCoach;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.queryDate);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.athletesByCoach(date)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'activeAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openAthleteListByCoach(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'athletesByCoach'},\r\n {'coachId': coachId},\r\n {'sectionId': sectionId},\r\n {'gender': gender},\r\n {'coachName': coachName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function dateChange() {\r\n getNumbers(vm.queryDate);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByCoach',\r\n config: {\r\n url: '/activeAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.html',\r\n controller: 'ActiveAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByCoach',\r\n settings: {\r\n navId: 34214,\r\n level: 3,\r\n order: 4,\r\n orderTitle_hu: 'Sportolók száma edzőnként',\r\n orderTitle_en: 'Number of Active Athletes by Coaches',\r\n parentId: 214,\r\n content: 'AthletesByCoach',\r\n activatorPermission: ['\"KMSPORTEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByMonth')\r\n .controller('ActiveAthletesByMonthController', ActiveAthletesByMonthController);\r\n\r\n function ActiveAthletesByMonthController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesByMonth');\r\n vm.sectionList = [];\r\n\r\n initColumns();\r\n\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openSection = openSection;\r\n vm.openAthletes = openAthletes;\r\n vm.openJoined = openJoined;\r\n vm.openLeaving = openLeaving;\r\n\r\n vm.accessibleSections = [];\r\n vm.accessibleSectionsStr = [];\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTALAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSectionList().then(function () {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n initColumns();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function initColumns() {\r\n vm.columns = [\r\n {field: 'SzuletesiEv', headerText: gettextCatalog.getString('Month'), textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4'},\r\n {field: 'Szam', headerText: gettextCatalog.getString('NumberOfAthletes'), textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4', template: '#aabm_allgender'},\r\n {field: 'SzamFiu', headerText: gettextCatalog.getString('NumberOfBoys'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_male'},\r\n {field: 'SzamLany', headerText: gettextCatalog.getString('NumberOfGirls'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_female'},\r\n {field: 'SzamErkezett', headerText: gettextCatalog.getString('Belepett'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_joined'},\r\n {field: 'SzamKilepett', headerText: gettextCatalog.getString('Kilepett'), textAlign: 'center', width: 100, cssClass: 'rotate90degreegridheader4', template: '#aabm_leaving'}\r\n ];\r\n for (var i = 0; i < vm.sectionList.length; i++) {\r\n vm.columns.push({field: 'c' + vm.sectionList[i].value, headerText: vm.sectionList[i].text, textAlign: 'center', width: 115, cssClass: 'rotate90degreegridheader4', template: '#aabm_ops' + vm.sectionList[i].value});\r\n if (i === (vm.sectionList.length - 1)) {\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dateFrom = $filter('dateToISOFilter')(dateFrom);\r\n dateTo = $filter('dateToISOFilter')(dateTo);\r\n dataservice.activeAthletesByMonth(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.accessibleSectionsStr = data.felhasznaloSzakosztalyaiStr;\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function openAthletes(id, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': 0},\r\n {'sectionName': gettextCatalog.getString('All sections')},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openLeaving(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n authenticationService.getRight('SPSZAMALAKRESZL').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'state': 'monthlyStatLeaving'},\r\n {'sectionId': 0},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n }\r\n });\r\n });\r\n }\r\n\r\n function openJoined(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n authenticationService.getRight('SPSZAMALAKRESZL').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'state': 'monthlyStatJoined'},\r\n {'sectionId': 0},\r\n {'dateFrom': date},\r\n {'dateTo': date},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n }\r\n });\r\n });\r\n }\r\n\r\n function openSection(sectionID, id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].datum;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionID) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'sectionID': sectionID},\r\n {'date': (date)}\r\n ]);\r\n $state.go('reports.statisticalReports.activeAthletesInSectionByMonth');\r\n } else {\r\n log.warningMsg('You do not have permission to access the selected section details!');\r\n }\r\n });\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function getSectionList() {\r\n return dataservice.sectionDropDownListAll()\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function ParseDate(strDate) { // \"2016. június\" --> Date\r\n var idxOfSpace = strDate.indexOf(' ');\r\n var strYear = strDate.slice(0, idxOfSpace - 1);\r\n var strMonth = strDate.slice(idxOfSpace + 1, idxOfSpace + 4);\r\n var year = parseInt(strYear);\r\n var month = 0;\r\n switch (strMonth) {\r\n case 'jan' :\r\n month = 1;\r\n break;\r\n case 'feb' :\r\n month = 2;\r\n break;\r\n case 'már' :\r\n month = 3;\r\n break;\r\n case 'ápr' :\r\n month = 4;\r\n break;\r\n case 'máj' :\r\n month = 5;\r\n break;\r\n case 'jún' :\r\n month = 6;\r\n break;\r\n case 'júl' :\r\n month = 7;\r\n break;\r\n case 'aug' :\r\n month = 8;\r\n break;\r\n case 'sze' :\r\n month = 9;\r\n break;\r\n case 'okt' :\r\n month = 10;\r\n break;\r\n case 'nov' :\r\n month = 11;\r\n break;\r\n case 'dec' :\r\n month = 12;\r\n break;\r\n }\r\n return new Date(year, month - 1, 1, 3);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesByMonth')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesByMonth',\r\n config: {\r\n url: '/activeAthletesByMonth',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.html',\r\n controller: 'ActiveAthletesByMonthController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesByMonth',\r\n settings: {\r\n navId: 38214,\r\n level: 3,\r\n order: 8,\r\n orderTitle_hu: 'Sportolók számának alakulása',\r\n orderTitle_en: 'Number of Active Athletes by Month',\r\n parentId: 214,\r\n content: 'ActiveAthletesByMonth',\r\n activatorPermission: ['\"KMSPORTALAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesBySection')\r\n .controller('ActiveAthletesBySectionController', ActiveAthletesBySectionController);\r\n\r\n function ActiveAthletesBySectionController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesBySection');\r\n vm.athleteList = [];\r\n vm.queryDate = new Date();\r\n vm.dateChange = dateChange;\r\n vm.openSection = openSection;\r\n\r\n vm.columns = [{\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 115\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#acatbysetemplateDataColumn1', textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatbysetemplateDataColumn2', textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatbysetemplateDataColumn3', textAlign: 'center', width: 115\r\n }];\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openSection(SectionId, gender) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var accessGranted = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] === SectionId) {\r\n accessGranted = true;\r\n break;\r\n }\r\n }\r\n if (accessGranted || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'activeAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate},\r\n {'gender': gender === 0 ? 'allgender' : (gender === 1 ? 'male' : 'female')}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTSZAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.queryDate);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteListFull;\r\n }\r\n }\r\n\r\n function getNumbers(date) {\r\n dataservice.athletesBySection(date)\r\n .then(function (data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function dateChange(data) {\r\n getNumbers(data.value);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesBySection',\r\n config: {\r\n url: '/activeAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.html',\r\n controller: 'ActiveAthletesBySectionController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesBySection',\r\n settings: {\r\n navId: 31214,\r\n level: 3,\r\n order: 1,\r\n orderTitle_hu: 'Aktív sportolók szakosztály szerint',\r\n orderTitle_en: 'Number of Active Athletes by Sections',\r\n parentId: 214,\r\n content: 'ActiveAthletesBySection',\r\n activatorPermission: ['\"KMSPORTSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesInSectionByMonth')\r\n .controller('ActiveAthletesInSectionByMonthController', ActiveAthletesInSectionByMonthController);\r\n\r\n function ActiveAthletesInSectionByMonthController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesInSectionByMonth');\r\n vm.sectionList = [];\r\n vm.columns = [{\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('Month'),\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#acatinsebymotemplateDataColumn1',\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#acatinsebymotemplateDataColumn2',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#acatinsebymotemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamErkezett',\r\n headerText: gettextCatalog.getString('Joined'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamKilepett',\r\n headerText: gettextCatalog.getString('Leave'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamAtjott',\r\n headerText: gettextCatalog.getString('MoveIn'),\r\n width: 100, textAlign: 'center'\r\n }, {\r\n field: 'SzamAtment',\r\n headerText: gettextCatalog.getString('MoveOut'),\r\n width: 100, textAlign: 'center'\r\n }];\r\n vm.dateFrom = new Date();\r\n vm.dateFrom.setMonth(vm.dateFrom.getMonth() - 1);\r\n vm.dateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.sectionList = [];\r\n vm.sectionValue = '';\r\n vm.selectedSectionName = '';\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.selectedSectionID = '';\r\n vm.showOnlyOneMonth = false;\r\n vm.openAthletes = openAthletes;\r\n vm.openBoys = openBoys;\r\n vm.openGirls = openGirls;\r\n vm.date = '';\r\n vm.sectionId = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSectionName = vm.sectionList[0].value;\r\n vm.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function ParseDate(strDate) { // \"2016. június\" --> Date\r\n var idxOfSpace = strDate.indexOf(' ');\r\n var strYear = strDate.slice(0, idxOfSpace - 1);\r\n var strMonth = strDate.slice(idxOfSpace + 1, idxOfSpace + 4);\r\n var year = parseInt(strYear);\r\n var month = 0;\r\n switch (strMonth) {\r\n case 'jan' :\r\n month = 1;\r\n break;\r\n case 'feb' :\r\n month = 2;\r\n break;\r\n case 'már' :\r\n month = 3;\r\n break;\r\n case 'ápr' :\r\n month = 4;\r\n break;\r\n case 'máj' :\r\n month = 5;\r\n break;\r\n case 'jún' :\r\n month = 6;\r\n break;\r\n case 'júl' :\r\n month = 7;\r\n break;\r\n case 'aug' :\r\n month = 8;\r\n break;\r\n case 'sze' :\r\n month = 9;\r\n break;\r\n case 'okt' :\r\n month = 10;\r\n break;\r\n case 'nov' :\r\n month = 11;\r\n break;\r\n case 'dec' :\r\n month = 12;\r\n break;\r\n }\r\n return new Date(year, month - 1, 1, 2);\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTALAKSZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getSections(), paramHelper.getParams([], ['sectionID', 'date'])]).then(function (results) {\r\n vm.params = results[1];\r\n paramHelper.removeParam('sectionID');\r\n paramHelper.removeParam('date');\r\n if (vm.params.sectionID != null && vm.params.date != null) {\r\n var date = vm.params.date.slice(0, 10);\r\n var SectionItem = ej.DataManager(vm.sectionList).executeLocal(new ej.Query().where('value', 'equal', vm.params.sectionID))[0];\r\n if (!SectionItem) {\r\n $rootScope.back();\r\n } else {\r\n vm.selectedSectionName = SectionItem.text;\r\n $rootScope.title = gettextCatalog.getString('ActiveAthletesInSectionByMonth') + ' (' + gettextCatalog.getString(vm.selectedSectionName) + ', ' + $filter('dateYearMonthLongStrFilter')(date) + ')';\r\n }\r\n $timeout(function () {\r\n vm.dateFrom = date;\r\n vm.dateTo = date;\r\n vm.sectionValue = vm.params.sectionID;\r\n if (SectionItem) {\r\n getNumbers(date, date, SectionItem.text, vm.params.sectionID);\r\n }\r\n }, 0);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date1, date2, sectionName, sectionId) {\r\n if (!sectionName) {\r\n return;\r\n }\r\n dataservice.activeAthletesInSectionByMonth(date1, date2, sectionName, sectionId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function openAthletes(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openBoys(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'male'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function openGirls(id) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('id', 'equal', id)).then(function (data) {\r\n var date = data.result[0].SzuletesiEv;\r\n\r\n paramHelper.setParams([\r\n {'state': 'monthlyStat'},\r\n {'sectionId': vm.selectedSectionID},\r\n {'sectionName': vm.selectedSectionName},\r\n {'dateFrom': ParseDate(date)},\r\n {'dateTo': ParseDate(date)},\r\n {'gender': 'female'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSectionName = args.text.toString();\r\n vm.selectedSectionID = args.value;\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(vm.dateFrom, vm.dateTo, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n\r\n function dateFromChanged(data) {\r\n if (data && data.value && vm.dateTo) {\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(data.value, vm.dateTo, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n }\r\n\r\n function dateToChanged(data) {\r\n if (data && data.value && vm.dateTo) {\r\n vm.showOnlyOneMonth = false;\r\n getNumbers(vm.dateFrom, data.value, vm.selectedSectionName, vm.selectedSectionID);\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.activeAthletesInSectionByMonth')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.activeAthletesInSectionByMonth',\r\n config: {\r\n url: '/activeAthletesInSectionByMonth',\r\n templateUrl: 'app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.html',\r\n controller: 'ActiveAthletesInSectionByMonthController',\r\n controllerAs: 'vm',\r\n title: 'ActiveAthletesInSectionByMonth',\r\n settings: {\r\n navId: 39214,\r\n level: 3,\r\n order: 9,\r\n orderTitle_hu: 'Sportolók számának alakulása szakosztályonként',\r\n orderTitle_en: 'Alteration of Number of Athletes by Sections',\r\n parentId: 214,\r\n content: 'ActiveAthletesInSectionByMonth',\r\n activatorPermission: ['\"KMSPORTALAKSZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesByBirthYear')\r\n .controller('AthletesByBirthYearController', AthletesByBirthYearController);\r\n\r\n function AthletesByBirthYearController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByBirthYear');\r\n vm.sectionList = [];\r\n\r\n vm.columns = [{\r\n field: 'SzuletesiEv',\r\n headerText: gettextCatalog.getString('BirthYear'),\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn1', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn2', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'),\r\n textAlign: 'center',\r\n template: '#atbybiyetemplateDataColumn3', width: 115\r\n }];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.listAthletes = listAthletes;\r\n var SectionName = '';\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['sectionID', 'year'])]).then(function (results) {\r\n // Ha paraméter nélkül érkezik akkor tovább arra az oldalra ahol a gridben kattintva eljuthat ide újra\r\n if (results[0].sectionID == null || results[0].year == null) {\r\n $state.go('reports.statisticalReports.activeAthletesByAge');\r\n } else {\r\n vm.params = results[0];\r\n vm.selectedSection = vm.params.sectionID;\r\n getSections();\r\n getNumbers(vm.params.year, vm.params.sectionID);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function listAthletes(year, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzuletesiEv', 'equal', year)).then(function () {\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n paramHelper.setParams([\r\n {'state': 'activeAthletesByBirthYear'},\r\n {'year': year},\r\n {'sectionId': vm.selectedSection},\r\n {'sectionName': SectionName},\r\n {'dateFrom': null},\r\n {'dateTo': null},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n });\r\n }\r\n\r\n function getNumbers(year, sectionId) {\r\n var date = new Date(year, 0, 1); // First day of year\r\n dataservice.activeAthletesByAge(date, sectionId)\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n SectionName = ej.DataManager(vm.sectionList).executeLocal(new ej.Query().where('value', 'equal', vm.selectedSection))[0].text;\r\n $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + ' (' + gettextCatalog.getString(SectionName) + ', ' + vm.params.year + ')';\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesByBirthYear')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesByBirthYear',\r\n config: {\r\n url: '/athletesByBirthYear',\r\n templateUrl: 'app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.html',\r\n controller: 'AthletesByBirthYearController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByBirthYear',\r\n settings: {\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesByYear')\r\n .controller('AthletesByYearController', AthletesByYearController);\r\n\r\n function AthletesByYearController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthletesByYear');\r\n\r\n vm.sectionList = [];\r\n\r\n vm.columns = [{\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#atbyyetemplateDataColumn1'\r\n }, {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n width: 50,\r\n textAlign: 'center',\r\n displayAsCheckBox: true\r\n }, {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#atbyyetemplateDataColumn3'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Tagdij',\r\n headerText: gettextCatalog.getString('PayedSportServiceFee'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Oktatasidij',\r\n headerText: gettextCatalog.getString('PayedEducationalFee'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Egyenleg',\r\n headerText: gettextCatalog.getString('Balance'),\r\n width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n width: 150,\r\n textAlign: 'center'\r\n }];\r\n\r\n vm.Date = new Date();\r\n vm.selectedSection = 0;\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToCoach = goToCoach;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('KMSPORTELETKOR').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([paramHelper.getParams([], ['year'])]).then(function (results) {\r\n vm.params = results[0];\r\n getNumbers(vm.params.year, 0);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToCoach(coachId) {\r\n $q.all([authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([\r\n {'newUser.userId': coachId}\r\n ]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(year, sectionID) {\r\n dataservice.activeAthletesBornAtSpecificYear(year, sectionID)\r\n .then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesByYear')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesByYear',\r\n config: {\r\n url: '/athletesByYear',\r\n templateUrl: 'app/reports/statisticalReports/athletesByYear/athletesByYear.html',\r\n controller: 'AthletesByYearController',\r\n controllerAs: 'vm',\r\n title: 'AthletesByYear',\r\n settings: {\r\n activatorPermission: ['\"KMSPORTELETKOR\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance')\r\n .controller('AthletesNotPresentOnMonthlyAttendanceController', AthletesNotPresentOnMonthlyAttendanceController);\r\n\r\n function AthletesNotPresentOnMonthlyAttendanceController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AthletesNotPresentOnMonthlyAttendance');\r\n\r\n // Grid's details\r\n vm.data = [];\r\n vm.header = [];\r\n vm.reportParameters = {};\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.sectionList = [];\r\n vm.sectionValue = '';\r\n vm.selectedSectionId = -1;\r\n vm.selectedSectionName = '';\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionId = '';\r\n vm.numberOfMonths = 0;\r\n vm.isAdmin = false;\r\n vm.isSectionLeader = false;\r\n vm.accessibleSections = [];\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToCoach = goToCoach;\r\n\r\n vm.columns = [];\r\n\r\n var grid;\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('SPJELENLETINELK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections().then(function () {\r\n $timeout(function () {\r\n if (vm.sectionList.length > 0) {\r\n vm.sectionValue = vm.sectionList[0].value;\r\n }\r\n }, 0);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToCoach(coachId) {\r\n paramHelper.setParams([\r\n {'newUser.userId': coachId}\r\n ]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n vm.selectedSectionId = vm.sectionId;\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo, sectionId) {\r\n if (!sectionId) {\r\n return;\r\n }\r\n if (sectionId == -1) { // -1 jelenti az összes szakosztályt itt, 0-ra keresi az összeset\r\n sectionId = 0;\r\n vm.selectedSectionId = 0;\r\n }\r\n dataservice.athletesNotPresentOnMonthlyAttendance(dateFrom, dateTo, sectionId)\r\n .then(function (data) {\r\n setColumns();\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.data = data.itemsList;\r\n vm.header = data.header;\r\n vm.isAdmin = data.isAdmin;\r\n vm.honapokszama = data.honapokszama;\r\n var allSection = {value: -1, text: gettextCatalog.getString('All')};\r\n if (vm.isAdmin && vm.sectionList.length > 1 && vm.sectionList[0].value != -1) {\r\n vm.sectionList.unshift({value: '-1', text: gettextCatalog.getString('All')});\r\n }\r\n var columnWidth = 100;\r\n for (var i = 0; i < vm.honapokszama; i++) {\r\n switch (i) {\r\n case 0:\r\n vm.columns.push({headerText: data.header.t01, textAlign: 'center', width: columnWidth, field: 'h01'});\r\n break;\r\n case 1:\r\n vm.columns.push({headerText: data.header.t02, textAlign: 'center', width: columnWidth, field: 'h02'});\r\n break;\r\n case 2:\r\n vm.columns.push({headerText: data.header.t03, textAlign: 'center', width: columnWidth, field: 'h03'});\r\n break;\r\n case 3:\r\n vm.columns.push({headerText: data.header.t04, textAlign: 'center', width: columnWidth, field: 'h04'});\r\n break;\r\n case 4:\r\n vm.columns.push({headerText: data.header.t05, textAlign: 'center', width: columnWidth, field: 'h05'});\r\n break;\r\n case 5:\r\n vm.columns.push({headerText: data.header.t06, textAlign: 'center', width: columnWidth, field: 'h06'});\r\n break;\r\n case 6:\r\n vm.columns.push({headerText: data.header.t07, textAlign: 'center', width: columnWidth, field: 'h07'});\r\n break;\r\n case 7:\r\n vm.columns.push({headerText: data.header.t08, textAlign: 'center', width: columnWidth, field: 'h08'});\r\n break;\r\n case 8:\r\n vm.columns.push({headerText: data.header.t09, textAlign: 'center', width: columnWidth, field: 'h09'});\r\n break;\r\n case 9:\r\n vm.columns.push({headerText: data.header.t10, textAlign: 'center', width: columnWidth, field: 'h10'});\r\n break;\r\n case 10:\r\n vm.columns.push({headerText: data.header.t11, textAlign: 'center', width: columnWidth, field: 'h11'});\r\n break;\r\n case 11:\r\n vm.columns.push({headerText: data.header.t12, textAlign: 'center', width: columnWidth, field: 'h12'});\r\n break;\r\n }\r\n }\r\n if (!grid) {\r\n grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n } else {\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.selectedSectionId = args.value;\r\n vm.selectedSectionName = args.text;\r\n getNumbers(vm.DateFrom, vm.DateTo, vm.selectedSectionId);\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo, vm.selectedSectionId);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value, vm.selectedSectionId);\r\n }\r\n\r\n function setColumns() {\r\n vm.columns = [{\r\n field: 'MezoSportoloNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#anpomaathlete'\r\n }, {\r\n field: 'MezoSzakosztalyNev',\r\n headerText: gettextCatalog.getString('Szakosztaly'),\r\n textAlign: 'center',\r\n width: 115\r\n }, {\r\n field: 'MezoKorcsoportNev',\r\n headerText: gettextCatalog.getString('Korcsoport'),\r\n textAlign: 'center',\r\n width: 115\r\n }, {\r\n field: 'MezoEdzoNev',\r\n headerText: gettextCatalog.getString('Edzo'),\r\n textAlign: 'center',\r\n width: 150,\r\n template: '#anpomacoach'\r\n }];\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.athletesNotPresentOnMonthlyAttendance')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.athletesNotPresentOnMonthlyAttendance',\r\n config: {\r\n url: '/athletesNotPresentOnMonthlyAttendance',\r\n templateUrl: 'app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.html',\r\n controller: 'AthletesNotPresentOnMonthlyAttendanceController',\r\n controllerAs: 'vm',\r\n title: 'AthletesNotPresentOnMonthlyAttendance',\r\n settings: {\r\n navId: 310214,\r\n level: 3,\r\n order: 10,\r\n orderTitle_hu: 'Havi jelenlétin nem szereplő sportolók',\r\n orderTitle_en: 'Athletes not Presented on Monthly Attendance Sheet',\r\n parentId: 214,\r\n content: 'AthletesNotPresentOnMonthlyAttendance',\r\n activatorPermission: ['\"SPJELENLETINELK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesByCoach')\r\n .controller('JoinedAthletesByCoachController', JoinedAthletesByCoachController);\r\n\r\n function JoinedAthletesByCoachController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('JoinedAthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#joatbycotemplateDataColumn1',\r\n textAlign: 'center', width: 150\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#joatbycotemplateDataColumn2',\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#joatbycotemplateDataColumn3',\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#joatbycotemplateDataColumn4',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#joatbycotemplateDataColumn5',\r\n textAlign: 'center', width: 115\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openCoachesJoinedAthletes = openCoachesJoinedAthletes;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openCoachesJoinedAthletes(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletesToCoach'},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'coachId': coachId},\r\n {'coachName': coachName},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dataservice.joinedAthletesByCoach(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMBELEPEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.joinedAthletesByCoach',\r\n config: {\r\n url: '/joinedAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.html',\r\n controller: 'JoinedAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'JoinedAthletesByCoach',\r\n settings: {\r\n navId: 36214,\r\n level: 3,\r\n order: 6,\r\n orderTitle_hu: 'Belépők száma edzőnként',\r\n orderTitle_en: 'Number of New Athletes by Coaches',\r\n parentId: 214,\r\n content: 'JoinedAthletesByCoach',\r\n activatorPermission: ['\"KMBELEPEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function() {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesBySection')\r\n .controller('JoinedAthletesBySection', JoinedAthletesBySection);\r\n\r\n function JoinedAthletesBySection(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('JoinedAthletesBySection');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.accessibleSections = [];\r\n vm.columns = [\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center', width: 125\r\n }, {\r\n field: 'SzamErkezett',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#joatbysetemplateDataColumn1',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamBelepettFiuk',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#joatbysetemplateDataColumn2',\r\n textAlign: 'center', width: 115\r\n }, {\r\n field: 'SzamBelepettLanyok',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#joatbysetemplateDataColumn3',\r\n textAlign: 'center', width: 115\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.DateFromChanged = DateFromChanged;\r\n vm.DateToChanged = DateToChanged;\r\n vm.openSection = openSection;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n }\r\n grid.dataSource = vm.athleteList;\r\n }\r\n\r\n function openSection(SectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == SectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'joinedAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMBELSZAK').then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date, date2) {\r\n dataservice.joinedAthletesBySection(date, date2)\r\n .then(function(data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function DateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function DateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function(data) {\r\n data.itemsList.unshift({\r\n value: '0',\r\n text: gettextCatalog.getString('All')\r\n });\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.joinedAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.joinedAthletesBySection',\r\n config: {\r\n url: '/joinedAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.html',\r\n controller: 'JoinedAthletesBySection',\r\n controllerAs: 'vm',\r\n title: 'JoinedAthletesBySection',\r\n settings: {\r\n navId: 33214,\r\n level: 3,\r\n order: 3,\r\n orderTitle_hu: 'Belépők száma szakosztályonként',\r\n orderTitle_en: 'Number of New Athletes by Sections',\r\n parentId: 214,\r\n content: 'JoinedAthletesBySection',\r\n activatorPermission: ['\"KMBELSZAK\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesByCoach')\r\n .controller('LeavingAthletesByCoachController', LeavingAthletesByCoachController);\r\n\r\n function LeavingAthletesByCoachController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper, $q) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('LeavingAthletesByCoach');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.columns = [{\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'), template: '#leatbycotemplateDataColumn1', width: 150,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'), template: '#leatbycotemplateDataColumn2', width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Szam',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#leatbycotemplateDataColumn3', width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#leatbycotemplateDataColumn4', width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#leatbycotemplateDataColumn5', width: 115,\r\n textAlign: 'center'\r\n }];\r\n vm.DateFrom = new Date();\r\n vm.DateFrom.setMonth(vm.DateFrom.getMonth() - 1);\r\n vm.DateTo = new Date();\r\n vm.dateFromChanged = dateFromChanged;\r\n vm.dateToChanged = dateToChanged;\r\n vm.openCoach = openCoach;\r\n vm.openSection = openSection;\r\n vm.openCoachesLeavingAthletes = openCoachesLeavingAthletes;\r\n\r\n vm.sectionList = [];\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.userId = -1;\r\n vm.isSectionLeader = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openCoachesLeavingAthletes(coachId, sectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n var coachName = data.result[0].EdzoNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletesFromCoach'},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'coachId': coachId},\r\n {'coachName': coachName},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openSection(sectionId) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', sectionId)).then(function (data) {\r\n var sectionName = data.result[0].SzakosztalyNeve;\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == sectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletes'},\r\n {'sectionId': sectionId},\r\n {'sectionName': sectionName},\r\n {'dateFrom': vm.DateFrom},\r\n {'dateTo': vm.DateTo},\r\n {'gender': 'allgender'}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(sectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMKILEPEDZO').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getNumbers(vm.DateFrom, vm.DateTo);\r\n }\r\n });\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterAthletes();\r\n }\r\n\r\n function filterAthletes() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getNumbers(dateFrom, dateTo) {\r\n dataservice.leavingAthletesByCoach(dateFrom, dateTo)\r\n .then(function (data) {\r\n vm.userId = data.userId;\r\n vm.isAdmin = data.isAdmin;\r\n vm.isSectionLeader = data.isSectionLeader;\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterAthletes();\r\n });\r\n }\r\n\r\n function dateFromChanged(data) {\r\n getNumbers(data.value, vm.DateTo);\r\n }\r\n\r\n function dateToChanged(data) {\r\n getNumbers(vm.DateFrom, data.value);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesByCoach')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.leavingAthletesByCoach',\r\n config: {\r\n url: '/leavingAthletesByCoach',\r\n templateUrl: 'app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.html',\r\n controller: 'LeavingAthletesByCoachController',\r\n controllerAs: 'vm',\r\n title: 'LeavingAthletesByCoach',\r\n settings: {\r\n navId: 35214,\r\n level: 3,\r\n order: 5,\r\n orderTitle_hu: 'Kilépők széma edzőnként',\r\n orderTitle_en: 'Number of Left Athletes by Coaches',\r\n parentId: 214,\r\n content: 'LeavingAthletesByCoach',\r\n activatorPermission: ['\"KMKILEPEDZO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesBySection')\r\n .controller('LeavingAthletesBySection', LeavingAthletesBySection);\r\n\r\n function LeavingAthletesBySection(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $state, paramHelper) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('LeavingAthletesBySection');\r\n vm.sectionList = [];\r\n vm.athleteList = [];\r\n vm.accessibleSections = [];\r\n vm.columns = [\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamKilepett',\r\n headerText: gettextCatalog.getString('NumberOfAthletes'), template: '#leatbysetemplateDataColumn1',\r\n width: 125, textAlign: 'center'\r\n }, {\r\n field: 'SzamFiu',\r\n headerText: gettextCatalog.getString('NumberOfBoys'), template: '#leatbysetemplateDataColumn2',\r\n width: 115, textAlign: 'center'\r\n }, {\r\n field: 'SzamLany',\r\n headerText: gettextCatalog.getString('NumberOfGirls'), template: '#leatbysetemplateDataColumn3',\r\n width: 115, textAlign: 'center'\r\n }];\r\n vm.queryDate = new Date();\r\n vm.queryDate.setMonth(vm.queryDate.getMonth() - 1);\r\n vm.queryDate2 = new Date();\r\n vm.dateChange = dateChange;\r\n vm.dateChange2 = dateChange2;\r\n vm.openSection = openSection;\r\n vm.athleteListFull = [];\r\n vm.showEachSections = false;\r\n vm.accessibleSections = [];\r\n vm.checkboxChanged = checkboxChanged;\r\n vm.checkboxEnabled = true;\r\n vm.checkboxchangedonce = false;\r\n vm.checked = false;\r\n vm.isAdmin = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function openSection(SectionId, gender2) {\r\n new ej2.data.DataManager(grid.dataSource).executeQuery(new ej2.data.Query().where('SzakosztalyId', 'equal', SectionId)).then(function (data) {\r\n var SectionName = data.result[0].SzakosztalyNeve;\r\n var gender = gender2 === 0 ? 'allgender' : (gender2 === 1 ? 'male' : 'female');\r\n\r\n var sectionBelongsToUser = false;\r\n for (var i = 0; i < vm.accessibleSections.length; i++) {\r\n if (vm.accessibleSections[i] == SectionId) {\r\n sectionBelongsToUser = true;\r\n break;\r\n }\r\n }\r\n if (sectionBelongsToUser || vm.isAdmin) {\r\n paramHelper.setParams([\r\n {'state': 'leavingAthletes'},\r\n {'sectionId': SectionId},\r\n {'sectionName': SectionName},\r\n {'dateFrom': vm.queryDate},\r\n {'dateTo': vm.queryDate2},\r\n {'gender': gender}\r\n ]);\r\n $state.go('reports.statisticalReports.listAthletes');\r\n } else {\r\n log.htmlWarning(gettextCatalog.getString('You do not have permission to access the selected section details!') + '<br><br>' + gettextCatalog.getString(SectionName));\r\n }\r\n });\r\n }\r\n\r\n function activate() {\r\n authenticationService.getRight('KMKILSZAK').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getNumbers(vm.queryDate, vm.queryDate2);\r\n }\r\n });\r\n }\r\n\r\n function getNumbers(date, date2) {\r\n dataservice.leavingAthletesBySection(date, date2)\r\n .then(function (data) {\r\n vm.athleteListFull = data.itemsList;\r\n vm.accessibleSections = data.felhasznaloSzakosztalyai;\r\n vm.isAdmin = data.isAdmin;\r\n if (data.isAdmin == true) {\r\n vm.checked = true;\r\n }\r\n filterSections();\r\n });\r\n }\r\n\r\n function dateChange(data) {\r\n getNumbers(data.value, vm.queryDate2);\r\n }\r\n\r\n function dateChange2(data) {\r\n getNumbers(vm.queryDate, data.value);\r\n }\r\n\r\n function checkboxChanged(args) {\r\n vm.showEachSections = args.value;\r\n filterSections();\r\n }\r\n\r\n function filterSections() {\r\n vm.athleteList = [];\r\n if (!vm.showEachSections) {\r\n for (var i = 0; i < vm.athleteListFull.length; i++) {\r\n for (var s = 0; s < vm.accessibleSections.length; s++) {\r\n if (vm.athleteListFull[i].SzakosztalyId == vm.accessibleSections[s]) {\r\n vm.athleteList.push(vm.athleteListFull[i]);\r\n }\r\n }\r\n }\r\n } else {\r\n vm.athleteList = vm.athleteListFull;\r\n grid.dataSource = vm.athleteList;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n data.itemsList.unshift({\r\n value: '0',\r\n text: gettextCatalog.getString('All')\r\n });\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.leavingAthletesBySection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.leavingAthletesBySection',\r\n config: {\r\n url: '/leavingAthletesBySection',\r\n templateUrl: 'app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.html',\r\n controller: 'LeavingAthletesBySection',\r\n controllerAs: 'vm',\r\n title: 'LeavingAthletesBySection',\r\n settings: {\r\n navId: 32214,\r\n level: 3,\r\n order: 2,\r\n orderTitle_hu: 'Kilépők száma szakosztályonként',\r\n orderTitle_en: 'Number of Left Athletes by Sections',\r\n parentId: 214,\r\n content: 'LeavingAthletesBySection',\r\n activatorPermission: ['\"KMKILSZAK\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.listAthletes')\r\n .controller('ListAthletesController', ListAthletesController);\r\n\r\n function ListAthletesController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $scope, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('listAthletes');\r\n vm.params = [];\r\n vm.openAthlete = openAthlete;\r\n vm.openSportServiceFee = openSportServiceFee;\r\n vm.openCoach = openCoach;\r\n vm.athleteList = [];\r\n vm.columns = [];\r\n\r\n setColumns();\r\n\r\n function setColumns() {\r\n vm.columns = [];\r\n vm.columns = [{\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#laopenath'\r\n }, {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n width: 60,\r\n textAlign: 'center',\r\n displayAsCheckBox: true\r\n }, {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n width: 150,\r\n textAlign: 'center',\r\n template: '#laopencoach'\r\n }, {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n width: 125,\r\n textAlign: 'center'\r\n }, {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n width: 115,\r\n textAlign: 'center'\r\n }, {\r\n field: 'Megjegyzes',\r\n headerText: gettextCatalog.getString('Comment'),\r\n width: 150,\r\n textAlign: 'center'\r\n }];\r\n }\r\n\r\n var Grid2 = new ej2.grids.Grid({\r\n dataSource: vm.athleteList,\r\n columns: vm.columns,\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid2'), $scope);\r\n }\r\n }\r\n });\r\n\r\n Grid2.appendTo('#Grid2');\r\n Grid2.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, Grid2);\r\n };\r\n\r\n //0: mindkettő, 1: belépés dátuma, 2: kilépés dátuma\r\n function addColumns(args) {\r\n if (args === 0 || args === 1) {\r\n vm.columns.push({field: 'edzosportoloiIdoszakTol', headerText: gettextCatalog.getString('EnteringDate'), width: 100, textAlign: 'center'});\r\n }\r\n if (args === 0 || args === 2) {\r\n vm.columns.push({field: 'edzosportoloiIdoszakIg', headerText: gettextCatalog.getString('ExitingDate'), width: 100, textAlign: 'center'});\r\n }\r\n vm.columns.push({field: 'Tagdij', headerText: gettextCatalog.getString('PayedSportServiceFee'), width: 240, textAlign: 'center'});\r\n vm.columns.push({field: 'Oktatasidij', headerText: gettextCatalog.getString('PayedEducationalFee'), width: 240, textAlign: 'center'});\r\n vm.columns.push({field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), width: 150, textAlign: 'center', template: '#laopenfee'});\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], ['state', 'sectionId', 'sectionName', 'dateFrom', 'dateTo', 'gender', 'coachId', 'coachName', 'year'])]).then(function (results) {\r\n if (results[0].state == null) {\r\n $state.go('dashboard');\r\n }\r\n vm.params = results[0];\r\n paramHelper.removeParam('state');\r\n paramHelper.removeParam('sectionId');\r\n paramHelper.removeParam('sectionName');\r\n paramHelper.removeParam('dateFrom');\r\n paramHelper.removeParam('dateTo');\r\n paramHelper.removeParam('gender');\r\n paramHelper.removeParam('coachId');\r\n paramHelper.removeParam('coachName');\r\n paramHelper.removeParam('year');\r\n setTitle(vm.params.state, vm.params.sectionName, vm.params.coachName, vm.params.gender, vm.params.dateFrom, vm.params.dateTo, vm.params.year);\r\n if (vm.params.state == 'leavingAthletes') {\r\n checkRight('KMKILSZAK');\r\n addColumns(2);\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'joinedAthletes') {\r\n checkRight('KMBELSZAK');\r\n addColumns(1);\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'activeAthletes') {\r\n checkRight('KMSPORTSZAK');\r\n getList(vm.params.gender);\r\n } else if (vm.params.state == 'monthlyStatJoined') {\r\n checkRight('SPSZAMALAKRESZL');\r\n addColumns(0);\r\n getMonthlyListJoined();\r\n } else if (vm.params.state == 'monthlyStatLeaving') {\r\n checkRight('SPSZAMALAKRESZL');\r\n addColumns(2);\r\n getMonthlyListLeaving();\r\n } else if (vm.params.state == 'athletesByCoach') {\r\n checkRight('KMSPORTEDZO');\r\n getActiveAthleteListByCoach(vm.params.coachId, vm.params.sectionId, vm.params.dateFrom, vm.params.gender);\r\n } else if (vm.params.state == 'leavingAthletesFromCoach') {\r\n checkRight('KMKILEPEDZO');\r\n addColumns(2);\r\n getLeavingAthletesFromCoach(vm.params.gender);\r\n } else if (vm.params.state == 'joinedAthletesToCoach') {\r\n checkRight('KMBELEPEDZO');\r\n addColumns(1);\r\n getJoinedAthletesToCoach(vm.params.gender);\r\n } else if (vm.params.state == 'monthlyStat') {\r\n checkRight('KMSPORTALAK');\r\n addColumns(0);\r\n vm.params.dateFrom = vm.params.dateFrom.slice(0, 10);\r\n getMonthlyListActive(vm.params.gender);\r\n vm.params.dateFrom = $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom);\r\n $rootScope.title = gettextCatalog.getString('Sportolok Szamanak Alakulasa') + ' (' + gettextCatalog.getString(vm.params.sectionName) + ', ' + gettextCatalog.getString(vm.params.gender) + ', ' + vm.params.dateFrom + ')';\r\n } else if (vm.params.state == 'activeAthletesByBirthYear') {\r\n checkRight('KMSPORTELETKOR');\r\n getActiveAthletesByBirthYear(vm.params.sectionId, vm.params.year, vm.params.gender);\r\n $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + ' (' + gettextCatalog.getString(vm.params.sectionName) + ', ' + gettextCatalog.getString(vm.params.gender) + ', ' + vm.params.year + ')';\r\n }\r\n });\r\n }\r\n\r\n function checkRight(right) {\r\n authenticationService.getRight(right).then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function setTitle(state, sectionname, coachname, gender, datefrom, dateto, year) {\r\n var titleText = ' (';\r\n if (sectionname && sectionname.length > 0) {\r\n titleText += sectionname + ', ';\r\n }\r\n if (coachname && coachname.length > 0) {\r\n titleText += coachname + ', ';\r\n }\r\n if (gender) {\r\n switch (gender){\r\n case 'allgender': titleText += gettextCatalog.getString('allgender'); break;\r\n case 'male': titleText += gettextCatalog.getString('male'); break;\r\n case 'female': titleText += gettextCatalog.getString('female'); break;\r\n }\r\n }\r\n if (datefrom == dateto) {\r\n dateto = undefined;\r\n }\r\n if (datefrom) {\r\n titleText += ', ' + datefrom;\r\n }\r\n if (dateto) {\r\n titleText += ' - ' + dateto;\r\n }\r\n if (year) {\r\n titleText + year;\r\n }\r\n titleText += ')';\r\n switch (state){\r\n case 'activeAthletes': $rootScope.title = gettextCatalog.getString('activeAthletesBySection') + titleText;break;\r\n case 'leavingAthletes': $rootScope.title = gettextCatalog.getString('leavingAthletesBySection') + titleText;break;\r\n case 'joinedAthletes': $rootScope.title = gettextCatalog.getString('joinedAthletesBySection') + titleText;break;\r\n case 'monthlyStatJoined': $rootScope.title = gettextCatalog.getString('joinedAthletesInMonth') + ' (' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')';break;\r\n case 'monthlyStatLeaving': $rootScope.title = gettextCatalog.getString('leavingAthletesInMonth') + ' (' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')';break;\r\n case 'athletesByCoach': $rootScope.title = gettextCatalog.getString('AthletesByCoach') + titleText;break;\r\n case 'leavingAthletesFromCoach': $rootScope.title = gettextCatalog.getString('leavingAthletesFromCoach') + titleText;break;\r\n case 'joinedAthletesToCoach': $rootScope.title = gettextCatalog.getString('joinedAthletesToCoach') + titleText;break;\r\n case 'monthlyStat': $rootScope.title = gettextCatalog.getString('monthlyStat') + ' (' + sectionname + ', ' + gender + ', ' + $filter('dateYearMonthLongStrFilter')(vm.params.dateFrom) + ')'; break;\r\n case 'activeAthletesByBirthYear': $rootScope.title = gettextCatalog.getString('activeAthletesByBirthYear') + titleText;break;\r\n }\r\n }\r\n\r\n function refresh() {\r\n Grid2.columns = vm.columns;\r\n Grid2.refreshColumns();\r\n Grid2.dataSource = vm.athleteList;\r\n Grid2.refresh();\r\n }\r\n\r\n function nullFilter(arr, prop) {\r\n arr.forEach(function(e) {\r\n if (e[prop] === null) {\r\n e[prop] = '';\r\n }\r\n });\r\n return arr;\r\n }\r\n\r\n function getList(gender) {\r\n dataservice.listAthletes(vm.params.dateFrom, vm.params.dateTo, vm.params.state, vm.params.sectionId, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getActiveAthletesByBirthYear(sectionId, year, gender) {\r\n dataservice.activeAthletesByBirthYear(sectionId, year, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getActiveAthleteListByCoach(coachId, sectionId, dateFrom, gender) {\r\n dataservice.activeAthletesByCoach(coachId, sectionId, dateFrom, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListActive(gender) {\r\n dataservice.ActiveAthletesInASpecificMonth(vm.params.dateFrom, vm.params.dateFrom, vm.params.sectionId, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListJoined() {\r\n dataservice.JoinedAthletesInASpecificMonth(vm.params.dateFrom).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getMonthlyListLeaving() {\r\n dataservice.LeavingAthletesInASpecificMonth(vm.params.dateFrom).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getLeavingAthletesFromCoach(gender) {\r\n dataservice.leavingAthletesFromASpecificCoach(vm.params.coachId, vm.params.dateFrom, vm.params.dateTo, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function getJoinedAthletesToCoach(gender) {\r\n dataservice.joinedAthletesToASpecificCoach(vm.params.coachId, vm.params.dateFrom, vm.params.dateTo, gender).then(function(data) {\r\n vm.athleteList = data.itemsList;\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'SzuletesiIdo');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakTol');\r\n vm.athleteList = $filter('dateStringFilter')(vm.athleteList, 'edzosportoloiIdoszakIg');\r\n vm.athleteList = nullFilter(vm.athleteList, 'Egyenleg');\r\n refresh();\r\n });\r\n }\r\n\r\n function openSportServiceFee(SportolokID) {\r\n var promises = [authenticationService.getRight('MEGTTAGDNYILV'), authenticationService.getRight('MEGTOKTDNYILV')];\r\n $q.all(promises).then(function (results) {\r\n if (results[0] !== true || results[1] !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([\r\n {'sportServiceFeeRegister.athleteID': SportolokID}\r\n ]);\r\n $state.go('business.sportServiceFeeRegister');\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports.listAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports.listAthletes',\r\n config: {\r\n url: '/listAthletes',\r\n templateUrl: 'app/reports/statisticalReports/listAthletes/listAthletes.html',\r\n controller: 'ListAthletesController',\r\n controllerAs: 'vm',\r\n title: 'listAthletes'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.statisticalReports')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.statisticalReports',\r\n config: {\r\n title: 'statisticalReports',\r\n url: '/statisticalReports',\r\n templateUrl: 'app/reports/statisticalReports/statisticalReports.html',\r\n settings: {\r\n navId: 214,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Statisztikai kimutatások',\r\n orderTitle_en: 'Statistical Reports',\r\n parentId: 4,\r\n content: 'StatisticalReports',\r\n activatorPermission: [\r\n '\"KMSPORTELETKOR\"',\r\n '\"KMSPORTEDZO\"',\r\n '\"KMSPORTALAK\"',\r\n '\"KMSPORTSZAK\"',\r\n '\"KMSPORTALAKSZO\"',\r\n '\"SPJELENLETINELK\"',\r\n '\"KMBELEPEDZO\"',\r\n '\"KMBELSZAK\"',\r\n '\"KMKILEPEDZO\"',\r\n '\"KMKILSZAK\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.trainingAttendanceReport')\r\n .controller('TrainingAttendanceReportController', TrainingAttendanceReportController);\r\n\r\n function TrainingAttendanceReportController(log, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, $filter, $state, paramHelper, $q) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('TrainingAttendanceReport');\r\n\r\n // Create variables\r\n vm.dateFromValue = new Date(new Date().getFullYear(), 0, 1);\r\n vm.dateToValue = new Date(new Date().getFullYear(), 11, 31);\r\n vm.coachId = 0;\r\n vm.coachList = [];\r\n vm.coachDataBound = coachDataBound;\r\n vm.show = show;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n vm.columns = [\r\n {field: 'SportolokID', isPrimaryKey: true, visible: false},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('Athlete'), textAlign: 'center', width: 150,\r\n template: '#trainingAttendanceReportcolumnTemplate'},\r\n {field: 'SzuletesiDatum', headerText: gettextCatalog.getString('Birthdate'), textAlign: 'center', width: 125},\r\n {field: 'EdzesekSzama', headerText: gettextCatalog.getString('Attendance'), textAlign: 'center', width: 115},\r\n {field: 'JelenletOsszMinden', headerText: gettextCatalog.getString('AllAttendance'), textAlign: 'center', width: 150},\r\n {field: 'OsszEdzesekSzama', headerText: '*' + gettextCatalog.getString('Trainings'), textAlign: 'center', width: 125},\r\n {field: 'JelenletSzazalek', headerText: '*' + gettextCatalog.getString('AttendancePercentage'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('EDZLATSTAT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getCoachList();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'tar.from',\r\n 'tar.to',\r\n 'tar.coach'\r\n ])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.dateFromValue = results[0]['tar.from'];\r\n vm.dateToValue = results[0]['tar.to'];\r\n vm.coachId = results[0]['tar.coach'];\r\n });\r\n }\r\n\r\n function getCoachList() {\r\n return dataservice.coachSelect().then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n paramHelper.setParams([\r\n {'tar.from': vm.dateFromValue},\r\n {'tar.to': vm.dateToValue},\r\n {'tar.coach': vm.coachId}\r\n ]);\r\n dataservice.getTrainingAttendances(vm.dateFromValue, vm.dateToValue, vm.coachId).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiDatum');\r\n });\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.trainingAttendanceReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.trainingAttendanceReport',\r\n config: {\r\n url: '/trainingAttendanceReport',\r\n templateUrl: 'app/reports/trainingAttendanceReport/trainingAttendanceReport.html',\r\n controller: 'TrainingAttendanceReportController',\r\n controllerAs: 'vm',\r\n title: 'TrainingAttendanceReport',\r\n settings: {\r\n navId: 254,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Edzéslátogatás statisztika',\r\n orderTitle_en: 'Training Visit Statistic',\r\n parentId: 4,\r\n content: 'TrainingAttendanceReport',\r\n activatorPermission: ['\"EDZLATSTAT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.weeklyTrainingReport')\r\n .controller('weeklyTrainingReportController', weeklyTrainingReportController);\r\n\r\n function weeklyTrainingReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('weeklyTrainingReport');\r\n\r\n vm.place = '';\r\n vm.sectionList = [];\r\n vm.places = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n vm.showWeeks = false;\r\n vm.onlyStartDate = false;\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.openAthlete = openAthlete;\r\n vm.openCoach = openCoach;\r\n vm.show = show;\r\n vm.openPlan = openPlan;\r\n vm.showWeeksChange = showWeeksChange;\r\n vm.savedParams = {sectionId: 0, ageGroupId: 0, coachId: 0};\r\n\r\n vm.dateFromChange = dateFromChange;\r\n vm.dateToChange = dateToChange;\r\n\r\n vm.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 115},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 200},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'tol', headerText: gettextCatalog.getString('From'), textAlign: 'center', width: 125},\r\n {field: 'ig', headerText: gettextCatalog.getString('To'), textAlign: 'center', width: 125},\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelected: function (args) {\r\n vm.selectedRowId = args.data.Id;\r\n vm.delEnabled = vm.MODHETIEDZTERV;\r\n $scope.$apply();\r\n },\r\n rowDeselected: function () {\r\n vm.delEnabled = false;\r\n vm.selectedRowId = -1;\r\n $scope.$apply();\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('MEGTHETIEDZTERVKIMUT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getPlaces();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'wtr.sectionId',\r\n 'wtr.ageGroupId',\r\n 'wtr.coachId',\r\n 'wtr.showWeeks',\r\n 'wtr.place'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['wtr.sectionId'];\r\n vm.ageGroupId = results[0]['wtr.ageGroupId'];\r\n vm.coachId = results[0]['wtr.coachId'];\r\n vm.place = results[0]['wtr.place'];\r\n angular.element('#ShowWeeks').ejCheckBox({checked: results[0]['wtr.showWeeks']});\r\n });\r\n }\r\n\r\n function initColumns(weekly) {\r\n if (weekly) {\r\n grid.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 250},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Monday'), textAlign: 'center', width: 125},\r\n ];\r\n grid.refreshColumns();\r\n } else {\r\n grid.columns = [\r\n {field: 'Link', headerText: '', template: '#wtro', textAlign: 'center', width: 60},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'edzo', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: 150},\r\n {field: 'helyszin', headerText: gettextCatalog.getString('Place'), textAlign: 'center', width: 250},\r\n {field: 'hetszama', headerText: gettextCatalog.getString('FelkHetSzam'), textAlign: 'center', width: 125},\r\n {field: 'nap', headerText: gettextCatalog.getString('Date'), textAlign: 'center', width: 125},\r\n {field: 'tol', headerText: gettextCatalog.getString('From'), textAlign: 'center', width: 100},\r\n {field: 'ig', headerText: gettextCatalog.getString('To'), textAlign: 'center', width: 100},\r\n ];\r\n grid.refreshColumns();\r\n }\r\n }\r\n\r\n function getPlaces() {\r\n dataservice.WeeklyTrainingPlaces().then(function (data) {\r\n vm.places = data.data;\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n getAgeGroups(args.value);\r\n getActualCoachesList(0);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.place == null) {\r\n vm.place = '';\r\n }\r\n if (vm.showWeeks == null) {\r\n vm.showWeeks = false;\r\n }\r\n paramHelper.setParams([{\r\n 'wtr.sectionId': vm.sectionId,\r\n 'wtr.ageGroupId': vm.ageGroupId,\r\n 'wtr.coachId': vm.coachId,\r\n 'wtr.selectdateFrom': vm.selectdateFrom,\r\n 'wtr.selectdateTo': vm.selectdateTo,\r\n 'wtr.showWeeks': vm.showWeeks,\r\n 'wtr.place': vm.place\r\n }]);\r\n dataservice.getWeeklyTrainingList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.showWeeks, vm.place).then(function (data) {\r\n grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'nap');\r\n initColumns(vm.showWeeks);\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openPlan(trainingPlanId) {\r\n authenticationService.getRight('MEGTHETIEDZTERV').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n } else {\r\n dataservice.weeklyTrainingPlanSelectByIdNew(trainingPlanId).then(function (data) {\r\n paramHelper.setParams([\r\n {'weeklyTrainingPlan.edzoId': data.retValue.IdEdzo},\r\n {'weeklyTrainingPlan.szakosztalyId': data.retValue.IdSzakosztaly},\r\n {'weeklyTrainingPlan.korosztalyId': data.retValue.IdKorosztaly},\r\n {'weeklyTrainingPlan.ev': 0},\r\n {'weeklyTrainingPlan.trainingPlanId': trainingPlanId},\r\n {'weeklyTrainingPlan.edzoNev': data.retValue.EdzoNev},\r\n {'weeklyTrainingPlan.szakosztalyNev': data.retValue.SzakosztalyNev},\r\n {'weeklyTrainingPlan.korosztalyNev': data.retValue.KorosztalyNev},\r\n {'weeklyTrainingPlan.szoveg': ''}\r\n ]);\r\n $state.go('administration.weeklyTrainingPlan.weeklyTrainingPlanReport');\r\n });\r\n }\r\n });\r\n }\r\n\r\n function showWeeksChange(arg) {\r\n vm.showWeeks = arg.value;\r\n }\r\n\r\n function dateFromChange(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(0);\r\n }\r\n\r\n function dateToChange(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(0);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.weeklyTrainingReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.weeklyTrainingReport',\r\n config: {\r\n url: '/weeklyTrainingReport',\r\n templateUrl: 'app/reports/weeklyTrainingReport/weeklyTrainingReport.html',\r\n controller: 'weeklyTrainingReportController',\r\n controllerAs: 'vm',\r\n title: 'weeklyTrainingReport',\r\n settings: {\r\n navId: 2204,\r\n level: 2,\r\n order: 20,\r\n orderTitle_hu: 'Heti edzésterv kimutatás',\r\n orderTitle_en: 'Weekly Training Report',\r\n parentId: 4,\r\n content: 'weeklyTrainingReport',\r\n activatorPermission: ['\"MEGTHETIEDZTERVKIMUT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.weeklyTravelReport')\r\n .controller('WeeklyTravelReportController', WeeklyTravelReportController);\r\n\r\n function WeeklyTravelReportController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, $filter, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('WeeklyTravelReport');\r\n\r\n vm.typeList = [\r\n {value: 1, text: gettextCatalog.getString('Plan')},\r\n {value: 2, text: gettextCatalog.getString('Fact')},\r\n {value: 3, text: gettextCatalog.getString('All')}\r\n ];\r\n\r\n vm.typeId = 3;\r\n vm.sectionList = [];\r\n vm.sectionId = 0;\r\n vm.ageGroupList = [];\r\n vm.ageGroupId = 0;\r\n vm.coachList = [];\r\n vm.coachId = 0;\r\n vm.datasource = [];\r\n vm.onlyStartDate = false;\r\n vm.selectdateFrom = getMonday(new Date(), 0);\r\n vm.selectdateTo = getMonday(new Date(), 6);\r\n vm.showOrder = 1;\r\n vm.typeDataBound = typeDataBound;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.busOwnersDataBound = busOwnersDataBound;\r\n vm.busOwnerSelect = busOwnerSelect;\r\n vm.typeSelect = typeSelect;\r\n vm.coachSelect = coachSelect;\r\n vm.show = show;\r\n vm.radioButtonChecked = radioButtonChecked;\r\n vm.openPlan = openPlan;\r\n vm.busOwners = [];\r\n vm.busOwnerId = '-1';\r\n vm.fromDateChange = fromDateChange;\r\n vm.toDateChange = toDateChange;\r\n vm.onlyStartDateChanged = onlyStartDateChanged;\r\n\r\n vm.columns = [\r\n {field: 'Id', isPrimaryKey: true, visible: false},\r\n {field: 'Link', headerText: '', template: '#WTRPlanOpenTemplate', textAlign: 'center', width: 60},\r\n {field: 'VersenySorszam', headerText: gettextCatalog.getString('VersenySorszam'), width: 125, textAlign: 'center'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('SzakosztalyNeve'), width: 125, textAlign: 'center'},\r\n {field: 'VersenyNeve', headerText: gettextCatalog.getString('VersenyNeve'), width: 175, textAlign: 'center'},\r\n {field: 'VersenyHelye', headerText: gettextCatalog.getString('VersenyHelye'), width: 175, textAlign: 'center'},\r\n {field: 'SzallitoJarmuTipusa', headerText: gettextCatalog.getString('JarmuTipus'), width: 150, textAlign: 'center'},\r\n {field: 'SzallitoJarmuTulajdonos', headerText: gettextCatalog.getString('JarmuTulajdonos'), width: 175, textAlign: 'center'},\r\n {field: 'JarmuKiallasIdopontja', headerText: gettextCatalog.getString('JarmuKiallasIdopontja'), width: 175, textAlign: 'center'},\r\n {field: 'JarmuKiallasHelye', headerText: gettextCatalog.getString('JarmuKiallasHelye'), width: 175, textAlign: 'center'},\r\n {field: 'VisszaindulasIdopontja', headerText: gettextCatalog.getString('VisszaindulasIdopontja'), width: 150, textAlign: 'center'},\r\n {field: 'FelelosEdzoNeve', headerText: gettextCatalog.getString('FelelosEdzoNeve'), width: 150, textAlign: 'center'},\r\n {field: 'EdzoElerhetosege', headerText: gettextCatalog.getString('EdzoElerhetosege'), width: 150, textAlign: 'center'},\r\n {field: 'Vegleges', headerText: gettextCatalog.getString('Final'), displayAsCheckBox: true, width: 115, textAlign: 'center'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n function getMonday(d, plusDay) {\r\n d = new Date(d);\r\n var day = d.getDay();\r\n var diff = d.getDate() - day + (day == 0 ? -6 : 1) + plusDay; // adjust when day is sunday\r\n return new Date(d.setDate(diff));\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UTAZTERVMEGT').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getBusOwners();\r\n setDropDowns();\r\n }\r\n });\r\n }\r\n\r\n function onlyStartDateChanged(arg) {\r\n vm.onlyStartDate = arg.value;\r\n }\r\n\r\n function setDropDowns() {\r\n var promises = [paramHelper.getParams([], [\r\n 'weeklyTrainingPlans.sectionId',\r\n 'weeklyTrainingPlans.ageGroupId',\r\n 'weeklyTrainingPlans.coachId',\r\n 'weeklyTrainingPlans.onlyStartDate',\r\n 'weeklyTrainingPlans.typeId',\r\n 'weeklyTrainingPlans.busOwnerId'\r\n ])];\r\n $q.all(promises).then(function (results) {\r\n vm.sectionId = results[0]['weeklyTrainingPlans.sectionId'] ? results[0]['weeklyTrainingPlans.sectionId'] : vm.sectionId;\r\n vm.ageGroupId = results[0]['weeklyTrainingPlans.ageGroupId'] ? results[0]['weeklyTrainingPlans.ageGroupId'] : vm.ageGroupId;\r\n vm.coachId = results[0]['weeklyTrainingPlans.coachId'] ? results[0]['weeklyTrainingPlans.coachId'] : vm.coachId;\r\n vm.onlyStartDate = results[0]['weeklyTrainingPlans.onlyStartDate'] != null ? results[0]['weeklyTrainingPlans.onlyStartDate'] : vm.onlyStartDate;\r\n vm.typeId = results[0]['weeklyTrainingPlans.typeId'] ? results[0]['weeklyTrainingPlans.typeId'] : vm.typeId;\r\n vm.busOwnerId = results[0]['weeklyTrainingPlans.busOwnerId'] ? results[0]['weeklyTrainingPlans.busOwnerId'] : vm.busOwnerId;\r\n angular.element('#onlyStartDate').ejCheckBox({checked: vm.onlyStartDate});\r\n });\r\n }\r\n\r\n function getBusOwners() {\r\n dataservice.IdegenKoltsegTervBuszTulaj().then(function (response) {\r\n vm.busOwners = [{value: '-1', text: ''}];\r\n for (var i = 0; i < response.data.length; i++) {\r\n vm.busOwners.push({value: response.data[i], text: response.data[i]});\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true)\r\n .then(function (data) {\r\n if (data.itemsList.length > 1) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n }\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n // Run after section selected\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n return dataservice.ageGroupDropDownList(sectionId).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n if (vm.ageGroupId) {\r\n getActualCoachesList(0);\r\n }\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n getActualCoachesList(args.value);\r\n }\r\n\r\n function getActualCoachesList(ageGroupId) {\r\n return dataservice.coachDropDownList(vm.sectionId, ageGroupId, vm.selectdateFrom, vm.selectdateTo).then(function (data) {\r\n if (data.itemsList.length !== 1) {\r\n data.itemsList.unshift({text: gettextCatalog.getString('All'), value: 0});\r\n }\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n // Run after data bounded\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n } else {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachId);\r\n }\r\n }\r\n\r\n // Run after age coach selectedplayUpAndDown\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n }\r\n function typeDataBound() {\r\n angular.element('#typeDropDown').ejDropDownList('selectItemByValue', vm.typeId);\r\n }\r\n\r\n function typeSelect(args) {\r\n vm.typeId = args.value;\r\n }\r\n\r\n function busOwnersDataBound() {\r\n if (vm.busOwners.length === 1) {\r\n angular.element('#BusOwnerDropDown').ejDropDownList('selectItemByValue', vm.busOwners[0].value);\r\n } else {\r\n angular.element('#BusOwnerDropDown').ejDropDownList('selectItemByValue', vm.busOwnerId);\r\n }\r\n }\r\n\r\n function busOwnerSelect(args) {\r\n vm.busOwnerId = args.value;\r\n }\r\n\r\n function show() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n dataservice.getWeeklyTravelList(vm.sectionId, vm.ageGroupId, vm.coachId, vm.selectdateFrom, vm.selectdateTo, vm.onlyStartDate, vm.typeId, vm.busOwnerId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n paramHelper.setParams(\r\n [\r\n {'weeklyTrainingPlans.sectionId': vm.sectionId},\r\n {'weeklyTrainingPlans.ageGroupId': vm.ageGroupId},\r\n {'weeklyTrainingPlans.coachId': vm.coachId},\r\n {'weeklyTrainingPlans.onlyStartDate': vm.onlyStartDate},\r\n {'weeklyTrainingPlans.typeId': vm.typeId},\r\n {'weeklyTrainingPlans.busOwnerId': vm.busOwnerId}\r\n ]);\r\n }\r\n\r\n function radioButtonChecked(args) {\r\n vm.showOrder = args.model.value;\r\n }\r\n\r\n function openPlan(Id) {\r\n $q.all([authenticationService.getRight('MEGTIDEGENKOLTSTERV')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'awayBudgetPlan.planId': Id}]);\r\n $state.go('administration.awayBudgetPlan.awayBudgetPlanCreate');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function fromDateChange(args) {\r\n vm.selectdateFrom = args.value;\r\n getActualCoachesList(0);\r\n }\r\n\r\n function toDateChange(args) {\r\n vm.selectdateTo = args.value;\r\n getActualCoachesList(0);\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.reports.weeklyTravelReport')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'reports.weeklyTravelReport',\r\n config: {\r\n url: '/weeklyTravelReport',\r\n templateUrl: 'app/reports/weeklyTravelReport/weeklyTravelReport.html',\r\n controller: 'WeeklyTravelReportController',\r\n controllerAs: 'vm',\r\n title: 'WeeklyTravelReport',\r\n settings: {\r\n navId: 2174,\r\n level: 2,\r\n order: 17,\r\n orderTitle_hu: 'Utazási összesítő kimutatás',\r\n orderTitle_en: 'Travel Report',\r\n parentId: 4,\r\n content: 'WeeklyTravelReport',\r\n activatorPermission: ['\"UTAZTERVMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.schedule')\r\n .controller('ScheduleController', ScheduleController);\r\n\r\n function ScheduleController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, DOMAIN, $timeout, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('Schedule');\r\n\r\n vm.unnamedEvent = gettextCatalog.getString('unnamedEvent');\r\n // Create variables\r\n vm.eventColor = '#000000';\r\n vm.trainingColor = '#169c5f';\r\n vm.sectionResources = [];\r\n vm.ageGroupResources = [];\r\n vm.categoryResources = [\r\n {text: gettextCatalog.getString('Event'), id: 1, color: vm.eventColor, fontColor: '#000000'},\r\n {text: gettextCatalog.getString('Training'), id: 2, color: vm.trainingColor, fontColor: '#ffffff'}\r\n ];\r\n vm.trainingText = gettextCatalog.getString('Training');\r\n vm.eventText = gettextCatalog.getString('Event');\r\n vm.appointments = [];\r\n\r\n vm.SPORTOLO = null;\r\n vm.SZULO = null;\r\n vm.sectionDropDownVisible = true;\r\n vm.training = false;\r\n vm.saveThis = {};\r\n\r\n // Public functions\r\n vm.getSections = getSections;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.print = print;\r\n vm.exportAllToIcs = exportAllToIcs;\r\n vm.trainingCheckboxChanged = trainingCheckboxChanged;\r\n\r\n // Felhasználó kiválasztás\r\n vm.RecipientsIds = [];\r\n vm.RecipientsNames = '';\r\n vm.RecipientsNamesArr = [];\r\n vm.recipientsText = gettextCatalog.getString('recipients');\r\n vm.clearText = gettextCatalog.getString('clear');\r\n vm.showRecipientsText = gettextCatalog.getString('showRecipients');\r\n\r\n vm.searchUser = searchUser;\r\n vm.searchAthlete = searchAthlete;\r\n vm.searchParent = searchParent;\r\n vm.searchUserGroup = searchUserGroup;\r\n vm.searchSection = searchSection;\r\n vm.searchTeamsAthletes = searchTeamsAthletes;\r\n vm.searchTeamsParents = searchTeamsParents;\r\n vm.searchAgeGroupAthletes = searchAgeGroupAthletes;\r\n vm.searchAgeGroupParents = searchAgeGroupParents;\r\n\r\n vm.parentsCheckboxChanged = parentsCheckboxChanged;\r\n vm.athleteCheckboxChanged = athleteCheckboxChanged;\r\n vm.userCheckboxChanged = userCheckboxChanged;\r\n vm.usersGroupCheckboxChanged = usersGroupCheckboxChanged;\r\n vm.sectionsCheckboxChanged = sectionsCheckboxChanged;\r\n vm.teamsCheckboxChanged = teamsCheckboxChanged;\r\n vm.teamParentsCheckboxChanged = teamParentsCheckboxChanged;\r\n vm.ageGroupsCheckboxChanged = ageGroupsCheckboxChanged;\r\n vm.ageGroupsParentsCheckboxChanged = ageGroupsParentsCheckboxChanged;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n\r\n vm.usersList = [];\r\n vm.athletesList = [];\r\n vm.parentsList = [];\r\n vm.usersGroupList = [];\r\n vm.sectionsList = [];\r\n vm.teamsAthletesList = [];\r\n vm.teamParentsList = [];\r\n vm.ageGroupsList = [];\r\n vm.ageGroupsParentsList = [];\r\n\r\n vm.usersListAll = [];\r\n vm.athletesListAll = [];\r\n vm.parentsListAll = [];\r\n vm.usersGroupListAll = [];\r\n vm.sectionsListAll = [];\r\n vm.teamsAthletesListAll = [];\r\n vm.teamParentsListAll = [];\r\n vm.ageGroupsListAll = [];\r\n vm.ageGroupsParentsListAll = [];\r\n\r\n vm.alertSettings = {};\r\n initAlertSettings();\r\n\r\n vm.processedTabs = 0;\r\n\r\n vm.showDirectory = showDirectory;\r\n vm.toolbarPopupClick = toolbarPopupClick;\r\n\r\n vm.toolbarPopupItems = [\r\n {empid: 1, tooltiptext: gettextCatalog.getString('Ok'), spriteCss: 'msgtools Accept'},\r\n {empid: 2, tooltiptext: gettextCatalog.getString('Cancel'), spriteCss: 'msgtools Back'}\r\n ];\r\n\r\n function initAlertSettings() {\r\n vm.alertSettings = {};\r\n vm.alertSettings.users = [];\r\n vm.alertSettings.athletes = [];\r\n vm.alertSettings.parents = [];\r\n vm.alertSettings.usergroups = [];\r\n vm.alertSettings.sections = [];\r\n vm.alertSettings.teamsathletes = [];\r\n vm.alertSettings.teamsparents = [];\r\n vm.alertSettings.agegroupsathletes = [];\r\n vm.alertSettings.agegroupsparents = [];\r\n }\r\n\r\n function getUsers() {\r\n dataservice.CimjegyzekMobil().then(function (data) {\r\n data.data.lista.forEach(function (element) {\r\n switch (element.usersof){\r\n case 'users':\r\n vm.usersList = element.itemsList;\r\n vm.usersListAll = element.itemsList;\r\n break;\r\n case 'athletes':\r\n vm.athletesList = element.itemsList;\r\n vm.athletesListAll = element.itemsList;\r\n break;\r\n case 'parents':\r\n vm.parentsList = element.itemsList;\r\n vm.parentsListAll = element.itemsList;\r\n break;\r\n case 'usergroups':\r\n vm.usersGroupList = element.itemsList;\r\n vm.usersGroupListAll = element.itemsList;\r\n break;\r\n case 'sections':\r\n vm.sectionsList = element.itemsList;\r\n vm.sectionsListAll = element.itemsList;\r\n break;\r\n case 'teamsathletes':\r\n vm.teamsAthletesList = element.itemsList;\r\n vm.teamsAthletesListAll = element.itemsList;\r\n break;\r\n case 'teamsparents':\r\n vm.teamParentsList = element.itemsList;\r\n vm.teamParentsListAll = element.itemsList;\r\n break;\r\n case 'agegroupsathletes':\r\n vm.ageGroupsList = element.itemsList;\r\n vm.ageGroupsListAll = element.itemsList;\r\n break;\r\n case 'agegroupsparents':\r\n vm.ageGroupsParentsList = element.itemsList;\r\n vm.ageGroupsParentsListAll = element.itemsList;\r\n break;\r\n }\r\n });\r\n });\r\n }\r\n\r\n function showRecipients() {\r\n var obj = {};\r\n obj.Ids = vm.RecipientsIds;\r\n obj.Message = '-';\r\n dataservice.getNamesByIds(obj).then(function (data) {\r\n var txt = '';\r\n for (var i = 0; i < data.data.length; i++) {\r\n txt += data.data[i];\r\n if (i < data.data.length - 1 && data.data.length > 1) {\r\n txt += ', ';\r\n }\r\n }\r\n swal({\r\n title: gettextCatalog.getString('recipients'),\r\n text: txt,\r\n type: 'info',\r\n showCancelButton: false,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n });\r\n }\r\n\r\n function clearRecipients() {\r\n initAlertSettings();\r\n vm.RecipientsIds = [];\r\n vm.RecipientsNames = '';\r\n vm.RecipientsNamesArr = [];\r\n vm.emptyGroupList = '';\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 10);\r\n }\r\n\r\n function recipientsSettings(tab) {\r\n var itemstemp = [];\r\n switch (tab) {\r\n case 0:\r\n itemstemp = angular.element('#usersListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'users');\r\n }\r\n break;\r\n case 1:\r\n itemstemp = angular.element('#athletesListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'athletes');\r\n }\r\n break;\r\n case 2:\r\n itemstemp = angular.element('#parentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientNames(itemstemp, 'parents');\r\n }\r\n break;\r\n case 3:\r\n itemstemp = angular.element('#usersGroupListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('usergroupmember', itemstemp);\r\n }\r\n break;\r\n case 4:\r\n itemstemp = angular.element('#sectionsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('sectionmembers', itemstemp);\r\n }\r\n break;\r\n case 5:\r\n itemstemp = angular.element('#teamsAthletesListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('teammembers', itemstemp);\r\n }\r\n break;\r\n case 6:\r\n itemstemp = angular.element('#teamParentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('teammembersparents', itemstemp);\r\n }\r\n break;\r\n case 7:\r\n itemstemp = angular.element('#ageGroupsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('agegroupsmembers', itemstemp);\r\n }\r\n break;\r\n case 8:\r\n itemstemp = angular.element('#ageGroupsParentsListBox').ejListBox('getCheckedItems');\r\n if (itemstemp.length > 0) {\r\n addRecipientsFromGroup('agegroupsmembersparents', itemstemp);\r\n }\r\n break;\r\n }\r\n $scope.$apply();\r\n }\r\n\r\n function getUserIdsOfGroup(usersof, id, name) {\r\n var idlist = [];\r\n idlist.push(id);\r\n return dataservice.getUserIdsOfGroup(usersof, idlist).then(function (data) {\r\n if (data.data.length == 0) {\r\n vm.emptyGroupList += name + '<br>';\r\n return false;\r\n }\r\n for (var i = 0; i < data.data.length; i++) {\r\n vm.RecipientsIds.push(data.data[i]);\r\n }\r\n switch (usersof){\r\n case 'usergroupmember':\r\n vm.alertSettings.usergroups.push(id);\r\n break;\r\n case 'sectionmembers':\r\n vm.alertSettings.sections.push(id);\r\n break;\r\n case 'teammembers':\r\n vm.alertSettings.teamsathletes.push(id);\r\n break;\r\n case 'teammembersparents':\r\n vm.alertSettings.teamsparents.push(id);\r\n break;\r\n case 'agegroupsmembers':\r\n vm.alertSettings.agegroupsathletes.push(id);\r\n break;\r\n case 'agegroupsmembersparents':\r\n vm.alertSettings.agegroupsparents.push(id);\r\n break;\r\n }\r\n return name;\r\n });\r\n }\r\n\r\n function addRecipientsFromGroup(group, temp) {\r\n for (var i = 0; i < temp.length; i++) {\r\n var t = temp[i].data;\r\n $q.all([getUserIdsOfGroup(group, temp[i].data.value, temp[i].data.text)]).then(function (results) {\r\n if (results != false && noDuplicates(results)) {\r\n if (vm.RecipientsNames.length > 0) {\r\n vm.RecipientsNames += '; ';\r\n }\r\n vm.RecipientsNames += results;\r\n vm.RecipientsNamesArr.push(results);\r\n }\r\n vm.processedTabs++;\r\n });\r\n }\r\n }\r\n\r\n function addRecipientNames(items, tab) {\r\n angular.forEach(items, function(value) {\r\n switch (tab){\r\n case 'users':\r\n vm.alertSettings.users.push(value.data.value);\r\n break;\r\n case 'athletes':\r\n vm.alertSettings.athletes.push(value.data.value);\r\n break;\r\n case 'parents':\r\n vm.alertSettings.parents.push(value.data.value);\r\n break;\r\n }\r\n vm.RecipientsIds.push(value.data.value);\r\n if (noDuplicates(value.text)) {\r\n if (vm.RecipientsNames.length > 0) {\r\n vm.RecipientsNames += '; ';\r\n }\r\n vm.RecipientsNames += value.text;\r\n vm.RecipientsNamesArr.push(value.text);\r\n }\r\n });\r\n vm.processedTabs++;\r\n }\r\n\r\n function noDuplicates(newName) {\r\n for (var i = 0; i < vm.RecipientsNamesArr.length; i++) {\r\n if (vm.RecipientsNamesArr[i] == newName) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function getNumberOfCheckedTabs() {\r\n var itemstemp = [];\r\n var cnt = 0;\r\n if (angular.element('#usersListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#athletesListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#parentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#usersGroupListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#sectionsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#teamsAthletesListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#teamParentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#ageGroupsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n if (angular.element('#ageGroupsParentsListBox').ejListBox('getCheckedItems').length > 0) {\r\n cnt++;\r\n }\r\n return cnt;\r\n }\r\n\r\n function toolbarPopupClick(params) {\r\n vm.processedTabs = 0;\r\n clearRecipients();\r\n angular.element('#directory').data('ejDialog').close();\r\n if (params.currentTarget.id == '1') {\r\n var tabs = getNumberOfCheckedTabs();\r\n for (var t = 0; t <= 9; t++) {\r\n recipientsSettings(t);\r\n }\r\n WaitForRecipientsIds(tabs);\r\n }\r\n }\r\n\r\n function WaitForRecipientsIds(tabs) {\r\n if (vm.processedTabs >= tabs) {\r\n showRecipients();\r\n vm.saveThis.alertUsers = vm.RecipientsIds;\r\n vm.saveThis.alertSettings = vm.alertSettings;\r\n vm.saveThis.alertSettingsJSON = JSON.stringify(vm.alertSettings);\r\n switch (vm.saveOrModify){\r\n case 'modify':modifyEvent();break;\r\n case 'save':\r\n default: saveEvent();break;\r\n }\r\n } else {\r\n setTimeout(function() {\r\n WaitForRecipientsIds(tabs);\r\n }, 10);\r\n }\r\n }\r\n\r\n function showDirectory(arg) {\r\n if (vm.saveThis.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n getEvents();\r\n return;\r\n }\r\n vm.saveOrModify = arg;\r\n angular.element('#directory').data('ejDialog').open();\r\n }\r\n\r\n function searchByName(arr, name) {\r\n if (!name || name.length == 0) {\r\n return arr;\r\n }\r\n var result = [];\r\n arr.forEach(function (user) {\r\n if (user.text.toUpperCase().indexOf(name.toUpperCase()) !== -1) {\r\n result.push(user);\r\n }\r\n });\r\n return result;\r\n }\r\n\r\n function searchUser() {\r\n angular.element('#chkSelectAllUsers').ejCheckBox({checked: false});\r\n vm.usersList = searchByName(vm.usersListAll, vm.searchUserParam);\r\n }\r\n\r\n function searchAthlete() {\r\n angular.element('#chkSelectAllAthletes').ejCheckBox({checked: false});\r\n vm.athletesList = searchByName(vm.athletesListAll, vm.searchAthleteParam);\r\n }\r\n\r\n function searchParent() {\r\n angular.element('#chkSelectAllParents').ejCheckBox({checked: false});\r\n vm.parentsList = searchByName(vm.parentsListAll, vm.searchParentParam);\r\n }\r\n\r\n function searchUserGroup() {\r\n angular.element('#chkSelectAllUserGroup').ejCheckBox({checked: false});\r\n vm.usersGroupList = searchByName(vm.usersGroupListAll, vm.searchUserGroupParam);\r\n }\r\n\r\n function searchSection() {\r\n angular.element('#chkSelectAllSections').ejCheckBox({checked: false});\r\n vm.sectionsList = searchByName(vm.sectionsListAll, vm.searchSectionParam);\r\n }\r\n\r\n function searchTeamsAthletes() {\r\n angular.element('#chkSelectAllTeams').ejCheckBox({checked: false});\r\n vm.teamsAthletesList = searchByName(vm.teamsAthletesListAll, vm.searchTeamsAthletesParam);\r\n }\r\n\r\n function searchTeamsParents() {\r\n angular.element('#chkSelectAllTeamParents').ejCheckBox({checked: false});\r\n vm.teamParentsList = searchByName(vm.teamParentsListAll, vm.searchTeamsParentParam);\r\n }\r\n\r\n function searchAgeGroupAthletes() {\r\n angular.element('#chkSelectAllAgeGroups').ejCheckBox({checked: false});\r\n vm.ageGroupsList = searchByName(vm.ageGroupsListAll, vm.searchAgeGroupsAthletesParam);\r\n }\r\n\r\n function searchAgeGroupParents() {\r\n angular.element('#chkSelectAllAgeGroupsParents').ejCheckBox({checked: false});\r\n vm.ageGroupsParentsList = searchByName(vm.ageGroupsParentsListAll, vm.searchAgeGroupsParentParam);\r\n }\r\n\r\n function userCheckboxChanged(args) {\r\n for (var i = 0; i < vm.usersList.length; i++) {\r\n if (args.value) {\r\n angular.element('#usersListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#usersListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function athleteCheckboxChanged(args) {\r\n for (var i = 0; i < vm.athletesList.length; i++) {\r\n if (args.value) {\r\n angular.element('#athletesListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#athletesListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function parentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.parentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#parentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#parentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function usersGroupCheckboxChanged(args) {\r\n for (var i = 0; i < vm.usersGroupList.length; i++) {\r\n if (args.value) {\r\n angular.element('#usersGroupListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#usersGroupListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function sectionsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.sectionsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#sectionsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#sectionsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function teamsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.teamsAthletesList.length; i++) {\r\n if (args.value) {\r\n angular.element('#teamsAthletesListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#teamsAthletesListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function teamParentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.teamParentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#teamParentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#teamParentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.ageGroupsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#ageGroupsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#ageGroupsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n function ageGroupsParentsCheckboxChanged(args) {\r\n for (var i = 0; i < vm.ageGroupsParentsList.length; i++) {\r\n if (args.value) {\r\n angular.element('#ageGroupsParentsListBox').ejListBox('checkItemByIndex', i);\r\n } else {\r\n angular.element('#ageGroupsParentsListBox').ejListBox('uncheckItemByIndex', i);\r\n }\r\n }\r\n }\r\n\r\n activate();\r\n\r\n function activate() {\r\n var accessGranted = false;\r\n authenticationService.getRight('MEGTESEMNAPT').then(function(results) {\r\n if (results !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n\r\n $q.all([\r\n paramHelper.getParams([], ['eventsCalendar.sectionId', 'eventsCalendar.ageGroupId']),\r\n getSections(),\r\n authenticationService.getLanguage(),\r\n authenticationService.getRight('MEGTESEMNAPT'),\r\n authenticationService.getRight('MODESEMNAPT'),\r\n authenticationService.getRight('UJESEMNAPT'),\r\n getSectionResources(),\r\n getAgeGroupResources(),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZULO')])\r\n .then(function (results) {\r\n if (results[3] !== true) {\r\n log.permissionError(true);\r\n return;\r\n }\r\n if (results[0]['eventsCalendar.sectionId']) {\r\n vm.sectionId = results[0]['eventsCalendar.sectionId'];\r\n } else {\r\n vm.sectionId = 0;\r\n }\r\n if (results[0]['eventsCalendar.ageGroupId']) {\r\n vm.ageGroupId = results[0]['eventsCalendar.ageGroupId'];\r\n } else {\r\n vm.ageGroupId = 0;\r\n }\r\n\r\n vm.language = results[2];\r\n vm.MODESEMNAPT = results[4];\r\n vm.UJESEMNAPT = results[5];\r\n\r\n createSchedule();\r\n\r\n vm.SPORTOLO = results[8];\r\n vm.SZULO = results[9];\r\n\r\n setSectionVisible();\r\n\r\n getUsers();\r\n //getEvents();\r\n });\r\n });\r\n }\r\n\r\n function setSectionVisible() {\r\n vm.sectionDropDownVisible = !(vm.SZULO || vm.SPORTOLO);\r\n }\r\n\r\n function getSectionResources() {\r\n return dataservice.getSectionResources().then(function (data) {\r\n vm.sections = data.itemsList;\r\n vm.sectionResources = data.itemsList;\r\n });\r\n }\r\n\r\n function getAgeGroupResources() {\r\n return dataservice.getAgeGroupResources().then(function (data) {\r\n vm.ageGroupResources = data.itemsList;\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList().then(function (data) {\r\n vm.selectedRowData = {};\r\n data.itemsList.unshift({value: '0', text: gettextCatalog.getString('All')});\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n paramHelper.setParams([{'eventsCalendar.sectionId': args.value}]);\r\n vm.ageGroupId = 0;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n dataservice.ageGroupDropDownList(sectionId)\r\n .then(function (data) {\r\n data.itemsList.unshift({value: 0, text: gettextCatalog.getString('All')});\r\n vm.ageGroupList = data.itemsList;\r\n $('#ageGroupDropDown').ejDropDownList({dataSource: data.itemsList});\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n console.log(vm.ageGroupId);\r\n if (vm.ageGroupList.length === 1) {\r\n vm.ageGroupId = vm.ageGroupList[0].value;\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n } else {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n paramHelper.setParams([{'eventsCalendar.ageGroupId': args.value}]);\r\n vm.ageGroupId = args.value;\r\n getEvents();\r\n }\r\n\r\n function getEvents() {\r\n dataservice.getEvents(vm.date, vm.view, vm.sectionId, vm.training, vm.ageGroupId).then(function (data) {\r\n vm.appointments = [];\r\n vm.appointments = data.itemsList;\r\n vm.appointments = $filter('dateEventFilter')(vm.appointments, vm.view);\r\n showSchedule();\r\n clearRecipients();\r\n });\r\n }\r\n\r\n function showSchedule() {\r\n angular.element('#Schedule1').ejSchedule({\r\n appointmentSettings: {\r\n dataSource: vm.appointments\r\n }\r\n });\r\n }\r\n\r\n function createSchedule() {\r\n angular.element('#Schedule1').ejSchedule({\r\n appointmentTemplateId: '#apptemplate',\r\n width: '100%',\r\n height: '600px',\r\n views: ['Day', 'Week', 'Month', 'Agenda'],\r\n currentView: 'Month',\r\n timeZone: 'UTC +00:00',\r\n allowDragDrop: false,\r\n readOnly: !(vm.MODESEMNAPT || vm.UJESEMNAPT),\r\n timeMode: ej.Schedule.TimeMode.Hour24,\r\n enableAppointmentResize: false,\r\n showAppointmentNavigator: false,\r\n showQuickWindow: false,\r\n showLocationField: true,\r\n showTimeZoneFields: false,\r\n firstDayOfWeek: 'Monday',\r\n timeZoneCollection: {\r\n dataSource: [{\r\n text: 'UTC +00:00',\r\n id: '1',\r\n value: 'UTC +00:00'\r\n }]\r\n },\r\n categorizeSettings: {\r\n enable: true,\r\n allowMultiple: false,\r\n dataSource: vm.categoryResources,\r\n text: 'text', id: 'id', color: 'color', fontColor: 'fontColor'\r\n },\r\n highlightBusinessHours: false,\r\n tooltipSettings: {\r\n enable: true\r\n },\r\n resources: [\r\n {\r\n field: 'SectionId',\r\n title: gettextCatalog.getString('Section'),\r\n name: 'SectionId',\r\n allowMultiple: false,\r\n resourceSettings: {\r\n dataSource: vm.sectionResources,\r\n text: 'text',\r\n id: 'id',\r\n color: 'color',\r\n groupId: 'groupId'\r\n }\r\n },\r\n {\r\n field: 'AgeGroupId',\r\n title: gettextCatalog.getString('AgeGroup'),\r\n name: 'AgeGroupId',\r\n allowMultiple: false,\r\n resourceSettings: {\r\n dataSource: vm.ageGroupResources,\r\n text: 'text',\r\n id: 'id',\r\n color: 'color',\r\n groupId: 'groupId'\r\n }\r\n }\r\n ],\r\n contextMenuSettings: {\r\n enable: true,\r\n menuItems: {\r\n appointment: [\r\n {id: 'open', text: gettextCatalog.getString('OpenAppointment')},\r\n {id: 'delete', text: gettextCatalog.getString('DeleteAppointment')},\r\n {id: 'export', text: gettextCatalog.getString('ExportToICS')}\r\n ],\r\n cells: [\r\n {id: 'new', text: gettextCatalog.getString('NewAppointment')},\r\n {id: 'recurrence', text: gettextCatalog.getString('NewRecurringAppointment')},\r\n {id: 'today', text: gettextCatalog.getString('Today')},\r\n {id: 'gotodate', text: gettextCatalog.getString('GoToDate')},\r\n {id: 'settings', text: gettextCatalog.getString('Settings')},\r\n {id: 'view', text: gettextCatalog.getString('View'), parentId: 'settings'},\r\n {id: 'timemode', text: gettextCatalog.getString('TimeMode'), parentId: 'settings'},\r\n {id: 'view_Day', text: gettextCatalog.getString('Daily'), parentId: 'view'},\r\n {id: 'view_Week', text: gettextCatalog.getString('Weekly'), parentId: 'view'},\r\n {id: 'view_Month', text: gettextCatalog.getString('Monthly'), parentId: 'view'},\r\n {id: 'view_Agenda', text: gettextCatalog.getString('Agenda'), parentId: 'view'},\r\n {id: 'timemode_Hour12', text: gettextCatalog.getString('12Hours'), parentId: 'timemode'},\r\n {id: 'timemode_Hour24', text: gettextCatalog.getString('24Hours'), parentId: 'timemode'},\r\n {id: 'businesshours', text: gettextCatalog.getString('BusinessHours'), parentId: 'settings'}\r\n ]\r\n }\r\n },\r\n prioritySettings: {\r\n enable: true,\r\n dataSource: [\r\n {text: gettextCatalog.getString('No'), value: 0},\r\n {text: gettextCatalog.getString('Yes'), value: 1}],\r\n text: 'text', value: 'value',\r\n template: '<div class=\\'${value}\\'></div>'\r\n },\r\n appointmentSettings: {\r\n applyTimeOffset: false,\r\n dataSource: vm.appointments,\r\n id: 'Id',\r\n location: 'Location',\r\n subject: 'Subject',\r\n startTime: 'StartTime',\r\n startTimeZone: 'StartTimeZone',\r\n endTime: 'EndTime',\r\n endTimeZone: 'EndTimeZone',\r\n description: 'Description',\r\n allDay: 'AllDay',\r\n recurrence: 'Recurrence',\r\n recurrenceId: 'RecurrenceId',\r\n recurrenceRule: 'RecurrenceRule',\r\n resourceFields: 'SectionId,AgeGroupId',\r\n categorize: 'Categorize',\r\n priority: 'priority',\r\n isReadonly: 'isReadonly'\r\n },\r\n menuItemClick: exportToIcs,\r\n appointmentWindowOpen: appointmentWindowOpen,\r\n beforeAppointmentCreate: saveAppointment,\r\n beforeAppointmentChange: changeAppointment,\r\n beforeAppointmentRemove: removeAppointment,\r\n navigation: navigation,\r\n create: onCreate,\r\n locale: vm.language,\r\n });\r\n }\r\n\r\n function setAlertUsers(alertSettings, tab) {\r\n var array = alertSettings[tab];\r\n if (!array || array.length == 0) {\r\n return;\r\n }\r\n var index = -1;\r\n array.forEach(function (id) {\r\n switch (tab){\r\n case 'users':\r\n index = $filter('getIndex')(vm.usersListAll, 'value', id);\r\n angular.element('#usersListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'athletes':\r\n index = $filter('getIndex')(vm.athletesListAll, 'value', id);\r\n angular.element('#athletesListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'parents':\r\n index = $filter('getIndex')(vm.parentsListAll, 'value', id);\r\n angular.element('#parentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'usergroups':\r\n index = $filter('getIndex')(vm.usersGroupListAll, 'value', id);\r\n angular.element('#usersGroupListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'sections':\r\n index = $filter('getIndex')(vm.sectionsListAll, 'value', id);\r\n angular.element('#sectionsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'teamsathletes':\r\n index = $filter('getIndex')(vm.teamsAthletesListAll, 'value', id);\r\n angular.element('#teamsAthletesListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'teamsparents':\r\n index = $filter('getIndex')(vm.teamParentsListAll, 'value', id);\r\n angular.element('#teamParentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'agegroupsathletes':\r\n index = $filter('getIndex')(vm.ageGroupsListAll, 'value', id);\r\n angular.element('#ageGroupsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n case 'agegroupsparents':\r\n index = $filter('getIndex')(vm.ageGroupsParentsListAll, 'value', id);\r\n angular.element('#ageGroupsParentsListBox').ejListBox('checkItemByIndex', index);\r\n break;\r\n }\r\n });\r\n }\r\n\r\n function appointmentWindowOpen(arg) {\r\n clearRecipients();\r\n if (arg.hasOwnProperty('appointment')) {\r\n if (arg.appointment.hasOwnProperty('alertSettings')) {\r\n Object.getOwnPropertyNames(arg.appointment.alertSettings).forEach(function (property) {\r\n setAlertUsers(arg.appointment.alertSettings, property);\r\n });\r\n $timeout(function () {\r\n if (arg.appointment.alertUsers && arg.appointment.alertUsers.length > 0) {\r\n angular.element('#Schedule1priority').ejDropDownList('selectItemByIndex', 1);\r\n } else {\r\n angular.element('#Schedule1priority').ejDropDownList('selectItemByIndex', 0);\r\n }\r\n $scope.$apply();\r\n }, 100);\r\n }\r\n }\r\n var resData = this.model.resources[0].resourceSettings.dataSource;\r\n this['_appointmentAddWindow'].find('.owner_' + 0).ejAutocomplete({\r\n focusOut: function (argument) {\r\n var flag = false;\r\n for (var i = 0; i < resData.length; i++) {\r\n if (argument.value === resData[i].text) {\r\n flag = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedSectionDoesnExist');\r\n }\r\n }\r\n });\r\n var resData2 = this.model.resources[1].resourceSettings.dataSource;\r\n this['_appointmentAddWindow'].find('.owner_' + 1).ejAutocomplete({\r\n focusOut: function (argument) {\r\n var flag = false;\r\n for (var i = 0; i < resData2.length; i++) {\r\n if (argument.value === resData2[i].text) {\r\n flag = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedAgeGroupDoesnExist');\r\n }\r\n }\r\n });\r\n if (arg.appointment.isReadonly == true) {\r\n this._appointmentAddWindow.find('.e-select').css('display', 'none');\r\n this._appointmentAddWindow.find('.e-input').prop('disabled', true);\r\n this._appointmentAddWindow.find('.e-inputtext').prop('disabled', true);\r\n this._appointmentAddWindow.find('.' + this._id + 'parrow').css('display', 'none');\r\n } else {\r\n this._appointmentAddWindow.find('.e-select').css('display', '');\r\n this._appointmentAddWindow.find('.e-input').prop('disabled', false);\r\n this._appointmentAddWindow.find('.e-inputtext').prop('disabled', false);\r\n this._appointmentAddWindow.find('.' + this._id + 'parrow').css('display', '');\r\n }\r\n }\r\n\r\n function onCreate() {\r\n }\r\n\r\n function exportToIcs(args) {\r\n if (args.events.ID == 'export') {\r\n var obj = $('#Schedule1').data('ejSchedule');\r\n // exportSchedule() method will send a post to the server-side to call a specified action.\r\n obj.exportSchedule(DOMAIN.baseURL + DOMAIN.webService + 'ExportToICS', null, args.targetInfo.Id);\r\n }\r\n }\r\n\r\n function exportAllToIcs(e) {\r\n var obj = $('#Schedule1').data('ejSchedule');\r\n // Calls the server-side action ExportToICS\r\n obj.exportSchedule(DOMAIN.baseURL + DOMAIN.webService + 'ExportToICS', null, null);\r\n e.cancel = true;\r\n }\r\n\r\n function navigation(args) {\r\n vm.date = args.currentDate;\r\n vm.view = args.currentView;\r\n getEvents();\r\n }\r\n\r\n function saveAppointment(args) {\r\n console.log('saveAppointment', args);\r\n if (vm.UJESEMNAPT) {\r\n vm.saveThis = {};\r\n if (args.appointment[0] === undefined) {\r\n vm.saveThis = jQuery.extend({}, args.appointment);\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n if (vm.saveThis.Subject === '') {\r\n vm.saveThis.Subject = vm.unnamedEvent;\r\n }\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n } else {\r\n vm.saveThis = jQuery.extend({}, args.appointment[0]);\r\n var resData = this.model.resources[0].resourceSettings.dataSource;\r\n var resData2 = this.model.resources[1].resourceSettings.dataSource;\r\n var value = vm.saveThis.Schedule1_ownerfield_0 === '' ? (vm.saveThis.SectionId ? vm.saveThis.SectionId : 0) : vm.saveThis.Schedule1_ownerfield_0;\r\n var value2 = vm.saveThis.Schedule1_ownerfield_1 === '' ? (vm.saveThis.AgeGroupId ? vm.saveThis.AgeGroupId : 0) : vm.saveThis.Schedule1_ownerfield_1;\r\n var flag = false;\r\n var flag2 = false;\r\n for (var i = 0; i < resData.length; i++) {\r\n if (value == resData[i].text || value === resData[i].value) {\r\n flag = true;\r\n }\r\n }\r\n for (var i = 0; i < resData2.length; i++) {\r\n if (value2 == resData2[i].text || value2 === resData2[i].value) {\r\n flag2 = true;\r\n }\r\n }\r\n if (!flag) {\r\n log.errorMsg('SelectedSectionDoesnExist');\r\n args.cancel = true;\r\n } else if (!flag2) {\r\n log.errorMsg('SelectedAgeGroupDoesnExist');\r\n args.cancel = true;\r\n } else {\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n if (vm.saveThis.Subject === '') {\r\n vm.saveThis.Subject = vm.unnamedEvent;\r\n }\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n }\r\n // Felhasználók értesítése\r\n if (vm.saveThis.priority == '1') {\r\n showDirectory('save');\r\n } else {\r\n saveEvent();\r\n }\r\n }\r\n } else {\r\n args.cancel = true;\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function modifyEvent() {\r\n if (vm.saveThis.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n getEvents();\r\n return;\r\n }\r\n dataservice.modifyEvent(vm.saveThis).then(function () {\r\n log.successMsg('Saved');\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function saveEvent() {\r\n dataservice.saveEvent(vm.saveThis).then(function () {\r\n log.successMsg('Saved');\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function changeAppointment(args) {\r\n if (vm.MODESEMNAPT) {\r\n vm.saveThis = jQuery.extend({}, args.appointment.changed[0]);\r\n vm.saveThis.StartTime = moment(vm.saveThis.StartTime).format('YYYY-MM-DD HH:mm');\r\n vm.saveThis.EndTime = moment(vm.saveThis.EndTime).format('YYYY-MM-DD HH:mm');\r\n var obj = ej.DataManager(vm.categoryResources).executeLocal(new ej.Query().where('id', 'equal', vm.saveThis.Categorize))[0];\r\n vm.saveThis.Categorize = obj !== undefined ? obj.id : 1;\r\n // Felhasználók értesítése\r\n if (vm.saveThis.priority == '1') {\r\n showDirectory('modify');\r\n } else {\r\n modifyEvent();\r\n }\r\n } else {\r\n args.cancel = true;\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function removeAppointment(args) {\r\n if (args.appointment.Id < 0) {\r\n log.errorMsg(gettextCatalog.getString('WeeklyTrainingEventCannotBeModified'));\r\n args.cancel = true;\r\n return;\r\n }\r\n var removeDate = null;\r\n var year = -1;\r\n var month = -1;\r\n var day = -1;\r\n if (args.currentAction == 'deleteOccurrence') {\r\n removeDate = args.appointment.StartTime;\r\n year = removeDate.getFullYear();\r\n month = removeDate.getMonth() + 1;\r\n day = removeDate.getDate();\r\n }\r\n dataservice.removeEvent(args.appointment.Id, year, month, day).then(function () {\r\n getEvents();\r\n },\r\n function () {\r\n getEvents();\r\n });\r\n }\r\n\r\n function print() {\r\n var schObj = angular.element('#Schedule1').data('ejSchedule');\r\n schObj.print();\r\n }\r\n\r\n function trainingCheckboxChanged(args) {\r\n vm.training = args.value;\r\n getEvents();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.schedule')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'eventsCalendar',\r\n config: {\r\n url: '/schedule',\r\n templateUrl: 'app/schedule/schedule.html',\r\n controller: 'ScheduleController',\r\n controllerAs: 'vm',\r\n title: 'EventsCalendar',\r\n settings: {\r\n navId: 6,\r\n level: 1,\r\n order: 6,\r\n parentId: 0,\r\n content: 'EventsCalendar',\r\n faIcon: 'fa-calendar-alt',\r\n permission: ['0', '1', '2', '3', '4', '5', '6'],\r\n activatorPermission: ['\"MEGTESEMNAPT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.athletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes',\r\n config: {\r\n url: '/athletes',\r\n templateUrl: 'app/search/athletes/athletes.html',\r\n title: 'SearchAthletes'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.athletes.memberList')\r\n .controller('MemberListController', MemberListController);\r\n\r\n function MemberListController(log, dataservice, $q, $rootScope, gettextCatalog, VIEW_DATA, $scope, $state, authenticationService, paramHelper, $filter) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.athleteList = [];\r\n $rootScope.title = gettextCatalog.getString('SearchMemberList');\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n\r\n // Create variables\r\n vm.leftrightboth = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Left'), value: 'Left'},\r\n {text: gettextCatalog.getString('Right'), value: 'Right'},\r\n {text: gettextCatalog.getString('Both'), value: 'Both'}\r\n ];\r\n vm.genderList = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Male'), value: 'Male'},\r\n {text: gettextCatalog.getString('Female'), value: 'Female'}\r\n ];\r\n vm.yesno = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Yes'), value: true},\r\n {text: gettextCatalog.getString('No'), value: false}\r\n ];\r\n vm.muv_EGYEZIK_NEMEGYZIK = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Egyezik'), value: 'Egyezik'},\r\n {text: gettextCatalog.getString('Nem egyezik'), value: 'Nem egyezik'}\r\n ];\r\n vm.muv_KIJELOLVE_NINCSKIJELOLVE = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Kijelölve'), value: 'Kijelölve'},\r\n {text: gettextCatalog.getString('Nincs kijelölve'), value: 'Nincs kijelölve'}\r\n ];\r\n vm.muv_E_NEME_TART_NEMT = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Tartalmazza'), value: 'Tartalmazza'},\r\n {text: gettextCatalog.getString('Nem tartalmazza'), value: 'Nem tartalmazza'},\r\n {text: gettextCatalog.getString('Egyezik'), value: 'Egyezik'},\r\n {text: gettextCatalog.getString('Nem egyezik'), value: 'Nem egyezik'}\r\n ];\r\n vm.muv_TAG_NEMTAG = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Tagja'), value: 'Tagja'},\r\n {text: gettextCatalog.getString('Nem tagja'), value: 'Nem tagja'}\r\n ];\r\n vm.muv_KIJ_NINCSKIJ = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Kijelölve'), value: 'Kijelölve'}\r\n /*,{text: gettextCatalog.getString('Nincs kijelölve'), value: 'Nincs kijelölve'}*/\r\n ];\r\n vm.muv_DATE = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Date_Before'), value: '<='},\r\n {text: gettextCatalog.getString('Date_After'), value: '>='},\r\n {text: gettextCatalog.getString('Date_At'), value: '='},\r\n {text: gettextCatalog.getString('Date_NotAt'), value: '≠'},\r\n {text: gettextCatalog.getString('Date_Between'), value: 'Között'}\r\n ];\r\n vm.muv_REL_KOZ = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Less than'), value: '<='},\r\n {text: gettextCatalog.getString('Greater than'), value: '>='},\r\n {text: gettextCatalog.getString('Equals'), value: '='},\r\n {text: gettextCatalog.getString('Not equal'), value: '≠'},\r\n {text: gettextCatalog.getString('Between'), value: 'Között'}\r\n ];\r\n\r\n vm.nameChange = nameChange;\r\n function nameChange () {\r\n vm.query.muvnev = 'Tartalmazza';\r\n vm.NameNotMatchingChecked = false;\r\n vm.NameExactMatchChecked = false;\r\n }\r\n\r\n vm.NameExactMatch = NameExactMatch;\r\n function NameExactMatch (arg) {\r\n if (arg.value == true) {\r\n vm.NameNotMatchingChecked = false;\r\n vm.query.muvnev = 'Egyezik';\r\n }\r\n }\r\n\r\n vm.NameNotMatching = NameNotMatching;\r\n function NameNotMatching (arg) {\r\n if (arg.value == true) {\r\n vm.NameExactMatchChecked = false;\r\n vm.query.muvnev = 'Nem egyezik';\r\n }\r\n }\r\n\r\n vm.MemberOfSection = MemberOfSection;\r\n function MemberOfSection (arg) {\r\n if (arg.value == true) {\r\n vm.NotMemberOfSectionChecked = false;\r\n vm.query.muvszakosztaly = 'Tagja';\r\n }\r\n }\r\n\r\n vm.NotMemberOfSection = NotMemberOfSection;\r\n function NotMemberOfSection (arg) {\r\n if (arg.value == true) {\r\n vm.MemberOfSectionChecked = false;\r\n vm.query.muvszakosztaly = 'Nem tagja';\r\n }\r\n }\r\n\r\n vm.MemberOfAgeGroup = MemberOfAgeGroup;\r\n function MemberOfAgeGroup (arg) {\r\n if (arg.value == true) {\r\n vm.NotMemberOfAgeGroupChecked = false;\r\n vm.query.muvkorosztaly = 'Tagja';\r\n }\r\n }\r\n\r\n vm.NotMemberOfAgeGroup = NotMemberOfAgeGroup;\r\n function NotMemberOfAgeGroup (arg) {\r\n if (arg.value == true) {\r\n vm.MemberOfAgeGroupChecked = false;\r\n vm.query.muvkorosztaly = 'Nem tagja';\r\n }\r\n }\r\n\r\n vm.BelongsToCoach = BelongsToCoach;\r\n function BelongsToCoach (arg) {\r\n if (arg.value == true) {\r\n vm.NotBelongsToCoachChecked = false;\r\n vm.query.muvedzo = 'Egyezik';\r\n }\r\n }\r\n\r\n vm.NotBelongsToCoach = NotBelongsToCoach;\r\n function NotBelongsToCoach (arg) {\r\n if (arg.value == true) {\r\n vm.BelongsToCoachChecked = false;\r\n vm.query.muvedzo = 'Nem egyezik';\r\n }\r\n }\r\n\r\n vm.ContactNotMatching = ContactNotMatching;\r\n function ContactNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given contact details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.SchoolNotMatching = SchoolNotMatching;\r\n function SchoolNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given school details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.ParentNotMatching = ParentNotMatching;\r\n function ParentNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n vm.query.muvanyjaMagTol = '=';\r\n vm.query.muvapaMagTol = '=';\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given parent details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.BodyShapeNotMatching = BodyShapeNotMatching;\r\n function BodyShapeNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given bodyshape details'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.IdNumbersNotMatching = IdNumbersNotMatching;\r\n function IdNumbersNotMatching(arg) {\r\n var msg = '';\r\n if (arg.value == true) {\r\n swal({\r\n title: gettextCatalog.getString('Query will exclude athletes with the given id numbers'),\r\n text: msg,\r\n type: 'warning',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }\r\n\r\n vm.columns = [{field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: '150'}];\r\n\r\n vm.query = {};\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.coachList = [];\r\n vm.SelectedSectionID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedTeamID = 0;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n vm.resetQueryDetails = resetQueryDetails;\r\n resetQueryDetails();\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('SPORTOLOKERESO')];\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n }\r\n });\r\n }\r\n\r\n vm.goToAthlete = goToAthlete;\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n vm.sectionSelect = sectionSelect;\r\n function sectionSelect(args) {\r\n vm.MemberOfSectionChecked = args.value > 0;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = 0;\r\n vm.SelectedSectionID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedSectionID = 0;\r\n }\r\n getActualCoachesList();\r\n getAgeGroups();\r\n }\r\n\r\n vm.ageGroupSelect = ageGroupSelect;\r\n function ageGroupSelect(args) {\r\n vm.MemberOfAgeGroupChecked = true;\r\n vm.SelectedCoachID = 0;\r\n vm.SelectedAgeGroupID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedAgeGroupID = 0;\r\n }\r\n getActualCoachesList();\r\n }\r\n\r\n vm.coachSelect = coachSelect;\r\n function coachSelect(args) {\r\n vm.BelongsToCoachChecked = true;\r\n vm.SelectedCoachID = args.value;\r\n if (args.value == -1) {\r\n vm.SelectedCoachID = 0;\r\n }\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.sectionList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.SelectedSectionID)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 0) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.ageGroupList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getActualCoachesList() {\r\n return dataservice.coachDropDownList(vm.SelectedSectionID, vm.SelectedAgeGroupID) // Need the section id (szakosztály)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n var all = {value: -1, text: gettextCatalog.getString('')};\r\n vm.coachList.splice(0, 0, all);\r\n }\r\n });\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect().then(\r\n function (data) {\r\n vm.coachList = data.itemsList;\r\n return vm.coachList;\r\n }\r\n );\r\n }\r\n\r\n vm.search = search;\r\n function search() {\r\n initGrid();\r\n initData();\r\n dataservice.searchMemberList(vm.query).then(function (results) {\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'SzuletesiIdo');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'DSITagsagKezd');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'KilepesDatuma');\r\n grid.dataSource = $filter('dateStringFilter')(results.itemsList, 'EdzesreJarasKezd');\r\n });\r\n }\r\n\r\n function resetQueryDetails () {\r\n // string, datetime, int?\r\n vm.query.nev = undefined;\r\n vm.query.szakosztalyId = undefined;\r\n vm.query.korosztalyId = undefined;\r\n vm.query.edzoId = undefined;\r\n vm.query.tol = undefined;\r\n vm.query.ig = undefined;\r\n vm.query.neme = undefined;\r\n vm.query.allamp = undefined;\r\n vm.query.vspTol = undefined;\r\n vm.query.vspIg = undefined;\r\n vm.query.lakcimMegye = undefined;\r\n vm.query.lakcimIrSzam = undefined;\r\n vm.query.lakcimVaros = undefined;\r\n vm.query.lakcimUtca = undefined;\r\n vm.query.lakcimHazszam = undefined;\r\n vm.query.elerh = undefined;\r\n vm.query.iskNev = undefined;\r\n vm.query.iskIrSzam = undefined;\r\n vm.query.iskVaros = undefined;\r\n vm.query.iskUtca = undefined;\r\n vm.query.iskHazszam = undefined;\r\n vm.query.igNeve = undefined;\r\n vm.query.testnev = undefined;\r\n vm.query.testnevElerh = undefined;\r\n vm.query.evfolyam = undefined;\r\n vm.query.osztaly = undefined;\r\n vm.query.anyjaNeve = undefined;\r\n vm.query.anyjaElerh = undefined;\r\n vm.query.anyjaMagTol = undefined;\r\n vm.query.anyjaMagIg = undefined;\r\n vm.query.anyjaSpMult = undefined;\r\n vm.query.apaNeve = undefined;\r\n vm.query.apaElerh = undefined;\r\n vm.query.apaMagTol = undefined;\r\n vm.query.apaMagIg = undefined;\r\n vm.query.apaSpMult = undefined;\r\n vm.query.testMagTol = undefined;\r\n vm.query.testMagIg = undefined;\r\n vm.query.testsulyTol = undefined;\r\n vm.query.testSulyIg = undefined;\r\n vm.query.bmi = undefined;\r\n vm.query.bmiig = undefined;\r\n vm.query.ugyKez = undefined;\r\n vm.query.ugyLab = undefined;\r\n vm.query.szemIgSzam = undefined;\r\n vm.query.tajSzam = undefined;\r\n vm.query.adoSzam = undefined;\r\n vm.query.utlevelSzam = undefined;\r\n vm.query.egyeb = undefined;\r\n vm.query.aktiv = undefined;\r\n vm.query.havidijas = undefined;\r\n vm.query.oktdijas = undefined;\r\n vm.query.dsiKezdTol = undefined;\r\n vm.query.dsiKezdIg = undefined;\r\n vm.query.kiDatTol = undefined;\r\n vm.query.kiDatIg = undefined;\r\n vm.query.kilepIndoka = undefined;\r\n vm.query.eddigiEdzoi = undefined;\r\n vm.query.eddigiSpEgyes = undefined;\r\n vm.query.edzesKezdTol = undefined;\r\n vm.query.edzesKezdIg = undefined;\r\n vm.query.email = undefined;\r\n vm.query.regSzam = undefined;\r\n vm.query.osztFoNeve = undefined;\r\n vm.query.anyjaLeanyNeve = undefined;\r\n vm.query.pubVegeTol = undefined;\r\n vm.query.pubVegeIg = undefined;\r\n vm.query.szuloFogl = undefined;\r\n vm.query.gyereksport = undefined;\r\n vm.query.fajiEredet = undefined;\r\n vm.query.szunidElfogl = undefined;\r\n vm.query.valSportagak = undefined;\r\n vm.query.leanykoriNev = undefined;\r\n vm.query.papucsMerete = undefined;\r\n vm.query.melegitoMerete = undefined;\r\n vm.query.furdokopenyMerete = undefined;\r\n vm.query.kabatMerete = undefined;\r\n vm.query.pancelNadragMerete = undefined;\r\n vm.query.poloMerete = undefined;\r\n vm.query.sortMerete = undefined;\r\n vm.query.cipoMerete = undefined;\r\n vm.query.uszonadragMerete = undefined;\r\n\r\n vm.query.acttestMagTol = undefined;\r\n vm.query.acttestMagIg = undefined;\r\n vm.query.acttestSulyTol = undefined;\r\n vm.query.testactSulyIg = undefined;\r\n vm.query.actbmi = undefined;\r\n vm.query.actbmiig = undefined;\r\n\r\n // Müvelet, Egyezik, Nem egyezik, Tartalmazza, Nem tartalmazza stb\r\n vm.query.muvnev = undefined;\r\n vm.query.muvszakosztaly = undefined;\r\n vm.query.muvkorosztaly = undefined;\r\n vm.query.muvedzo = undefined;\r\n vm.query.muvtol = undefined;\r\n vm.query.muvig = undefined;\r\n //vm.query.muvneme = undefined;\r\n vm.query.muvneme = 'Egyezik';\r\n vm.query.muvallamp = 'Tartalmazza';\r\n vm.query.muvvspTol = undefined;\r\n vm.query.muvvspIg = undefined;\r\n vm.query.muvlakcimMegye = undefined;\r\n vm.query.muvlakcimIrSzam = undefined;\r\n vm.query.muvlakcimVaros = undefined;\r\n vm.query.muvlakcimUtca = undefined;\r\n vm.query.muvlakcimHazszam = undefined;\r\n vm.query.muvelerh = undefined;\r\n vm.query.muviskNev = undefined;\r\n vm.query.muviskIrSzam = undefined;\r\n vm.query.muviskVaros = undefined;\r\n vm.query.muviskUtca = undefined;\r\n vm.query.muviskHazszam = undefined;\r\n vm.query.muvigNeve = undefined;\r\n vm.query.muvtestnev = undefined;\r\n vm.query.muvtestnevElerh = undefined;\r\n vm.query.muvevfolyam = undefined;\r\n vm.query.muvosztaly = undefined;\r\n vm.query.muvanyjaNeve = undefined;\r\n vm.query.muvanyjaElerh = undefined;\r\n vm.query.muvanyjaMagTol = undefined;\r\n vm.query.muvanyjaMagIg = undefined;\r\n vm.query.muvanyjaSpMult = undefined;\r\n vm.query.muvapaNeve = undefined;\r\n vm.query.muvapaElerh = undefined;\r\n vm.query.muvapaMagTol = undefined;\r\n vm.query.muvapaMagIg = undefined;\r\n vm.query.muvapaSpMult = undefined;\r\n vm.query.muvtestMagTol = undefined;\r\n vm.query.muvtestMagIg = undefined;\r\n vm.query.muvtestsulyTol = undefined;\r\n vm.query.muvtestSulyIg = undefined;\r\n vm.query.muvugyKez = undefined;\r\n vm.query.muvugyLab = undefined;\r\n vm.query.muvszemIgSzam = undefined;\r\n vm.query.muvtajSzam = undefined;\r\n vm.query.muvadoSzam = undefined;\r\n vm.query.muvutlevelSzam = undefined;\r\n vm.query.muvegyeb = undefined;\r\n vm.query.muvaktiv = 'Kijelölve';\r\n vm.query.muvhavidijas = undefined;\r\n vm.query.muvoktdijas = undefined;\r\n vm.query.muvdsiKezdTol = undefined;\r\n vm.query.muvdsiKezdIg = undefined;\r\n vm.query.muvkiDatTol = undefined;\r\n vm.query.muvkiDatIg = undefined;\r\n vm.query.muvkilepIndoka = undefined;\r\n vm.query.muveddigiEdzoi = undefined;\r\n vm.query.muveddigiSpEgyes = undefined;\r\n vm.query.muvedzesKezdTol = undefined;\r\n vm.query.muvedzesKezdIg = undefined;\r\n vm.query.muvemail = undefined;\r\n vm.query.muvregSzam = undefined;\r\n vm.query.muvosztFoNeve = undefined;\r\n vm.query.muvanyjaLeanyNeve = undefined;\r\n vm.query.muvpubVegeTol = undefined;\r\n vm.query.muvpubVegeIg = undefined;\r\n vm.query.muvszuloFogl = undefined;\r\n vm.query.muvgyereksport = undefined;\r\n vm.query.muvfajiEredet = undefined;\r\n vm.query.muvszunidElfogl = undefined;\r\n vm.query.muvvalSportagak = undefined;\r\n vm.query.muvleanykoriNev = 'Tartalmazza';\r\n //vm.query.muvleanykoriNev = undefined;\r\n vm.query.muvbmi = undefined;\r\n vm.query.muvacttestMagTol = undefined;\r\n vm.query.muvacttestSulyTol = undefined;\r\n vm.query.muvactbmi = undefined;\r\n\r\n vm.query.muvpapucsMerete = undefined;\r\n vm.query.muvmelegitoMerete = undefined;\r\n vm.query.muvfurdokopenyMerete = undefined;\r\n vm.query.muvkabatMerete = undefined;\r\n vm.query.muvpancelNadragMerete = undefined;\r\n vm.query.muvpoloMerete = undefined;\r\n vm.query.muvsortMerete = undefined;\r\n vm.query.muvcipoMerete = undefined;\r\n vm.query.muvuszonadragMerete = undefined;\r\n\r\n vm.query.anyjaFoglalkozasa = undefined;\r\n vm.query.muvanyjaFoglalkozasa = undefined;\r\n vm.query.apaFoglalkozasa = undefined;\r\n vm.query.muvapaFoglalkozasa = undefined;\r\n\r\n // BOOL\r\n vm.query.kellnev = undefined;\r\n vm.query.kelltestiAdottsagok = undefined;\r\n vm.query.kellAzonositok = undefined;\r\n vm.query.kelliskCim = undefined;\r\n vm.query.kelllakcim = undefined;\r\n vm.query.kellpapucs = undefined;\r\n vm.query.kellmelegito = undefined;\r\n vm.query.kellfurdokopeny = undefined;\r\n vm.query.kellkabat = undefined;\r\n vm.query.kellpancelNadrag = undefined;\r\n vm.query.kellpolo = undefined;\r\n vm.query.kellsort = undefined;\r\n vm.query.kellcipo = undefined;\r\n vm.query.kelluszonadrag = undefined;\r\n vm.query.kellmegjegyzes = undefined;\r\n vm.query.kellszulhelyorszag = undefined;\r\n vm.query.kellszulhelyvaros = undefined;\r\n vm.query.kellaktiv = undefined;\r\n vm.query.kellszakosztalyId = undefined;\r\n vm.query.kellkorosztalyId = undefined;\r\n vm.query.kelledzoId = undefined;\r\n vm.query.kelltol = undefined;\r\n vm.query.kellig = undefined;\r\n vm.query.kellneme = undefined;\r\n vm.query.kellSzulHely = undefined;\r\n vm.query.kellallamp = undefined;\r\n vm.query.kellvspTol = undefined;\r\n vm.query.kellvspIg = undefined;\r\n vm.query.kelllakcimMegye = undefined;\r\n vm.query.kelllakcimIrSzam = undefined;\r\n vm.query.kelllakcimVaros = undefined;\r\n vm.query.kelllakcimUtca = undefined;\r\n vm.query.kelllakcimHazszam = undefined;\r\n vm.query.kellelerh = undefined;\r\n vm.query.kelliskNev = undefined;\r\n vm.query.kelliskIrSzam = undefined;\r\n vm.query.kelliskVaros = undefined;\r\n vm.query.kelliskUtca = undefined;\r\n vm.query.kelliskHazszam = undefined;\r\n vm.query.kelligNeve = undefined;\r\n vm.query.kelltestnev = undefined;\r\n vm.query.kelltestnevElerh = undefined;\r\n vm.query.kellevfolyam = undefined;\r\n vm.query.kellosztaly = undefined;\r\n vm.query.kellanyjaNeve = undefined;\r\n vm.query.kellanyjaElerh = undefined;\r\n vm.query.kellanyjaMagTol = undefined;\r\n vm.query.kellanyjaMagIg = undefined;\r\n vm.query.kellanyjaSpMult = undefined;\r\n vm.query.kellapaNeve = undefined;\r\n vm.query.kellapaElerh = undefined;\r\n vm.query.kellapaMagTol = undefined;\r\n vm.query.kellapaMagIg = undefined;\r\n vm.query.kellapaSpMult = undefined;\r\n vm.query.kelltestMagTol = undefined;\r\n vm.query.kelltestMagIg = undefined;\r\n vm.query.kelltestsulyTol = undefined;\r\n vm.query.kelltestSulyIg = undefined;\r\n vm.query.kellugyKez = undefined;\r\n vm.query.kellugyLab = undefined;\r\n vm.query.kellszemIgSzam = undefined;\r\n vm.query.kelltajSzam = undefined;\r\n vm.query.kelladoSzam = undefined;\r\n vm.query.kellutlevelSzam = undefined;\r\n vm.query.kellegyeb = undefined;\r\n vm.query.kellaktiv = undefined;\r\n vm.query.kellhavidijas = undefined;\r\n vm.query.kelloktdijas = undefined;\r\n vm.query.kellNyilvSzam = undefined;\r\n vm.query.kellDSIKezd = undefined;\r\n vm.query.kellEddigiEdzo = undefined;\r\n vm.query.kellEddigiSp = undefined;\r\n vm.query.kellTagdijas = undefined;\r\n vm.query.kellEmail = undefined;\r\n vm.query.kellEdzJaras = undefined;\r\n vm.query.kellGyermSp = undefined;\r\n vm.query.kellFajiEredet = undefined;\r\n vm.query.kellSzunidei = undefined;\r\n vm.query.kellLeanykNev = undefined;\r\n vm.query.kellKilepesDatum = undefined;\r\n vm.query.kellKilepesIndok = undefined;\r\n vm.query.kellpapucsMerete = undefined;\r\n vm.query.kellmelegitoMerete = undefined;\r\n vm.query.kellfurdokopenyMerete = undefined;\r\n vm.query.kellkabatMerete = undefined;\r\n vm.query.kellpancelNadragMerete = undefined;\r\n vm.query.kellpoloMerete = undefined;\r\n vm.query.kellsortMerete = undefined;\r\n vm.query.kellAnyjaLeanykoriNeve = undefined;\r\n vm.query.kellAnyjaAdatai = undefined;\r\n vm.query.kellApjaAdatai = undefined;\r\n vm.query.kellbmi = undefined;\r\n vm.query.kellof = undefined;\r\n\r\n // CHECKBOX bools\r\n vm.NameExactMatchChecked = false;\r\n vm.NameNotMatchingChecked = false;\r\n vm.MemberOfSectionChecked = false;\r\n vm.NotMemberOfSectionChecked = false;\r\n vm.MemberOfAgeGroupChecked = false;\r\n vm.NotMemberOfAgeGroupChecked = false;\r\n vm.BelongsToCoachChecked = false;\r\n vm.NotBelongsToCoachChecked = false;\r\n\r\n // OFFSET\r\n vm.query.kezdo = undefined;\r\n vm.query.darab = undefined;\r\n }\r\n\r\n function initData() {\r\n // CONTACT DETAILS\r\n if (vm.ContactNotMatchingChecked == true) {\r\n if (vm.query.lakcimMegye) {\r\n vm.query.muvlakcimMegye = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimIrSzam) {\r\n vm.query.muvlakcimIrSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimVaros) {\r\n vm.query.muvlakcimVaros = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimUtca) {\r\n vm.query.muvlakcimUtca = 'Nem tartalmazza';\r\n }\r\n if (vm.query.lakcimHazszam) {\r\n vm.query.muvlakcimHazszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.elerh) {\r\n vm.query.muvelerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.email) {\r\n vm.query.muvemail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.lakcimMegye) {\r\n vm.query.muvlakcimMegye = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimIrSzam) {\r\n vm.query.muvlakcimIrSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimVaros) {\r\n vm.query.muvlakcimVaros = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimUtca) {\r\n vm.query.muvlakcimUtca = 'Tartalmazza';\r\n }\r\n if (vm.query.lakcimHazszam) {\r\n vm.query.muvlakcimHazszam = 'Tartalmazza';\r\n }\r\n if (vm.query.elerh) {\r\n vm.query.muvelerh = 'Tartalmazza';\r\n }\r\n if (vm.query.email) {\r\n vm.query.muvemail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // SCHOOL DETAILS\r\n if (vm.SchoolNotMatchingChecked == true) {\r\n if (vm.query.iskNev) {\r\n vm.query.muviskNev = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskIrSzam) {\r\n vm.query.muviskIrSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskVaros) {\r\n vm.query.muviskVaros = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskUtca) {\r\n vm.query.muviskUtca = 'Nem tartalmazza';\r\n }\r\n if (vm.query.iskHazszam) {\r\n vm.query.muviskHazszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.igNeve) {\r\n vm.query.muvigNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnev) {\r\n vm.query.muvtestnev = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnevElerh) {\r\n vm.query.muvtestnevElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.testnevEmail) {\r\n vm.query.muvtestnevEmail = 'Nem tartalmazza';\r\n }\r\n if (vm.query.evfolyam) {\r\n vm.query.muvevfolyam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.osztaly) {\r\n vm.query.muvosztaly = 'Nem tartalmazza';\r\n }\r\n if (vm.query.regszam) {\r\n vm.query.muvregszam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.osztFoNeve) {\r\n vm.query.muvosztFoNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.OfTel) {\r\n vm.query.muvOfTel = 'Nem tartalmazza';\r\n }\r\n if (vm.query.OfEmail) {\r\n vm.query.muvOfEmail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.iskNev) {\r\n vm.query.muviskNev = 'Tartalmazza';\r\n }\r\n if (vm.query.iskIrSzam) {\r\n vm.query.muviskIrSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.iskVaros) {\r\n vm.query.muviskVaros = 'Tartalmazza';\r\n }\r\n if (vm.query.iskUtca) {\r\n vm.query.muviskUtca = 'Tartalmazza';\r\n }\r\n if (vm.query.iskHazszam) {\r\n vm.query.muviskHazszam = 'Tartalmazza';\r\n }\r\n if (vm.query.igNeve) {\r\n vm.query.muvigNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.testnev) {\r\n vm.query.muvtestnev = 'Tartalmazza';\r\n }\r\n if (vm.query.testnevElerh) {\r\n vm.query.muvtestnevElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.testnevEmail) {\r\n vm.query.muvtestnevEmail = 'Tartalmazza';\r\n }\r\n if (vm.query.evfolyam) {\r\n vm.query.muvevfolyam = 'Tartalmazza';\r\n }\r\n if (vm.query.osztaly) {\r\n vm.query.muvosztaly = 'Tartalmazza';\r\n }\r\n if (vm.query.regszam) {\r\n vm.query.muvregszam = 'Tartalmazza';\r\n }\r\n if (vm.query.osztFoNeve) {\r\n vm.query.muvosztFoNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.kilepIndoka) {\r\n vm.query.muvkilepIndoka = 'Tartalmazza';\r\n }\r\n if (vm.query.eddigiEdzoi) {\r\n vm.query.muveddigiEdzoi = 'Tartalmazza';\r\n }\r\n if (vm.query.eddigiSpEgyes) {\r\n vm.query.muveddigiSpEgyes = 'Tartalmazza';\r\n }\r\n if (vm.query.OfTel) {\r\n vm.query.muvOfTel = 'Tartalmazza';\r\n }\r\n if (vm.query.OfEmail) {\r\n vm.query.muvOfEmail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // PARENT DETAILS\r\n if (vm.ParentNotMatchingChecked == true) {\r\n if (vm.query.anyjaNeve) {\r\n vm.query.muvanyjaNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaElerh) {\r\n vm.query.muvanyjaElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaSpMult) {\r\n vm.query.muvanyjaSpMult = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaLeanyNeve) {\r\n vm.query.muvanyjaLeanyNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaFoglalkozasa) {\r\n vm.query.muvanyjaFoglalkozasa = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaNeve) {\r\n vm.query.muvapaNeve = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaElerh) {\r\n vm.query.muvapaElerh = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaSpMult) {\r\n vm.query.muvapaSpMult = 'Nem tartalmazza';\r\n }\r\n if (vm.query.apaFoglalkozasa) {\r\n vm.query.muvapaFoglalkozasa = 'Nem tartalmazza';\r\n }\r\n if (vm.query.anyjaMagTol) {\r\n vm.query.muvanyjaMagTol = '≠';\r\n }\r\n if (vm.query.apaMagTol) {\r\n vm.query.muvapaMagTol = '≠';\r\n }\r\n if (vm.query.AnyaMunkahely) {\r\n vm.query.muvAnyaMunkahely = 'Nem tartalmazza';\r\n }\r\n if (vm.query.ApaMunkahely) {\r\n vm.query.muvApaMunkahely = 'Nem tartalmazza';\r\n }\r\n if (vm.query.AnyaEmail) {\r\n vm.query.muvAnyaEmail = 'Nem tartalmazza';\r\n }\r\n if (vm.query.ApaEmail) {\r\n vm.query.muvApaEmail = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.anyjaNeve) {\r\n vm.query.muvanyjaNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaElerh) {\r\n vm.query.muvanyjaElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaSpMult) {\r\n vm.query.muvanyjaSpMult = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaLeanyNeve) {\r\n vm.query.muvanyjaLeanyNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.anyjaFoglalkozasa) {\r\n vm.query.muvanyjaFoglalkozasa = 'Tartalmazza';\r\n }\r\n if (vm.query.apaNeve) {\r\n vm.query.muvapaNeve = 'Tartalmazza';\r\n }\r\n if (vm.query.apaElerh) {\r\n vm.query.muvapaElerh = 'Tartalmazza';\r\n }\r\n if (vm.query.apaSpMult) {\r\n vm.query.muvapaSpMult = 'Tartalmazza';\r\n }\r\n if (vm.query.apaFoglalkozasa) {\r\n vm.query.muvapaFoglalkozasa = 'Tartalmazza';\r\n }\r\n if (vm.query.AnyaMunkahely) {\r\n vm.query.muvAnyaMunkahely = 'Tartalmazza';\r\n }\r\n if (vm.query.ApaMunkahely) {\r\n vm.query.muvApaMunkahely = 'Tartalmazza';\r\n }\r\n if (vm.query.AnyaEmail) {\r\n vm.query.muvAnyaEmail = 'Tartalmazza';\r\n }\r\n if (vm.query.ApaEmail) {\r\n vm.query.muvApaEmail = 'Tartalmazza';\r\n }\r\n }\r\n\r\n // BODYSHAPE\r\n if (vm.BodyShapeNotMatchingChecked == true) {\r\n if (vm.query.testMagTol) {\r\n vm.query.muvtestMagTol = '≠';\r\n }\r\n if (vm.query.testsulyTol) {\r\n vm.query.muvtestsulyTol = '≠';\r\n }\r\n if (vm.query.bmi) {\r\n vm.query.muvbmi = '≠';\r\n }\r\n if (vm.query.acttestMagTol) {\r\n vm.query.muvacttestMagTol = '≠';\r\n }\r\n if (vm.query.acttestSulyTol) {\r\n vm.query.muvacttestSulyTol = '≠';\r\n }\r\n if (vm.query.actbmi) {\r\n vm.query.muvactbmi = '≠';\r\n }\r\n if (vm.query.ugyKez) {\r\n vm.query.muvugyKez = 'Nem egyezik';\r\n }\r\n if (vm.query.ugyLab) {\r\n vm.query.muvugyLab = 'Nem egyezik';\r\n }\r\n }\r\n\r\n // ID\r\n if (vm.IdNumbersNotMatchingChecked == true) {\r\n if (vm.query.szemIgSzam) {\r\n vm.query.muvszemIgSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.tajSzam) {\r\n vm.query.muvtajSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.adoSzam) {\r\n vm.query.muvadoSzam = 'Nem tartalmazza';\r\n }\r\n if (vm.query.utlevelSzam) {\r\n vm.query.muvutlevelSzam = 'Nem tartalmazza';\r\n }\r\n } else {\r\n if (vm.query.szemIgSzam) {\r\n vm.query.muvszemIgSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.tajSzam) {\r\n vm.query.muvtajSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.adoSzam) {\r\n vm.query.muvadoSzam = 'Tartalmazza';\r\n }\r\n if (vm.query.utlevelSzam) {\r\n vm.query.muvutlevelSzam = 'Tartalmazza';\r\n }\r\n }\r\n\r\n if (vm.query.egyeb) {\r\n vm.query.muvegyeb = 'Tartalmazza';\r\n }\r\n if (vm.query.havidijas) {\r\n vm.query.muvhavidijas = 'Kijelölve';\r\n }\r\n if (vm.query.oktdijas) {\r\n vm.query.muvoktdijas = 'Kijelölve';\r\n }\r\n if (vm.query.gyereksport) {\r\n vm.query.muvgyereksport = 'Tartalmazza';\r\n }\r\n if (vm.query.szunidElfogl) {\r\n vm.query.muvszunidElfogl = 'Tartalmazza';\r\n }\r\n if (vm.query.valSportagak) {\r\n vm.query.muvvalSportagak = 'Tartalmazza';\r\n }\r\n }\r\n\r\n function initGrid() {\r\n vm.columns = [];\r\n vm.columns.push({field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: '150', template: '#searchmemberlistgotoathlete'});\r\n vm.columns.push({field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: '125', format: 'yMd'});\r\n if (vm.query.kellSzulHely) {\r\n vm.query.kellszulhelyvaros = true;\r\n vm.query.kellszulhelyorszag = true;\r\n vm.columns.push({field: 'SzuletesiHelyOrszag', headerText: gettextCatalog.getString('BirthCountry'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'SzuletesiHelyVaros', headerText: gettextCatalog.getString('BirthCity'), textAlign: 'center', width: '125'});\r\n }\r\n // ÁLTALÁNOS\r\n if (vm.query.kellszakosztalyId) {\r\n vm.columns.push({field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellkorosztalyId) {\r\n vm.columns.push({field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: '115'});\r\n }\r\n if (vm.query.kelledzoId) {\r\n vm.columns.push({field: 'EdzoNeve', headerText: gettextCatalog.getString('Coach'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellmegjegyzes) {\r\n vm.columns.push({field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: '200'});\r\n }\r\n if (vm.query.kellneme) {\r\n vm.columns.push({field: 'Neme', headerText: gettextCatalog.getString('Gender'), textAlign: 'center', width: '80'});\r\n }\r\n if (vm.query.kellaktiv) {\r\n vm.columns.push({field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: '80', displayAsCheckBox: true});\r\n }\r\n if (vm.query.kellallamp) {\r\n vm.columns.push({field: 'Allampolgarsag', headerText: gettextCatalog.getString('Citizenship'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellvspTol) {\r\n vm.columns.push({field: 'VersSportKezd', headerText: gettextCatalog.getString('CompetitiveSportStart'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellLeanykNev) {\r\n vm.columns.push({field: 'LeanykoriNeve', headerText: gettextCatalog.getString('MaidenName'), textAlign: 'center', width: '150'});\r\n }\r\n // KAPCSOLAT\r\n if (vm.query.kelllakcim) {\r\n vm.query.kelllakcimMegye = true;\r\n vm.query.kelllakcimVaros = true;\r\n vm.query.kelllakcimIrSzam = true;\r\n vm.query.kelllakcimUtca = true;\r\n vm.query.kelllakcimHazszam = true;\r\n vm.columns.push({field: 'lakcim', headerText: gettextCatalog.getString('Address'), textAlign: 'center', width: '225'});\r\n }\r\n if (vm.query.kellelerh) {\r\n vm.columns.push({field: 'Elerhetoseg', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEmail) {\r\n vm.columns.push({field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: '175'});\r\n }\r\n // ISKOLA\r\n if (vm.query.kelliskNev) {\r\n vm.columns.push({field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', width: '200'});\r\n }\r\n if (vm.query.kelliskCim) {\r\n vm.query.kelliskVaros = true;\r\n vm.query.kelliskIrSzam = true;\r\n vm.query.kelliskUtca = true;\r\n vm.query.kelliskHazszam = true;\r\n vm.columns.push({field: 'iskolacim', headerText: gettextCatalog.getString('SchoolAddress'), textAlign: 'center', width: '225'});\r\n }\r\n if (vm.query.kelligNeve) {\r\n vm.columns.push({field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('Director'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellof) {\r\n vm.columns.push({field: 'Of', headerText: gettextCatalog.getString('ClassMaster'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'OfTel', headerText: gettextCatalog.getString('ClassMasterTel'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'OfEmail', headerText: gettextCatalog.getString('ClassMasterEmail'), textAlign: 'center', width: '175'});\r\n }\r\n if (vm.query.kelltestnev) {\r\n vm.columns.push({field: 'TestneveloNeve', headerText: gettextCatalog.getString('GymTeacher'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kelltestnevElerh) {\r\n vm.columns.push({field: 'TestneveloElerhetosege', headerText: gettextCatalog.getString('GymTeacherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'TestneveloEmail', headerText: gettextCatalog.getString('GymTeacherEmail'), textAlign: 'center', width: '175'});\r\n }\r\n if (vm.query.kellevfolyam || vm.query.kellosztaly) {\r\n vm.query.kellevfolyam = true;\r\n vm.query.kellosztaly = true;\r\n vm.columns.push({field: 'evfolyamosztaly', headerText: gettextCatalog.getString('SchoolYearClass'), textAlign: 'center', width: '125'});\r\n }\r\n if (vm.query.kellDSIKezd) {\r\n vm.columns.push({field: 'DSITagsagKezd', headerText: gettextCatalog.getString('MembershipStart'), textAlign: 'center', width: '125', format: 'yMd'});\r\n }\r\n if (vm.query.kellKilepesDatum) {\r\n vm.query.kellKilepesIndok = true;\r\n vm.columns.push({field: 'KilepesDatuma', headerText: gettextCatalog.getString('MembershipEnd'), textAlign: 'center', width: '125', format: 'yMd'});\r\n vm.columns.push({field: 'KilepesIndoka', headerText: gettextCatalog.getString('CauseOfLeaving'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEddigiEdzo) {\r\n vm.columns.push({field: 'EddigiEdzoi', headerText: gettextCatalog.getString('FormerCoaches'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEddigiSp) {\r\n vm.columns.push({field: 'EddigiSpEgy', headerText: gettextCatalog.getString('FormerSportOrganizationMemberships'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellNyilvSzam) {\r\n vm.columns.push({field: 'NyilvantartasiSzam', headerText: gettextCatalog.getString('RegistrationNumber'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellEdzJaras) {\r\n vm.columns.push({field: 'EdzesreJarasKezd', headerText: gettextCatalog.getString('TrainingStart'), textAlign: 'center', width: '125', format: 'yMd'});\r\n }\r\n // SZÜLŐK ADATAI\r\n if (vm.query.kellAnyjaAdatai) {\r\n vm.query.kellanyjaNeve = true;\r\n vm.query.kellAnyjaLeanykoriNeve = true;\r\n vm.query.kellanyjaElerh = true;\r\n vm.query.kellanyjaMagTol = true;\r\n vm.query.kellanyjaSpMult = true;\r\n vm.columns.push({field: 'AnyjaNeve', headerText: gettextCatalog.getString('MothersName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyjaLeanykoriNeve', headerText: gettextCatalog.getString('MothersMaidenName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Szulo1Elerhetosege', headerText: gettextCatalog.getString('MotherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyaEmail', headerText: gettextCatalog.getString('MotherEmail'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'AnyaMunkahely', headerText: gettextCatalog.getString('MothersWorkplace'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AnyjaTestmagassaga', headerText: gettextCatalog.getString('MotherHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'SportoloiMultAnya', headerText: gettextCatalog.getString('MotherSportHistory'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'anyjafoglalkozasa', headerText: gettextCatalog.getString('MothersJob'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellApjaAdatai) {\r\n vm.query.kellapaNeve = true;\r\n vm.query.kellapaElerh = true;\r\n vm.query.kellapaMagTol = true;\r\n vm.query.kellapaSpMult = true;\r\n vm.columns.push({field: 'SzuloNeve', headerText: gettextCatalog.getString('FathersName'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Szulo2Elerhetosege', headerText: gettextCatalog.getString('FatherContact'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'ApaEmail', headerText: gettextCatalog.getString('FatherEmail'), textAlign: 'center', width: '175'});\r\n vm.columns.push({field: 'ApaMunkahely', headerText: gettextCatalog.getString('FathersWorkplace'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'ApjaTestmagassaga', headerText: gettextCatalog.getString('FatherHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'SportoloiMultApa', headerText: gettextCatalog.getString('FatherSportHistory'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'apjafoglalkozasa', headerText: gettextCatalog.getString('FathersJob'), textAlign: 'center', width: '150'});\r\n }\r\n // TESTI ADOTTSÁGOK\r\n if (vm.query.kelltestiAdottsagok) {\r\n vm.query.kelltestMagTol = true;\r\n vm.query.kelltestsulyTol = true;\r\n vm.query.kellugyKez = true;\r\n vm.query.kellugyLab = true;\r\n vm.query.kellbmi = true;\r\n vm.columns.push({field: 'Testmagassag', headerText: gettextCatalog.getString('Height'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'TestsulyStr', headerText: gettextCatalog.getString('Weight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'bmi', headerText: gettextCatalog.getString('BodyMassIndex'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AktTestmagassag', headerText: gettextCatalog.getString('ActualHeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'AktTestsuly', headerText: gettextCatalog.getString('ActualWeight'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'actbmi', headerText: gettextCatalog.getString('ActualBodyMassIndex'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'UgyesebbKez', headerText: gettextCatalog.getString('BetterHand'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'UgyesebbLab', headerText: gettextCatalog.getString('BetterFoot'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'FajiEredet', headerText: gettextCatalog.getString('RacialOrigin'), textAlign: 'center', width: '125'});\r\n vm.columns.push({field: 'PubertasVege', headerText: gettextCatalog.getString('EndOfPuberty'), textAlign: 'center', width: '125', type: 'date', format: 'yMMMd'});\r\n }\r\n // ID\r\n if (vm.query.kellAzonositok) {\r\n vm.query.kellszemIgSzam = true;\r\n vm.query.kelltajSzam = true;\r\n vm.query.kelladoSzam = true;\r\n vm.query.kellutlevelSzam = true;\r\n vm.columns.push({field: 'SzemIgSzam', headerText: gettextCatalog.getString('PersonalID'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'TAJSzam', headerText: gettextCatalog.getString('SocialSecurityNumber'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'AdoSzam', headerText: gettextCatalog.getString('TaxNumber'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'UtlevelSzam', headerText: gettextCatalog.getString('PassportNumber'), textAlign: 'center', width: '150'});\r\n }\r\n // OTHERS\r\n if (vm.query.kellTagdijas || vm.query.kellhavidijas || vm.query.kelloktdijas) { // Díjfizetés\r\n vm.query.kellTagdijas = true;\r\n vm.query.kelloktdijas = true;\r\n vm.columns.push({field: 'Tagdijas', headerText: gettextCatalog.getString('DuesOrEducationFee'), textAlign: 'center', width: '150'});\r\n vm.columns.push({field: 'Tagdij', headerText: gettextCatalog.getString('Dues'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellGyermSp) {\r\n vm.columns.push({field: 'GyermekkoriSport', headerText: gettextCatalog.getString('ChildhoodSport'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellSzunidei) {\r\n vm.columns.push({field: 'SzunideiElfogl', headerText: gettextCatalog.getString('VacationActivity'), textAlign: 'center', width: '150'});\r\n }\r\n // RUHA\r\n if (vm.query.kellpapucs) {\r\n vm.query.kellpapucsMerete = true;\r\n vm.columns.push({field: 'papucsMerete', headerText: gettextCatalog.getString('SlipperSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellmelegito) {\r\n vm.query.kellmelegitoMerete = true;\r\n vm.columns.push({field: 'melegitoMerete', headerText: gettextCatalog.getString('JoggingSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellfurdokopeny) {\r\n vm.query.kellfurdokopenyMerete = true;\r\n vm.columns.push({field: 'furdokopenyMerete', headerText: gettextCatalog.getString('BathrobeSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellkabat) {\r\n vm.query.kellkabatMerete = true;\r\n vm.columns.push({field: 'kabatMerete', headerText: gettextCatalog.getString('JacketSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellpancelNadrag) {\r\n vm.query.kellpancelNadragMerete = true;\r\n vm.columns.push({field: 'pancelNadragMerete', headerText: gettextCatalog.getString('ArmorPantsSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellpolo) {\r\n vm.query.kellpoloMerete = true;\r\n vm.columns.push({field: 'poloMerete', headerText: gettextCatalog.getString('ShirtSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellsort) {\r\n vm.query.kellsortMerete = true;\r\n vm.columns.push({field: 'sortMerete', headerText: gettextCatalog.getString('ShortsSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kellcipo) {\r\n vm.query.kellcipoMerete = true;\r\n vm.columns.push({field: 'cipoMerete', headerText: gettextCatalog.getString('ShoeSize'), textAlign: 'center', width: '150'});\r\n }\r\n if (vm.query.kelluszonadrag) {\r\n vm.query.kelluszonadragMerete = true;\r\n vm.columns.push({field: 'uszonadragMerete', headerText: gettextCatalog.getString('SwimmingPantSize'), textAlign: 'center', width: '150'});\r\n }\r\n grid.columns = vm.columns;\r\n grid.refreshColumns();\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.athletes.memberList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes.memberList',\r\n config: {\r\n url: '/memberList',\r\n templateUrl: 'app/search/athletes/memberList/memberList.html',\r\n controller: 'MemberListController',\r\n controllerAs: 'vm',\r\n title: 'SearchMemberList',\r\n settings: {\r\n navId: 22170,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Részletes sportoló kereső',\r\n orderTitle_en: 'Detailed Athlete Search',\r\n parentId: 170,\r\n content: 'SearchMemberList',\r\n activatorPermission: ['\"SPORTOLOKERESO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.athletes.simple')\r\n .controller('SimpleController', SimpleController);\r\n\r\n function SimpleController(log, dataservice, $q, $rootScope, gettextCatalog, VIEW_DATA, $filter, authenticationService, paramHelper, $state, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SearchAthletesSimple');\r\n\r\n // Create variables\r\n vm.athleteList = [];\r\n vm.sexList = [\r\n {\r\n text: gettextCatalog.getString('Man'),\r\n value: true\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: false\r\n }\r\n ];\r\n vm.countyList = VIEW_DATA.dropDownList.counties;\r\n vm.courseList = VIEW_DATA.dropDownList.course;\r\n vm.classList = VIEW_DATA.dropDownList.class;\r\n vm.betterHandList = [\r\n {\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.betterFootList = [\r\n {\r\n text: gettextCatalog.getString('Left'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Right'),\r\n value: 2\r\n },\r\n {\r\n text: gettextCatalog.getString('Both'),\r\n value: 3\r\n }\r\n ];\r\n vm.columns = [\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#simplecolumnTemplate1'\r\n },\r\n {\r\n field: 'SzakosztalyNeve',\r\n headerText: gettextCatalog.getString('Section'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('Coach'),\r\n textAlign: 'center',\r\n width: '150',\r\n template: '#simplecolumnTemplate2'\r\n },\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'KorcsoportNeve',\r\n headerText: gettextCatalog.getString('AgeGroup'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'Tagdijas',\r\n headerText: gettextCatalog.getString('SportServiceFeeAthlete'),\r\n textAlign: 'center',\r\n width: '200',\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: '200'},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: '100',\r\n type: 'boolean',\r\n displayAsCheckBox: true\r\n },\r\n {\r\n field: 'SzuletesiHelyOrszag',\r\n headerText: gettextCatalog.getString('BirthCountry'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SzuletesiHelyVaros',\r\n headerText: gettextCatalog.getString('BirthCity'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Allampolgarsag',\r\n headerText: gettextCatalog.getString('Citizenship'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'VersSportKezd',\r\n headerText: gettextCatalog.getString('CompetitiveSportStart'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'LakcimMegye', headerText: gettextCatalog.getString('County'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimIrSzam', headerText: gettextCatalog.getString('ZipCode'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimVaros', headerText: gettextCatalog.getString('City'), textAlign: 'center', width: '150'},\r\n {field: 'LakcimUtca', headerText: gettextCatalog.getString('Street'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'LakcimHazszam',\r\n headerText: gettextCatalog.getString('StreetNumber'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {field: 'Elerhetoseg', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'},\r\n {field: 'IskolaNeve', headerText: gettextCatalog.getString('SchoolName'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'IskolaIrSzam',\r\n headerText: gettextCatalog.getString('SchoolZipCode'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaVaros',\r\n headerText: gettextCatalog.getString('SchoolCity'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaUtca',\r\n headerText: gettextCatalog.getString('SchoolStreet'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaHazszam',\r\n headerText: gettextCatalog.getString('SchoolStreetNumber'),\r\n textAlign: 'center',\r\n width: '125'\r\n },\r\n {\r\n field: 'IskolaIgazgatoNeve',\r\n headerText: gettextCatalog.getString('Director'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'TestneveloNeve',\r\n headerText: gettextCatalog.getString('GymTeacher'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'TestneveloElerhetosege',\r\n headerText: gettextCatalog.getString('GymTeacherContact'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'TestneveloEmail',\r\n headerText: gettextCatalog.getString('GymTeacherEmail'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'IskolaEvfolyam',\r\n headerText: gettextCatalog.getString('SchoolCourse'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'IskolaOsztaly',\r\n headerText: gettextCatalog.getString('SchoolClass'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'OsztalyFonokNeve',\r\n headerText: gettextCatalog.getString('ClassMaster'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'OfEmail',\r\n headerText: gettextCatalog.getString('ClassMasterEmail'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'OfTel',\r\n headerText: gettextCatalog.getString('ClassMasterTel'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'AnyjaNeve',\r\n headerText: gettextCatalog.getString('MothersName'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'Szulo1Elerhetosege',\r\n headerText: gettextCatalog.getString('MotherContact'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyaEmail',\r\n headerText: gettextCatalog.getString('MotherEmail'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyaMunkahely',\r\n headerText: gettextCatalog.getString('MothersWorkplace'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'AnyjaTestmagassaga',\r\n headerText: gettextCatalog.getString('MotherHeight'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SportoloiMultAnya',\r\n headerText: gettextCatalog.getString('MotherSportHistory'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'SzuloNeve', headerText: gettextCatalog.getString('FathersName'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'Szulo2Elerhetosege',\r\n headerText: gettextCatalog.getString('FatherContact'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApaEmail',\r\n headerText: gettextCatalog.getString('FatherEmail'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApaMunkahely',\r\n headerText: gettextCatalog.getString('FathersWorkplace'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'ApjaTestmagassaga',\r\n headerText: gettextCatalog.getString('FatherHeight'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SportoloiMultApa',\r\n headerText: gettextCatalog.getString('FatherSportHistory'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {field: 'Testmagassag', headerText: gettextCatalog.getString('Height'), textAlign: 'center', width: '100'},\r\n {field: 'Testsuly', headerText: gettextCatalog.getString('Weight'), textAlign: 'center', width: '100'},\r\n {\r\n field: 'UgyesebbKez',\r\n headerText: gettextCatalog.getString('BetterHand'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'UgyesebbLab',\r\n headerText: gettextCatalog.getString('BetterFoot'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SzemIgSzam',\r\n headerText: gettextCatalog.getString('IdentityNumber'),\r\n textAlign: 'center',\r\n width: '200'\r\n },\r\n {\r\n field: 'TAJSzam',\r\n headerText: gettextCatalog.getString('SocialSecurityNumber'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {field: 'AdoSzam', headerText: gettextCatalog.getString('TaxNumber'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'UtlevelSzam',\r\n headerText: gettextCatalog.getString('PassportNumber'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'PapucsMerete',\r\n headerText: gettextCatalog.getString('SlipperSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'MelegitoMerete',\r\n headerText: gettextCatalog.getString('JoggingSuitSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'FurdokopenyMerete',\r\n headerText: gettextCatalog.getString('BathrobeSize'),\r\n textAlign: 'center',\r\n width: '160'\r\n },\r\n {field: 'KabatMerete', headerText: gettextCatalog.getString('CoatSize'), textAlign: 'center', width: '150'},\r\n {\r\n field: 'PancelNadragMerete',\r\n headerText: gettextCatalog.getString('ArmorPantSize'),\r\n textAlign: 'center',\r\n width: '175'\r\n },\r\n {\r\n field: 'PoloMerete',\r\n headerText: gettextCatalog.getString('TShirtSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'SortMerete',\r\n headerText: gettextCatalog.getString('ShortDressSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'CipoMerete',\r\n headerText: gettextCatalog.getString('ShoeSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n },\r\n {\r\n field: 'UszoNadragMerete',\r\n headerText: gettextCatalog.getString('SwimmingPantSize'),\r\n textAlign: 'center',\r\n width: '150'\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowPaging: true,\r\n allowExcelExport: true,\r\n pageSettings: $rootScope.pageSettings,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(grid, $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.search = search;\r\n vm.reset = reset;\r\n vm.clearSection = clearSection;\r\n vm.clearCoach = clearCoach;\r\n vm.clearAgeGroup = clearAgeGroup;\r\n vm.clearCounty = clearCounty;\r\n vm.clearCourse = clearCourse;\r\n vm.clearClass = clearClass;\r\n vm.cleaSex = cleaSex;\r\n vm.goToAthlete = goToAthlete;\r\n vm.goToUser = goToUser;\r\n\r\n vm.formData = {\r\n active: true,\r\n inactive: false,\r\n sportServiceFee: true,\r\n educationalFee: true\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('SPORTOLOKERESO'),\r\n paramHelper.getParams([], ['search.simple.formdata'])\r\n ];\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n if (results[1] && results[1]['search.simple.formdata']) {\r\n $timeout(function () {\r\n vm.formData = results[1]['search.simple.formdata'];\r\n $scope.$apply();\r\n }, 500);\r\n $timeout(function () {\r\n getSections();\r\n getAgeGroups();\r\n getCoaches();\r\n $timeout(function () {\r\n search();\r\n }, 500);\r\n }, 500);\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.formData.sectionId = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#sectionId').ejDropDownList('selectItemByValue', vm.formData.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.formData.sectionId = args.value;\r\n getAgeGroups(args.value);\r\n }\r\n\r\n function getAgeGroups(sectionId) {\r\n if (!sectionId) {\r\n sectionId = 0;\r\n }\r\n return dataservice.ageGroupDropDownListForSearch(sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.formData.ageGroupId = vm.ageGroupList[0].value;\r\n } else {\r\n angular.element('#ageGroupId').ejDropDownList('selectItemByValue', vm.formData.ageGroupId);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.formData.ageGroupId = args.value;\r\n getCoaches();\r\n }\r\n\r\n function getCoaches() {\r\n return dataservice.coachSelect()\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.formData.coachId = vm.coachList[0].value;\r\n } else {\r\n angular.element('#coachId').ejDropDownList('selectItemByValue', vm.formData.coachId);\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.formData.coachId = args.value;\r\n }\r\n\r\n function search() {\r\n console.log('vm.formData SEARCH', vm.formData);\r\n paramHelper.setParams([{'search.simple.formdata': vm.formData}]);\r\n dataservice.searchAthlete(vm.formData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'VersSportKezd');\r\n vm.athleteList = data.itemsList;\r\n grid.dataSource = vm.athleteList;\r\n });\r\n }\r\n\r\n function reset() {\r\n vm.formData = {};\r\n }\r\n\r\n function cleaSex() {\r\n vm.formData.sex = undefined;\r\n $('#sex').ejDropDownList('clearText');\r\n }\r\n\r\n function clearSection() {\r\n vm.formData.sectionId = undefined;\r\n $('#sectionId').ejDropDownList('clearText');\r\n getAgeGroups(0);\r\n getAgeGroups(0);\r\n }\r\n\r\n function clearAgeGroup() {\r\n vm.formData.ageGroupId = undefined;\r\n $('#ageGroupId').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCoach() {\r\n vm.formData.coachId = undefined;\r\n $('#coachId').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCounty() {\r\n vm.formData.county = undefined;\r\n $('#county').ejDropDownList('clearText');\r\n }\r\n\r\n function clearCourse() {\r\n vm.formData.course = undefined;\r\n $('#course').ejDropDownList('clearText');\r\n }\r\n\r\n function clearClass() {\r\n vm.formData.class = undefined;\r\n $('#class').ejDropDownList('clearText');\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST'), authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.athletes.simple')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.athletes.simple',\r\n config: {\r\n url: '/simple',\r\n templateUrl: 'app/search/athletes/simple/simple.html',\r\n controller: 'SimpleController',\r\n controllerAs: 'vm',\r\n title: 'SearchAthletesSimple',\r\n settings: {\r\n navId: 21170,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Sportoló kereső',\r\n orderTitle_en: 'Athlete Search',\r\n parentId: 170,\r\n content: 'SearchAthletesSimple',\r\n activatorPermission: ['\"SPORTOLOKERESO\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search',\r\n config: {\r\n url: '/search',\r\n templateUrl: 'app/search/search.html',\r\n title: 'Search',\r\n settings: {\r\n navId: 170,\r\n level: 1,\r\n order: 7,\r\n parentId: 0,\r\n content: 'Search',\r\n faIcon: 'fa-search',\r\n activatorPermission: [\r\n '\"EDZOKERESO\"',\r\n '\"SPORTOLOKERESO\"'\r\n ]\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.user.searchuser')\r\n .controller('SearchUsersController', SearchUsersController);\r\n\r\n function SearchUsersController(log, dataservice, $q, $rootScope, gettextCatalog, $filter, authenticationService, paramHelper, $state, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SearchUsers');\r\n\r\n // Create variables\r\n vm.userList = [];\r\n vm.yesno = [\r\n {text: gettextCatalog.getString(''), value: null},\r\n {text: gettextCatalog.getString('Yes'), value: true},\r\n {text: gettextCatalog.getString('No'), value: false}\r\n ];\r\n vm.genderList = [\r\n {text: gettextCatalog.getString(''), value: undefined},\r\n {text: gettextCatalog.getString('Male'), value: 'Male'},\r\n {text: gettextCatalog.getString('Female'), value: 'Female'}\r\n ];\r\n vm.columns = [\r\n {field: 'Id', headerText: gettextCatalog.getString('Id'), textAlign: 'center', width: '90', visible: false},\r\n {field: 'Nev', headerText: gettextCatalog.getString('LoginName'), textAlign: 'center', width: '115', template: '#searchusergotouser'},\r\n {field: 'TeljesNev', headerText: gettextCatalog.getString('FullName'), textAlign: 'center', width: '150'},\r\n {field: 'SzulIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: '120', type: 'date', format: 'yMd'},\r\n {field: 'Lakcim', headerText: gettextCatalog.getString('Address'), textAlign: 'center', width: '150'},\r\n {field: 'FelhasznaloCsoport', headerText: gettextCatalog.getString('Usergroup'), textAlign: 'center', width: '115'},\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: '150'},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: '60', type: 'boolean', displayAsCheckBox: true}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n editSettings: {allowEditing: false, allowAdding: false, allowDeleting: false},\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowScrolling: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.search = search;\r\n vm.reset = reset;\r\n vm.goToUser = goToUser;\r\n\r\n vm.formData = {};\r\n vm.usergroups = [];\r\n\r\n resetQueryDetails ();\r\n\r\n function resetQueryDetails () {\r\n vm.formData.nev = undefined;\r\n vm.formData.loginNev = undefined;\r\n vm.formData.idCsoport = undefined;\r\n vm.formData.szulHelyOrszag = undefined;\r\n vm.formData.szulHelyVaros = undefined;\r\n vm.formData.szulTol = undefined;\r\n vm.formData.szulIg = undefined;\r\n vm.formData.email = undefined;\r\n vm.formData.lakcim = undefined;\r\n vm.formData.elerhetoseg = undefined;\r\n vm.formData.neme = undefined;\r\n vm.formData.allamp = undefined;\r\n vm.formData.anyjaNeve = undefined;\r\n vm.formData.edzKep = undefined;\r\n vm.formData.foallMh = undefined;\r\n vm.formData.magTol = undefined;\r\n vm.formData.magIg = undefined;\r\n vm.formData.testTol = undefined;\r\n vm.formData.testIg = undefined;\r\n vm.formData.szemSzam = undefined;\r\n vm.formData.tajSzam = undefined;\r\n vm.formData.utlevel = undefined;\r\n vm.formData.aktiv = undefined;\r\n vm.formData.egyeniSport = false;\r\n vm.formData.csapatSport = false;\r\n }\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('EDZOKERESO'), paramHelper.getParams([], ['search.user.formdata'])];\r\n getUserGroups();\r\n $q.all(promises)\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n }\r\n if (results[1] && results[1]['search.user.formdata']) {\r\n vm.formData = results[1]['search.user.formdata'];\r\n search();\r\n }\r\n });\r\n }\r\n\r\n function getUserGroups() {\r\n return dataservice.userGroupList()\r\n .then(function (data) {\r\n vm.usergroups = data.itemsList;\r\n vm.usergroups.unshift({value: undefined, text: ''});\r\n });\r\n }\r\n\r\n function search() {\r\n paramHelper.setParams([{'search.user.formdata': vm.formData}]);\r\n vm.userList = [];\r\n dataservice.searchUser(vm.formData).then(function (data) {\r\n data.itemsList = $filter('dateStringFilter')(data.itemsList, 'SzulIdo');\r\n vm.userList = data.itemsList;\r\n grid.dataSource = vm.userList;\r\n grid.refresh();\r\n });\r\n }\r\n\r\n function goToUser(edzoId) {\r\n authenticationService.getRight('MEGTFELH').then(function (result) {\r\n if (result !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n });\r\n }\r\n\r\n function reset() {\r\n resetQueryDetails();\r\n }\r\n\r\n vm.userGroupDatabound = userGroupDatabound;\r\n function userGroupDatabound () {\r\n if (vm.usergroups.length === 1) {\r\n angular.element('#usergroup').ejDropDownList('selectItemByValue', vm.usergroups[0].value);\r\n vm.formData.idCsoport = vm.usergroups[0].value;\r\n } else {\r\n angular.element('#usergroup').ejDropDownList('selectItemByValue', vm.formData.idCsoport);\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.user.searchuser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.user.searchuser',\r\n config: {\r\n url: '/searchuser',\r\n templateUrl: 'app/search/user/searchuser/searchuser.html',\r\n controller: 'SearchUsersController',\r\n controllerAs: 'vm',\r\n title: 'SearchUsers',\r\n settings: {\r\n navId: 23170,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Felhasználó kereső',\r\n orderTitle_en: 'User Search',\r\n parentId: 170,\r\n content: 'SearchUsers',\r\n activatorPermission: ['\"EDZOKERESO\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.search.user')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'search.user',\r\n config: {\r\n url: '/user',\r\n templateUrl: 'app/search/user/user.html',\r\n title: 'SearchUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.ageGroupChange')\r\n .controller('AgeGroupChangeController', AgeGroupChangeController);\r\n\r\n function AgeGroupChangeController(logger, log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $scope, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AgeGroupChange');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.actualSectionList = [];\r\n vm.actualCoachList = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.atletesList = [];\r\n vm.ageGroupList = [];\r\n\r\n // Grid's variables\r\n vm.columns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 56},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 150, template: '#agegroupchangecolumnTemplate2'},\r\n {field: 'EdzoNeve', headerText: gettextCatalog.getString('CoachName'), textAlign: 'center', width: 150, template: '#agegroupchangecolumnTemplate1'},\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 150},\r\n {field: 'SzuletesiIdo', headerText: gettextCatalog.getString('BirthDate'), textAlign: 'center', width: 125, format: 'yyyy-MM-dd'},\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('SchoolFee'), textAlign: 'center', width: 150},\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: 60, type: 'boolean', template: '#checkboxTemplateAktiv'},\r\n {field: 'jelenKorcsoportbanMikortolVan', headerText: gettextCatalog.getString('InAgeGroupFromDate'), textAlign: 'center', width: 175, format: 'yyyy-MM-dd'}\r\n ];\r\n\r\n // Other variables\r\n vm.dateValue = new Date();\r\n vm.date = vm.dateValue;\r\n vm.athleteData = {};\r\n vm.actualSectionId = undefined;\r\n vm.actualCoachId = undefined;\r\n vm.actualAthleteId = undefined;\r\n vm.NOACTUALATHLETE = false;\r\n vm.which = 1;\r\n vm.backPath = '';\r\n\r\n // Public functions\r\n vm.actualSectionDataBound = actualSectionDataBound;\r\n vm.actualSectionSelect = actualSectionSelect;\r\n vm.actualCoachDataBound = actualCoachDataBound;\r\n vm.actualCoachSelect = actualCoachSelect;\r\n vm.dateChange = dateChange;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.transferAthletes = transferAthletes;\r\n vm.openCoach = openCoach;\r\n vm.goToAthlete = goToAthlete;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n authenticationService.getRight('MEGTEDZVALT'),\r\n authenticationService.getRight('MEGTKORVALT'),\r\n authenticationService.getRight('UJEDZVALT'),\r\n paramHelper.getParams([], [\r\n 'ageGroupChange.athleteData',\r\n 'ageGroupChange.which'])\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.NOACTUALATHLETE = true;\r\n\r\n if (results[3]['ageGroupChange.athleteData'] !== null && angular.isDefined(results[3]['ageGroupChange.athleteData'])) {\r\n vm.athleteData = results[3]['ageGroupChange.athleteData'];\r\n vm.actualAthleteId = vm.athleteData.SportolokID;\r\n vm.backPath = results[3]['ageGroupChange.backPath'];\r\n paramHelper.removeParam('ageGroupChange.athleteData'); // Clear athleteData\r\n } else {\r\n vm.actualAthleteId = 0;\r\n }\r\n if (angular.isDefined(results[3]['ageGroupChange.which'])) {\r\n vm.which = results[3]['ageGroupChange.which'];\r\n }\r\n if (results[0] !== true && results[1] !== true) {\r\n log.permissionError(true);\r\n } else if (vm.actualAthleteId > 0) {\r\n vm.UJEDZVALT = results[2];\r\n if (vm.which == 1) {\r\n vm.actualSectionId = vm.athleteData.IdSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n } else {\r\n vm.actualSectionId = vm.athleteData.MasodlagosSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n }\r\n athletesSelect();\r\n getAgeGroups();\r\n vm.NOACTUALATHLETE = false;\r\n } else {\r\n vm.UJEDZVALT = results[2];\r\n getActualSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.actualSectionList = data.itemsList;\r\n if (vm.actualSectionId > 0) {\r\n vm.defaultSection = vm.actualSectionId; // Set default section\r\n angular.element('#actualSectionDropDown').ejDropDownList({enabled: false});\r\n grid.selectRow(0);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function actualSectionDataBound() {\r\n if (vm.actualSectionList.length === 1) {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionList[0].value);\r\n vm.actualSectionId = vm.actualSectionList[0].value;\r\n } else {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.defaultSection);\r\n vm.actualSectionId = vm.defaultSection;\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function actualSectionSelect(args) {\r\n vm.actualSectionId = args.value;\r\n vm.actualCoachId = 0;\r\n getActualCoaches();\r\n if (vm.NOACTUALATHLETE) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualCoaches() {\r\n return dataservice.coachDropDownList(vm.actualSectionId)\r\n .then(function (data) {\r\n vm.actualCoachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function actualCoachDataBound() {\r\n if (vm.actualCoachList.length === 1) {\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachList[0].value);\r\n vm.actualCoachId = vm.actualCoachList[0].value;\r\n } else if (vm.athleteData.JelenlegiEdzo > 0) {\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n }\r\n }\r\n\r\n function actualCoachSelect(args) {\r\n vm.actualCoachId = args.value;\r\n if (vm.NOACTUALATHLETE) {\r\n athletesSelect();\r\n }\r\n getAgeGroups();\r\n }\r\n\r\n function athletesSelect() {\r\n return dataservice.getAthletes(vm.actualSectionId, vm.actualCoachId, vm.actualAthleteId)\r\n .then(function (data) {\r\n vm.atletesList = $filter('dateStringFilter')(data.itemsList, 'jelenKorcsoportbanMikortolVan');\r\n vm.atletesList = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n grid.dataSource = vm.atletesList;\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n vm.date = args.value;\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.actualCoachId, vm.actualSectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroupId = vm.ageGroupList[0].value;\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function transferAthletes() {\r\n if (vm.UJEDZVALT !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (vm.actualAthleteId > 0) {\r\n grid.selectRow(0);\r\n }\r\n vm.selectedRows = grid.getSelectedRecords();\r\n if (vm.selectedRows.length !== 0) {\r\n if (vm.actualSectionId !== 0 && vm.actualCoachId !== 0 && vm.ageGroupId) {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToChangeAgeGroup'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false\r\n }).then(function (confirm) {\r\n if (confirm.value) {\r\n dataservice.transferAthletes(vm.selectedRows, vm.actualCoachId, vm.actualSectionId, vm.ageGroupId, vm.date, true).then(function () {\r\n athletesSelect();\r\n log.successMsg(gettextCatalog.getString('TransferCompleted'));\r\n });\r\n swal.close();\r\n if (vm.actualAthleteId > 0) {\r\n $rootScope.back();\r\n }\r\n } else {\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectTransferDestination'), gettextCatalog.getString('NoSelected'));\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectLeastAthlete'), gettextCatalog.getString('NoSelectedAthlete'));\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.ageGroupChange')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.ageGroupChange',\r\n config: {\r\n url: '/ageGroupChange',\r\n templateUrl: 'app/settings/ageGroupChange/ageGroupChange.html',\r\n controller: 'AgeGroupChangeController',\r\n controllerAs: 'vm',\r\n title: 'AgeGroupChange',\r\n settings: {\r\n navId: 265,\r\n level: 2,\r\n order: 6,\r\n orderTitle_hu: 'Korosztályváltás',\r\n orderTitle_en: 'Change Age Groups',\r\n parentId: 5,\r\n content: 'AgeGroupChange',\r\n activatorPermission: ['\"MEGTEDZVALT\"']\r\n\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.athleteTransfer')\r\n .controller('AthleteTransferController', AthleteTransferController);\r\n\r\n function AthleteTransferController(log, dataservice, $q, $rootScope, gettextCatalog, paramHelper, authenticationService, $filter, $state, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('AthleteTransfer');\r\n\r\n // Create variables\r\n // Dropdownlist's sources\r\n vm.actualSectionList = [];\r\n vm.actualCoachList = [];\r\n vm.sectionList = [];\r\n vm.coachList = [];\r\n vm.ageGroupList = [];\r\n vm.athleteData = undefined;\r\n vm.selectedRows = [];\r\n vm.columns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 56},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#athltransfercolumnTemplate2',\r\n width: 150\r\n },\r\n {\r\n field: 'EdzoNeve',\r\n headerText: gettextCatalog.getString('CoachName'),\r\n textAlign: 'center',\r\n template: '#athltransfercolumnTemplate1',\r\n width: 150\r\n },\r\n {field: 'SzakosztalyNeve', headerText: gettextCatalog.getString('Section'), textAlign: 'center', width: 125},\r\n {\r\n field: 'SzuletesiIdo',\r\n headerText: gettextCatalog.getString('BirthDate'),\r\n textAlign: 'center',\r\n format: '{0:yyyy-MM-dd}',\r\n width: 125\r\n },\r\n {field: 'KorcsoportNeve', headerText: gettextCatalog.getString('AgeGroup'), textAlign: 'center', width: 115},\r\n {field: 'Megjegyzes', headerText: gettextCatalog.getString('Comment'), textAlign: 'center', width: 150},\r\n {field: 'Tagdij', headerText: gettextCatalog.getString('SportServiceFee'), textAlign: 'center', width: 150},\r\n {field: 'Oktatasidij', headerText: gettextCatalog.getString('SchoolFee'), textAlign: 'center', width: 150},\r\n {field: 'Egyenleg', headerText: gettextCatalog.getString('Balance'), textAlign: 'center', width: 150},\r\n {field: 'Aktiv', headerText: gettextCatalog.getString('Active'), textAlign: 'center', width: 60, type: 'boolean', displayAsCheckBox: true},\r\n {\r\n field: 'jelenKorcsoportbanMikortolVan',\r\n headerText: gettextCatalog.getString('InAgeGroupFromDate'),\r\n textAlign: 'center',\r\n format: '{0:yyyy-MM-dd}',\r\n width: 175\r\n }\r\n ];\r\n\r\n var Grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(Grid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n vm.selectedRows = $rootScope.getSelectedItems(Grid);\r\n },\r\n dataBound: function () {\r\n if (Grid.dataSource.length === 1) {\r\n Grid.selectRow(0);\r\n }\r\n }\r\n });\r\n Grid.appendTo('#Grid');\r\n Grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, Grid);\r\n };\r\n\r\n //Other variables\r\n vm.dateValue = new Date();\r\n vm.date = vm.dateValue;\r\n\r\n vm.athleteData = undefined;\r\n vm.actualAthleteId = 0;\r\n vm.actualSectionId = undefined;\r\n vm.actualCoachId = 0;\r\n\r\n //Public functions\r\n vm.actualSectionDataBound = actualSectionDataBound;\r\n vm.actualSectionSelect = actualSectionSelect;\r\n vm.actualCoachDataBound = actualCoachDataBound;\r\n vm.actualCoachSelect = actualCoachSelect;\r\n vm.dateChange = dateChange;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.coachDataBound = coachDataBound;\r\n vm.coachSelect = coachSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.transferAthletes = transferAthletes;\r\n vm.openCoach = openCoach;\r\n vm.goToAthlete = goToAthlete;\r\n vm.previousState = ''; // athleteNew és athleteModify felületekről érkezhet\r\n\r\n //Activate page\r\n activate();\r\n\r\n function activate() {\r\n var promises = [authenticationService.getRight('MEGTEDZVALT'), authenticationService.getRight('MEGTKORVALT'), paramHelper.getParams([], ['athleteTransfer.athleteData', 'previousState']), authenticationService.getRight('UJEDZVALT')];\r\n $q.all(promises).then(function (results) {\r\n vm.UJEDZVALT = results[3];\r\n if (results[2] ['athleteTransfer.athleteData']) {\r\n vm.previousState = results[2]['previousState'];\r\n vm.athleteData = results[2] ['athleteTransfer.athleteData'];\r\n vm.actualAthleteId = vm.athleteData.SportolokID;\r\n paramHelper.removeParam('athleteTransfer.athleteData'); // Clear paramHelper's athleteData\r\n } else {\r\n vm.actualAthleteId = 0;\r\n }\r\n\r\n if (results[0] !== true && results[1] !== true && results[3] !== true) {\r\n log.permissionError(true);\r\n } else if (vm.actualAthleteId > 0) {\r\n if (vm.athleteData.ModifyCoach === 1) {\r\n vm.actualSectionId = vm.athleteData.IdSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n } else if (vm.athleteData.ModifyCoach === 2) {\r\n vm.actualSectionId = vm.athleteData.MasodlagosSzakosztaly;\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n }\r\n athletesSelect();\r\n getActualSections();\r\n getSections();\r\n getActualCoaches();\r\n } else {\r\n getActualSections();\r\n getSections();\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualSections() {\r\n return dataservice.sectionDropDownList(vm.actualCoachId)\r\n .then(function (data) {\r\n vm.actualSectionList = data.itemsList;\r\n if (vm.actualSectionId > 0) {\r\n vm.defaultSection = vm.actualSectionId; // Set default section\r\n angular.element('#actualSectionDropDown').ejDropDownList({enabled: false});\r\n Grid.selectRow(0);\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function actualSectionDataBound() {\r\n if (vm.actualSectionList.length === 1) {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionList[0].value);\r\n vm.actualSectionId = vm.actualSectionList[0].value;\r\n } else {\r\n angular.element('#actualSectionDropDown').ejDropDownList('selectItemByValue', vm.actualSectionId);\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function actualSectionSelect(args) {\r\n vm.actualSectionId = args.value;\r\n vm.actualCoachId = 0;\r\n getActualCoaches();\r\n if (vm.actualAthleteId == 0) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getActualCoaches() {\r\n return dataservice.coachDropDownList(vm.actualSectionId)\r\n .then(function (data) {\r\n vm.actualCoachList = data.itemsList;\r\n vm.actualCoachList.unshift({value: '-1', text: gettextCatalog.getString('All')});\r\n if (vm.actualAthleteId > 0) {\r\n angular.element('#actualCoachDropDown').ejDropDownList({enabled: false});\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function actualCoachDataBound() {\r\n if (vm.actualCoachList.length === 1) {\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachList[0].value);\r\n vm.actualCoachId = vm.actualCoachList[0].value;\r\n } else if (vm.athleteData !== undefined) {\r\n if (vm.athleteData.ModifyCoach == 1 && vm.athleteData.JelenlegiEdzo > 0) {\r\n vm.actualCoachId = vm.athleteData.JelenlegiEdzo;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n } else if (vm.athleteData.ModifyCoach == 2 && vm.athleteData.MasodlagosSzakosztalyEdzoId > 0) {\r\n vm.actualCoachId = vm.athleteData.MasodlagosSzakosztalyEdzoId;\r\n angular.element('#actualCoachDropDown').ejDropDownList('selectItemByValue', vm.actualCoachId);\r\n }\r\n }\r\n }\r\n\r\n function actualCoachSelect(args) {\r\n vm.actualCoachId = args.value;\r\n if (vm.actualAthleteId == 0) {\r\n athletesSelect();\r\n }\r\n }\r\n\r\n function athletesSelect() {\r\n return dataservice.getAthletesEV(vm.actualSectionId, (vm.actualCoachId == -1 ? 0 : vm.actualCoachId), vm.actualAthleteId, true)\r\n .then(function (data) {\r\n Grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'jelenKorcsoportbanMikortolVan');\r\n Grid.dataSource = $filter('dateStringFilter')(data.itemsList, 'SzuletesiIdo');\r\n });\r\n }\r\n\r\n function dateChange(args) {\r\n vm.date = args.value;\r\n }\r\n\r\n /**\r\n * Betölti a szakosztályok listáját\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getSections() {\r\n return dataservice.sectionDropDownList(0)\r\n .then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Szakosztályok betöltése után beállítja az alapértelmezett szakosztályt\r\n * @author Richard Keki\r\n */\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.sectionId = vm.sectionList[0].value;\r\n }\r\n }\r\n\r\n /**\r\n * Szakosztály kiválasztásakor fut le és lekéri a szakosztály korosztályait\r\n * @author Richard Keki\r\n */\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n vm.coachId = 0;\r\n vm.ageGroupId = 0;\r\n vm.ageGroupList = [];\r\n getcoaches();\r\n }\r\n\r\n /**\r\n * Betölti az edzőket\r\n * @author Richard Keki\r\n * @returns {promise} A http promisszal tér vissza\r\n */\r\n function getcoaches() {\r\n return dataservice.coachDropDownList(vm.sectionId)\r\n .then(function (data) {\r\n vm.coachList = data.itemsList;\r\n });\r\n }\r\n\r\n /**\r\n * Edzők betöltése után beállítja az alapértelmezett edzőt\r\n * @author Richard Keki\r\n */\r\n function coachDataBound() {\r\n if (vm.coachList.length === 1) {\r\n angular.element('#coachDropDown').ejDropDownList('selectItemByValue', vm.coachList[0].value);\r\n vm.coachId = vm.coachList[0].value;\r\n }\r\n }\r\n\r\n function coachSelect(args) {\r\n vm.coachId = args.value;\r\n vm.ageGroupId = 0;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n return dataservice.ageGroupSelect(vm.coachId, vm.sectionId)\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length === 1) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n vm.selectedAgeGroupId = vm.ageGroupList[0].value;\r\n }\r\n }\r\n\r\n // Run after age group selected\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function transferAthletes() {\r\n if (vm.UJEDZVALT !== true) {\r\n log.permissionError();\r\n return;\r\n }\r\n if (vm.selectedRows.length !== 0) {\r\n if (vm.sectionId !== 0 && vm.coachId !== 0 && vm.ageGroupId) {\r\n var message = '';\r\n angular.forEach(vm.selectedRows, function (value) {\r\n if (value.EdzoId === vm.coachId) {\r\n message += value.Nev + '<br>';\r\n }\r\n });\r\n if (message !== '') {\r\n log.htmlError(gettextCatalog.getString('DestinationCoachSame') + '<br>' + message);\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('AreYouSureToTransferAthletes'),\r\n text: gettextCatalog.getString('AreYouSureToTransferAthletesText'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('OK'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false\r\n }).then(function (args) {\r\n if (args.value) {\r\n dataservice.transferAthletes(vm.selectedRows, vm.coachId, vm.sectionId, vm.ageGroupId, vm.date).then(function () {\r\n athletesSelect();\r\n Grid.refresh();\r\n\r\n swal.close();\r\n paramHelper.setParams([{'athleteModify.sportoloId': vm.actualAthleteId}]);\r\n\r\n if (vm.previousState !== '') {\r\n $state.go(vm.previousState);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectTransferDestination'));\r\n }\r\n } else {\r\n log.errorMsg(gettextCatalog.getString('YouHaveToSelectLeastAthlete'));\r\n }\r\n }\r\n\r\n function goToAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openCoach(edzoId) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': edzoId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})\r\n();\r\n\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.athleteTransfer')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.athleteTransfer',\r\n config: {\r\n url: '/athleteTransfer',\r\n templateUrl: 'app/settings/athleteTransfer/athleteTransfer.html',\r\n controller: 'AthleteTransferController',\r\n controllerAs: 'vm',\r\n title: 'AthleteTransfer',\r\n settings: {\r\n navId: 255,\r\n level: 2,\r\n order: 5,\r\n orderTitle_hu: 'Edzőváltás',\r\n orderTitle_en: 'Change Coach',\r\n parentId: 5,\r\n content: 'AthleteTransfer',\r\n activatorPermission: ['\"MEGTEDZVALT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.createSportSpecificTest')\r\n .controller('CreateSportSpecificTestController', CreateSportSpecificTestController);\r\n\r\n function CreateSportSpecificTestController(log, $q, paramHelper, dataservice, $rootScope, gettextCatalog, authenticationService, $scope, logger, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('CreateSportSpecificTest');\r\n vm.columnsFelmeroElemFej = [\r\n {field: 'Id_FEF', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {field: 'FelmeroNeve', headerText: gettextCatalog.getString('FelmeroNeve'), textAlign: 'center', width: 200},\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n width: 60,\r\n displayAsCheckBox: true\r\n }\r\n ];\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n }\r\n ];\r\n vm.FEEditEnable = true;\r\n vm.NewFelmeroTipus = NewFelmeroTipus;\r\n vm.SaveFelmeroTipusok = SaveFelmeroTipusok;\r\n vm.CopyFelmeroTipus = CopyFelmeroTipus;\r\n vm.DeleteFelmeroTipus = DeleteFelmeroTipus;\r\n vm.SelectFelmeroTipus = SelectFelmeroTipus;\r\n vm.ActivateFelmeroTipus = ActivateFelmeroTipus;\r\n vm.InactivateFelmeroTipus = InactivateFelmeroTipus;\r\n vm.SaveFelmeroElemek = SaveFelmeroElemek;\r\n vm.DiscardFelmeroElem = DiscardFelmeroElem;\r\n vm.SelectFelmeroElem = SelectFelmeroElem;\r\n vm.setDefaultColors = setDefaultColors;\r\n vm.clearColors = clearColors;\r\n vm.dataFelmeroElemFej = [];\r\n vm.dataFelmeroElem = [];\r\n vm.sectionList = [];\r\n vm.sectionSelect = sectionSelect;\r\n vm.sectionValue = undefined;\r\n vm.felmNev = '';\r\n vm.selectedFelmeroElemFej = undefined;\r\n vm.selectedFelmeroElem = undefined;\r\n vm.newFefItemIndex = -1;\r\n vm.newFeItemIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.newTestName = '';\r\n vm.editableHint = '';\r\n vm.saveOrDiscardeHint = '';\r\n vm.modified = false;\r\n vm.selectedSection = undefined;\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.applyColor = applyColor;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.selectedFEFRowIndex = undefined;\r\n vm.selectedFelmeroIsActive = undefined;\r\n vm.UJSPFELM = false;\r\n vm.MEGTSPFELM = false;\r\n vm.typeHint = [];\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint'));\r\n vm.typeHint.push('');\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint0'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint1'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint2'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint3'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint4'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint5'));\r\n vm.typeHint.push(gettextCatalog.getString('SportSpecificTestTypeHint6'));\r\n vm.selectedFelmeroElemIndex = -1;\r\n vm.felmElemNev = '';\r\n vm.defcolor1 = '#990000';\r\n vm.defcolor12 = '#ff0000';\r\n vm.defcolor23 = '#ff8000';\r\n vm.defcolor34 = '#ffff00';\r\n vm.defcolor45 = '#c4ff00';\r\n vm.defcolor5 = '#4dff00';\r\n vm.num0 = -999;\r\n vm.num6 = 999;\r\n vm.num1 = 0;\r\n vm.num2 = 25;\r\n vm.num3 = 50;\r\n vm.num4 = 75;\r\n vm.num5 = 100;\r\n vm.defnum1 = 0;\r\n vm.defnum2 = 25;\r\n vm.defnum3 = 50;\r\n vm.defnum4 = 75;\r\n vm.defnum5 = 100;\r\n vm.defnum1mmss = '01:00';\r\n vm.defnum2mmss = '02:00';\r\n vm.defnum3mmss = '03:00';\r\n vm.defnum4mmss = '04:00';\r\n vm.defnum5mmss = '05:00';\r\n vm.defnum1hhmmss = '01:00:00';\r\n vm.defnum2hhmmss = '02:00:00';\r\n vm.defnum3hhmmss = '03:00:00';\r\n vm.defnum4hhmmss = '04:00:00';\r\n vm.defnum5hhmmss = '05:00:00';\r\n vm.colordivenabled = false;\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n vm.saveBeforeColorWarning = false;\r\n var GridFelmeroTipus2 = null;\r\n var GridFelmeroElem2 = null;\r\n vm.PreloadFelmeroElemFej = -1;\r\n var types = [\r\n {text: gettextCatalog.getString('NumberInteger'), value: gettextCatalog.getString('NumberInteger')},\r\n {text: gettextCatalog.getString('NumberFraction'), value: gettextCatalog.getString('NumberFraction')},\r\n {text: gettextCatalog.getString('Text'), value: gettextCatalog.getString('Text')},\r\n {\r\n text: gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec')\r\n },\r\n {\r\n text: gettextCatalog.getString('TimeMinuteSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeMinuteSecHundredthOfASec')\r\n },\r\n {\r\n text: gettextCatalog.getString('TimeSecHundredthOfASec'),\r\n value: gettextCatalog.getString('TimeSecHundredthOfASec')\r\n }\r\n ];\r\n\r\n activate();\r\n\r\n CreateGridFelmeroTipus2();\r\n\r\n CreateGridFelmeroElem2();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], ['sectionId', 'FelmeroElemFej']),\r\n authenticationService.getRight('UJSPFELM'),\r\n authenticationService.getRight('MEGTSPFELM'),\r\n getSections()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.UJSPFELM = results[1];\r\n vm.MEGTSPFELM = results[2];\r\n resetColumnsFelmeroElem(true);\r\n if (!vm.MEGTSPFELM) {\r\n log.permissionError(true);\r\n }\r\n if (!vm.UJSPFELM) {\r\n $timeout(function () {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n }, 1000);\r\n }\r\n vm.sectionValue = results[0].sectionId;\r\n vm.selectedSection = results[0].sectionId;\r\n vm.FelmeroElemFej = results[0].FelmeroElemFej;\r\n vm.PreloadFelmeroElemFej = results[0].FelmeroElemFej;\r\n paramHelper.removeParam('sectionId');\r\n paramHelper.removeParam('FelmeroElemFej');\r\n if (vm.selectedSection > 0) {\r\n if (vm.FelmeroElemFej == 0) {\r\n NewFelmeroTipus();\r\n }\r\n }\r\n });\r\n }\r\n\r\n function CreateGridFelmeroTipus2() {\r\n GridFelmeroTipus2 = new ej2.grids.Grid({\r\n dataSource: vm.dataFelmeroElemFej,\r\n columns: vm.columnsFelmeroElemFej,\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n allowSelection: true,\r\n editSettings: {\r\n allowEditing: true, allowAdding: false, allowDeleting: false\r\n },\r\n selectionSettings: {type: 'Single', mode: 'Row'},\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: function (args) {\r\n console.log('Tipus Select', args);\r\n SelectFelmeroTipus(args);\r\n },\r\n dataBound: function () {\r\n if (vm.PreloadFelmeroElemFej > 0) {\r\n var idx = getFelmeroElemFejIndex(vm.PreloadFelmeroElemFej);\r\n GridFelmeroTipus2.selectRow(idx);\r\n }\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType == 'save') {\r\n SaveFelmeroTipusok();\r\n }\r\n }\r\n });\r\n GridFelmeroTipus2.appendTo('#GridFelmeroTipus2');\r\n }\r\n\r\n function CreateGridFelmeroElem2() {\r\n GridFelmeroElem2 = new ej2.grids.Grid({\r\n dataSource: vm.dataFelmeroElem,\r\n columns: vm.columnsFelmeroElem,\r\n toolbar: ['Add', 'Edit', 'Update', 'Cancel', 'Delete'],\r\n allowPaging: false,\r\n allowSorting: false,\r\n allowTextWrap: true,\r\n allowExcelExport: false,\r\n editSettings: {\r\n allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Inline', showConfirmDialog: false\r\n },\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n rowSelected: function (args) {\r\n SelectFelmeroElem(args);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType == 'add') {\r\n vm.colordivenabled = false;\r\n $scope.$apply();\r\n }\r\n if (args.requestType == 'save' && (args.action == 'add' || args.action == 'save')) {\r\n if (!args.data.TipusStr) {\r\n log.errorMsg(gettextCatalog.getString('TypeIsIncorrect') + ' ' + gettextCatalog.getString('AtLine') + ': ' + args.data.Nev);\r\n args.cancel = true;\r\n }\r\n if (!args.data.Sorrend) {\r\n var max = getMaxSorrend();\r\n if (max) {\r\n max = parseInt(max);\r\n } else {\r\n max = 0;\r\n }\r\n args.data.Sorrend = max + 1;\r\n GridFelmeroElem2.refresh();\r\n }\r\n }\r\n }\r\n });\r\n GridFelmeroElem2.appendTo('#GridFelmeroElem2');\r\n }\r\n\r\n function resetColumnsFelmeroElem(editable) {\r\n vm.columnsFelmeroElem = [];\r\n if (editable) {\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Add', 'Edit', 'Update', 'Cancel', 'Delete'];\r\n } else {\r\n GridFelmeroElem2.toolbar = [];\r\n }\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'FelmeroElemFejId',\r\n textAlign: 'center',\r\n allowEditing: false,\r\n visible: false\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n },\r\n {\r\n field: 'TipusStr',\r\n allowEditing: true,\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n width: 150,\r\n editType: 'dropdownedit',\r\n edit: {\r\n params: {\r\n fields: {value: 'value', text: 'text'},\r\n dataSource: types,\r\n query: new ej2.data.Query()\r\n }\r\n }\r\n },\r\n {\r\n field: 'ElvartEredmeny',\r\n headerText: gettextCatalog.getString('ExpectedResult'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 125\r\n },\r\n {\r\n field: 'Sorrend',\r\n headerText: gettextCatalog.getString('Order'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 100\r\n }\r\n ];\r\n } else {\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n } else {\r\n GridFelmeroElem2.toolbar = [];\r\n }\r\n GridFelmeroElem2.refresh();\r\n vm.columnsFelmeroElem = [\r\n {field: 'Id_FE', isPrimaryKey: true, isIdentity: true, visible: false},\r\n {\r\n field: 'FelmeroElemFejId',\r\n headerText: gettextCatalog.getString('FelmeroElemFejId'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n visible: false\r\n },\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('FelmeroElemNeve'),\r\n textAlign: 'center',\r\n allowEditing: true,\r\n width: 200\r\n },\r\n {\r\n field: 'TipusStr',\r\n headerText: gettextCatalog.getString('Type'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 150\r\n },\r\n {\r\n field: 'ElvartEredmeny',\r\n headerText: gettextCatalog.getString('ExpectedResult'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 125\r\n },\r\n {\r\n field: 'Sorrend',\r\n headerText: gettextCatalog.getString('Order'),\r\n textAlign: 'center',\r\n allowEditing: false,\r\n width: 100\r\n }\r\n ];\r\n }\r\n GridFelmeroElem2.columns = vm.columnsFelmeroElem;\r\n }\r\n\r\n function NewFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('SportSpecificTestTypeName'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel')\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.value.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('SportSpecificTestTypeNameMustBeAtLeast2CharactersLong'));\r\n } else {\r\n vm.dataFelmeroElemFej.push({\r\n FelmeroNeve: inputValue.value,\r\n Aktiv: true,\r\n SzakosztalyId: vm.sectionValue,\r\n Id_FEF: vm.newFefItemIndex--\r\n });\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n }\r\n });\r\n }\r\n }\r\n\r\n function DeleteFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected test type?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this test type'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteFelmeroElemFej(vm.selectedFelmeroElemFej).then(function () {\r\n vm.selectedFelmeroElemFej = undefined;\r\n LoadFelmeroTipusok(vm.sectionValue);\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function CopyFelmeroTipus() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" ><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('Section') +\r\n '</label><input class=\"col-lg-6 col-lg-offset-6\" id=\"sectionDropDownSwal\" ej-dropdownlist></div>' +\r\n '<div style=\"margin-top: 10px;\"><label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + gettextCatalog.getString('FelmeroNeve') +\r\n '</label><input id=\"copyfelmeroneve\" name=\"copyfelmeroneve\"></div>';\r\n swal({\r\n title: gettextCatalog.getString('CreateCopyOfSportSpecific'),\r\n html: HTMLtext,\r\n type: 'question',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n var copyName = document.getElementById('copyfelmeroneve').value;\r\n if (copyName.length > 0 && vm.athleteDataSwalSzakosztaly > 0) {\r\n if (copyName.length <= 1 || copyName.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('SportSpecificTestTypeNameMustBeAtLeast2CharactersLong'));\r\n return;\r\n }\r\n dataservice.FelmeroTipusMasolas(vm.selectedFelmeroElemFej, vm.athleteDataSwalSzakosztaly, copyName).then(function () {\r\n vm.sectionValue = vm.athleteDataSwalSzakosztaly;\r\n });\r\n } else {\r\n log.errorMsg('FillTheRequiredFieldsSectionAndTestName');\r\n }\r\n }\r\n }).then(function () {\r\n });\r\n angular.element('#sectionDropDownSwal').ejDropDownList({\r\n dataSource: vm.sectionList,\r\n select: selectSectionDropDownSwal,\r\n value: vm.athleteDataSwalSzakosztaly,\r\n databound: sectionSwalDatabound,\r\n width: '100%'\r\n });\r\n }\r\n }\r\n\r\n function SaveFelmeroTipusok() {\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n } else {\r\n dataservice.saveFelmeroElemFej(vm.dataFelmeroElemFej).then(function () {\r\n LoadFelmeroTipusok(vm.sectionValue);\r\n vm.selectedFelmeroElemFej = undefined;\r\n });\r\n }\r\n }\r\n\r\n function LoadFelmeroTipusok(section) {\r\n dataservice.getFelmeroElemFejList(section).then(function (arg) {\r\n vm.dataFelmeroElemFej = arg.itemsList;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n if (vm.FelmeroElemFej > 0) {\r\n vm.FelmeroElemFej = -1;\r\n }\r\n });\r\n }\r\n\r\n function SelectFelmeroTipus(args) {\r\n console.log('SelectFelmeroTipus', args);\r\n log.infoMsg(gettextCatalog.getString('DetailsAreShownInTheGridBelow'));\r\n vm.selectedFelmeroIsActive = args.data.Aktiv;\r\n vm.selectedFEFRowIndex = args.rowIndex;\r\n vm.FEEditEnable = !args.data.Used;\r\n if (args.data.Used) {\r\n resetColumnsFelmeroElem(false);\r\n vm.editableHint = gettextCatalog.getString('ThisTestTypeIsReadOnlyBecouseOneOrMoreTestsAreBasedOnThisTestType');\r\n GridFelmeroElem2.toolbar = [];\r\n if (vm.UJSPFELM) {\r\n GridFelmeroElem2.toolbar = ['Edit', 'Update', 'Cancel'];\r\n }\r\n } else {\r\n resetColumnsFelmeroElem(true);\r\n vm.editableHint = '';\r\n GridFelmeroElem2.toolbar = ['Add', 'Edit', 'Update', 'Cancel', 'Delete'];\r\n }\r\n vm.felmNev = args.data.FelmeroNeve;\r\n vm.selectedFelmeroElemFej = args.data.Id_FEF;\r\n vm.felmeroTipusKijelolve = true;\r\n vm.copyButtonEnabled = true;\r\n vm.deleteButtonEnabled = vm.FEEditEnable;\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n }\r\n\r\n function ActivateFelmeroTipus() {\r\n vm.dataFelmeroElemFej[vm.selectedFEFRowIndex].Aktiv = true;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n vm.selectedFEFRowIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.felmeroTipusKijelolve = false;\r\n }\r\n\r\n function InactivateFelmeroTipus() {\r\n vm.dataFelmeroElemFej[vm.selectedFEFRowIndex].Aktiv = false;\r\n GridFelmeroTipus2.dataSource = vm.dataFelmeroElemFej;\r\n SaveFelmeroTipusok();\r\n vm.selectedFEFRowIndex = -1;\r\n vm.felmeroTipusKijelolve = false;\r\n vm.copyButtonEnabled = false;\r\n vm.deleteButtonEnabled = false;\r\n vm.felmeroTipusKijelolve = false;\r\n }\r\n\r\n function DiscardFelmeroElem() {\r\n vm.colordivenabled = false;\r\n vm.copyButtonEnabled = true;\r\n enableFelmeroTipusGrid(true);\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n }\r\n\r\n function SelectFelmeroElem(args) {\r\n console.log('SelectFelmeroElem', args);\r\n enableFelmeroTipusGrid(false);\r\n vm.felmeroTipusKijelolve = false;\r\n vm.saveBeforeColorWarning = false;\r\n vm.felmElemNev = args.data.Nev;\r\n if (!(args.data.Id_FE) || args.data.Id_FE < 0) {\r\n vm.colordivenabled = false;\r\n $scope.$apply();\r\n vm.saveBeforeColorWarning = true;\r\n return;\r\n }\r\n vm.selectedFelmeroElem = args.data.Id_FE;\r\n vm.selectedFelmeroElemIndex = getFelmeroElemIndex(args.data.Id_FE);\r\n\r\n switch (args.data.Tipus) {\r\n case 1:\r\n vm.int = true;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 2:\r\n vm.int = false;\r\n vm.double = true;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 6:\r\n vm.int = false;\r\n vm.double = true;\r\n vm.mmss = false;\r\n vm.hhmmss = false;\r\n break;\r\n case 5: // MMSS\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = true;\r\n vm.hhmmss = false;\r\n break;\r\n case 4: // HHMMSS\r\n vm.int = false;\r\n vm.double = false;\r\n vm.mmss = false;\r\n vm.hhmmss = true;\r\n break;\r\n }\r\n if (args.data.Tipus == 1 || args.data.Tipus == 2 || args.data.Tipus == 6) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5;\r\n }\r\n } else if (args.data.Tipus == 4) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4hhmmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5hhmmss;\r\n }\r\n } else if (args.data.Tipus == 5) {\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1) {\r\n vm.num1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1;\r\n } else {\r\n vm.num1 = vm.defnum1mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2) {\r\n vm.num2 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2;\r\n } else {\r\n vm.num2 = vm.defnum2mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3) {\r\n vm.num3 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3;\r\n } else {\r\n vm.num3 = vm.defnum3mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4) {\r\n vm.num4 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4;\r\n } else {\r\n vm.num4 = vm.defnum4mmss;\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5) {\r\n vm.num5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5;\r\n } else {\r\n vm.num5 = vm.defnum5mmss;\r\n }\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1) {\r\n vm.color1 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1;\r\n } else {\r\n vm.color1 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12) {\r\n vm.color12 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12;\r\n } else {\r\n vm.color12 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23) {\r\n vm.color23 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23;\r\n } else {\r\n vm.color23 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34) {\r\n vm.color34 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34;\r\n } else {\r\n vm.color34 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45) {\r\n vm.color45 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45;\r\n } else {\r\n vm.color45 = '#ffffff';\r\n }\r\n if (vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5) {\r\n vm.color5 = vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5;\r\n } else {\r\n vm.color5 = '#ffffff';\r\n }\r\n vm.colordivenabled = (args.data.Tipus != 3);\r\n $scope.$apply();\r\n }\r\n\r\n function SaveFelmeroElemek() {\r\n GridFelmeroElem2.endEdit();\r\n GridFelmeroElem2.closeEdit();\r\n GridFelmeroElem2.editModule.endEdit();\r\n GridFelmeroElem2.editModule.batchSave();\r\n if (!vm.UJSPFELM) {\r\n log.permissionError();\r\n return;\r\n }\r\n vm.saveBeforeColorWarning = false;\r\n vm.colordivenabled = false;\r\n vm.dataFelmeroElem = GridFelmeroElem2.dataSource;\r\n if (vm.dataFelmeroElem.length == 0) {\r\n log.errorMsg(gettextCatalog.getString('TestMustNotBeEmpty'));\r\n return;\r\n }\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n vm.dataFelmeroElem[i].FelmeroElemFejId = vm.selectedFelmeroElemFej;\r\n switch (vm.dataFelmeroElem[i].TipusStr) {\r\n case gettextCatalog.getString('NumberInteger'):\r\n vm.dataFelmeroElem[i].Tipus = 1;\r\n break;\r\n case gettextCatalog.getString('NumberFraction'):\r\n vm.dataFelmeroElem[i].Tipus = 2;\r\n break;\r\n case gettextCatalog.getString('Text'):\r\n vm.dataFelmeroElem[i].Tipus = 3;\r\n break;\r\n case gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 4;\r\n break;\r\n case gettextCatalog.getString('TimeMinuteSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 5;\r\n break;\r\n case gettextCatalog.getString('TimeSecHundredthOfASec'):\r\n vm.dataFelmeroElem[i].Tipus = 6;\r\n break;\r\n default:\r\n log.errorMsg(gettextCatalog.getString('TypeIsIncorrect') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (vm.dataFelmeroElem[i].Sorrend == undefined || vm.dataFelmeroElem[i].Sorrend == null) {\r\n log.errorMsg(gettextCatalog.getString('OrderMustNotBeEmpty') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (!(vm.dataFelmeroElem[i].Sorrend >= 0)) {\r\n log.errorMsg(gettextCatalog.getString('OrderMustBeInteger') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (!vm.dataFelmeroElem[i].Nev || (vm.dataFelmeroElem[i].Nev && (vm.dataFelmeroElem[i].Nev.length < 2 || vm.dataFelmeroElem[i].Nev.length > 50))) {\r\n log.errorMsg(gettextCatalog.getString('TestNameMustBeBetween2and50Characters') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n if (vm.dataFelmeroElem[i].ElvartEredmeny && vm.dataFelmeroElem[i].ElvartEredmeny.length > 50) {\r\n log.errorMsg(gettextCatalog.getString('ExpectedResultMustBeAtMost50Characters') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n for (var j = 0; j < vm.dataFelmeroElem.length; j++) {\r\n if (i != j && vm.dataFelmeroElem[i].Sorrend == vm.dataFelmeroElem[j].Sorrend) {\r\n log.errorMsg(gettextCatalog.getString('DuplicatesInOrder') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev + ', ' + vm.dataFelmeroElem[j].Nev);\r\n return;\r\n }\r\n if (i != j && vm.dataFelmeroElem[i].Nev == vm.dataFelmeroElem[j].Nev) {\r\n log.errorMsg(gettextCatalog.getString('DuplicatesNames') + ' ' + gettextCatalog.getString('AtLine') + ': ' + vm.dataFelmeroElem[i].Nev);\r\n return;\r\n }\r\n }\r\n }\r\n console.log('vm.dataFelmeroElem', vm.dataFelmeroElem);\r\n dataservice.saveFelmeroElem(vm.dataFelmeroElem).then(function () {\r\n vm.felmeroTipusKijelolve = false;\r\n enableFelmeroTipusGrid(true);\r\n LoadFelmeroElemek(vm.selectedFelmeroElemFej);\r\n log.successMsg('SaveCompleted');\r\n });\r\n }\r\n\r\n function LoadFelmeroElemek(FEF_ID) {\r\n if (!FEF_ID) {\r\n return;\r\n }\r\n dataservice.getFelmeroElemList(FEF_ID).then(function (arg) {\r\n vm.dataFelmeroElem = arg.itemsList;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n switch (vm.dataFelmeroElem[i].Tipus) {\r\n case 1:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberInteger');\r\n break;\r\n case 2:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('NumberFraction');\r\n break;\r\n case 3:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('Text');\r\n break;\r\n case 4:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeHourMinuteSecHundredthOfASec');\r\n break;\r\n case 5:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeMinuteSecHundredthOfASec');\r\n break;\r\n case 6:\r\n vm.dataFelmeroElem[i].TipusStr = gettextCatalog.getString('TimeSecHundredthOfASec');\r\n break;\r\n default:\r\n vm.dataFelmeroElem[i].TipusStr = 'x';\r\n }\r\n }\r\n GridFelmeroElem2.dataSource = vm.dataFelmeroElem;\r\n if (!vm.UJSPFELM) {\r\n GridFelmeroElem2.editSettings = {\r\n allowEditing: false, allowAdding: false, allowDeleting: false\r\n };\r\n }\r\n $timeout(function () {\r\n GridFelmeroElem2.refresh();\r\n }, 100);\r\n });\r\n }\r\n\r\n function getMaxSorrend() {\r\n var maxSorrend = -1;\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].Sorrend > maxSorrend) {\r\n maxSorrend = vm.dataFelmeroElem[i].Sorrend;\r\n }\r\n }\r\n return maxSorrend;\r\n }\r\n\r\n function enableFelmeroTipusGrid(arg) {\r\n angular.element('#section').ejDropDownList({\r\n enabled: arg\r\n });\r\n var activateButton = angular.element('#activateFelmeroElemFej').data('ejButton');\r\n var inactivateButton = angular.element('#inactivateFelmeroElemFej').data('ejButton');\r\n GridFelmeroTipus2.editSettings.allowEditing = arg;\r\n GridFelmeroTipus2.allowSelection = arg;\r\n\r\n $timeout(function () {\r\n if (arg) {\r\n GridFelmeroTipus2.selectRow(vm.selectedFEFRowIndex);\r\n\r\n if (activateButton) {\r\n activateButton.enable();\r\n }\r\n if (inactivateButton) {\r\n inactivateButton.enable();\r\n }\r\n } else {\r\n //GridFelmeroTipus2.selectionSettings = {type: 'none', mode: 'none'};\r\n if (activateButton && !vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve) {\r\n activateButton.disable();\r\n }\r\n if (inactivateButton && vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve) {\r\n inactivateButton.disable();\r\n }\r\n }\r\n vm.copyButtonEnabled = arg && vm.felmeroTipusKijelolve;\r\n vm.deleteButtonEnabled = arg && vm.FEEditEnable;\r\n angular.element('#saveFelmeroElem').ejButton({enabled: !arg});\r\n angular.element('#discardFelmeroElem').ejButton({enabled: !arg});\r\n angular.element('#newFelmeroElemFej').ejButton({enabled: arg});\r\n //vm.colordivenabled = !arg;\r\n }, 100);\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList(0, true).then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionSelect(arg) {\r\n vm.felmeroTipusKijelolve = false;\r\n vm.selectedFelmeroElemFej = undefined;\r\n LoadFelmeroTipusok(arg.value);\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n vm.selectedSection = vm.sectionList[0].value;\r\n } else {\r\n angular.element('#section').ejDropDownList('selectItemByValue', vm.selectedSection);\r\n }\r\n }\r\n\r\n function sectionSwalDatabound() {\r\n if (vm.sectionList.length === 1) {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDownSwal').ejDropDownList('selectItemByValue', vm.athleteDataSwalSzakosztaly);\r\n }\r\n }\r\n\r\n function selectSectionDropDownSwal(arg) {\r\n vm.athleteDataSwalSzakosztaly = arg.value;\r\n vm.coachListSwal = [];\r\n angular.element('#secondSectionDropDownSwalDiv').addClass('ng-hide');\r\n }\r\n\r\n function applyColor() {\r\n $timeout(function () {\r\n if (vm.selectedFelmeroElemIndex >= 0) {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num1 = vm.num1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num2 = vm.num2;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num3 = vm.num3;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num4 = vm.num4;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].num5 = vm.num5;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = vm.color1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = vm.color12;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = vm.color23;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = vm.color34;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = vm.color45;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = vm.color5;\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('PleaseSelectFelmeroElem'),\r\n type: 'info',\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok')\r\n });\r\n }\r\n }, 100);\r\n }\r\n\r\n function setDefaultColors() {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = vm.defcolor1;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = vm.defcolor12;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = vm.defcolor23;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = vm.defcolor34;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = vm.defcolor45;\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = vm.defcolor5;\r\n vm.color1 = vm.defcolor1;\r\n vm.color12 = vm.defcolor12;\r\n vm.color23 = vm.defcolor23;\r\n vm.color34 = vm.defcolor34;\r\n vm.color45 = vm.defcolor45;\r\n vm.color5 = vm.defcolor5;\r\n $scope.$apply();\r\n }\r\n\r\n function clearColors() {\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color1 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color12 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color23 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color34 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color45 = '#ffffff';\r\n vm.dataFelmeroElem[vm.selectedFelmeroElemIndex].color5 = '#ffffff';\r\n vm.color1 = '#ffffff';\r\n vm.color12 = '#ffffff';\r\n vm.color23 = '#ffffff';\r\n vm.color34 = '#ffffff';\r\n vm.color45 = '#ffffff';\r\n vm.color5 = '#ffffff';\r\n $scope.$apply();\r\n }\r\n\r\n function getFelmeroElemIndex(felmeroElemId) {\r\n for (var i = 0; i < vm.dataFelmeroElem.length; i++) {\r\n if (vm.dataFelmeroElem[i].Id_FE == felmeroElemId) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n\r\n function getFelmeroElemFejIndex(felmeroElemFejId) {\r\n for (var i = 0; i < vm.dataFelmeroElemFej.length; i++) {\r\n if (vm.dataFelmeroElemFej[i].Id_FEF == felmeroElemFejId) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.createSportSpecificTest')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.createSportSpecificTest',\r\n config: {\r\n url: '/createSportSpecificTest',\r\n templateUrl: 'app/settings/createSportSpecificTest/createSportSpecificTest.html',\r\n controller: 'CreateSportSpecificTestController',\r\n controllerAs: 'vm',\r\n title: 'CreateSportSpecificTest',\r\n settings: {\r\n navId: 275,\r\n level: 2,\r\n order: 7,\r\n orderTitle_hu: 'Sportágspecifikus felmérőtípusok',\r\n orderTitle_en: 'Sport Specific Test',\r\n parentId: 5,\r\n content: 'CreateSportSpecificTest',\r\n activatorPermission: ['\"MEGTSPFELM\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.editHealthType')\r\n .controller('EditHealthTypeController', EditHealthTypeController);\r\n\r\n function EditHealthTypeController($q, paramHelper, gettextCatalog, $state, dataservice, logger, authenticationService, $rootScope, $scope, log, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('EditHealthType');\r\n\r\n vm.mainTypeColumns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 60},\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'Nev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n width: 150,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('HealthEventType')}\r\n }\r\n ];\r\n\r\n var mainTypeGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: (window.innerHeight - 550),\r\n pageSettings: $rootScope.pageSettings.pageSize,\r\n columns: vm.mainTypeColumns,\r\n beforePrint: function (args) {\r\n $rootScope.beforePrintGrid(args, ['Link']);\r\n },\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(mainTypeGrid, $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n if (!args.data) {\r\n return;\r\n }\r\n mainTypeGrid.clearSelection();\r\n vm.selectedMainTypeRow = args.data;\r\n vm.editDeleteMainTypeEnabled = vm.EGESZSMOD;\r\n vm.addNewSubType = vm.EGESZSMOD;\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(args.data.Id);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(mainTypeGrid);\r\n if (rowSelect.length === 0) {\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n subTypeGrid.dataSource = [];\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, mainTypeGrid);\r\n }\r\n });\r\n mainTypeGrid.appendTo('#MainTypeGrid');\r\n mainTypeGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, mainTypeGrid);\r\n };\r\n\r\n vm.subTypeColumns = [\r\n {field: 'Link', type: 'checkbox', textAlign: 'center', width: 100},\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'AltipusNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('HealthEventType')}\r\n }\r\n ];\r\n\r\n var subTypeGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n height: (window.innerHeight - 550),\r\n pageSettings: $rootScope.pageSettings.pageSize,\r\n columns: vm.subTypeColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(subTypeGrid, $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n subTypeGrid.clearSelection();\r\n vm.selectedSubTypeRow = args.data;\r\n vm.editDeleteSubTypeEnabled = vm.EGESZSMOD;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(subTypeGrid);\r\n if (rowSelect.length === 0) {\r\n vm.editDeleteSubTypeEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, subTypeGrid);\r\n }\r\n });\r\n subTypeGrid.appendTo('#SubTypeGrid');\r\n subTypeGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, subTypeGrid);\r\n };\r\n\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.editDeleteSubTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n vm.AddSubType = AddSubType;\r\n vm.AddMainType = AddMainType;\r\n vm.DeleteMainType = DeleteMainType;\r\n vm.DeleteSubType = DeleteSubType;\r\n vm.EditMainType = EditMainType;\r\n vm.EditSubType = EditSubType;\r\n vm.SearchSubTypeBySelectedRow = SearchSubTypeBySelectedRow;\r\n\r\n vm.EGESZSMOD = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('EGESZSMEGT'), authenticationService.getRight('EGESZSMOD')]).then(function (data) {\r\n $timeout(function () {\r\n if (!data[0]) {\r\n log.permissionError(true);\r\n }\r\n vm.EGESZSMOD = data[1];\r\n }, 10);\r\n if (data[0] || data[1] || data[2]) {\r\n getMainType();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function getMainType() {\r\n vm.editDeleteMainTypeEnabled = false;\r\n vm.addNewSubType = false;\r\n dataservice.healthMainTypesList().then(function (data) {\r\n mainTypeGrid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function SearchSubTypeBySelectedRow(arg) {\r\n dataservice.healthSubTypesList().then(function (data) {\r\n var subTypes = data.itemsList;\r\n subTypeGrid.dataSource = [];\r\n for (var i = 0; i < subTypes.length; i++) {\r\n if (subTypes[i].FotipusId === arg) {\r\n subTypeGrid.dataSource.push(subTypes[i]);\r\n }\r\n }\r\n });\r\n }\r\n\r\n function AddMainType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateNewMainTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1) {\r\n log.errorMsg(gettextCatalog.getString('AddMainTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthMainTypeManager({Id: -1, Nev: inputValue.value}).then(function (response) {\r\n if (response.statusText = 'OK') {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n getMainType();\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditMainType() {\r\n swal({\r\n title: gettextCatalog.getString('EditNewMainTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.selectedMainTypeRow.Nev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddMainTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthMainTypeManager({\r\n Id: vm.selectedMainTypeRow.Id,\r\n Nev: inputValue.value\r\n }).then(function (response) {\r\n if (response.statusText = 'OK') {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n }\r\n getMainType();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteMainType() {\r\n var warningText = '';\r\n if (subTypeGrid.dataSource.length > 0) {\r\n warningText = gettextCatalog.getString('This will delete all subType too.');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected mainType?'),\r\n type: 'warning',\r\n html: '<b style=\"color: red;\">' + warningText + '</b>',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this mainType'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteHealthMainType({mainTypeId: vm.selectedMainTypeRow.Id}).then(function () {\r\n vm.addNewSubType = false;\r\n vm.editDeleteSubTypeEnabled = false;\r\n getMainType()();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function AddSubType() {\r\n swal({\r\n title: gettextCatalog.getString('CreateNeSubTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (!inputValue || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddSubTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthSubTypeManager({\r\n Id: -1,\r\n AltipusNev: inputValue.value,\r\n FotipusId: vm.selectedMainTypeRow.Id\r\n }).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function EditSubType() {\r\n swal({\r\n title: gettextCatalog.getString('EditSubTypeTemplate'),\r\n type: 'info',\r\n input: 'text',\r\n inputValue: vm.selectedSubTypeRow.AltipusNev,\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (inputValue) {\r\n if (inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n return;\r\n }\r\n if (!inputValue || !inputValue.value || inputValue.value.length < 1 || inputValue.dismiss === 'cancel' || inputValue.dismiss === 'esc') {\r\n log.errorMsg(gettextCatalog.getString('AddSubTypeNameEmpty'));\r\n } else {\r\n dataservice.HealthSubTypeManager({\r\n Id: vm.selectedSubTypeRow.Id,\r\n FotipusId: vm.selectedMainTypeRow.Id,\r\n AltipusNev: inputValue.value\r\n }).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function DeleteSubType() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected subType?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this subType'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n dataservice.deleteHealthSubType({subTypeId: vm.selectedSubTypeRow.Id}).then(function () {\r\n vm.editDeleteSubTypeEnabled = false;\r\n SearchSubTypeBySelectedRow(vm.selectedMainTypeRow.Id);\r\n });\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.editHealthType')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.editHealthType',\r\n config: {\r\n url: '/editHealthType',\r\n templateUrl: 'app/settings/editHealthType/editHealthType.html',\r\n controller: 'EditHealthTypeController',\r\n controllerAs: 'vm',\r\n title: 'EditHealthType',\r\n settings: {\r\n navId: 295,\r\n level: 2,\r\n order: 9,\r\n orderTitle_hu: 'Egészségügyi bejegyzés típusok kezelése',\r\n orderTitle_en: 'Health Entry Type Management',\r\n parentId: 5,\r\n content: 'EditHealthType',\r\n activatorPermission: ['\"EGESZSMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.editSection')\r\n .controller('EditSectionController', EditSectionController);\r\n\r\n function EditSectionController(log, $q, paramHelper, dataservice, $rootScope, gettextCatalog, authenticationService, $state, $scope, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n\r\n $rootScope.title = '';\r\n vm.sectionLeaders = [];\r\n vm.sectionLeaders2 = [];\r\n vm.editSectionId = 0;\r\n vm.leader1DataBound = leader1DataBound;\r\n vm.leader2DataBound = leader2DataBound;\r\n vm.save = save;\r\n\r\n vm.section = {\r\n Aktiv: true,\r\n Csapat: false,\r\n Egyeni: false,\r\n Editable: true,\r\n SzakosztalyID: -1,\r\n SzakosztalyNeve: '',\r\n SzakosztalyVezeto1: '',\r\n SzakosztalyVezeto2: '',\r\n SzakosztalyVezetoId1: null,\r\n SzakosztalyVezetoId2: null,\r\n Szin: '#FFFFFF',\r\n SzovegSzin: '#000000',\r\n RuhaPapucs: false,\r\n RuhaCipo: false,\r\n RuhaMelegito: false,\r\n RuhaFurdokopeny: false,\r\n RuhaKabat: false,\r\n RuhaPancelnadrag: false,\r\n RuhaPolo: false,\r\n RuhaSort: false,\r\n RuhaUszonadrag: false\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n var promises = [\r\n paramHelper.getParams([], ['editSection.SectionId']),\r\n authenticationService.getRight('SZAKOSZTALY'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ADMIN'),\r\n getSectionLeaders()\r\n ];\r\n $q.all(promises).then(function (results) {\r\n if (results[1] !== true || (results[2] !== true && results[3] !== true)) {\r\n console.log('permissionError');\r\n log.permissionError(true);\r\n return;\r\n }\r\n vm.editSectionLeader = results[2] || results[3];\r\n vm.editSectionId = results[0]['editSection.SectionId'];\r\n if (vm.editSectionId > 0) {\r\n $rootScope.title = gettextCatalog.getString('EditSection');\r\n getSectionData(vm.editSectionId);\r\n } else {\r\n $rootScope.title = gettextCatalog.getString('AddSection');\r\n }\r\n });\r\n }\r\n\r\n function leader1DataBound() {\r\n if (vm.section.SzakosztalyVezetoId1 > 0) {\r\n angular.element('#leader1DropDown').ejDropDownList('selectItemByValue', vm.section.SzakosztalyVezetoId1);\r\n } else {\r\n angular.element('#leader1DropDown').ejDropDownList('selectItemByValue', vm.sectionLeaders[0].value);\r\n }\r\n }\r\n\r\n function leader2DataBound() {\r\n if (vm.section.SzakosztalyVezetoId2 > 0) {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', vm.section.SzakosztalyVezetoId2);\r\n } else {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', vm.sectionLeaders2[0].value);\r\n }\r\n }\r\n\r\n function getSectionLeaders() {\r\n dataservice.getSectionLeaders().then(function (response) {\r\n vm.sectionLeaders = response.itemsList;\r\n vm.sectionLeaders2 = [];\r\n vm.sectionLeaders2.push({value: -1, text: gettextCatalog.getString('None')});\r\n vm.sectionLeaders.forEach(function (section) {\r\n vm.sectionLeaders2.push(section);\r\n });\r\n });\r\n }\r\n\r\n function getSectionData(id) {\r\n dataservice.getSectionData(id).then(function (response) {\r\n vm.section = response.itemsList[0];\r\n $timeout(function () {\r\n if (!(vm.section.SzakosztalyVezetoId2 > 0)) {\r\n angular.element('#leader2DropDown').ejDropDownList('selectItemByValue', -1);\r\n }\r\n }, 333);\r\n });\r\n }\r\n\r\n function save() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n if (!(vm.section.Egyeni || vm.section.Csapat)) {\r\n log.htmlError(gettextCatalog.getString('PleaseSelectIndividualOrTeamSport'));\r\n return;\r\n }\r\n if (!vm.section.SzakosztalyNeve || vm.section.SzakosztalyNeve.trim().length < 4) {\r\n log.errorMsg(gettextCatalog.getString('MinimumLength4Character'), gettextCatalog.getString('PleaseTypeSectionName'));\r\n return;\r\n }\r\n dataservice.editSection(vm.section).then(function (result) {\r\n if (result.data.Error && result.data.Error.length > 0) {\r\n if (result.data.Error != null) {\r\n log.htmlError(result.data.Error.toString());\r\n return;\r\n }\r\n }\r\n log.successMsg(gettextCatalog.getString('SaveSuccessed'));\r\n $state.go('athletes.sections');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.editSection')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.editSection',\r\n config: {\r\n url: '/editSection',\r\n templateUrl: 'app/settings/editSection/editSection.html',\r\n controller: 'EditSectionController',\r\n controllerAs: 'vm',\r\n title: 'EditSection'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.addSchool')\r\n .controller('AddSchoolController', AddSchoolController);\r\n\r\n function AddSchoolController(log, $state, dataservice, authenticationService, gettextCatalog, $rootScope, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n vm.newSchool = {};\r\n vm.saveSchool = saveSchool;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('AddSchool');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function saveSchool() {\r\n vm.newSchool.Id = -1;\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.addSchool(vm.newSchool).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolSaved'));\r\n $state.go('settings.schoolManagement.schoolList');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.addSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.addSchool',\r\n config: {\r\n url: '/addSchool',\r\n templateUrl: 'app/settings/schoolManagement/addSchool/addSchool.html',\r\n controller: 'AddSchoolController',\r\n controllerAs: 'vm',\r\n title: 'AddSchool',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.editSchool')\r\n .controller('editSchoolController', editSchoolController);\r\n\r\n function editSchoolController(log, $state, dataservice, authenticationService, $q, gettextCatalog, $rootScope, paramHelper, $scope) {\r\n var vm = this; $rootScope.vm = vm;\r\n vm.params = [];\r\n vm.ModifySchool = ModifySchool;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('editSchool');\r\n\r\n activate();\r\n\r\n function activate() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n $q.all([paramHelper.getParams([], ['schoolManagement.editSchool'])]).then(function (results) {\r\n vm.params = results[0]['schoolManagement.editSchool'];\r\n });\r\n }\r\n });\r\n }\r\n\r\n function ModifySchool() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'));\r\n return;\r\n }\r\n return dataservice.editSchool(vm.params).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolModified'));\r\n $state.go('settings.schoolManagement.schoolList');\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.editSchool')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.editSchool',\r\n config: {\r\n url: '/editSchool',\r\n templateUrl: 'app/settings/schoolManagement/editSchool/editSchool.html',\r\n controller: 'editSchoolController',\r\n controllerAs: 'vm',\r\n title: 'editSchool',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.schoolList')\r\n .controller('SchoolListController', SchoolListController);\r\n\r\n function SchoolListController(dataservice, logger, authenticationService, gettextCatalog, $rootScope, $q, $state, paramHelper, $scope, $timeout, log) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('SchoolManagement');\r\n\r\n vm.selectedSchoolObject = '';\r\n vm.data = [];\r\n vm.editedRow = {};\r\n vm.editSchoolButtonEnabled = false;\r\n\r\n // Grid's details\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {\r\n field: 'IskolaNeve',\r\n headerText: gettextCatalog.getString('SchoolsName'),\r\n textAlign: 'center',\r\n width: 200,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('SchoolsNameIsRequired')}\r\n },\r\n {field: 'IskolaIrSzam', headerText: 'Ir.szám', textAlign: 'center', width: 100},\r\n {\r\n field: 'IskolaVaros',\r\n headerText: gettextCatalog.getString('City'),\r\n textAlign: 'center',\r\n width: 125,\r\n validationRules: {required: true},\r\n validationMessage: {required: gettextCatalog.getString('SchoolsCityIsRequired')}\r\n },\r\n {field: 'IskolaUtca', headerText: gettextCatalog.getString('Street'), textAlign: 'center', width: 115},\r\n {field: 'IskolaHazszam', headerText: gettextCatalog.getString('StreetNumber'), textAlign: 'center', width: 115},\r\n {field: 'IskolaIgazgatoNeve', headerText: gettextCatalog.getString('Director'), textAlign: 'center', width: 150}];\r\n\r\n // Public functions\r\n vm.selectedRow = selectedRow;\r\n vm.EndAdd = EndAdd;\r\n vm.EndEdit = EndEdit;\r\n vm.BeginEdit = BeginEdit;\r\n vm.EndDelete = EndDelete;\r\n vm.goToAddSchool = goToAddSchool;\r\n vm.goToEditSchool = goToEditSchool;\r\n vm.DeleteSchool = DeleteSchool;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJISKOLA')])\r\n .then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n dataservice.selectSchools()\r\n .then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n });\r\n }\r\n\r\n function goToAddSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n $state.go('settings.schoolManagement.addSchool');\r\n }\r\n });\r\n }\r\n\r\n function goToEditSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n paramHelper.setParams([{'schoolManagement.editSchool': vm.selectedSchoolObject.data}]);\r\n $state.go('settings.schoolManagement.editSchool');\r\n }\r\n });\r\n }\r\n\r\n function DeleteSchool() {\r\n authenticationService.getRight('UJISKOLA').then(function (results) {\r\n if (results !== true) {\r\n log.permissionError();\r\n } else {\r\n swal({title: gettextCatalog.getString('Are you sure you want to delete the selected school?'),\r\n text: gettextCatalog.getString('You will not be able to recover this school!'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this school'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function(isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteSchool(vm.selectedSchoolObject.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolDeleted'));\r\n log.htmlSuccess(gettextCatalog.getString('Deleted!'), vm.selectedSchoolObject.data.IskolaNeve + ' ' + gettextCatalog.getString('has been deleted!'));\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n function selectedRow(args) {\r\n vm.selectedSchoolObject = args;\r\n vm.editSchoolButtonEnabled = args != null;\r\n $scope.$apply();\r\n }\r\n\r\n function EndAdd(args) {\r\n args.data.Id = -1;\r\n return dataservice.addSchool(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolSaved'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('UnexpectedError'));\r\n });\r\n }\r\n\r\n function BeginEdit(args) {\r\n vm.editedRow = args.model.currentViewData[args.model.selectedRowIndex];\r\n }\r\n\r\n function EndEdit(args) {\r\n return dataservice.editSchool(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolModified'));\r\n });\r\n }\r\n\r\n function EndDelete(args) {\r\n return dataservice.deleteSchool(args.data.Id).then(function () {\r\n log.successMsg(gettextCatalog.getString('SchoolDeleted'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('UnexpectedError'));\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement.schoolList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement.schoolList',\r\n config: {\r\n url: '/schoolList',\r\n templateUrl: 'app/settings/schoolManagement/schoolList/schoolList.html',\r\n controller: 'SchoolListController',\r\n controllerAs: 'vm',\r\n title: 'SchoolManagement',\r\n settings: {\r\n navId: 285,\r\n level: 2,\r\n order: 8,\r\n orderTitle_hu: 'Iskolai adminisztáció',\r\n orderTitle_en: 'School Administration',\r\n parentId: 5,\r\n content: 'SchoolManagement',\r\n activatorPermission: ['\"UJISKOLA\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.schoolManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.schoolManagement',\r\n config: {\r\n url: '/schoolManagement',\r\n templateUrl: 'app/settings/schoolManagement/schoolManagement.html',\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings',\r\n config: {\r\n url: '/settings',\r\n templateUrl: 'app/settings/settings.html',\r\n title: 'Settings',\r\n settings: {\r\n navId: 5,\r\n level: 1,\r\n order: 5,\r\n parentId: 0,\r\n content: 'Settings',\r\n faIcon: 'fa-cogs',\r\n activatorPermission: ['\"MEGTEDZVALT\"', '\"MEGTEDZVALT\"', '\"MEGTSPFELM\"', '\"EGESZSMEGT\"', '\"EditSection\"', '\"AddSchool\"', '\"editSchool\"', '\"UJISKOLA\"',\r\n '\"BEALLITAS\"', '\"MEGTFELHCSOP\"', '\"MEGTFELH\"', '\"MEGTFELHJOG\"', '\"SPTARTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.systemSettings')\r\n .controller('SystemSettingsController', SystemSettingsController);\r\n\r\n function SystemSettingsController(log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SystemSettings');\r\n\r\n // Create variables\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.athleteRegistrationNumberRequiredValue = false;\r\n\r\n // Public functions\r\n vm.languageSelect = languageSelect;\r\n vm.expDocNotificationSelect = expDocNotificationSelect;\r\n vm.saveSystemSettings = saveSystemSettings;\r\n vm.saveSystemSettingValue = saveSystemSettingValue;\r\n vm.nf1Select = nf1Select;\r\n //vm.nf2Select = nf2Select; function nf2Select() {}\r\n vm.nf1databound = nf1databound;\r\n vm.nf2databound = nf2databound;\r\n vm.valasztottNyelv = undefined;\r\n vm.selectedExpDocGroup = 0;\r\n vm.NYELVEK = [];\r\n vm.expNotiList = [\r\n {value: 0, text: gettextCatalog.getString('Administrators')},\r\n {value: 1, text: gettextCatalog.getString('SectionLeader')},\r\n {value: 2, text: gettextCatalog.getString('Trainer')},\r\n {value: 3, text: gettextCatalog.getString('EconomicColleague')}\r\n ];\r\n vm.attendanceList = [\r\n {value: 0, text: gettextCatalog.getString('provenabsenceText')},\r\n {value: 1, text: gettextCatalog.getString('injuryText')},\r\n {value: 2, text: gettextCatalog.getString('Verseny')},\r\n {value: 3, text: gettextCatalog.getString('sicknessText')}\r\n ];\r\n vm.nf1list = [\r\n {value: 1, text: gettextCatalog.getString('Weekly')},\r\n {value: 2, text: gettextCatalog.getString('EverySecondWeek')},\r\n {value: 3, text: gettextCatalog.getString('Monthly')},\r\n {value: 4, text: gettextCatalog.getString('EverySecondMonth')},\r\n {value: 5, text: gettextCatalog.getString('EveryThirdMonth')}\r\n ];\r\n vm.nfWeeklyList = [\r\n {value: 1, text: gettextCatalog.getString('Monday')},\r\n {value: 2, text: gettextCatalog.getString('Tuesday')},\r\n {value: 3, text: gettextCatalog.getString('Wednesday')},\r\n {value: 4, text: gettextCatalog.getString('Thursday')},\r\n {value: 5, text: gettextCatalog.getString('Friday')},\r\n {value: 6, text: gettextCatalog.getString('Saturday')},\r\n {value: 0, text: gettextCatalog.getString('Sunday')}\r\n ];\r\n vm.nfDayList = [];\r\n for (var d = 1; d <= 31; d++) {\r\n vm.nfDayList.push({value: d, text: d.toString()});\r\n }\r\n vm.nf2list = [];\r\n vm.nf1 = -1;\r\n vm.nf2 = -1;\r\n vm.expNotiChecked = [];\r\n var JelenletTipus =\r\n {\r\n IgazoltHianyzas: 0,\r\n Serules: 1,\r\n Verseny: 2,\r\n Betegseg: 3\r\n };\r\n // Default beállítások\r\n vm.attendanceChecked = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n vm.languageSelected = false;\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('BEALLITAS')]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n var promises = [\r\n getSystemSettings('TAJKOTELEZO'),\r\n getSystemSettings('SNYSZKOTELEZO'),\r\n getSystemSettings('BEFSSZKULON'),\r\n getSystemSettings('FOLAPOLVASATLANOK'),\r\n getSystemSettings('FOLAPNYOMTATAS'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROJELENLETIK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHAVITERVEK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROEVESTERVEK'),\r\n getSystemSettings('FOLAPKIFIZETETLENTAGDIJAK'),\r\n getSystemSettings('FOLAPLINKEK'),\r\n getSystemSettings('FOLAPLEJARO'),\r\n getSystemSettings('SPORTMINKOTELEZO'),\r\n getSystemSettings('SPKORVALTTART'),\r\n getSystemSettings('HAVIEDZTERVJOVAHAGYKOT'),\r\n getSystemSettings('HETIEDZTERVJOVAHAGYKOT'),\r\n getSystemSettings('ESZKSPORTOLOKILEP'),\r\n getSystemSettings('ESZKUSERKILEP'),\r\n getSystemSettingsValue('LEJARODOCERTESITESTKAPNAK'),\r\n getSystemSettings('FOLAPELFOGADASRAVAROHETITERV'),\r\n getSystemSettings('NINCSOKTDIJ'),\r\n getSystemSettings('INAKTIVMENUREJTES'),\r\n getSystemSettingsValue('TAGDIJERTESGYAKORISAG'),\r\n getSystemSettingsValue('HETIEDZTURELMI'),\r\n getSystemSettingsValue('JELENLETNEKSZAMIT')\r\n ];\r\n $q.all(promises).then(function (results) {\r\n vm.socialSecurityNumberRequiredValue = results[0];\r\n vm.athleteRegistrationNumberRequiredValue = results[1];\r\n vm.paymentNumberSeparatelyValue = results[2];\r\n vm.FOLAPOLVASATLANOK = results[3];\r\n vm.FOLAPNYOMTATAS = results[4];\r\n vm.FOLAPELFOGADASRAVAROJELENLETIK = results[5];\r\n vm.FOLAPELFOGADASRAVAROHAVITERVEK = results[6];\r\n vm.FOLAPELFOGADASRAVAROEVESTERVEK = results[7];\r\n vm.FOLAPKIFIZETETLENTAGDIJAK = results[8];\r\n vm.FOLAPLINKEK = results[9];\r\n vm.FOLAPLEJARO = results[10];\r\n vm.SPORTMINKOTELEZO = results[11];\r\n vm.SPKORVALTTART = results[12];\r\n vm.HAVIEDZTERVJOVAHAGYKOT = results[13];\r\n vm.HETIEDZTERVJOVAHAGYKOT = results[14];\r\n vm.ESZKSPORTOLOKILEP = results[15];\r\n vm.ESZKUSERKILEP = results[16];\r\n if (results[17]) {\r\n vm.expNotiChecked = JSON.parse(results[17]);\r\n vm.LEJARODOCERTESITESTKAPNAK = JSON.parse(results[17]);\r\n }\r\n vm.FOLAPELFOGADASRAVAROHETITERV = results[18];\r\n vm.NINCSOKTDIJ = results[19];\r\n vm.INAKTIVMENUREJTES = results[20];\r\n if (results[21]) {\r\n var tagdijErtesites = JSON.parse(results[21]);\r\n if (tagdijErtesites) {\r\n vm.nf1 = tagdijErtesites.nf1;\r\n vm.nf2 = tagdijErtesites.nf2;\r\n }\r\n angular.element('#nf1').ejDropDownList('selectItemByValue', vm.nf1);\r\n angular.element('#nf2').ejDropDownList('selectItemByValue', vm.nf2);\r\n }\r\n vm.HETIEDZTURELMI = results[22];\r\n if (!vm.HETIEDZTURELMI) {\r\n vm.HETIEDZTURELMI = 365;\r\n }\r\n if (results[23]) {\r\n vm.attendanceChecked = JSON.parse(results[23]);\r\n vm.JELENLETNEKSZAMIT = JSON.parse(results[23]);\r\n } else {\r\n vm.JELENLETNEKSZAMIT = [JelenletTipus.IgazoltHianyzas, JelenletTipus.Serules, JelenletTipus.Betegseg];\r\n }\r\n getAvailableLanguages();\r\n $timeout(function () {\r\n angular.element('#expNotiList').ejListBox({checkedIndices: vm.LEJARODOCERTESITESTKAPNAK});\r\n angular.element('#attendanceList').ejListBox({checkedIndices: vm.JELENLETNEKSZAMIT});\r\n }, 500);\r\n });\r\n }\r\n });\r\n }\r\n\r\n function nf1databound() {\r\n if (vm.nf1 > 0) {\r\n angular.element('#nf1').ejDropDownList('selectItemByValue', vm.nf1);\r\n nf1Select({value: vm.nf1});\r\n }\r\n }\r\n\r\n function nf1Select(arg) {\r\n var ds2 = [];\r\n switch (arg.value){\r\n case 1:\r\n case 2:\r\n jQuery.extend(ds2, vm.nfWeeklyList);\r\n break;\r\n case 3:\r\n case 4:\r\n case 5:\r\n jQuery.extend(ds2, vm.nfDayList);\r\n break;\r\n }\r\n vm.nf2list = ds2;\r\n }\r\n\r\n function nf2databound() {\r\n if (vm.nf2 > 0) {\r\n angular.element('#nf2').ejDropDownList('selectItemByValue', vm.nf2);\r\n }\r\n }\r\n\r\n function languageSelect(arg) {\r\n vm.languageSelected = true;\r\n getKedvezmenyNevek(arg.value);\r\n getOktatasiKedvezmenyNevek(arg.value);\r\n }\r\n\r\n function expDocNotificationSelect(arg) {\r\n vm.selectedExpDocGroup = arg.value;\r\n }\r\n\r\n function getKedvezmenyNevek(language) {\r\n vm.kedvezmeny1 = undefined;\r\n vm.kedvezmeny2 = undefined;\r\n vm.kedvezmeny3 = undefined;\r\n vm.kedvezmeny4 = undefined;\r\n vm.kedvezmeny5 = undefined;\r\n dataservice.KedvezmenyNevek(language).then(function (response) {\r\n if (response.itemsList.length > 0) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n switch (response.itemsList[i].value) {\r\n case 'K1':\r\n vm.kedvezmeny1 = response.itemsList[i].text;\r\n break;\r\n case 'K2':\r\n vm.kedvezmeny2 = response.itemsList[i].text;\r\n break;\r\n case 'K3':\r\n vm.kedvezmeny3 = response.itemsList[i].text;\r\n break;\r\n case 'K4':\r\n vm.kedvezmeny4 = response.itemsList[i].text;\r\n break;\r\n case 'K5':\r\n vm.kedvezmeny5 = response.itemsList[i].text;\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n function getOktatasiKedvezmenyNevek(language) {\r\n vm.kedvezmenyokt1 = undefined;\r\n vm.kedvezmenyokt2 = undefined;\r\n vm.kedvezmenyokt3 = undefined;\r\n vm.kedvezmenyokt4 = undefined;\r\n vm.kedvezmenyokt5 = undefined;\r\n dataservice.OktatasiKedvezmenyNevek(language).then(function (response) {\r\n if (response.itemsList.length > 0) {\r\n for (var i = 0; i < response.itemsList.length; i++) {\r\n switch (response.itemsList[i].value) {\r\n case 'OK1':\r\n vm.kedvezmenyokt1 = response.itemsList[i].text;\r\n break;\r\n case 'OK2':\r\n vm.kedvezmenyokt2 = response.itemsList[i].text;\r\n break;\r\n case 'OK3':\r\n vm.kedvezmenyokt3 = response.itemsList[i].text;\r\n break;\r\n case 'OK4':\r\n vm.kedvezmenyokt4 = response.itemsList[i].text;\r\n break;\r\n case 'OK5':\r\n vm.kedvezmenyokt5 = response.itemsList[i].text;\r\n break;\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n function saveKedvezmenyNevek() {\r\n dataservice.KedvezmenyNevekMentes(vm.valasztottNyelv, vm.kedvezmeny1, vm.kedvezmeny2, vm.kedvezmeny3, vm.kedvezmeny4, vm.kedvezmeny5, vm.kedvezmenyokt1, vm.kedvezmenyokt2, vm.kedvezmenyokt3, vm.kedvezmenyokt4, vm.kedvezmenyokt5)\r\n .then(function () {\r\n });\r\n }\r\n\r\n function getAvailableLanguages() {\r\n dataservice.getAvailableLanguages().then(function (response) {\r\n vm.NYELVEK = response.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(valtozo) {\r\n return dataservice.getSystemSettings(valtozo).then(function (response) {\r\n return response.retValue;\r\n });\r\n }\r\n\r\n function getSystemSettingsValue(valtozo) {\r\n return dataservice.getSystemSettingsValue(valtozo).then(function (response) {\r\n if (response.hasOwnProperty('retValue')) {\r\n return response.retValue;\r\n }\r\n return null;\r\n });\r\n }\r\n\r\n function saveSystemSettings() {\r\n var ExpCheckedArray = [];\r\n $('#expNotiList').ejListBox('getCheckedItems').forEach(function (chk) {\r\n ExpCheckedArray.push(chk.index);\r\n });\r\n vm.LEJARODOCERTESITESTKAPNAK = JSON.stringify(ExpCheckedArray);\r\n var attendanceArray = [];\r\n $('#attendanceList').ejListBox('getCheckedItems').forEach(function (chk) {\r\n attendanceArray.push(chk.index);\r\n });\r\n vm.JELENLETNEKSZAMIT = JSON.stringify(attendanceArray);\r\n vm.TAGDIJERTESGYAKORISAG = JSON.stringify({nf1: vm.nf1, nf2: vm.nf2});\r\n $q.all([\r\n saveSystemSetting('TAJKOTELEZO', vm.socialSecurityNumberRequiredValue),\r\n saveSystemSetting('SNYSZKOTELEZO', vm.athleteRegistrationNumberRequiredValue),\r\n saveSystemSetting('BEFSSZKULON', vm.paymentNumberSeparatelyValue),\r\n saveSystemSetting('FOLAPOLVASATLANOK', vm.FOLAPOLVASATLANOK),\r\n saveSystemSetting('FOLAPNYOMTATAS', vm.FOLAPNYOMTATAS),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROJELENLETIK', vm.FOLAPELFOGADASRAVAROJELENLETIK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROHAVITERVEK', vm.FOLAPELFOGADASRAVAROHAVITERVEK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROEVESTERVEK', vm.FOLAPELFOGADASRAVAROEVESTERVEK),\r\n saveSystemSetting('FOLAPKIFIZETETLENTAGDIJAK', vm.FOLAPKIFIZETETLENTAGDIJAK),\r\n saveSystemSetting('FOLAPLINKEK', vm.FOLAPLINKEK),\r\n saveSystemSetting('FOLAPLEJARO', vm.FOLAPLEJARO),\r\n saveSystemSetting('SPORTMINKOTELEZO', vm.SPORTMINKOTELEZO),\r\n saveSystemSetting('SPKORVALTTART', vm.SPKORVALTTART),\r\n saveSystemSetting('HAVIEDZTERVJOVAHAGYKOT', vm.HAVIEDZTERVJOVAHAGYKOT),\r\n saveSystemSetting('HETIEDZTERVJOVAHAGYKOT', vm.HETIEDZTERVJOVAHAGYKOT),\r\n saveSystemSetting('ESZKSPORTOLOKILEP', vm.ESZKSPORTOLOKILEP),\r\n saveSystemSetting('ESZKUSERKILEP', vm.ESZKUSERKILEP),\r\n saveSystemSettingValue('LEJARODOCERTESITESTKAPNAK', vm.LEJARODOCERTESITESTKAPNAK),\r\n saveSystemSetting('FOLAPELFOGADASRAVAROHETITERV', vm.FOLAPELFOGADASRAVAROHETITERV),\r\n saveSystemSetting('NINCSOKTDIJ', vm.NINCSOKTDIJ),\r\n saveSystemSetting('INAKTIVMENUREJTES', vm.INAKTIVMENUREJTES),\r\n saveSystemSettingValue('TAGDIJERTESGYAKORISAG', vm.TAGDIJERTESGYAKORISAG),\r\n saveSystemSettingValue('HETIEDZTURELMI', vm.HETIEDZTURELMI),\r\n saveSystemSettingValue('JELENLETNEKSZAMIT', vm.JELENLETNEKSZAMIT)\r\n ]).then(function () {\r\n $rootScope.INAKTIVMENUREJTES = vm.INAKTIVMENUREJTES;\r\n log.successMsg(gettextCatalog.getString('SavedSuccessful'));\r\n })\r\n .catch(function () {\r\n log.errorMsg(gettextCatalog.getString('SaveUnsuccessful'));\r\n });\r\n if (vm.languageSelected) {\r\n saveKedvezmenyNevek();\r\n }\r\n }\r\n\r\n function saveSystemSetting(valtozo, ertek) {\r\n return dataservice.saveSystemSettings(valtozo, ertek).then(function () {\r\n });\r\n }\r\n\r\n function saveSystemSettingValue(valtozo, ertek) {\r\n return dataservice.saveSystemSettingsValue(valtozo, ertek).then(function () {\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.systemSettings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.systemSettings',\r\n config: {\r\n url: '/systemSettings',\r\n templateUrl: 'app/settings/systemSettings/systemSettings.html',\r\n controller: 'SystemSettingsController',\r\n controllerAs: 'vm',\r\n title: 'SystemSettings',\r\n settings: {\r\n navId: 2105,\r\n level: 2,\r\n order: 10,\r\n orderTitle_hu: 'Rendszerbeállítások',\r\n orderTitle_en: 'System Settings',\r\n parentId: 5,\r\n content: 'SystemSettings',\r\n activatorPermission: ['\"BEALLITAS\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userGroupsManagement')\r\n .controller('UserGroupsManagementController', UserGroupsManagementController);\r\n\r\n function UserGroupsManagementController($q, paramHelper, gettextCatalog, $state, dataservice, logger, authenticationService, $rootScope, $scope, log, $timeout) {\r\n var vm = this; $rootScope.vm = vm;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserGroups');\r\n\r\n vm.data = [];\r\n vm.newgrouptitle = gettextCatalog.getString('AddNewUserGroup');\r\n vm.editgrouptitle = gettextCatalog.getString('EditUserGroup');\r\n\r\n vm.columns = [\r\n {field: 'Id', visible: false, isPrimaryKey: true},\r\n {field: 'Nev', headerText: gettextCatalog.getString('Name'), textAlign: 'center', width: 175, validationRules: {required: true}, validationMessage: {required: gettextCatalog.getString('GroupNameRequrired')}},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Description'), textAlign: 'center', width: 250}\r\n ];\r\n\r\n vm.deleteGroupEnabled = false;\r\n vm.setGroupRightsEnabled = false;\r\n vm.selectedGroupId = -1;\r\n vm.EndAdd = EndAdd;\r\n vm.EndEdit = EndEdit;\r\n vm.selectedRow = selectedRow;\r\n vm.DeleteGroup = DeleteGroup;\r\n vm.ManageRights = ManageRights;\r\n vm.EditGroup = EditGroup;\r\n vm.AddGroup = AddGroup;\r\n vm.newgroupCancel = newgroupCancel;\r\n vm.newgroupSave = newgroupSave;\r\n vm.editgroupCancel = editgroupCancel;\r\n vm.editgroupSave = editgroupSave;\r\n\r\n vm.MEGTFELHCSOP = false;\r\n vm.MODFELHCSOP = false;\r\n vm.UJFELHCSOP = false;\r\n vm.MEGTFELHJOG = false;\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowTextWrap: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowDeleting: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowSelected: vm.selectedRow,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(angular.element('#Grid'), $scope);\r\n }\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('MEGTFELHCSOP'), authenticationService.getRight('MODFELHCSOP'), authenticationService.getRight('UJFELHCSOP'), authenticationService.getRight('MEGTFELHJOG')]).then(function (data) {\r\n $timeout(function () {\r\n vm.MEGTFELHCSOP = data[0];\r\n vm.MODFELHCSOP = data[1];\r\n vm.UJFELHCSOP = data[2];\r\n vm.MEGTFELHJOG = data[3];\r\n }, 10);\r\n if (data[0] || data[1] || data[2]) {\r\n getUserGroupList();\r\n } else {\r\n log.permissionError(true);\r\n }\r\n });\r\n }\r\n\r\n function AddGroup() {\r\n vm.newgroup = {};\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function newgroupCancel() {\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function newgroupSave() {\r\n var dialogObj = angular.element('#newgroup').data('ejDialog');\r\n if (vm.newgroup && vm.newgroup.Nev) {\r\n vm.newgroup.Id = -1;\r\n dialogObj.close();\r\n dataservice.addUserGroup(vm.newgroup).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.deleteGroupEnabled = false;\r\n activate();\r\n });\r\n } else {\r\n dialogObj.close();\r\n log.errorMsg(gettextCatalog.getString('NewUserGroupMustHaveNameAndType'));\r\n }\r\n }\r\n\r\n function editgroupCancel() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.close();\r\n }\r\n\r\n function editgroupSave() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.close();\r\n dataservice.editUserGroup(vm.editgroup).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n vm.deleteGroupEnabled = false;\r\n activate();\r\n });\r\n }\r\n\r\n function DeleteGroup() {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to delete the selected user group?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes, delete this user group'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n closeOnConfirm: false,\r\n closeOnCancel: false\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.deleteUserGroup(vm.selectedGroupId).then(function () {\r\n activate();\r\n });\r\n }\r\n });\r\n }\r\n\r\n function ManageRights() {\r\n paramHelper.setParams([{'usergroupid': vm.selectedGroupId}]);\r\n $state.go('settings.userRights');\r\n }\r\n\r\n function EditGroup() {\r\n var dialogObj = angular.element('#editgroup').data('ejDialog');\r\n dialogObj.open();\r\n }\r\n\r\n function selectedRow(args) {\r\n vm.editgroup = args.data;\r\n vm.selectedGroupId = args.data.Id;\r\n vm.deleteGroupEnabled = args != null && vm.MODFELHCSOP;\r\n vm.setGroupRightsEnabled = args != null && vm.MEGTFELHJOG;\r\n $scope.$apply();\r\n }\r\n\r\n function getUserGroupList() {\r\n dataservice.getUserGroupList().then(function (data) {\r\n vm.data = data.itemsList;\r\n grid.dataSource = vm.data;\r\n });\r\n }\r\n\r\n function EndEdit(args) {\r\n dataservice.editUserGroup(args.data).then(function () {\r\n getUserGroupList();\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n });\r\n }\r\n\r\n function EndAdd(args) {\r\n args.data.Id = -1;\r\n dataservice.addUserGroup(args.data).then(function () {\r\n log.successMsg(gettextCatalog.getString('saveSuccess'));\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userGroupsManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userGroupsManagement',\r\n config: {\r\n url: '/userGroups',\r\n templateUrl: 'app/settings/userGroups/userGroupsManagement.html',\r\n controller: 'UserGroupsManagementController',\r\n controllerAs: 'vm',\r\n title: 'UserGroupsManagement',\r\n settings: {\r\n navId: 225,\r\n level: 2,\r\n order: 2,\r\n orderTitle_hu: 'Felhasználói csoportok kezelése',\r\n orderTitle_en: 'User Groups Management',\r\n parentId: 5,\r\n content: 'UserGroupsManagement',\r\n activatorPermission: ['\"MEGTFELHCSOP\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.modifyUser')\r\n .controller('modifyUserController', modifyUserController);\r\n\r\n function modifyUserController($q, log, VIEW_DATA, dataservice, DOMAIN, authenticationService, $rootScope, AUTH_EVENTS, $scope, gettextCatalog, paramHelper, $state, $filter, $timeout) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('ModifyUser');\r\n\r\n // Dropdowns\r\n vm.autoSave = true;\r\n vm.sectionLeaderChangeEnable = false;\r\n vm.sectionLeaderList = [];\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.userGroupList = [];\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.passwordAgain = undefined;\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n vm.formData = {\r\n id: undefined,\r\n name: undefined,\r\n userGroupId: undefined,\r\n loginName: undefined,\r\n email: undefined,\r\n password: undefined,\r\n passwordExpiryDate: undefined,\r\n fileData: null,\r\n fileName: null,\r\n address: undefined,\r\n contact: undefined,\r\n socialSecurityNumber: undefined,\r\n color: '#000000',\r\n monthlyAttendanceRegister: undefined,\r\n activeUser: true,\r\n mainWorkPlace: undefined,\r\n qualifications: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n identityCardNumber: undefined,\r\n sex: undefined,\r\n passportNumber: undefined,\r\n otherInformation: undefined,\r\n autoSave: true\r\n };\r\n\r\n vm.changeUserGroup = changeUserGroup;\r\n vm.colorChanged = colorChanged;\r\n vm.monthlyAttendanceRegisterChanged = monthlyAttendanceRegisterChanged;\r\n vm.activeChange = activeChange;\r\n vm.autoSaveCheckboxChanged = autoSaveCheckboxChanged;\r\n vm.sectionLeaderChecked = sectionLeaderChecked;\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.changeSex = changeSex;\r\n vm.sectionLeader = false;\r\n\r\n vm.selectedItems = [0, 1];\r\n vm.saveUser = saveUser;\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.newAsset = {};\r\n vm.TakeBackComment = '';\r\n vm.IssueComment = '';\r\n vm.chooseEnabled = false;\r\n vm.takebackEnabled = false;\r\n vm.issuedAssets = [];\r\n vm.selectedAssets = [];\r\n vm.types = [];\r\n vm.assetColumns = [\r\n {field: 'EszkozId', visible: false, isPrimaryKey: true, width: 100},\r\n {type: 'checkbox', textAlign: 'center', width: 100},\r\n {field: 'Megnevezes', headerText: gettextCatalog.getString('Megnevezes'), textAlign: 'center', width: 150},\r\n {field: 'Leiras', headerText: gettextCatalog.getString('Leiras'), textAlign: 'center', width: 125},\r\n {field: 'Azonosito', headerText: gettextCatalog.getString('Azonosito'), textAlign: 'center', width: 125},\r\n {field: 'Meret', headerText: gettextCatalog.getString('Meret'), textAlign: 'center', width: 125},\r\n {field: 'Ar', headerText: gettextCatalog.getString('Ar'), textAlign: 'center', width: 125}\r\n ];\r\n\r\n var usersAssetGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(usersAssetGrid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(usersAssetGrid);\r\n if (rowSelect.length > 0) {\r\n vm.takebackEnabled = true;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(usersAssetGrid);\r\n if (rowSelect.length == 0) {\r\n vm.takebackEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n });\r\n usersAssetGrid.appendTo('#UsersAssetGrid');\r\n usersAssetGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, usersAssetGrid);\r\n };\r\n\r\n var AssetGrid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n allowTextWrap: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.assetColumns,\r\n selectionSettings: {type: 'multiple', mode: 'Both'},\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile(AssetGrid, $scope);\r\n }\r\n },\r\n rowSelected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(AssetGrid);\r\n if (rowSelect.length > 0) {\r\n vm.chooseEnabled = true;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n },\r\n rowDeselected: function () {\r\n var rowSelect = $rootScope.gridSelectedRowIndex(AssetGrid);\r\n if (rowSelect.length == 0) {\r\n vm.chooseEnabled = false;\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 0);\r\n }\r\n }\r\n });\r\n AssetGrid.appendTo('#AssetGrid');\r\n AssetGrid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, AssetGrid);\r\n };\r\n\r\n vm.IssueAsset = IssueAsset;\r\n vm.Issue = Issue;\r\n vm.IssueNewAsset = IssueNewAsset;\r\n vm.TakeBack = TakeBack;\r\n vm.deleteImg = deleteImg;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.goToFiles = goToFiles;\r\n vm.socialSecurityNumberRequiredValue = false;\r\n vm.SPORTOLOADATLAP = false;\r\n vm.SZULOADATLAP = false;\r\n vm.GAZDASAGIADATLAP = false;\r\n vm.LIMITEDUSER = false;\r\n vm.SZAKOSZTVEZADATLAP = false;\r\n vm.EDZOADATLAP = false;\r\n vm.ESZKMOZG = false;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams(['newUser.userId'], []),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('EDZO'),\r\n authenticationService.getAuthData(),\r\n authenticationService.getRight('ADMIN'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('MEGTFELH'),\r\n authenticationService.getRight('SZULO'),\r\n authenticationService.getRight('SPORTOLO'),\r\n authenticationService.getRight('SZAKOSZTVEZ'),\r\n authenticationService.getRight('ESZKMOZG'),\r\n getSectionLeaderListBox(),\r\n getAgeGroupTreeView()\r\n ])\r\n .then(function (results1) {\r\n if (results1[1] !== true && results1[6] !== true && results1[7] !== true && results1[8] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n $q.all([getUsersUserGroup(results1[0]['newUser.userId'])]).then(function (results2) {\r\n $q.all([getUserGroupDropDownList(results2[0])]).then(function () {\r\n vm.GROUP = results2[0];\r\n vm.EDZO = results1[2];\r\n vm.ADMIN = results1[4];\r\n vm.MODFELH = results1[5];\r\n vm.SZULO = results1[7];\r\n vm.SPORTOLO = results1[8];\r\n vm.SZAKOSZTVEZ = results1[9];\r\n vm.ESZKMOZG = results1[10];\r\n vm.user = results1[3];\r\n vm.userId = results1[0]['newUser.userId'];\r\n getUser(results1[0]['newUser.userId']);\r\n IssuedAssets(vm.userId);\r\n getSystemSettings('TAJKOTELEZO');\r\n });\r\n });\r\n }\r\n });\r\n }\r\n\r\n function getUserGroupDropDownList(group) {\r\n if (!group || group == '') {\r\n group = 'showall';\r\n }\r\n return dataservice.getFullUserGroupList(group)\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n dataservice.getSystemSettings(arg).then(function (response) {\r\n vm.socialSecurityNumberRequiredValue = response.retValue;\r\n });\r\n }\r\n\r\n function getUsersUserGroup(userid) {\r\n return dataservice.UsersUserGroup(userid)\r\n .then(function (data) {\r\n vm.LIMITEDUSER = false;\r\n for (var i = 0; i < data.data.length; i++) {\r\n switch (data.data[i]) {\r\n case 'SZULO':\r\n vm.SZULOADATLAP = true;\r\n vm.LIMITEDUSER = true;\r\n break;\r\n case 'SPORTOLO':\r\n vm.SPORTOLOADATLAP = true;\r\n vm.LIMITEDUSER = true;\r\n break;\r\n case 'GAZDASAGI':\r\n vm.GAZDASAGIADATLAP = true;\r\n break;\r\n case 'SZAKOSZTVEZ':\r\n vm.SZAKOSZTVEZADATLAP = true;\r\n break;\r\n case 'EDZO':\r\n vm.EDZOADATLAP = true;\r\n break;\r\n default:\r\n }\r\n }\r\n return data.data;\r\n });\r\n }\r\n\r\n function getUser(userId) {\r\n return dataservice.getUserData(userId)\r\n .then(function (data) {\r\n angular.element('#sex').ejDropDownList('selectItemByValue', data.retValue.ferfib);\r\n data.retValue.birthDate = $filter('datetimeFilter')(data.retValue.birthDate);\r\n data.retValue.passwordExpiryDate = $filter('dateStringFilter')(data.retValue.passwordExpiryDate);\r\n vm.formData = data.retValue;\r\n angular.element('#userGroup').ejDropDownList('selectItemByValue', vm.formData.userGroupId);\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n vm.colorValue = vm.formData.color;\r\n angular.forEach(vm.sectionLeaderList, function (section, sectionIndex) {\r\n angular.forEach(vm.formData.sectionsLeader, function (sectionId) {\r\n if (section.value === sectionId) {\r\n angular.element('#sectionListBox').ejListBox('checkItemByIndex', sectionIndex);\r\n }\r\n });\r\n });\r\n angular.forEach(vm.formData.ageGroups, function (ageGroup) {\r\n angular.element('#ageGroupTreeView').ejTreeView('checkNode', angular.element('#' + ageGroup));\r\n });\r\n angular.element('#activeCheckBox').ejCheckBox({checked: data.retValue.activeUser});\r\n angular.element('#monthlyAttendanceRegister').ejCheckBox({checked: data.retValue.monthlyAttendanceRegister});\r\n vm.sectionLeaderChangeEnable = true;\r\n });\r\n }\r\n\r\n function changeUserGroup(args) {\r\n vm.formData.userGroupId = args.value;\r\n dataservice.getSectionHasSectionLeaderRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#sectionListBox').ejListBox('enable');\r\n } else {\r\n angular.element('#sectionListBox').ejListBox('disable');\r\n }\r\n });\r\n dataservice.getSectionHasCoachRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#ageGroupTreeView').ejTreeView({enabled: true});\r\n } else {\r\n angular.element('#ageGroupTreeView').ejTreeView({enabled: false});\r\n }\r\n });\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function monthlyAttendanceRegisterChanged(args) {\r\n vm.formData.monthlyAttendanceRegister = args.value;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.formData.activeUser = args.value;\r\n }\r\n\r\n function autoSaveCheckboxChanged(args) {\r\n vm.formData.autoSave = args.value;\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n return dataservice.getSectionLeaderListBox()\r\n .then(function (data) {\r\n vm.sectionLeaderList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionLeaderChecked(args) {\r\n if (vm.sectionLeaderChangeEnable) {\r\n if (args.isChecked === true) {\r\n if (!args.data.VezetoNev) {\r\n args.data.VezetoNev = gettextCatalog.getString('PrimarySectionLeader');\r\n }\r\n if (!args.data.VezetoNev2) {\r\n args.data.VezetoNev2 = gettextCatalog.getString('SecondarySectionLeader');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('ReplaceQuestion'),\r\n html: '<p>' + gettextCatalog.getString('WhichLeaderDoYouWantToReplace') + '</p><p>' + gettextCatalog.getString('ActualSectionLeadersText') + ': </p><div><button class=\"cts-button\" id=\"leader1\">' + args.data.VezetoNev + '</button>' + '<button class=\"cts-button\" id=\"leader2\">' + args.data.VezetoNev2 + '</button></div><div style=\"text-align: center;\"><br><br><button class=\"cts-button auto-width\" id=\"cancel-button\">' + gettextCatalog.getString('Cancel') + '</button></div>',\r\n showCancelButton: false,\r\n showConfirmButton: false,\r\n closeOnCancel: false,\r\n allowOutsideClick: false\r\n });\r\n angular.element('#leader1').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 1);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#leader2').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 2);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#cancel-button').ejButton({\r\n click: function () {\r\n angular.element('#sectionListBox').ejListBox('uncheckItemByIndex', args.index);\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n vm.sectionLeaderList[args.index].replace = 3;\r\n }\r\n }\r\n }\r\n\r\n function replaceLeader(index, replace) {\r\n vm.sectionLeaderList[index].replace = replace;\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n return dataservice.getAgeGroupTreeView()\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function changeSex(args) {\r\n vm.formData.sex = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.MODFELH || (vm.SZULOADATLAP && vm.SZULO) || (vm.SPORTOLOADATLAP && vm.SPORTOLO)) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'), gettextCatalog.getString('FillTheRequiredFields'));\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n // kiválasztott korosztályok\r\n vm.formData.ageGroupList = [];\r\n var tmp = angular.element('#ageGroupTreeView').ejTreeView('getCheckedNodesIndex');\r\n angular.forEach(tmp, function (value) {\r\n if (vm.ageGroupList[value].hasChild === false) {\r\n vm.formData.ageGroupList.push(vm.ageGroupList[value]);\r\n }\r\n });\r\n // szakosztály, amiknek a vezetője\r\n vm.formData.sectionsLeaderList = vm.sectionLeaderList;\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n vm.formData.socialSecurityNumber = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n dataservice.modifyUser(vm.formData).then(function (data) {\r\n if (data) {\r\n var currentId = parseInt(authenticationService.getAuthData().id);\r\n if (currentId === vm.formData.id) {\r\n $rootScope.$broadcast(AUTH_EVENTS.refreshProfilePic, data.image);\r\n }\r\n log.successMsg('UserModified');\r\n if (vm.SPORTOLOADATLAP || vm.SZULOADATLAP) {\r\n $rootScope.back();\r\n } else {\r\n $state.go('settings.userManagement.userList');\r\n }\r\n }\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToFiles() {\r\n if (vm.MODFELH) {\r\n paramHelper.setParams([{'files.tipus': 'Felhasznalok'}, {'files.tablaId': vm.formData.id}]);\r\n $state.go('other.files');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.formData.ferfib ? 'male' : 'female';\r\n vm.formData.fileName = 'coach_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n\r\n function IssuedAssets(userid) {\r\n dataservice.IssuedAssets(0, userid).then(function (response) {\r\n usersAssetGrid.dataSource = response.data;\r\n });\r\n }\r\n\r\n function getSelectedAssets() {\r\n var row = $rootScope.getSelectedItems(usersAssetGrid);\r\n usersAssetGrid.refresh();\r\n return vm.selectedAssets;\r\n }\r\n\r\n function getSelectedAssetIds(selectGrid) {\r\n var selectedAssets = $rootScope.getSelectedItems(selectGrid);\r\n var assetIds = [];\r\n selectedAssets.forEach(function (asset) {\r\n assetIds.push(asset.EszkozId);\r\n });\r\n return assetIds;\r\n }\r\n\r\n function IssueAsset() {\r\n if (vm.ESZKMOZG) {\r\n angular.element('#issueDialog').data('ejDialog').open();\r\n dataservice.AssetsByType(0, 'issuable').then(function (data) {\r\n AssetGrid.dataSource = data.data;\r\n });\r\n dataservice.assetTypeList().then(function (data) {\r\n vm.types = data.itemsList;\r\n vm.types.forEach(function (item) {\r\n item.value = item.TipusId;\r\n item.text = item.TipusNev;\r\n });\r\n });\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function IssueNewAsset() {\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n vm.chooseEnabled = false;\r\n var HTMLtext = createHtmlSwalContent([\r\n {id: 'Megnevezes', text: gettextCatalog.getString('Megnevezes'), value: ''},\r\n {id: 'Leiras', text: gettextCatalog.getString('Leiras'), value: ''},\r\n {id: 'Azonosito', text: gettextCatalog.getString('Azonosito'), value: ''},\r\n {id: 'Meret', text: gettextCatalog.getString('Meret'), value: ''},\r\n {id: 'Ar', text: gettextCatalog.getString('Ar'), value: ''},\r\n {id: 'darab', text: gettextCatalog.getString('NumberMassAdd'), value: ''},\r\n {id: 'AssetType', text: gettextCatalog.getString('AssetType'), value: '', ac: true}\r\n ]);\r\n swal({\r\n title: gettextCatalog.getString('CreateAsset'),\r\n html: HTMLtext,\r\n type: 'info',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n confirmButtonText: gettextCatalog.getString('Ok'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n preConfirm: function () {\r\n return new Promise(function (resolve) {\r\n var TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n var Megnevezes = document.getElementById('Megnevezes').value;\r\n if (!TipusNev || TipusNev.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetTypeNameMustNotBeEmpty'));\r\n }\r\n if (!Megnevezes || Megnevezes.length === 0) {\r\n swal.showValidationError(gettextCatalog.getString('AssetNameMustNotBeEmpty'));\r\n }\r\n resolve();\r\n });\r\n }\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n vm.newAsset.EszkozId = -1;\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = '';\r\n vm.newAsset.Megnevezes = document.getElementById('Megnevezes').value;\r\n vm.newAsset.Leiras = document.getElementById('Leiras').value;\r\n vm.newAsset.Azonosito = document.getElementById('Azonosito').value;\r\n vm.newAsset.Meret = document.getElementById('Meret').value;\r\n vm.newAsset.Ar = document.getElementById('Ar').value;\r\n vm.newAsset.darab = document.getElementById('darab').value;\r\n vm.newAsset.TipusNev = document.getElementById('AutoCompleteSwal').value;\r\n\r\n dataservice.AssetManager(vm.newAsset).then(function (response) {\r\n dataservice.AssetIssue(response.data.EszkozIdk, vm.userId, 0, vm.IssueComment).then(function () {\r\n vm.IssueComment = '';\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n });\r\n }\r\n });\r\n angular.element('#AutoCompleteSwal').ejAutocomplete({\r\n dataSource: vm.types,\r\n change: function (arg) {\r\n vm.newAsset.TipusId = 0;\r\n vm.newAsset.TipusNev = arg.value;\r\n },\r\n value: vm.newAsset.TipusId,\r\n width: '100%'\r\n });\r\n }\r\n\r\n function Issue() {\r\n vm.chooseEnabled = false;\r\n vm.IssueComment = '';\r\n angular.element('#issueDialog').data('ejDialog').close();\r\n dataservice.AssetIssue(getSelectedAssetIds(AssetGrid), vm.userId, 0, vm.IssueComment).then(function () {\r\n log.successMsg('IssuedSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n }\r\n\r\n function TakeBack() {\r\n vm.takebackEnabled = false;\r\n dataservice.AssetTakeBack(getSelectedAssetIds(usersAssetGrid), vm.TakeBackComment).then(function () {\r\n vm.TakeBackComment = '';\r\n log.successMsg('TakenBackSuccessfully');\r\n IssuedAssets(vm.userId);\r\n });\r\n }\r\n\r\n function createHtmlSwalContent(arr) {\r\n var HTMLtext = '<div style=\"margin-top: 10px;\" >';\r\n arr.forEach(function (item) {\r\n HTMLtext += '<div class=\"row\">';\r\n HTMLtext += '<label class=\"col-lg-6\" style=\"text-align: left; margin-top:5px;\">' + item.text + '</label>';\r\n if (item.hasOwnProperty('ac')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"AutoCompleteSwal\" ej-autocomplete></input><br>';\r\n } else if (item.hasOwnProperty('dd')) {\r\n HTMLtext += '<input class=\"col-lg-6 col-lg-offset-6\" id=\"DropDownSwal\" ej-dropdownlist></input><br>';\r\n } else {\r\n if (item.value && item.value.length > 0) {\r\n HTMLtext += '<input type=\"text\" value=\"' + item.value + '\" id=\"' + item.id + '\"></input><br>';\r\n } else {\r\n HTMLtext += '<input type=\"text\" value=\"\" id=\"' + item.id + '\"></input><br>';\r\n }\r\n }\r\n HTMLtext += '</div>';\r\n });\r\n HTMLtext += '</div><br>';\r\n return HTMLtext;\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.modifyUser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.modifyUser',\r\n config: {\r\n url: '/modifyUser',\r\n templateUrl: 'app/settings/userManagement/modifyUser/modifyUser.html',\r\n controller: 'modifyUserController',\r\n controllerAs: 'vm',\r\n title: 'ModifyUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.newUser')\r\n .controller('newUserController', newUserController);\r\n\r\n function newUserController($q, log, VIEW_DATA, dataservice, DOMAIN, authenticationService, $rootScope, $scope, gettextCatalog, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('NewUser');\r\n\r\n // Dropdowns\r\n vm.sectionLeaderList = [];\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n vm.sexList = [{\r\n text: gettextCatalog.getString('Man'),\r\n value: 1\r\n },\r\n {\r\n text: gettextCatalog.getString('Woman'),\r\n value: 0\r\n }\r\n ];\r\n vm.userGroupList = [];\r\n vm.selectedItems = [0, 1];\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.displayPhoto = vm.photoUrl;\r\n vm.passwordAgain = undefined;\r\n vm.colorValue = '#000000';\r\n vm.activeValue = true;\r\n vm.sectionLeader = false;\r\n vm.formData = {\r\n name: undefined,\r\n userGroupId: undefined,\r\n loginName: undefined,\r\n email: undefined,\r\n password: undefined,\r\n passwordExpiryDate: undefined,\r\n fileData: null,\r\n fileName: null,\r\n address: undefined,\r\n contact: undefined,\r\n socialSecurityNumber: undefined,\r\n color: '#000000',\r\n monthlyAttendanceRegister: true,\r\n activeUser: true,\r\n mainWorkPlace: undefined,\r\n qualifications: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n identityCardNumber: undefined,\r\n sex: undefined,\r\n passportNumber: undefined,\r\n otherInformation: undefined\r\n };\r\n\r\n vm.changeUserGroup = changeUserGroup;\r\n vm.colorChanged = colorChanged;\r\n vm.monthlyAttendanceRegisterChanged = monthlyAttendanceRegisterChanged;\r\n vm.activeChange = activeChange;\r\n vm.sectionLeaderChecked = sectionLeaderChecked;\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.changeSex = changeSex;\r\n vm.saveUser = saveUser;\r\n\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.deleteImg = deleteImg;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.socialSecurityNumberRequiredValue = false;\r\n\r\n vm.generateAvatar = generateAvatar;\r\n\r\n activate();\r\n\r\n function generateAvatar(nem) {\r\n var ava = 'coach_'+ nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n if (ava == vm.photoUrl) {\r\n generateAvatar(nem);\r\n }\r\n return ava;\r\n }\r\n\r\n function activate() {\r\n $q.all([paramHelper.getParams([], []), authenticationService.getRight('UJFELH'), getUserGroupDropDownList(), getSectionLeaderListBox(), getAgeGroupTreeView()])\r\n .then(function (results) {\r\n if (results[1] !== true) {\r\n log.permissionError();\r\n } else {\r\n vm.UJFELH = results[1];\r\n getSystemSettings('TAJKOTELEZO');\r\n }\r\n });\r\n }\r\n\r\n function getUserGroupDropDownList() {\r\n dataservice.getFullUserGroupList()\r\n .then(function (data) {\r\n vm.userGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function getSystemSettings(arg) {\r\n dataservice.getSystemSettings(arg).then(function (response) {\r\n vm.socialSecurityNumberRequiredValue = response.retValue;\r\n });\r\n }\r\n\r\n function changeUserGroup(args) {\r\n vm.formData.userGroupId = args.value;\r\n dataservice.getSectionHasSectionLeaderRight(vm.formData.userGroupId)\r\n .then(function (data) {\r\n if (data.retValue) {\r\n angular.element('#sectionListBox').ejListBox('enable');\r\n } else {\r\n angular.element('#sectionListBox').ejListBox('disable');\r\n }\r\n });\r\n }\r\n\r\n function colorChanged(args) {\r\n vm.formData.color = args.value;\r\n }\r\n\r\n function monthlyAttendanceRegisterChanged(args) {\r\n vm.formData.monthlyAttendanceRegister = args.value;\r\n }\r\n\r\n function activeChange(args) {\r\n vm.formData.activeUser = args.value;\r\n }\r\n\r\n function getSectionLeaderListBox() {\r\n dataservice.getSectionLeaderListBox()\r\n .then(function (data) {\r\n vm.sectionLeaderList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionLeaderChecked(args) {\r\n if (args.isChecked === true) {\r\n if (!args.data.VezetoNev) {\r\n args.data.VezetoNev = gettextCatalog.getString('PrimarySectionLeader');\r\n }\r\n if (!args.data.VezetoNev2) {\r\n args.data.VezetoNev2 = gettextCatalog.getString('SecondarySectionLeader');\r\n }\r\n swal({\r\n title: gettextCatalog.getString('ReplaceQuestion'),\r\n html: '<p>' + gettextCatalog.getString('WhichLeaderDoYouWantToReplace') + '</p>' + '<div><button class=\"cts-button\" id=\"leader1\">' + args.data.VezetoNev + '</button>' + '<button class=\"cts-button\" id=\"leader2\">' + args.data.VezetoNev2 + '</button></div><div style=\"text-align: center;\"><button class=\"cts-button auto-width\" id=\"cancel-button\">' + gettextCatalog.getString('Cancel') + '</button></div>',\r\n showCancelButton: false,\r\n showConfirmButton: false,\r\n closeOnCancel: false,\r\n allowOutsideClick: false\r\n });\r\n angular.element('#leader1').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 1);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#leader2').ejButton({\r\n click: function () {\r\n replaceLeader(args.index, 2);\r\n swal.close();\r\n }\r\n });\r\n angular.element('#cancel-button').ejButton({\r\n click: function () {\r\n angular.element('#sectionListBox').ejListBox('uncheckItemByIndex', args.index);\r\n swal.close();\r\n }\r\n });\r\n } else {\r\n vm.sectionLeaderList[args.index].replace = 3;\r\n }\r\n }\r\n\r\n function replaceLeader(index, replace) {\r\n vm.sectionLeaderList[index].replace = replace;\r\n }\r\n\r\n function getAgeGroupTreeView() {\r\n dataservice.getAgeGroupTreeView()\r\n .then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n });\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function changeSex(args) {\r\n if (vm.cropper.sourceImage == null || vm.photoUrl == vm.noImg) {\r\n var nem = args.value ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n }\r\n vm.formData.sex = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.UJFELH) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('FillTheRequiredFields');\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n // kiválasztott korosztályok\r\n vm.formData.ageGroupList = [];\r\n var tmp = angular.element('#ageGroupTreeView').ejTreeView('getCheckedNodesIndex');\r\n angular.forEach(tmp, function (value) {\r\n if (vm.ageGroupList[value].hasChild === false) {\r\n vm.formData.ageGroupList.push(vm.ageGroupList[value]);\r\n }\r\n });\r\n // szakosztály, amiknek a vezetője\r\n vm.formData.sectionsLeaderList = vm.sectionLeaderList;\r\n // kép küldése, ha választott\r\n vm.formData.fileName = vm.photoUrl;\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n if (vm.photoUrl === (DOMAIN.baseURL + DOMAIN.noImage)) {\r\n vm.formData.fileData = null;\r\n vm.formData.fileName = 'noImg.jpg';\r\n }\r\n vm.formData.socialSecurityNumber = angular.element('#socialSecurityNumber').ejMaskEdit('get_StrippedValue');\r\n dataservice.addUser(vm.formData)\r\n .then(function () {\r\n log.successMsg('UserAdded');\r\n $state.go('settings.userManagement.userList');\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n vm.displayPhoto = vm.photoUrl;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n if (vm.formData.sex != null) {\r\n var nem = vm.formData.sex == 1 ? 'male' : 'female';\r\n vm.photoUrl = generateAvatar(nem);\r\n vm.displayPhoto = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.photoUrl;\r\n vm.cropper.sourceImage = null;\r\n } else {\r\n vm.photoUrl = vm.noImg;\r\n vm.displayPhoto = vm.photoUrl;\r\n vm.cropper.sourceImage = null;\r\n }\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.newUser')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.newUser',\r\n config: {\r\n url: '/newUser',\r\n templateUrl: 'app/settings/userManagement/newUser/newUser.html',\r\n controller: 'newUserController',\r\n controllerAs: 'vm',\r\n title: 'NewUser'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.userList')\r\n .controller('UserManagementController', userManagementController);\r\n\r\n function userManagementController(logger, log, $q, $state, dataservice, authenticationService, $rootScope, gettextCatalog, paramHelper, $scope) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserManagement');\r\n\r\n // Grid's details\r\n vm.columns = [\r\n {\r\n field: 'TeljesNev',\r\n headerText: gettextCatalog.getString('Name'),\r\n textAlign: 'center',\r\n template: '#uslitemplateDataColumn1', width: 150\r\n },\r\n {field: 'Login', headerText: gettextCatalog.getString('Username'), textAlign: 'center', width: 115},\r\n {\r\n field: 'CsoportNeve',\r\n headerText: gettextCatalog.getString('Group'),\r\n textAlign: 'center',\r\n template: '#uslitemplateDataColumn2', width: 125\r\n },\r\n {\r\n field: 'Aktiv',\r\n headerText: gettextCatalog.getString('Active'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true, width: 60\r\n },\r\n {field: 'Elerhetosege', headerText: gettextCatalog.getString('Contact'), textAlign: 'center', width: 150},\r\n {field: 'Email', headerText: gettextCatalog.getString('Email'), textAlign: 'center', width: 150},\r\n {\r\n field: 'HaviJelenletiKorosztalyonkent',\r\n headerText: gettextCatalog.getString('MonthlyAttendanceByAgeGroups'),\r\n textAlign: 'center',\r\n type: 'boolean',\r\n displayAsCheckBox: true, width: 175\r\n }\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItemsWithSearch,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#UsersAssetGrid'), $scope);\r\n }\r\n },\r\n rowSelecting: function (args) {\r\n grid.clearSelection();\r\n vm.selectedRowData = args.data;\r\n vm.thereIsSelectedTeam = true;\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n\r\n // Public functions\r\n vm.goToNewUser = goToNewUser;\r\n vm.goToGroup = goToGroup;\r\n vm.goToUser = goToUser;\r\n vm.goToUser2 = goToUser2;\r\n vm.details = details;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('UJFELH'), authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')])\r\n .then(function (results) {\r\n if (results[2] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.UJFELH = results[0];\r\n vm.MODFELH = results[1];\r\n vm.MEGTFELH = results[2];\r\n setTimeout(function () {\r\n getUsers();\r\n }, 100);\r\n }\r\n });\r\n }\r\n\r\n function getUsers() {\r\n dataservice.usersListSelect()\r\n .then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n grid.appendTo('#Grid');\r\n });\r\n }\r\n\r\n function details() {\r\n log.infoMsg('Details');\r\n }\r\n\r\n function goToNewUser() {\r\n if (vm.UJFELH) {\r\n $state.go('settings.userManagement.newUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToUser() {\r\n if (vm.MODFELH) {\r\n if (vm.selectedRowData && vm.selectedRowData.Id) {\r\n paramHelper.setParams([{'newUser.userId': vm.selectedRowData.Id}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.errorMsg('YouHaveToSelectUser');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToUser2(userId) {\r\n if (vm.MODFELH || vm.MEGTFELH) {\r\n if (userId) {\r\n paramHelper.setParams([{'newUser.userId': userId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function goToGroup(group) {\r\n paramHelper.setParams([{'usergroupid': group}]);\r\n $state.go('settings.userRights');\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.userList')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.userList',\r\n config: {\r\n url: '/userList',\r\n templateUrl: 'app/settings/userManagement/userList/userList.html',\r\n controller: 'UserManagementController',\r\n controllerAs: 'vm',\r\n title: 'UserManagement',\r\n settings: {\r\n navId: 215,\r\n level: 2,\r\n order: 1,\r\n orderTitle_hu: 'Felhasználó kezelés',\r\n orderTitle_en: 'Editing User',\r\n parentId: 5,\r\n content: 'UserManagement',\r\n activatorPermission: ['\"MEGTFELH\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement',\r\n config: {\r\n url: '/userManagement',\r\n templateUrl: 'app/settings/userManagement/userManagement.html'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.userSettings')\r\n .controller('userSettingsController', userSettingsController);\r\n\r\n function userSettingsController($q, log, VIEW_DATA, dataservice, DOMAIN, $timeout, authenticationService, $rootScope, AUTH_EVENTS, $scope, gettextCatalog, paramHelper, $state, $filter) {\r\n var vm = this;\r\n $rootScope.vm = vm; // jshint ignore: line\r\n vm.AthleteOrParent = undefined;\r\n\r\n // Page title\r\n $rootScope.title = gettextCatalog.getString('UserSettings');\r\n\r\n // Dropdowns\r\n vm.sectionLeaderChangeEnable = false;\r\n vm.ageGroupList = [];\r\n vm.weightList = dataservice.range(VIEW_DATA.dropDownList.weight.downThreshold, VIEW_DATA.dropDownList.weight.upThreshold);\r\n vm.heightList = dataservice.range(VIEW_DATA.dropDownList.centimetre.downThreshold, VIEW_DATA.dropDownList.centimetre.upThreshold);\r\n\r\n // Default variables\r\n vm.noImg = DOMAIN.baseURL + DOMAIN.userImage;\r\n vm.photoUrl = vm.noImg;\r\n vm.passwordAgain = undefined;\r\n vm.recordPerPageList = $rootScope.gridPageSizes;\r\n vm.NotificationChanged = function NotificationChanged() {\r\n $timeout(function() {\r\n if (!vm.PushNotificationEnabled) {\r\n vm.formData.PushNotificationSetting = undefined;\r\n }\r\n }, 100);\r\n };\r\n vm.PushNotificationEnabled = false,\r\n vm.formData = {\r\n id: undefined,\r\n name: undefined,\r\n email: false,\r\n password: undefined,\r\n fileData: null,\r\n fileName: null,\r\n contact: undefined,\r\n country: undefined,\r\n city: undefined,\r\n birthDate: undefined,\r\n citizenship: undefined,\r\n mothersName: undefined,\r\n height: undefined,\r\n weight: undefined,\r\n otherInformation: undefined,\r\n gridRecordPerPage: undefined,\r\n PushNotificationSetting: {\r\n ErtesitesEdzesJelenletrol: undefined,\r\n ErtesitesEdzesrol: undefined,\r\n ErtesitesEdzoKorosztalyValtasrol: undefined,\r\n ErtesitesEsemenyrol: undefined,\r\n ErtesitesFelmeroEredmenyrol: undefined,\r\n ErtesitesHianyzasrol: undefined,\r\n ErtesitesLejaroDokrol: undefined,\r\n ErtesitesTagdijrol: undefined,\r\n ErtesitesUzenetrol: undefined,\r\n ErtesitesVersenyeredmenyrol: undefined,\r\n Nyelv: undefined\r\n }\r\n };\r\n vm.bounds = {};\r\n vm.bounds.left = 0;\r\n vm.bounds.right = 0;\r\n vm.bounds.top = 0;\r\n vm.bounds.bottom = 0;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.changeHeight = changeHeight;\r\n vm.changeWeight = changeWeight;\r\n vm.closeCropDialog = closeCropDialog;\r\n vm.openCropDialog = openCropDialog;\r\n vm.doneCropDialog = doneCropDialog;\r\n vm.sectionLeader = false;\r\n\r\n vm.selectedItems = [0, 1];\r\n vm.saveUser = saveUser;\r\n // Image cropper variables\r\n vm.cropper = {};\r\n vm.cropper.sourceImage = null;\r\n vm.cropper.croppedImage = null;\r\n vm.cropDialogTitle = gettextCatalog.getString('ChooseImageTitle');\r\n\r\n vm.types = [];\r\n vm.recordPerPageSelect = recordPerPageSelect;\r\n\r\n vm.deleteImg = deleteImg;\r\n\r\n activate();\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SAJATADATMODOSIT'),\r\n authenticationService.getRight('MODFELH'),\r\n authenticationService.getRight('ATHLETE'),\r\n authenticationService.getRight('PARENT')]).then(function (results) {\r\n if (results[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n vm.LIMITEDUSER = !results[1];\r\n if (results[1] !== true) {\r\n document.getElementById('generalFieldset').disabled = true;\r\n document.getElementById('personalFieldset').disabled = true;\r\n }\r\n vm.userId = authenticationService.getAuthData().id;\r\n vm.modifyPermission = results[0];\r\n getUser(vm.userId);\r\n }\r\n vm.AthleteOrParent = results[2] || results[3];\r\n console.log('vm.AthleteOrParent', vm.AthleteOrParent);\r\n });\r\n }\r\n\r\n function getUser(userId) {\r\n return dataservice.getUserDataMin(userId)\r\n .then(function (data) {\r\n angular.element('#sex').ejDropDownList('selectItemByValue', data.retValue.ferfib);\r\n data.retValue.birthDate = $filter('datetimeFilter')(data.retValue.birthDate);\r\n $timeout(function() {\r\n vm.formData = data.retValue;\r\n vm.formData.PushNotificationSetting = data.PushNotificationSetting;\r\n var ArrayFromObject = Object.values(vm.formData.PushNotificationSetting);\r\n vm.PushNotificationEnabled = ArrayFromObject.some(function (element) {\r\n if (element == true) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n $scope.$apply();\r\n });\r\n if (vm.formData.fileName && vm.formData.fileName != 'no_image.png') {\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n } else {\r\n vm.photoUrl = vm.noImg;\r\n }\r\n vm.sectionLeaderChangeEnable = true;\r\n\r\n angular.element('#GridRowNB').ejDropDownList('selectItemByValue', vm.formData.gridRecordPerPage);\r\n $timeout(function () {\r\n $scope.$apply();\r\n }, 100);\r\n });\r\n }\r\n\r\n function recordPerPageSelect(args) {\r\n vm.formData.gridRecordPerPage = args.value;\r\n }\r\n\r\n function changeHeight(args) {\r\n vm.formData.height = args.value;\r\n }\r\n\r\n function changeWeight(args) {\r\n vm.formData.weight = args.value;\r\n }\r\n\r\n function saveUser() {\r\n if (vm.modifyPermission) {\r\n // a syncfusion direktívák miatt\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false && !vm.LIMITEDUSER) {\r\n log.errorMsg(gettextCatalog.getString('RequiredFieldsError'), gettextCatalog.getString('FillTheRequiredFields'));\r\n } else {\r\n if (vm.formData.password != '') {\r\n if (vm.formData.password != vm.passwordAgain) {\r\n log.errorMsg(gettextCatalog.getString('PasswordsDontMatch'));\r\n return;\r\n }\r\n }\r\n\r\n // kép küldése, ha választott\r\n if (angular.element('#fileName').val() !== '' && vm.cropper.croppedImage !== null) {\r\n vm.formData.fileData = vm.cropper.croppedImage;\r\n vm.formData.fileName = angular.element('#fileName').val();\r\n }\r\n console.log('vm.formData', vm.formData);\r\n dataservice.modifyUserMin(vm.formData).then(function (data) {\r\n if (data) {\r\n dataservice.SetPushNotificationFromWeb(vm.formData.PushNotificationSetting).then(function () {\r\n });\r\n var currentId = parseInt(authenticationService.getAuthData().id);\r\n if (currentId === vm.formData.id) {\r\n $rootScope.$broadcast(AUTH_EVENTS.refreshProfilePic, data.image);\r\n }\r\n paramHelper.setParams([{'gridRecordPerPage': vm.formData.gridRecordPerPage}]);\r\n $rootScope.pageSettings.pageSize = parseInt(vm.formData.gridRecordPerPage);\r\n log.successMsg('UserModified');\r\n $rootScope.back();\r\n }\r\n });\r\n }\r\n } else {\r\n log.permissionError();\r\n }\r\n }\r\n\r\n function openCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'visible');\r\n angular.element('#cropDialog').ejDialog('open');\r\n }\r\n\r\n function closeCropDialog() {\r\n angular.element('#dialogContainer').css('visibility', 'hidden');\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function doneCropDialog() {\r\n vm.photoUrl = vm.cropper.croppedImage;\r\n angular.element('#cropDialog').ejDialog('close');\r\n }\r\n\r\n function deleteImg() {\r\n swal({\r\n title: gettextCatalog.getString('DeleteProfileImg'),\r\n text: gettextCatalog.getString('AreYouSureYouWantToDeleteTheProfileImg'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('No')\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n angular.element('#fileName').val('');\r\n var nem = vm.formData.ferfib ? 'male' : 'female';\r\n vm.formData.fileData = null;\r\n vm.formData.fileName = 'coach_' + nem + '_' + Math.ceil(Math.random() * (8 - 1) + 1) + '.png';\r\n vm.photoUrl = DOMAIN.baseURL + DOMAIN.profileImgBaseUrl + vm.formData.fileName;\r\n $scope.$apply();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userManagement.userSettings')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userManagement.userSettings',\r\n config: {\r\n url: '/userSettings',\r\n templateUrl: 'app/settings/userManagement/userSettings/userSettings.html',\r\n controller: 'userSettingsController',\r\n controllerAs: 'vm',\r\n title: 'UserSettings'\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.userRights')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.userRights',\r\n config: {\r\n url: '/userRights',\r\n templateUrl: 'app/settings/userRights/userRights.html',\r\n controller: 'UserRightsController',\r\n controllerAs: 'vm',\r\n title: 'UserRights',\r\n settings: {\r\n navId: 235,\r\n level: 2,\r\n order: 3,\r\n orderTitle_hu: 'Felhasználói csoport jogosultságok',\r\n orderTitle_en: 'Group Permissions',\r\n parentId: 5,\r\n content: 'UserRights',\r\n activatorPermission: ['\"MEGTFELHJOG\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.usersBelongingToAthletes')\r\n .controller('UsersBelongingToAthletesController', UsersBelongingToAthletesController);\r\n\r\n function UsersBelongingToAthletesController(logger, log, dataservice, $q, $rootScope, gettextCatalog, authenticationService, $scope, paramHelper, $state) {\r\n var vm = this; $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('UsersBelongingToAthletes');\r\n\r\n activate();\r\n\r\n vm.columns = [\r\n {field: 'UserName', headerText: gettextCatalog.getString('UserName'), textAlign: 'center', width: 115, template: '#usbetoattemplateDataColumn1'},\r\n {field: 'UserTeljesNev', headerText: gettextCatalog.getString('UserFullName'), textAlign: 'center', width: 150},\r\n {field: 'szerep', headerText: gettextCatalog.getString('szerep'), textAlign: 'center', width: 125},\r\n {field: 'csoport', headerText: gettextCatalog.getString('User group'), textAlign: 'center', width: 125},\r\n {field: 'szakosztaly', headerText: gettextCatalog.getString('PrimarySection'), textAlign: 'center', width: 125},\r\n {field: 'korosztaly', headerText: gettextCatalog.getString('PrimaryAgeGroup'), textAlign: 'center', width: 125},\r\n {field: 'SportoloNeve', headerText: gettextCatalog.getString('SportoloNeve'), textAlign: 'center', width: 150, template: '#usbetoattemplateDataColumn2'},\r\n {field: 'Link', headerText: gettextCatalog.getString('unlinkUserFromAthlete'), textAlign: 'center', width: 150, template: '#usbetoattemplateDataColumn3'}\r\n ];\r\n\r\n var grid = new ej2.grids.Grid({\r\n dataSource: [],\r\n toolbar: $rootScope.toolbarItems,\r\n allowPaging: true,\r\n allowSorting: true,\r\n allowTextWrap: true,\r\n allowExcelExport: true,\r\n locale: 'hu-HU',\r\n gridLines: 'Both',\r\n pageSettings: $rootScope.pageSettings,\r\n columns: vm.columns,\r\n beforePrint: $rootScope.beforePrintGrid,\r\n printComplete: $rootScope.printCompleteGrid,\r\n rowDataBound: function (args) {\r\n $rootScope.compile(args.row, $scope);\r\n },\r\n actionComplete: function (args) {\r\n if (args.requestType === 'paging' || args.requestType === 'refresh') {\r\n $rootScope.compile($('#Grid'), $scope);\r\n }\r\n },\r\n rowSelecting: function () {\r\n grid.clearSelection();\r\n },\r\n checkBoxChange: function (args) {\r\n $rootScope.checkBoxChangeOnlyOne(args, grid);\r\n }\r\n });\r\n grid.appendTo('#Grid');\r\n grid.toolbarClick = function (args) {\r\n $rootScope.toolbarClick(args, grid);\r\n };\r\n vm.sectionId = 0;\r\n vm.sectionIdValue = undefined;\r\n vm.ageGroupId = 0;\r\n vm.ageGroupIdValue = undefined;\r\n vm.sectionList = [];\r\n vm.ageGroupList = [];\r\n vm.sectionDataBound = sectionDataBound;\r\n vm.sectionSelect = sectionSelect;\r\n vm.ageGroupDataBound = ageGroupDataBound;\r\n vm.ageGroupSelect = ageGroupSelect;\r\n vm.unlinkUserFromAthlete = unlinkUserFromAthlete;\r\n vm.openUser = openUser;\r\n vm.openAthlete = openAthlete;\r\n vm.getParentAndAthleteUsers = getParentAndAthleteUsers;\r\n\r\n function activate() {\r\n $q.all([authenticationService.getRight('SPTARTMEGT'), paramHelper.getParams([], ['usersBelongingToAthletes.SzakosztalyId', 'usersBelongingToAthletes.KorcsoportId'])]).then(function (result) {\r\n if (result[0] !== true) {\r\n log.permissionError(true);\r\n } else {\r\n getSections();\r\n }\r\n if (result[1]['usersBelongingToAthletes.SzakosztalyId']) {\r\n vm.sectionId = result[1]['usersBelongingToAthletes.SzakosztalyId'];\r\n }\r\n if (result[1]['usersBelongingToAthletes.KorcsoportId']) {\r\n vm.ageGroupId = result[1]['usersBelongingToAthletes.KorcsoportId'];\r\n }\r\n });\r\n }\r\n\r\n function getSections() {\r\n dataservice.sectionDropDownList().then(function (data) {\r\n vm.sectionList = data.itemsList;\r\n });\r\n }\r\n\r\n function sectionDataBound() {\r\n if (vm.sectionList.length === 1) {\r\n vm.sectionId = vm.sectionList[0].value;\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionList[0].value);\r\n } else {\r\n angular.element('#sectionDropDown').ejDropDownList('selectItemByValue', vm.sectionId);\r\n }\r\n }\r\n\r\n function sectionSelect(args) {\r\n vm.sectionId = args.value;\r\n getAgeGroups();\r\n }\r\n\r\n function getAgeGroups() {\r\n dataservice.ageGroupDropDownList(vm.sectionId).then(function (data) {\r\n vm.ageGroupList = data.itemsList;\r\n if (data.itemsList.length > 1) {\r\n vm.ageGroupList.unshift({value: -1, text: gettextCatalog.getString('All')});\r\n }\r\n });\r\n }\r\n\r\n function ageGroupDataBound() {\r\n if (vm.ageGroupList.length > 0) {\r\n angular.element('#ageGroupDropDown').ejDropDownList('selectItemByValue', vm.ageGroupList[0].value);\r\n }\r\n }\r\n\r\n function ageGroupSelect(args) {\r\n vm.ageGroupId = args.value;\r\n }\r\n\r\n function getParentAndAthleteUsers() {\r\n $scope.$broadcast('submitted');\r\n if ($scope.form.$valid === false) {\r\n log.errorMsg('RequiredFieldsError');\r\n }\r\n paramHelper.setParams([\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId},\r\n ]);\r\n dataservice.getParentAndAthleteUsers(vm.sectionId, vm.ageGroupId).then(function (data) {\r\n grid.dataSource = data.itemsList;\r\n });\r\n }\r\n\r\n function unlinkUserFromAthlete(userid, sportoloid, szerep) {\r\n if (szerep == 0) {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink and delete the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinkedAndDeleted'));\r\n getParentAndAthleteUsers();\r\n });\r\n }\r\n });\r\n } else {\r\n swal({\r\n title: gettextCatalog.getString('Are you sure you want to unlink the selected user?'),\r\n type: 'warning',\r\n showCancelButton: true,\r\n confirmButtonColor: '#DD6B55',\r\n confirmButtonText: gettextCatalog.getString('Yes'),\r\n cancelButtonText: gettextCatalog.getString('Cancel'),\r\n }).then(function (isConfirm) {\r\n if (isConfirm.value) {\r\n return dataservice.unlinkUserFromAthlete(userid, sportoloid).then(function () {\r\n log.successMsg(gettextCatalog.getString('UserUnlinked'));\r\n getParentAndAthleteUsers();\r\n });\r\n }\r\n });\r\n }\r\n }\r\n\r\n function openUser(userid) {\r\n $q.all([authenticationService.getRight('MODFELH'), authenticationService.getRight('MEGTFELH')]).then(function (results) {\r\n if (results[0] || results[1]) {\r\n paramHelper.setParams([{'newUser.userId': userid},\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId}]);\r\n $state.go('settings.userManagement.modifyUser');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n\r\n function openAthlete(id) {\r\n $q.all([authenticationService.getRight('MEGTSPORTLIST')]).then(function (results) {\r\n if (results[0]) {\r\n paramHelper.setParams([{'athleteModify.sportoloId': id},\r\n {'usersBelongingToAthletes.SzakosztalyId': vm.sectionId},\r\n {'usersBelongingToAthletes.KorosztalyId': vm.ageGroupId}]);\r\n $state.go('athletes.athletesManagement.athleteModify.dataSheet');\r\n } else {\r\n log.permissionError();\r\n }\r\n });\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.settings.usersBelongingToAthletes')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'settings.usersBelongingToAthletes',\r\n config: {\r\n url: '/usersBelongingToAthletes',\r\n templateUrl: 'app/settings/usersBelongingToAthletes/usersBelongingToAthletes.html',\r\n controller: 'UsersBelongingToAthletesController',\r\n controllerAs: 'vm',\r\n title: 'UsersBelongingToAthletes',\r\n settings: {\r\n navId: 245,\r\n level: 2,\r\n order: 4,\r\n orderTitle_hu: 'Sportolókhoz tartozó felhasználók',\r\n orderTitle_en: 'Users Belonging to Athletes',\r\n parentId: 5,\r\n content: 'UsersBelongingToAthletes',\r\n activatorPermission: ['\"SPTARTMEGT\"']\r\n }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.sikerMobile')\r\n .controller('SikerMobileController', SikerMobileController);\r\n\r\n function SikerMobileController($rootScope, gettextCatalog, authenticationService) {\r\n var vm = this;\r\n $rootScope.vm = vm;\r\n $rootScope.title = gettextCatalog.getString('SikerMobileMenu');\r\n // $rootScope.$broadcast('autoCloseSideBar');\r\n vm.changeTab = changeTab;\r\n vm.role = '';\r\n vm.mainTab = undefined;\r\n var language = authenticationService.getLanguage();\r\n\r\n var imgAppStore = document.getElementById('AppStore');\r\n imgAppStore.src = '../../images/NoAppStore_' + language + '.png';\r\n\r\n changeTab('Login');\r\n function changeTab(tabName) {\r\n var coach;\r\n switch (tabName) {\r\n case 'Coaches':\r\n vm.role = 'coach';\r\n coach = true;\r\n vm.mainTab = 'Coaches';\r\n break;\r\n case 'Parents':\r\n vm.role = 'parent';\r\n coach = false;\r\n vm.mainTab = 'Parents';\r\n break;\r\n case 'Athletes':\r\n vm.role = 'athlete';\r\n coach = false;\r\n vm.mainTab = 'Athletes';\r\n break;\r\n default: break;\r\n }\r\n\r\n if (!angular.isUndefined(coach) || tabName === 'Login') {\r\n var mainTablinks = document.getElementsByClassName('mainTablinks');\r\n for (i = 0; i < mainTablinks.length; i++) {\r\n if (mainTablinks[i].title !== tabName) {\r\n mainTablinks[i].className = mainTablinks[i].className.replace(' active', '');\r\n } else {\r\n mainTablinks[i].className = mainTablinks[i].className += ' active';\r\n }\r\n }\r\n }\r\n\r\n var tablinks = document.getElementsByClassName('tablinks');\r\n for (i = 0; i < tablinks.length; i++) {\r\n if (tablinks[i].title !== tabName) {\r\n tablinks[i].className = tablinks[i].className.replace(' active', '');\r\n } else {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n }\r\n\r\n //childTabs\r\n if (coach === false && ['Home', 'Schedule', 'Message'].includes(tablinks[i].title)) {\r\n tablinks[i].style.display = 'block';\r\n if (tablinks[i].title === 'Home') {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n tabName = 'Home';\r\n }\r\n } else if (coach === true && ['Attendance', 'Schedule', 'Message'].includes(tablinks[i].title)) {\r\n tablinks[i].style.display = 'block';\r\n if (tablinks[i].title === 'Attendance') {\r\n tablinks[i].className = tablinks[i].className += ' active';\r\n tabName = 'Attendance';\r\n }\r\n } else if (angular.isUndefined(coach) && tabName === 'Login') {\r\n tablinks[i].style.display = 'none';\r\n } else if (!angular.isUndefined(coach)) {\r\n tablinks[i].style.display = 'none';\r\n }\r\n }\r\n\r\n var tabs = document.getElementsByClassName('tabcontent');\r\n for (var i = 0; i < tabs.length; i++) {\r\n tabs[i].style.display = 'none';\r\n if (tabs[i].id === tabName) {\r\n tabs[i].style.display = 'block';\r\n }\r\n }\r\n\r\n var img = document.getElementById('mobilImage');\r\n switch (tabName) {\r\n case 'Home':\r\n img.src = '../../images/Mob1' + language + '.png';\r\n break;\r\n case 'Attendance':\r\n img.src = '../../images/Mob2' + language + '.png';\r\n break;\r\n case 'Schedule':\r\n img.src = '../../images/Mob3' + language + '.png';\r\n break;\r\n case 'Message':\r\n switch (vm.role) {\r\n case 'athlete':\r\n img.src = '../../images/Mob4athlete' + language + '.png';\r\n break;\r\n case 'parent':\r\n img.src = '../../images/Mob4parent' + language + '.png';\r\n break;\r\n case 'coach':\r\n img.src = '../../images/Mob4coach' + language + '.png';\r\n break;\r\n default:\r\n img.src = '../../images/Mob4athlete' + language + '.png';\r\n break;\r\n }\r\n break;\r\n case 'Login':\r\n img.src = '../../images/Mob0' + language + '.png';\r\n break;\r\n default:\r\n }\r\n }\r\n }\r\n})();\r\n","(function () {\r\n 'use strict';\r\n\r\n angular\r\n .module('app.sikerMobile')\r\n .run(appRun);\r\n\r\n function appRun(routerHelper) {\r\n routerHelper.configureStates(getStates());\r\n }\r\n\r\n function getStates() {\r\n return [\r\n {\r\n state: 'sikerMobile',\r\n config: {\r\n url: '/sikerMobile',\r\n templateUrl: 'app/sikerMobile/sikerMobile.html',\r\n controller: 'SikerMobileController',\r\n controllerAs: 'vm',\r\n title: 'SikerMobileMenu',\r\n // settings: {\r\n // navId: 10,\r\n // level: 1,\r\n // order: 11,\r\n // parentId: 0,\r\n // content: 'SikerMobileMenu',\r\n // }\r\n }\r\n }\r\n ];\r\n }\r\n})();\r\n","angular.module('app.core').run(['$templateCache', function($templateCache) {$templateCache.put('app/administration/administration.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athleteDashboard/athleteDashboard.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/athletes/athletes.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/business/business.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/dashboard/dashboard.html','<section id=dashboard-view class=mainbar><div class=container-fluid><div class=row style=\"margin-top: 2em;\" data-ng-if=\"vm.FOLAPLEJARO && vm.datagridExpiringDocuments.length>0\"><div class=col-md-12><div class=\"panel panel-danger\"><div class=panel-heading><h2 class=page-title translate>Documents expiring inside a month</h2></div><div class=panel-body><div><div id=gridExpiringDocuments name=gridExpiringDocuments class=slim-grid></div></div></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROJELENLETIK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedMonthlyAttendance]\"><h2 class=page-title translate>Monthly presence summarising ones waiting for approval</h2></div><div class=widget-content ng-if=\"vm.dataMonthlyAttendance.length > 0\"><div id=gridMonthlyAttendance name=gridMonthlyAttendance class=slim-grid></div></div><div ng-if=\"vm.dataMonthlyAttendance.length === 0 && vm.allowGetUnAcceptedMonthlyAttendance === true\"><label class=widgetlabel translate>There are not monthly presence summarising ones waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedMonthlyAttendance === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROHAVITERVEK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedMonthlyCompetitionPlan]\"><h2 class=page-title translate>Monthly competition plans waiting for approval</h2></div><div ng-if=\"vm.dataMonthlyCompetitionPlan.length > 0\" class=widget-content allow-collapse=true><div id=gridMonthlyMonthlyCompetitionPlan name=gridMonthlyMonthlyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataMonthlyCompetitionPlan.length === 0 && vm.allowGetUnAcceptedMonthlyCompetitionPlan === true\"><label class=widgetlabel translate>There are not monthly competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedMonthlyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROHETITERV><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedWeeklyCompetitionPlan]\"><h2 class=page-title translate>Weekly competition plans waiting for approval</h2></div><div ng-if=\"vm.dataWeeklyCompetitionPlan.length > 0\" class=widget-content allow-collapse=true><div id=gridWeeklyCompetitionPlan name=gridWeeklyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataWeeklyCompetitionPlan.length === 0 && vm.allowGetUnAcceptedWeeklyCompetitionPlan === true\"><label class=widgetlabel translate>There are no weekly competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedWeeklyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPELFOGADASRAVAROEVESTERVEK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnAcceptedYearlyCompetitionPlan]\"><h2 class=page-title translate>Year competition plans waiting for approval</h2></div><div ng-if=\"vm.dataYearlyCompetitionPlan.length>0\" class=widget-content allow-collapse=true><div id=gridYearlyCompetitionPlan name=gridYearlyCompetitionPlan class=slim-grid></div></div><div ng-if=\"vm.dataYearlyCompetitionPlan.length===0 && vm.allowGetUnAcceptedYearlyCompetitionPlan === true\"><label class=widgetlabel translate>There are not year competition plans waiting for approval.</label></div><div ng-if=\"vm.allowGetUnAcceptedYearlyCompetitionPlan === false\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div class=row style=\"margin-top: 2em;\" ng-if=vm.FOLAPKIFIZETETLENTAGDIJAK><div class=col-md-12><div class=widget><div data-ng-class=\"{true: \\'widget-head\\', false: \\'widget-head-disabled\\'}[vm.allowGetUnPaidFees || vm.allowGetUnPaidFeesTrainer]\"><h2 class=page-title translate>Sport service fees not paid</h2></div><div ng-if=\"vm.dataUnpaidFees.length>0\" class=widget-content allow-collapse=true><div id=gridUnpaidFees name=gridUnpaidFees></div></div><div ng-if=\"vm.dataUnpaidFeesTrainer.length>0\" class=widget-content allow-collapse=true><div id=gridUnpaidFeesTrainer name=gridUnpaidFeesTrainer class=slim-grid></div></div><div ng-if=\"(vm.dataUnpaidFees.length===0 && vm.allowGetUnPaidFees === true) || (vm.dataUnpaidFeesTrainer.length===0 && vm.allowGetUnPaidFeesTrainer === true)\"><label class=widgetlabel translate>There are not sport service fees not paid.</label></div><div ng-if=\"(vm.dataUnpaidFees.length===0 && vm.allowGetUnPaidFees === false) && (vm.dataUnpaidFeesTrainer.length===0 && vm.allowGetUnPaidFeesTrainer === false)\"><label class=widgetlabel translate>YouHaveNoPermissionToThisFunction</label></div></div></div></div><div id=folaplinkek data-ng-if=vm.allowFOLAPLINKEK><div class=row style=\"margin-top: 2em;\"><div class=col-md-12><div id=popup><div id=newlink ej-dialog e-height=450px e-minheight=450px e-maxheight=450px e-title={{vm.LinkData}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-target=#folaplinkek e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=LinkAddress label=LinkAddress data-ng-model=vm.newLink.Hivatkozas></cts-text-box><cts-text-box name=LinkDesc label=LinkDesc data-ng-model=vm.newLink.Link></cts-text-box><cts-text-area name=linkComment label=LinkComment data-ng-model=vm.newLink.Megjegyzes></cts-text-area></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.newLinkSave() type=button translate>Save</button> <button class=\"cts-button red\" id=cancel data-ng-click=vm.closenewLinksWindow() type=button translate>Cancel</button></div></div></div></div><div id=popup><div id=editLinks ej-dialog e-height=450px e-minheight=450px e-maxheight=500px e-title={{vm.LinkData}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#folaplinkek><div class=col-md-12><form name=form class=popup><cts-text-box name=LinkAddress label=LinkAddress data-ng-model=vm.editedLink.Hivatkozas></cts-text-box><cts-text-box name=LinkDesc label=LinkDesc data-ng-model=vm.editedLink.Link></cts-text-box><cts-text-area name=linkComment label=LinkComment data-ng-model=vm.editedLink.Megjegyzes></cts-text-area></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.editLinkSave() type=button translate>Save</button> <button class=\"cts-button red\" id=cancel data-ng-click=vm.closeeditLinksWindow() type=button translate>Cancel</button></div></div></div></div><div class=widget><div class=widget-head><h2 class=page-title translate>Useful links</h2></div><div class=widget-content><form class=filter name=form><div class=button-wrapper><button id=addNewLinkbtn class=cts-button ej-button e-click=vm.addNewLink data-ng-if=vm.FOLAPLINKEK translate>AddNewLink</button></div></form><div id=gridLinks name=gridLinks class=slim-grid></div></div></div></div></div></div></div></section><script id=templateColumnETHetiEdzo type=text/x-template><a data-ng-click=\"vm.goToNewUser(${edzoid})\">${edzo}</a></script><script id=datemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script id=datemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAthletes(${SportoloId})\">${SportoloNeve}</a></script><script id=datemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=datemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.goToMonthlyAttendance(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=datemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.goToMonthlyCompetitonPlan(${Id}, ${EdzoId}, ${SzakosztalyId})\" ><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=datemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn9 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script id=datemplateDataColumn10 type=text/x-template><a data-ng-click=\"vm.openSportServiceFeeRegister(${SzakosztalyId},${EdzoId})\" translate>PayIn</a></script><script id=datemplateDataColumn11 type=text/x-template><a data-ng-click=\"vm.openSportServiceFeeArrears(${SzakosztalyId},${EdzoId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=datemplateDataColumn12 type=text/x-template><a data-ng-click=\"vm.goToNewAthletes(${SportoloId})\">${SportoloNeve}</a></script><script id=datemplateDataColumn13 type=text/x-template><div class=\"form-group cts-form-group chkbox\"> <input id=\"${SportoloId}\" ej-checkbox e-enabled=\"false\" e-checked=\"${Aktiv}\"> </div></script><script id=datemplateDataColumn14 type=text/x-template><a href=\"${Link}\" target=\"_blank\">${Hivatkozas}</a></script><script id=datemplateDataColumn15 type=text/x-template><a data-ng-click=\"vm.editLink(${Id})\" translate>Edit</a>    <a data-ng-click=\"vm.deleteLink(${Id})\" translate>Delete</a></script><script id=templateColumnETHetiLink type=text/x-template><a data-ng-click=\"vm.openWeeklyPlan(${tervid})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=printDialog><report report-name=TFolapReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/core/404.html','<section id=dashboard-view class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>404</h2></div><div class=\"widget-content text-center text-info\"><div class=container-fluid><img src=../../images/404_cat.png alt=\"404 cat\" style=\"max-width: 644px; width: 100%; height: auto;\"><p>Az \\xE1ltalad keresett oldal nem tal\\xE1lhat\\xF3!</p><button class=cts-button data-ng-click=back()>Vissza</button> | <button class=cts-button data-ng-if=\"vm.userPermission === \\'5\\'\" ui-sref=parentDashboard>Kezd\\u0151lap</button> <button class=cts-button data-ng-if=\"vm.userPermission !== \\'5\\'\" ui-sref=dashboard>Kezd\\u0151lap</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/layout/shell.html','<div ng-controller=\"ShellController as vm\"><header data-ng-if=vm.isAuthenticated class=clearfix><nav class=\"navbar navbar-fixed-top navbar-inverse\" style=\"height: 50px !important;\"><h1 class=navbar-brand style=\"overflow: hidden\"><a data-ng-click=vm.goToDashboard() style=\"overflow: hidden;display: block;\"><div class=cts-logo style=\"overflow: hidden; float: left; text-align: center; margin: 0 15px 0 15px; padding: 0;\"><img class=logo src=images/logo_min.png style=\"float:left; height: 40px; margin: 5px 15px 5px 0;\"> <img src=images/felirat_min.png style=\"float:left; height: 40px; margin: 5px 0 5px 0;\"></div></a></h1><div style=text-align:center;><img class=logo ng-src=/images/partnerlogo.png onerror=\"this.style.display=\\'none\\'\" style=\"position:absolute; top:0; left:50%; height: 50px !important; margin: 0; padding: 0 0 0 0; vertical-align: top; transform: translate(-50%,0);\" data-ng-class=\"{\\'small-logo\\': vm.partnerLogoSmall === true}\"></div><div class=pull-right><ul class=\"nav pull-right\"><li class=dropdown style=\"float: right; min-width: 160px;\"><a class=dropdown-toggle data-toggle=dropdown aria-haspopup=true aria-expanded=false id=userNav><span><img class=\"img-rounded profile-image\" name=profile-img ng-src={{vm.pictureBasePath}}{{vm.authData.picture}}></span>{{vm.authData.userFullName}}<span class=caret></span></a> <a class=dropdown-toggle data-toggle=dropdown aria-haspopup=true aria-expanded=false id=userNavSM><span><img class=\"img-rounded profile-image\" name=profile-img ng-src={{vm.pictureBasePath}}{{vm.authData.picture}}></span></a><ul class=dropdown-menu><li><a data-ng-click=vm.goToProfile()><i class=\"glyphicon glyphicon-user\"></i><translate>Profile</translate></a></li><li><a ng-click=vm.openPasswordDialog()><i class=\"glyphicon glyphicon-lock\"></i><translate>ChangePassword</translate></a></li><li role=separator class=divider></li><li><a data-ng-click=vm.logout()><i class=\"glyphicon glyphicon-log-out\"></i><translate>Logout</translate></a></li></ul></li></ul></div></nav></header><section style=\"overflow: inherit;\"><div data-ng-class=\"{sideMenuOpened: sideMenuOpened, sideMenuClosed: !sideMenuOpened}\" class=sidebar-include data-ng-if=vm.isAuthenticated ng-include=\"\\'app/layout/sidebar.html\\'\" style=\"position: fixed; z-index: 10; float: left; height: 100%; top:50px;\"></div><div id=mainContent ui-view data-ng-class=\"{sideMenuOpenedContent: sideMenuOpened, sideMenuClosedContent: !sideMenuOpened}\"></div></section></div>');\n$templateCache.put('app/layout/sidebar.html','<div ng-controller=\"SidebarController as vm\" style=\"height: 100%;\"><ht-sidebar when-done-animating=vm.sidebarReady()><div><button data-ng-class=\"{sideMenuOpenedButton: !sideMenuOpened, sideMenuClosedButton: sideMenuOpened}\" style=\"position: absolute; transition: 0.3s all linear; border-radius: 0; top: 0px; right: 0px; width: 50px; height: 40px; z-index: 999; background-color: transparent; border: none; outline: none;\" data-ng-click=sideMenuClose()><span class=\"glyphicon glyphicon-menu-left\"></span></button> <button data-ng-class=\"{sideMenuOpenedButton: sideMenuOpened, sideMenuClosedButton: !sideMenuOpened}\" style=\"background-color: #232D32; border: none; outline: none;\" data-ng-click=sideMenuOpen()><span class=\"glyphicon glyphicon-menu-right\"></span></button></div><div class=sidebar-filler></div><div class=sidebar-dropdown><a href=# translate>Menu</a></div><div class=sidebar-inner><ul class=navi><li class={{vm.isCurrent(r)}} data-ng-repeat=\"r in navRoutes\" data-ng-class=\"{\\'open\\': vm.level1Open === r.settings.navId, \\'disabledMenuItem\\': !vm.checkUserLevel(r.settings.permission) || !vm.checkPermissionGroup(r.settings.activatorPermission)}\" data-ng-if=\"((vm.checkUserLevel(r.settings.permission) && vm.checkPermissionGroup(r.settings.activatorPermission)) || !INAKTIVMENUREJTES) && !vm.hideAnyWay(r.settings.permission)\"><i class=\"fas {{r.settings.faIcon}}\"></i><a data-ng-click=\"vm.menuItemClicked(r, 1)\">{{r.settings.content|translate}} <span class=\"label label-danger\" ng-if=\"r.settings.content == \\'MessageCenter\\' && vm.messageCount > 0\">{{vm.messageCount}}</span></a><ul data-ng-if=\"r.settings.childRoutes !== undefined && r.settings.childRoutes.length !== 0\"><li class=\"fade-selection-animation {{vm.isCurrent(s)}}\" data-ng-repeat=\"s in r.settings.childRoutes\" data-ng-class=\"{\\'open\\': vm.level2Open === s.settings.navId, \\'disabledMenuItem\\': !vm.checkUserLevel(s.settings.permission) || !vm.checkPermissionGroup(s.settings.activatorPermission)}\" data-ng-if=\"vm.authenticated && (vm.checkPermissionGroup(s.settings.activatorPermission) && vm.checkUserLevel(s.settings.permission)) || !INAKTIVMENUREJTES\"><a data-ng-click=\"vm.menuItemClicked(s, 2)\"><span class=\"glyphicon glyphicon-menu-right\" data-ng-if=\"s.settings.childRoutes !== undefined && s.settings.childRoutes.length !== 0\" data-ng-class=\"{\\'open\\' : vm.level2Open === s.settings.navId}\"></span> {{s.settings.content|translate}}</a><ul data-ng-if=\"s.settings.childRoutes !== undefined && s.settings.childRoutes.length !== 0\"><li class=\"fade-selection-animation {{vm.isCurrent(t)}}\" data-ng-repeat=\"t in s.settings.childRoutes\" data-ng-class=\"{\\'disabledMenuItem\\': !vm.checkUserLevel(t.settings.permission) || !vm.checkPermissionGroup(t.settings.activatorPermission)}\" data-ng-if=\"vm.authenticated && (vm.checkUserLevel(t.settings.permission) && vm.checkPermissionGroup(t.settings.activatorPermission)) || !INAKTIVMENUREJTES\"><a data-ng-click=\"vm.menuItemClicked(t, 3)\">{{t.settings.content|translate}}</a></li></ul></li></ul></li></ul><div id=footer><a href=http://www.cts.hu target=_blank><img src=../../images/cts_logo.png width=115></a> <a href=http://www.sikerszoftver.hu target=_blank>{{vm.buildNumber}}</a><div id=App style=\"float: left\"><a data-ng-click=vm.goToMobilePage() style=\"float: left;\"><img id=NoAppStoreSB src=../../images/AppStore.png width=100></a> <a data-ng-click=vm.goToMobilePage() style=\"float: left;\"><img src=../../images/GooglePlay.png width=100></a></div></div></div></ht-sidebar></div>');\n$templateCache.put('app/login/login.html','<div ng-if=!vm.isAuthenticated class=profile-background><div class=loginShowDiv><div class=login-center><div class=container-fluid><div class=\"card-container card\"><span class=loginTitle><translate>AccountLogin</translate></span> <span data-ng-show=vm.sessionTimeout class=sessionTimeout>Munkamenet lej\\xE1rt!</span><form role=form class=form-horizontal name=vm.frmLogin id=frmLogin novalidate data-ng-submit=vm.login()><div class=form-group><input id=loginName type=text class=\"form-control baseInputStyle\" ng-enter=vm.login() placeholder=\"{{\\'Username\\'|translate}}\" name=loginName data-ng-change=vm.changeLoginName() data-ng-model=vm.loginName autofocus ng-maxlength=30 ng-required-err-type=requiredUserName data-ng-blur=vm.loginFocusOut() required></div><div class=form-group><input id=password type=password class=\"form-control baseInputStyle password\" data-ng-change=vm.changePassword() ng-enter=vm.login() placeholder=\"{{\\'Password\\'|translate}}\" name=password data-ng-model=vm.password ng-required-err-type=requiredPassword required></div><div class=form-group><input id=availableLang class=dropDownlist placeholder=\"{{\\'Languages\\'|translate}}\" ej-dropdownlist e-change=vm.changeLanguage e-template=vm.languageTemplate e-width=100% e-datasource=vm.availableLanguages></div><div class=form-group><button class=\"btn btn-primary col-xs-12\" type=submit translate>Login</button></div></form></div></div></div></div><script type=text/javascript>\\r\\n //Background Image Move on Mousemove - START\\r\\n /*\\r\\n $(\\'.profile-background\\').mousemove(function (e) {\\r\\n console.log(e);\\r\\n var moveX = (e.pageX * -1 / 15);\\r\\n var moveY = (e.pageY * -1 / 15);\\r\\n $(this).css(\\'background-position\\', moveX + \\'px \\' + moveY + \\'px\\')\\r\\n });\\r\\n */\\r\\n //Background Image Move on Mousemove - END\\r\\n $(function() {\\r\\n var movementStrength = 25;\\r\\n var height = movementStrength / $(window).height();\\r\\n var width = movementStrength / $(window).width();\\r\\n $(\".profile-background\").mousemove(function(e){\\r\\n //console.log(e);\\r\\n var pageX = e.pageX - ($(window).width() / 2);\\r\\n var pageY = e.pageY - ($(window).height() / 2);\\r\\n var newvalueX = width * pageX * -1 - 25;\\r\\n var newvalueY = height * pageY * -1 - 50;\\r\\n $(\\'.profile-background\\').css(\"background-position\", newvalueX+\"px \"+newvalueY+\"px\");\\r\\n });\\r\\n });\\r\\n </script></div>');\n$templateCache.put('app/other/other.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/messageCenter/messageCenter.html','<section class=\"mainbar borderless\" style=\"margin-top: -1px;\"><div class=row style=padding:0;><div style=\"padding: 0;\"><form name=form class=filter><div id=mainPage-message-wrapper><div class=\"col-lg-2 col-sm-3 col-xs-2\" id=message-list><h3 class=msgHeading translate>msgMsgList</h3><button class=msgButton data-ng-click=\"vm.toolbarClick(\\'new_msg\\')\" translate>NewMessage</button><div class=message-list-item ng-repeat=\"mess in vm.dataMessages track by $index\" data-ng-click=vm.messageClicked($index) data-ng-if=\"mess.FeladoId != mess.CimzettId\" data-ng-class=\"{selected: (mess.TargyId === vm.openedMessageTargyId)}\"><div class=message-list-item-main><div id=avatar><p id=newBadge ng-if=\"mess.Olvasott == false\" translate>New</p><img data-ng-src={{vm.profileImgBaseUrl}}{{mess.KivelKep}} width=30 height=30 data-ng-if=\"mess.KivelId.length == 1\"> <img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30 data-ng-if=\"mess.KivelId.length > 1\"></div><div><p id=recipient ng-class=\"{\\'message-list-item-header\\': mess.Olvasott === false}\">{{mess.Kivel}}</p><p class=message-list-item-date>| {{mess.MobilDatum}}</p></div><p id=message ng-class=\"{\\'message-list-item-header\\': mess.Olvasott === false}\" class=message-list-item-short-message>{{mess.Uzenet}}</p></div></div></div><div class=\"col-lg-8 col-sm-6 col-xs-10\" id=message-body><div id=message-options class=row><button class=recipientsBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.recipientsListSm(\\'open\\')\" translate>recipients</button> <button class=delBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.toolbarClick(\\'del_msg\\')\" translate>HideMessage</button> <button class=unSubBtn ng-show=\"(vm.SelectedMessageDateSource!=null && vm.newMessage == false && vm.userid != vm.topicStarter) || vm.openedMessageTargyId != null\" data-ng-click=\"vm.toolbarClick(\\'unsub_msg\\')\" translate>UnsubMsg</button></div><div id=message-detail><div id=startPage ng-if=\"vm.SelectedMessageDateSource==null && vm.newMessage == false && vm.openedMessageTargyId == null\"><div id=letter-parent><div id=letter-guy></div></div><h3>{{vm.unreadCount}} <span translate>MsgUnreadMessages</span></h3><h3 translate>MsgSelectAMessage</h3><h3><a ng-click=\"vm.toolbarClick(\\'new_msg\\')\" translate>MsgWriteNewMessage</a></h3></div><div id=messages-body ng-if=\"vm.SelectedMessageDateSource!=null\"><div ng-repeat=\"Message in vm.SelectedMessageDateSource track by $index\" ng-init=\"$last ? vm.finished() : angular.noop()\" style=\"text-align: left;\"><div class=messenger-message-item ng-class=\"{\\'sender\\': Message.Kuldott === true}\"><p class=nev>{{Message.Felado}}</p><div><img class=felado data-ng-src={{vm.profileImgBaseUrl}}{{Message.FeladoKep}} width=30 height=30><div class=message-wrapper ng-class=\"{\\'last\\': $last}\"><p class=message data-ng-if=\"Message.images == null || (!Message.Uzenet.startsWith(\\'K\\xE9p\\') && !Message.Uzenet.startsWith(\\'Image\\'))\">{{Message.Uzenet}}</p><div class=message-images ng-if=\"Message.images != null\"><div data-ng-repeat=\"image in Message.images\" class=message-image><a href={{vm.messageImagesUrl}}{{image}}><img data-ng-src={{vm.messageImagesUrl}}{{image}}></a> <img id=deleteImage src=../../images/Uzenetek/msg_del.png width=15 height=15 data-ng-click=\"vm.deleteImage(image, Message.FeladoId)\" ng-show=\"Message.Kuldott === true\"></div></div><p class=datum>{{Message.MobilDatum}}</p><div class=seenBox><span ng-if=\"Message.SeenByImgs !== null\" ng-repeat=\"seenImg in Message.SeenByImgs track by $index\"><img ng-if=\"Message.SeenBy[$index] != vm.userid\" class=seenByImg data-ng-src={{vm.profileImgBaseUrl}}{{seenImg}} title={{vm.getSeenName(Message.SeenBy[$index])}}></span></div></div></div></div></div></div></div><div id=message-write-container ng-show=\"vm.SelectedMessageDateSource != null || vm.newMessage || vm.openedMessageTargyId != null\"><div id=msgImg><div data-ng-repeat=\"image in files\" class=msgImgDisplay><div><a data-ng-click=vm.deleteAttachedImg($index)><img class=delCross src=../../images/Uzenetek/msg_del.png width=50px height=50px title=\"{{\\'Delete\\'|translate}}\"></a> <img src={{imageDatas[$index]}} width=50 height=50></div></div></div><input id=addFile name=addFile type=file ng-file-select=vm.onFileSelect($files) style=\"display: none;\" multiple accept=.jpg,.png><div class=input-group><span class=input-group-btn><label for=addFile style=\"display: inline-block !important;\" id=attachment_btn class=\"btn btn-default\"><span class=\"glyphicon glyphicon-paperclip\"></span></label></span> <input type=text class=form-control placeholder=\"{{\\'Message\\'|translate}}\" data-ng-model=vm.Message id=messageInput> <span class=input-group-btn><button class=\"btn btn-default\" type=button data-ng-click=vm.messageSend() data-ng-if=\"vm.SelectedMessageDateSource != null || vm.newMessage || vm.openedMessageTargyId != null\"><span class=\"glyphicon glyphicon-send\"></span></button></span></div></div></div><div class=\"col-lg-2 col-sm-3\" id=recipients-wrapper><div id=recipient-container><h3 class=msgHeading data-ng-if=\"vm.SelectedMessageDateSource != null\" translate>recipients</h3><div style=\"text-align: center;\"><button class=\"msgButton red\" id=closeBtn data-ng-click=\"vm.recipientsListSm(\\'close\\')\" translate>Close</button> <button class=msgButton data-ng-if=\"vm.userid == vm.topicStarter && vm.SelectedMessageDateSource != null\" data-ng-click=vm.addUser() translate>Add</button></div><div data-ng-repeat=\"recipient in vm.recipients track by $index\" ng-if=\"vm.SelectedMessageDateSource != null\"><div class=recipient-images data-ng-if=\"recipient.value != vm.userid\"><a data-ng-click=vm.removeUser($index)><img class=delCross src=../../images/Uzenetek/msg_del.png width=24 height=24></a> <img data-ng-src={{vm.profileImgBaseUrl}}{{recipient.fenykep}} width=30 height=30> <span>{{recipient.text}}</span><br></div></div></div><div id=addUser><h3 class=msgHeading translate>msgUsers</h3><div class=row style=\"border: none; padding: 0;\"><div class=col-md-6><button class=\"msgButton green\" data-ng-click=vm.addUserDone() data-ng-if=\"vm.newMessage === false\" translate>Save</button></div><div class=col-md-6><button class=\"msgButton red\" data-ng-click=vm.addUserCancel() translate>msgCancel</button></div></div><input type=text id=searchInput ng-model=vm.searchInput placeholder=\"{{\\'Select\\'|translate}}...\" ng-change=vm.searchUsers(vm.searchInput)><div id=searchResult ng-if=\"vm.searchInput != \\'\\'\"><ul style=\"display: block;\"><li ng-repeat=\"res in vm.results track by $index\" data-ng-click=vm.selectUser(res) data-ng-class=\"{\\'green\\': vm.tempRec.includes(res)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{res.fenykep}} width=30 height=30>{{res.text}}</li></ul></div><div ng-show=\"vm.searchInput == \\'\\'\"><div><span class=cimjegyzek translate>msgUsers</span><ul><li data-ng-if=\"(user.group == \\'Felhaszn\\xE1l\\xF3k\\' || user.group == \\'Users\\') && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgUserGroups</span><ul><li data-ng-if=\"user.group == \\'Felhaszn\\xE1l\\xF3i csoportok\\' || user.group == \\'User Groups\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div><span class=cimjegyzek translate>msgAthletes</span><ul><li data-ng-if=\"user.group == \\'Sportol\\xF3k\\' && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div><span class=cimjegyzek translate>msgParents</span><ul><li data-ng-if=\"user.group == \\'Sz\\xFCl\\u0151k\\' && (!vm.userFilter(user.value) || vm.newMessage)\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src={{vm.profileImgBaseUrl}}{{user.fenykep}} width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgSectionsCoaches</span><ul><li data-ng-if=\"user.group == \\'Szakoszt\\xE1ly edz\\u0151i\\' || user.group == \\'Section\\\\\\'s coaches\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgTeamAthletes</span><ul><li data-ng-if=\"user.group == \\'Csapat sportol\\xF3i\\' || user.group == \\'Team\\\\\\'s Athletes\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgTeamAthletesParents</span><ul><li data-ng-if=\"user.group == \\'Szakoszt\\xE1ly edz\\u0151i\\' || user.group == \\'Team\\\\\\'s Parents\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgAgegroupAthletes</span><ul><li data-ng-if=\"user.group == \\'Koroszt\\xE1ly sportol\\xF3i\\' || user.group == \\'Age Group\\\\\\'s Athletes\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div><div data-ng-if=\"vm.userLevel != 5 && vm.userLevel != 6\"><span class=cimjegyzek translate>msgAgeGroupParents</span><ul><li data-ng-if=\"user.group == \\'Koroszt\\xE1ly sz\\xFCl\\u0151i\\' || user.group == \\'Age Group\\\\\\'s Parents\\'\" data-ng-repeat=\"user in vm.recipientsList track by $index\" data-ng-click=vm.selectUser(user) data-ng-class=\"{\\'green\\': vm.tempRec.includes(user)}\"><img data-ng-src=../../../images/Uzenetek/group.png width=30 height=30>{{user.text}}</li></ul></div></div></div></div></div></form></div></div></section>');\n$templateCache.put('app/paint/paint.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content paint\"><div><form class=filter novalidate name=form enctype=multipart/form-data><div class=button-wrapper style=\"padding: 0;\"><button data-ng-click=vm.deleteAll() title=\"{{\\'paintNewFigure\\'|translate}}\" style=\"background: url(\\'/images/new.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button> <button data-ng-click=vm.save() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSaveFigure\\'|translate}}\" style=\"background: url(\\'/images/save.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button> <button data-ng-click=vm.deletePaint() data-ng-disabled=!vm.deleteEnabled title=\"{{\\'paintDeleteFigure\\'|translate}}\" style=\"background: url(\\'/images/trash.png\\'); background-size: contain; background-position: center; background-repeat: no-repeat; width: 40px; height: 40px; margin-top: 1.25em;\"></button></div><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.sectionDropDownEnabled></cts-dropdown-list><cts-dropdown-list name=agegroupDropDown label=AgeGroup value=vm.agegroupId datasource=vm.ageGroupList databound=vm.agegroupDataBound select=vm.agegroupSelect validation-rules=\"{required: false}\" enabled=vm.sectionDropDownEnabled></cts-dropdown-list><cts-text-box name=paintName label=Name data-ng-model=vm.paintName validation-rules=\"{required: true}\" owndisabled=!vm.sectionDropDownEnabled></cts-text-box><cts-check-box name=publicCheckBox label=\"{{\\'Public\\'|translate}}\" checked=vm.public change=vm.publicCheckboxChanged enabled=vm.checkBoxEnabled></cts-check-box></form></div><div class=\"row pull-left\" style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.undo() data-ng-disabled=\"!(vm.stateId > 0) || !vm.checkBoxEnabled\" title=\"{{\\'paintUndo\\'|translate}}\" style=\"background: url(\\'/images/undo.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.redo() data-ng-disabled=\"!vm.redoEnable || !vm.checkBoxEnabled\" title=\"{{\\'paintRedo\\'|translate}}\" style=\"background: url(\\'/images/redo.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button style=\"background: url(\\'/images/pipe.png\\'); background-size: cover; width: 20px; height: 40px; border-color: #fff !important;cursor: default;\"></button> <button data-ng-class=\"{active: vm.activeMode === 0}\" data-ng-click=vm.pen() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintPenTool\\'|translate}}\" style=\"background: url(\\'/images/pen.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 1}\" data-ng-click=vm.select() title=\"{{\\'paintSelectTool\\'|translate}}\" data-ng-disabled=\"vm.activeMode === 1 || !vm.checkBoxEnabled\" style=\"background: url(\\'/images/select.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.deleteObject() title=\"{{\\'paintDeleteObject\\'|translate}}\" data-ng-disabled=\"vm.activeMode === 0 || !vm.clickedElement || !vm.checkBoxEnabled\" style=\"background: url(\\'/images/delete.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 2}\" data-ng-click=vm.resizeObject() title=\"{{\\'paintResizeObject\\'|translate}}\" data-ng-disabled=\"(vm.activeMode === 2 || !vm.checkBoxEnabled) || vm.enabledResizeRotate === false\" style=\"background: url(\\'/images/resize.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-class=\"{active: vm.activeMode === 3}\" data-ng-click=vm.rotateObject() title=\"{{\\'paintRotateObject\\'|translate}}\" data-ng-disabled=\"(vm.activeMode === 3 || !vm.checkBoxEnabled) || vm.enabledResizeRotate === false\" style=\"background: url(\\'/images/rotate.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addRect() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintRectangular\\'|translate}}\" style=\"background: url(\\'/images/rect.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addTriangle() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintTriangle\\'|translate}}\" style=\"background: url(\\'/images/triangle.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addPentagon() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintPentagon\\'|translate}}\" style=\"background: url(\\'/images/sokszog.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addCircle() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintCircle\\'|translate}}\" style=\"background: url(\\'/images/circle.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addLine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintLine\\'|translate}}\" style=\"background: url(\\'/images/line.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addDashedLine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintDottedLine\\'|translate}}\" style=\"background: url(\\'/images/dline.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addDashedLine2() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintDashedLine\\'|translate}}\" style=\"background: url(\\'/images/dline2.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addArrow() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintArrow\\'|translate}}\" style=\"background: url(\\'/images/arrow.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addSine() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintSine\\'|translate}}\" style=\"background: url(\\'/images/sine.png\\') no-repeat center center; background-size: contain; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addFootball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintFootball\\'|translate}}\" style=\"background: url(\\'/images/football_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addBasketball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintBasketball\\'|translate}}\" style=\"background: url(\\'/images/basketball_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addHandball() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintHandball\\'|translate}}\" style=\"background: url(\\'/images/handball_ball.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addHockeyPuck() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintHockeyPuck\\'|translate}}\" style=\"background: url(\\'/images/hockey_puck.png\\') no-repeat center center; background-size: 20px 20px; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addCone() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintCone\\'|translate}}\" style=\"background: url(\\'/images/cone.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button class=white-border data-ng-click=vm.addGoal1() data-ng-disabled=\"vm.activeMode === 0 || !vm.checkBoxEnabled\" title=\"{{\\'paintGoal\\'|translate}}\" style=\"background: url(\\'/images/goal1.png\\'); background-size: cover; width: 20px; height: 40px;\"></button></div><div class=row style=\"clear: both;\"><div class=pull-left><input type=text id=Background placeholder=paintBackground></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=LineSize placeholder=\"{{\\'paintLineWidth\\'|translate}}\"></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=Color></div><div class=pull-left style=\"margin-left: 1em;\"><input type=text id=TextColor></div><button class=pull-left data-ng-click=vm.getColor() data-ng-disabled=\"vm.activeMode === 0 || !vm.clickedElement || (vm.clickedElement && !vm.clickedElement.color) || !vm.checkBoxEnabled\" title=\"{{\\'paintColorPicker\\'|translate}}\" style=\"background: url(\\'/images/eyedropper.png\\'); background-size: cover; width: 40px; height: 40px; margin-top: 0; margin-left: 1em;\"></button><form style=\"margin-left: 0.5em; overflow: hidden; float: left;\"><input type=text class=form-control data-ng-model=vm.label data-ng-disabled=\"vm.clickedElement === null\" style=\"width: 20em; margin-top: 0.3em; float: left;\" placeholder=\"{{\\'paintLabel\\'|translate}}\"> <button data-ng-click=vm.changedLabel() data-ng-disabled=\"vm.clickedElement === null || !vm.checkBoxEnabled\" title=\"{{\\'paintSaveLabel\\'|translate}}\" style=\"background: url(\\'/images/save.png\\'); background-size: cover; width: 40px; height: 40px; float: left; margin-left: 0.5em;\"></button></form></div><div class=row style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.saveAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSaveFrame\\'|translate}}\" style=\"background: url(\\'/images/saveAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.addAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintAddFrame\\'|translate}}\" style=\"background: url(\\'/images/addAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.deleteAnimation() data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintDeleteFrame\\'|translate}}\" style=\"background: url(\\'/images/deleteAnimation.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(3) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay\\'|translate}}\" style=\"background: url(\\'/images/play1.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(2) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay2x\\'|translate}}\" style=\"background: url(\\'/images/play2.png\\'); background-size: cover; width: 40px; height: 40px;\"></button> <button data-ng-click=vm.play(1) data-ng-disabled=\"vm.animationStates.length < 2 || !vm.checkBoxEnabled\" title=\"{{\\'paintPlay3x\\'|translate}}\" style=\"background: url(\\'/images/play3.png\\'); background-size: cover; width: 40px; height: 40px;\"></button></div><div class=row style=\"margin-bottom: 0.5em;\"><button data-ng-click=vm.selectAnimation($index) data-ng-disabled=!vm.checkBoxEnabled title=\"{{\\'paintSelectFrame\\'|translate}}\" data-ng-repeat=\"animation in vm.animationStates track by $index\" style=\"width: 40px; height: 40px;\">{{$index + 1}}</button></div><div id=canvasWrapper><canvas id=canvas style=\"background-color: #FAFAFA;\">This text is displayed if your browser does not support HTML5 Canvas.</canvas></div><div class=col-sm-12 style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/parentDashboard/parentDashboard.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><cts-dropdown-list name=athletesofuser label=Athlete datasource=vm.athletesofuser value=vm.selectedAthlete ng-if=vm.SZULO></cts-dropdown-list><div class=button-wrapper><button class=cts-button data-ng-if=\"vm.selectedAthlete>0 || vm.SPORTOLO\" ej-button e-click=vm.modifyAthleteData translate>ModifyAthleteData</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/parentMonthlyAttendance/parentMonthlyAttendance.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=row><h2 translate>HianyzasBejelentese</h2><form name=form class=filter><cts-dropdown-list name=athleteDropDown value=vm.athleteId label=Athlete datasource=vm.athleteList databound=vm.athleteDataBound select=vm.athleteSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepicker label=HianyzasNapja value=vm.dateValue validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.saveDate translate>Igazolom</button></div></form></div><div class=row><div class=col-xs-12><h2 translate>Hianyzasok</h2><div id=Grid name=Grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/reports/reports.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/schedule/schedule.html','<section class=mainbar><div class=container-fluid><div class=row><div id=popup><div id=directory ej-dialog e-height=690px e-minheight=690px e-maxheight=690px e-width=900px e-title={{vm.EditMessageText}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div id=toolbarPopup ej-toolbar e-datasource=vm.toolbarPopupItems e-fields-tooltiptext=tooltiptext e-enable-separator=true e-fields-id=empid e-fields-spritecssclass=spriteCss e-click=vm.toolbarPopupClick></div><div id=defaultTab ej-tab><ul><li><a href=#users><img src=../images/Uzenetek/Users.png><span translate>Users</span></a></li><li><a ng-hide=vm.SZULOUSER href=#athletes><img src=../images/Uzenetek/athletes.png><span translate>Athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#parents><img src=../images/Uzenetek/Parents.png><span translate>Parents</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#usergroups><img src=../images/Uzenetek/UserGroups.png><span translate>UserGroups</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#sections><img src=../images/Uzenetek/sections.png><span translate>SectionsCoaches</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#teams><img src=../images/Uzenetek/Team.png><span translate>Team\\'s athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#teamParents><img src=../images/Uzenetek/Parents.png><span translate>Team\\'s athletes parents</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#ageGroups><img src=../images/Uzenetek/agegroup.png><span translate>Agegroup\\'s athletes</span></a></li><li><a ng-hide=\"vm.SZULOUSER || vm.SPORTOLOUSER\" href=#ageGroupsParents><img src=../images/Uzenetek/Parents.png><span translate>Agegroup\\'s athletes parents</span></a></li></ul><div id=users><form name=formUser class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllUsers label=SelectAll checked=false change=vm.userCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchUserParam label=Search change=vm.searchUser></cts-text-box></div></div><div class=row><cts-list-box name=usersListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.usersList show-checkbox=true check-change=vm.usersListChecked></cts-list-box></div></form></div><div id=athletes ng-hide=vm.SZULOUSER><form name=formAthlete class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAthletes label=SelectAll checked=false change=vm.athleteCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAthleteParam label=Search change=vm.searchAthlete></cts-text-box></div></div><div class=row><cts-list-box name=athletesListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.athletesList show-checkbox=true></cts-list-box></div></form></div><div id=usergroups><form name=formUserGroup class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllUserGroup label=SelectAll checked=false change=vm.usersGroupCheckboxChanged></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchUserGroupParam label=Search change=vm.searchUserGroup></cts-text-box></div></div><div class=row><cts-list-box name=usersGroupListBox style=margin-top:-25px label css-class=scroller-fix datasource=vm.usersGroupList show-checkbox=true></cts-list-box></div></form></div><div id=sections><form name=formSections class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllSections change=vm.sectionsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchSectionParam change=vm.searchSection label=Search></cts-text-box></div></div><div class=row><cts-list-box name=sectionsListBox datasource=vm.sectionsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=parents><form name=formParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllParents change=vm.parentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchParentParam change=vm.searchParent label=Search></cts-text-box></div></div><div class=row><cts-list-box name=parentsListBox datasource=vm.parentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=teams><form name=formTeams class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllTeams change=vm.teamsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchTeamsAthletesParam change=vm.searchTeamsAthletes label=Search></cts-text-box></div></div><div class=row><cts-list-box name=teamsAthletesListBox datasource=vm.teamsAthletesList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=teamParents><form name=formTeamParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllTeamParents change=vm.teamParentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchTeamsParentParam change=vm.searchTeamsParents label=Search></cts-text-box></div></div><div class=row><cts-list-box name=teamParentsListBox datasource=vm.teamParentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=ageGroups><form name=formAgeGroups class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAgeGroups change=vm.ageGroupsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAgeGroupsAthletesParam change=vm.searchAgeGroupAthletes label=Search></cts-text-box></div></div><div class=row><cts-list-box name=ageGroupsListBox datasource=vm.ageGroupsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div><div id=ageGroupsParents><form name=formAgeGroupsParents class=popup><div class=row><div class=col-xs-4><div class=row style=margin-top:20px;><cts-horizontal-check-box name=chkSelectAllAgeGroupsParents change=vm.ageGroupsParentsCheckboxChanged label=SelectAll checked=false></cts-horizontal-check-box></div></div><div class=col-xs-8><cts-text-box ng-model=vm.searchAgeGroupsParentParam change=vm.searchAgeGroupParents label=Search></cts-text-box></div></div><div class=row><cts-list-box name=ageGroupsParentsListBox datasource=vm.ageGroupsParentsList style=margin-top:-25px label css-class=scroller-fix show-checkbox=true></cts-list-box></div></form></div></div></div></div><div class=widget><ht-widget-header title={{title}} text-id=scheduleHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect ng-show=vm.sectionDropDownVisible></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=trainingCheckBox label=OnlyTrainings checked=vm.training change=vm.trainingCheckboxChanged style=\"width: 250px;\"></cts-check-box></div><div class=row><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.print translate>Print</button> <button type=button class=cts-button ej-button e-click=vm.exportAllToIcs translate>Export</button></div></div></form><script id=apptemplate type=text/x-template><div class=\"max-size-workcells\" style=\"background-color: {{:Color}};border-style: solid 2px; border-color: {{:Color}}; color:{{:FontColor}}\"> <div style=\"float:left; margin: 0 5px 0 0;\"> {{if AllDay === false}} {{:(\\'0\\' + StartTime.getHours()).slice(-2) + \":\" + (\\'0\\' + StartTime.getMinutes()).slice(-2)}} {{/if}} </div> <div> {{if Subject !== \\'\\'}} <div style=\"text-overflow: ellipsis;overflow: hidden;\">{{:Subject}}</div> {{else}} <div>N\\xE9vtelen esem\\xE9ny</div> {{/if}} </div> </div></script><div id=Schedule1></div><div style=\"margin-top: 1rem; text-align: center;\"><span data-ng-style=\"{\\'background-color\\': vm.eventColor}\" style=\"display: inline-block; margin-left: 0.25rem; padding: 0.25rem; color: #ffffff; min-width: 115px; text-align: center;\">{{vm.eventText}}</span> <span data-ng-style=\"{\\'background-color\\': vm.trainingColor}\" style=\"display: inline-block; margin-left: 0.25rem; padding: 0.25rem; color: #ffffff; min-width: 115px; text-align: center;\">{{vm.trainingText}}</span> <span data-ng-repeat=\"(key, value) in vm.sections\" data-ng-style=\"{\\'background-color\\': value.color, \\'color\\': value.color2}\" style=\"display: inline-block; margin: 0.25rem; padding: 0.25rem; min-width: 115px; text-align: center;\">{{value.text}}</span></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/settings.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/search/search.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/sikerMobile/sikerMobile.html','<section class=\"mainbar borderless\"><div class=mobile-background><div class=\"col-12 introSlide\"><div class=header-content-container><h1 class=display-1 translate>SikerMobileApp</h1></div></div><div class=\"mobile-background empty-space-content\"></div><div class=\"col-md-12 infoSlide\"><div class=row><div class=\"col-sm-12 col-md-8 col-lg-9 align-self-center text-right\"><div class=\"description-content-container align-self-flex-end\"><h1 class=display-1 translate>Introduction</h1><h3 class=display-2 translate>Mobile-Describing-1</h3><div class=tab><button class=\"mainTablinks active\" data-ng-click=\"vm.changeTab(\\'Login\\')\" title=Login type=button translate>Login</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Parents\\')\" title=Parents type=button translate>Parents</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Athletes\\')\" title=Athletes type=button translate>Athletes</button> <button class=mainTablinks data-ng-click=\"vm.changeTab(\\'Coaches\\')\" title=Coaches type=button translate>Coaches</button></div><div class=tab><button class=tablinks data-ng-click=\"vm.changeTab(\\'Home\\')\" title=Home type=button translate>Dashboard</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Attendance\\')\" title=Attendance type=button translate>dailyAttendance</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Schedule\\')\" title=Schedule type=button translate>Schedule</button> <button class=tablinks data-ng-click=\"vm.changeTab(\\'Message\\')\" title=Message type=button translate>Message</button></div><div id=Login class=tabcontent style=\"display: block;\"><h1 class=display-3 translate>Login-function-1</h1><ol><li><h4 class=\"display-3 list\" translate>SelectChangeLanguage</h4></li><li><h4 class=\"display-3 list\" translate>EnterOrganizationCode</h4></li><li><h4 class=\"display-3 list\" translate>LogInToMobile</h4></li></ol></div><div id=Coaches class=tabcontent><h4 class=display-3 translate>Coaches-functions-1</h4></div><div id=Parents class=tabcontent><h4 class=display-3 translate>Parents-functions-1</h4></div><div id=Athletes class=tabcontent><h4 class=display-3 translate>Athletes-functions-1</h4></div><div id=Home class=tabcontent><h4 class=display-3 translate>HomePageReview</h4></div><div id=Attendance class=tabcontent><h4 class=display-3 translate>AttendancePageReview</h4></div><div id=Schedule class=tabcontent><h4 class=display-3 translate>SchedulePageReview</h4></div><div id=Message class=tabcontent><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Coaches\\'\" translate>MessagePageReviewCoachs</h4><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Parents\\'\" translate>MessagePageReviewParents</h4><h4 class=display-3 data-ng-if=\"vm.mainTab == \\'Athletes\\'\" translate>MessagePageReviewAthletes</h4></div></div></div><div class=\"col-sm-12 col-md-4 col-lg-3 align-self-center\"><img id=mobilImage></div></div></div><div class=\"col-md-12 darkLight\"><div class=row><h2 class=display-1 style=\"padding: 0px;\" translate>WithDarkAndLightTemplate</h2></div></div><div class=\"col-md-12 downloadSlide\"><div class=row><div><a><img id=AppStore src=../../images/AppStore.png></a></div><div><a href=\"https://play.google.com/store/apps/details?id=hu.cts.sikermobil\"><img src=../../images/GooglePlay.png></a></div></div></div></div></section>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/assetManagement/assetManagement.html','<section class=mainbar id=popupHolder><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=assetManagementHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=col-md-12><label translate>AssetTypes</label><form class=filter><div style=\"overflow: hidden;\"><div class=button-wrapper><button class=cts-button ej-button e-click=vm.AddAssetType id=AddAssetTypeBtn e-enabled=vm.AddAssetTypeEnabled translate>AddAssetType</button> <button class=cts-button ej-button e-click=vm.EditAssetType id=EditAssetTypeBtn e-enabled=vm.EditAssetTypeEnabled translate>EditAssetType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteAssetType id=DeleteAssetTypeBtn e-enabled=vm.DeleteAssetTypeEnabled translate>DeleteAssetType</button></div></div></form><div id=TypeGrid2></div></div><div class=col-md-12 style=\"margin-top: 25px;\" data-ng-show=vm.typeSelected><label translate>Assets</label><form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=ShowAssets datasource=vm.assetFilterList value=vm.filter select=vm.filterSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.AddAsset id=AddAssetBtn e-enabled=vm.AddAssetEnabled translate>Add</button> <button class=cts-button ej-button e-click=vm.EditAsset id=EditAssetBtn e-enabled=vm.EditAssetEnabled translate>Edit</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteAsset id=DeleteAssetBtn e-enabled=vm.DeleteAssetEnabled translate>Delete</button> <button class=cts-button ej-button e-click=vm.UndeleteAsset id=UndeleteAssetBtn e-enabled=vm.UndeleteAssetEnabled translate>UndeleteAsset</button> <button class=cts-button ej-button e-click=vm.IssuePopup id=IssueBtn e-enabled=vm.IssueEnabled translate>Issue</button> <button class=cts-button ej-button e-click=vm.TakeBack id=TakeBackBtn e-enabled=vm.TakeBackEnabled translate>TakeBack</button> <button class=\"cts-button doubleBtn\" ej-button e-click=vm.SelectAll id=SelectAllBtn translate>SelectAll</button> <button class=\"cts-button doubleBtn\" ej-button e-click=vm.clearSelection id=UnselectAllBtn translate>UnselectAll</button></div></div></form><div id=AssetGrid2></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-minheight=445px e-maxheight=635px e-allowkeyboardnavigation=false e-width=900px e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder style=\"overflow: auto !important;\"><div class=row><div style=\"width:50%; float:left;\"><cts-dropdown-list name=IssueTo label=IssueTo datasource=vm.athletecoachList value=vm.issueto select=vm.issueToSelect></cts-dropdown-list></div><div style=\"width:50%; float:right;\" ng-if=vm.issueToAthlete><cts-dropdown-list name=sectionorusergroup label=Section value=vm.groupId datasource=vm.groupList databound=vm.dropdownDataBound select=vm.groupSelect></cts-dropdown-list></div><div style=\"width:50%; float:right;\" ng-if=vm.issueToCoach><cts-dropdown-list name=sectionorusergroup label=UserGroup value=vm.groupId datasource=vm.groupList databound=vm.dropdownDataBound select=vm.groupSelect></cts-dropdown-list></div><div style=margin-bottom:20px; ng-if=vm.chooseEnabled><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn2 translate>Issue</button></div></div><div class=row><div id=AthleteGrid2 ng-show=vm.issueToAthlete style=width:800px></div><div id=CoachGrid2 ng-show=vm.issueToCoach style=width:800px></div></div></div></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/dailyAttendance/dailyAttendance.html','<style>\\r\\n.presence1_off {\\r\\n background: url(../images/dailyAttendance/presence1_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence1_on {\\r\\n background: url(../images/dailyAttendance/presence1_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence2_off {\\r\\n background: url(../images/dailyAttendance/presence2_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence2_on {\\r\\n background: url(../images/dailyAttendance/presence2_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence3_off {\\r\\n background: url(../images/dailyAttendance/presence3_off.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence3_on {\\r\\n background: url(../images/dailyAttendance/presence3_on.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence1 {\\r\\n background: url(../images/dailyAttendance/presence1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.presence0 {\\r\\n background: url(../images/dailyAttendance/presence0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.absence0 {\\r\\n background: url(../images/dailyAttendance/absence0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.absence1 {\\r\\n background: url(../images/dailyAttendance/absence1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.competition0 {\\r\\n background: url(../images/dailyAttendance/competition0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.competition1 {\\r\\n background: url(../images/dailyAttendance/competition1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.holiday0 {\\r\\n background: url(../images/dailyAttendance/holiday0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.holiday1 {\\r\\n background: url(../images/dailyAttendance/holiday1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.sickness0 {\\r\\n background: url(../images/dailyAttendance/sickness0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.sickness1 {\\r\\n background: url(../images/dailyAttendance/sickness1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.injury0 {\\r\\n background: url(../images/dailyAttendance/injury0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.injury1 {\\r\\n background: url(../images/dailyAttendance/injury1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.proven0 {\\r\\n background: url(../images/dailyAttendance/proven0.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.proven1 {\\r\\n background: url(../images/dailyAttendance/proven1.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.dotdotdot {\\r\\n background: url(../images/dailyAttendance/dotdotdot.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n\\r\\n.clear {\\r\\n background: url(../images/dailyAttendance/clear.png);\\r\\n width: 48px;\\r\\n height: 48px;\\r\\n background-size: 48px 48px;\\r\\n}\\r\\n</style><section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content ng-click=\"vm.DDClick(-1,\\'open\\')\"><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list data-ng-if=vm.allAgeGroupfill name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.loadAttendance translate>ChooseIt</button></div></div></form><br><div id=containerDiv class=container-fluid style=margin-bottom:0;><div class=col-lg-6><table class=table style=\"width: 100%\"><tr ng-repeat=\"item in vm.editedAttendance.tetelek\" ng-if=item.activeToday><td style=\"width: 100%;text-align: right;\"><div style=\"vertical-align: center; margin-bottom: 1em; border:1px red;\" id=IMG_{{item.IdSportolo}}><table style=\"vertical-align: center\"><tr><td rowspan=2><img ng-src={{item.img}} height=96 class=img-rounded style=\"margin-right: 10px;\"></td><td style=\"vertical-align: bottom; text-align: left; font-weight: bold;\">{{item.SportoloNev}}</td></tr><tr><td style=\"vertical-align: top; text-align: left; font-style: italic; text-indent: 15px;\">({{item.SzuletesiDatum}})</td></tr></table></div><div style=\"vertical-align: center\"><label style=margin-left:0; ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.PRESENCE)\" title={{vm.presenceText}}><div ng-if=\"item.selectedIcon <= vm.b.ABSENCE || item.selectedIcon == vm.b.NOTPRESSED\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><div ng-if=\"item.today == \\' \\'\"><div class=presence1_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence0 ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 1\"><div class=presence1_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence1_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 2\"><div class=presence2_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence2_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div><div ng-if=\"item.today == 3\"><div class=presence3_on ng-if=\"item.selectedIcon == vm.b.PRESENCE\"></div><div class=presence3_off ng-if=\"item.selectedIcon != vm.b.PRESENCE\"></div></div></div><div ng-if=\"item.selectedIcon > vm.b.ABSENCE && item.selectedIcon != vm.b.NOTPRESSED\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><div class=presence0></div></div></label><label style=margin-left:1em; ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.ABSENCE)\" title={{vm.absenceText}}><div class=absence1 ng-if=\"item.selectedIcon == vm.b.ABSENCE\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"></div><div class=absence0 ng-if=\"item.selectedIcon != vm.b.ABSENCE\" ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"></div></label><label class=dropdown style=margin-left:1em id=DDL{{item.IdSportolo}}><div aria-haspopup=true aria-expanded=true ng-click=\"vm.DDClick(item.IdSportolo,\\'toggle\\')\"><div class=dotdotdot ng-if=\"item.selectedIcon <= vm.b.ABSENCE || item.selectedIcon == vm.b.NOTPRESSED\"></div><div class=proven1 ng-if=\"item.selectedIcon == vm.b.PROVENABSENCE\"></div><div class=competition1 ng-if=\"item.selectedIcon == vm.b.COMPETITION\"></div><div class=sickness1 ng-if=\"item.selectedIcon == vm.b.SICKNESS\"></div><div class=injury1 ng-if=\"item.selectedIcon == vm.b.INJURY\"></div><div class=holiday1 ng-if=\"item.selectedIcon == vm.b.HOLIDAY\"></div></div><ul class=dropdown-menu style=\"min-width: 0; left:-20px;\"><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.PROVENABSENCE)\" title={{vm.provenabsenceText}}><div class=proven0 ng-if=\"item.selectedIcon != vm.b.PROVENABSENCE\"></div><div class=proven1 ng-if=\"item.selectedIcon == vm.b.PROVENABSENCE\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.COMPETITION)\" title={{vm.competitionText}}><div class=competition0 ng-if=\"item.selectedIcon != vm.b.COMPETITION\"></div><div class=competition1 ng-if=\"item.selectedIcon == vm.b.COMPETITION\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.SICKNESS)\" title={{vm.sicknessText}}><div class=sickness0 ng-if=\"item.selectedIcon != vm.b.SICKNESS\"></div><div class=sickness1 ng-if=\"item.selectedIcon == vm.b.SICKNESS\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.INJURY)\" title={{vm.injuryText}}><div class=injury0 ng-if=\"item.selectedIcon != vm.b.INJURY\"></div><div class=injury1 ng-if=\"item.selectedIcon == vm.b.INJURY\"></div></a></li><li ng-click=\"vm.DDClick(item.IdSportolo,\\'close\\')\"><a ng-click=\"vm.iconClicked(item.RowNumber-1, vm.b.HOLIDAY)\" title={{vm.holidayText}}><div class=holiday0 ng-if=\"item.selectedIcon != vm.b.HOLIDAY\"></div><div class=holiday1 ng-if=\"item.selectedIcon == vm.b.HOLIDAY\"></div></a></li></ul></label></div></td></tr></table><div ng-if=vm.thereIsIncativeAthlete><hr><label translate>AthletesPresentOnMonthlyAttendanceButIncativeToday</label><table class=\"table table-striped\" style=\"width: 100%\"><tr ng-repeat=\"item in vm.editedAttendance.tetelek\" ng-if=!item.activeToday><td style=\"width: 20%\">{{item.SportoloNev}} ({{item.SzuletesiDatum}})</td></tr></table></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveAttendance ng-if=\"vm.editedAttendance.tetelek.length>0 && vm.allowEdit === true\" translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div><div data-ng-hide=true><div class=presence1_off></div><div class=presence1_on></div><div class=presence2_off></div><div class=presence2_on></div><div class=presence3_off></div><div class=presence3_on></div><div class=presence1></div><div class=presence0></div><div class=absence0></div><div class=absence1></div><div class=competition0></div><div class=competition1></div><div class=holiday0></div><div class=holiday1></div><div class=sickness0></div><div class=sickness1></div><div class=injury0></div><div class=injury1></div><div class=proven0></div><div class=proven1></div><div class=dotdotdot></div><div class=clear></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/administration/exercises/exercises.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendance.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/quickCompetitionResults/quickCompetitionResults.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=quickCompetitionResultsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound change=vm.ageGropChange select=vm.ageGroupSelect></cts-dropdown-list></div><div class=row style=margin-top:2rem><script type=text/x-template id=qcrname><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><div id=Grid></div></div><div class=button-wrapper><button type=button id=save class=cts-button ej-button e-click=vm.save translate>Save</button></div></form></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/administration/resultReportAthletes/resultReportAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=resultReportAthletesHelp right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi eredm\\xE9nyjelent\\u0151 m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-xs-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierResultReportAthletesWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierResultReportAthletesWindow() type=button>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=form novalidate id=form><div class=col-md-6><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.editedReportResult.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.editedReportResult.KorcsoportId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSportolo label=Athlete value=vm.editedReportResult.SportoloId datasource=vm.athleteList databound=vm.athleteDataBound select=vm.athleteSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo label=PartnerAthlete value=vm.editedReportResult.TarsEredmenySportolo datasource=vm.athleteListPartner1 databound=vm.athleteDataBoundPartner select=vm.athleteSelectPartner enabled=vm.editable ng-if=\"vm.editedReportResult.SportoloId>0\" clear=vm.clearTars1></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo2 label=PartnerAthlete2 value=vm.editedReportResult.TarsEredmenySportolo2 datasource=vm.athleteListPartner2 databound=vm.athleteDataBoundPartner2 select=vm.athleteSelectPartner2 enabled=vm.editable ng-if=\"vm.editedReportResult.TarsEredmenySportolo>0\" clear=vm.clearTars2></cts-dropdown-list><cts-dropdown-list name=maTarsSportolo3 label=PartnerAthlete3 value=vm.editedReportResult.TarsEredmenySportolo3 datasource=vm.athleteListPartner3 databound=vm.athleteDataBoundPartner3 select=vm.athleteSelectPartner3 enabled=vm.editable ng-if=\"vm.editedReportResult.TarsEredmenySportolo2>0\" clear=vm.clearTars3></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.editedReportResult.DatumTol validation-rules=\"{required: true}\" enabled=vm.editable></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.editedReportResult.DatumIg enabled=vm.editable></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-area name=txEredmSzoveg label=Result(Text) ng-model=vm.editedReportResult.EredmenySzoveg disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=txEredmPontGol label=Result(ScoreGoal) cts-placeholder=ResultScoreGoal value=vm.editedReportResult.EredmenyPont decimalplaces=2 enabled=vm.editable></cts-numeric-text-box><cts-mask-box name=txEredmIdo label=Result(time) value=vm.editedReportResult.EredmenyIdo mask-format=99:99:99.999 enabled=vm.editable title=hh:mm:ss.ttt></cts-mask-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txEredmCm label=Result(Cm) ng-model=vm.editedReportResult.EredmenyTavolsag change=vm.cmChange disabled=!vm.editable></cts-text-box><cts-text-box name=txEredmM label=Result(M) ng-model=vm.editedReportResult.EredmenyTavolsagM change=vm.mChange disabled=!vm.editable></cts-text-box><cts-text-box name=txHelyezes label=Position ng-model=vm.editedReportResult.Helyezes validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-auto-complete name=maVersenyJelleg label=CharacterOfACompetition value=vm.editedReportResult.Jellege datasource=vm.competitionList validation-rules=\"{required: true}\" enabled=vm.editable></cts-auto-complete><cts-text-box name=txVersenyNeve label=CompetitionName ng-model=vm.editedReportResult.VersenyLeiras validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txVersenyszam label=Event ng-model=vm.editedReportResult.Versenyszam addnewtext=true disabled=!vm.editable></cts-text-box><cts-text-area name=txSzovegesErtekeles label=\"textual valuation\" ng-model=vm.editedReportResult.Ertekeles disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txLocation label=Location ng-model=vm.editedReportResult.Helyszin addnewtext=true disabled=!vm.editable></cts-text-box><cts-rating name=mosRating label=Rating value=vm.editedReportResult.Eredmeny enabled=vm.editable></cts-rating><label>*<span translate>MustSpecifyAtLeastOne</span>!</label></div></div><div class=col-md-6><button id=olderReportsCopy class=cts-button ej-button e-enabled=vm.editable style=float:right; e-click=vm.goToOlderAnnualSeasonPlanReports data-ng-enabled=vm.editable translate>OlderResultReportCopy</button><div><br><label translate>picture</label><br><div><div class=profileImg><img ng-src={{vm.editedReportResult.Foto}} style=\"height:350px;width: auto;\"></div><div><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.deleteImg() translate>Delete</button></div></div><div><br><label translate>textual valuation</label><br><div id=Grid name=Grid></div><br><div id=UploadDefault></div></div></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=reset class=cts-button ej-button e-enabled=vm.CanCreateNew data-ng-disabled=!vm.CanCreateNew data-ng-click=vm.createResultReport() style=\"margin-top: 5px; float: left\" translate>New</button> <button type=button class=cts-button ej-button data-ng-click=vm.modifyResultReport() e-enabled=vm.CanModify data-ng-disabled=!vm.CanModify style=\"margin-top: 5px; margin-left:5px; float: left\" translate>Modify</button> <button type=submit form=form class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.saveResultReport() style=\"margin-top: 5px;\" translate>Save</button> <button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div></div></div></div></section><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=650 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=600 height=600 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=600 crop-height=600 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><script id=rereattemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script>');\n$templateCache.put('app/administration/resultReportTeam/resultReportTeam.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=resultReportTeamHelp right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi eredm\\xE9nyjelent\\u0151 m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierResultReportTeamWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierResultReportTeamWindow() type=button>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=form novalidate id=form><div class=col-md-12><div class=\"col-xs-12 col-md-6\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.editedReportResult.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.editedReportResult.KorcsoportId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maCsapat label=Team value=vm.editedReportResult.CsapatId datasource=vm.teamList databound=vm.teamDataBound select=vm.teamSelect validation-rules=\"{required: true}\" enabled=vm.editable></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.editedReportResult.DatumTol validation-rules=\"{required: true}\" enabled=vm.editable></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.editedReportResult.DatumIg enabled=vm.editable></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-area name=txEredmSzoveg label=Result ng-model=vm.editedReportResult.EredmenySzoveg disabled=!vm.editable validation-rules=\"{required: true}\"></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txHelyezes label=Position ng-model=vm.editedReportResult.Helyezes validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-auto-complete name=maVersenyJelleg label=CharacterOfACompetition value=vm.editedReportResult.Jellege datasource=vm.competitionList validation-rules=\"{required: true}\" enabled=vm.editable></cts-auto-complete><cts-text-box name=txVersenyNeve label=CompetitionName ng-model=vm.editedReportResult.VersenyLeiras validation-rules=\"{required: true}\" disabled=!vm.editable></cts-text-box></div><div style=\"overflow: hidden;\"><cts-text-box name=txVersenyszam label=Event ng-model=vm.editedReportResult.Versenyszam addnewtext=true disabled=!vm.editable></cts-text-box><cts-text-area name=txSzovegesErtekeles label=\"textual valuation\" ng-model=vm.editedReportResult.Ertekeles disabled=!vm.editable></cts-text-area></div><div style=\"overflow: hidden;\"><cts-text-box name=txLocation label=Location ng-model=vm.editedReportResult.Helyszin addnewtext=true disabled=!vm.editable></cts-text-box><cts-rating name=mosRating label=Rating value=vm.editedReportResult.Eredmeny enabled=vm.editable></cts-rating></div></div><div class=col-md-6><button id=olderReportsCopy type=button class=cts-button ej-button e-enabled=vm.editable style=float:right; e-click=vm.goToOlderAnnualSeasonPlanReports data-ng-enabled=vm.editable translate>OlderResultReportCopy</button><div><br><label translate>picture</label><br><div><div class=profileImg><img ng-src={{vm.editedReportResult.Foto}} style=\"height:350px;width: auto;\"></div><div><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.deleteImg() translate>Delete</button></div></div><div><br><label translate>textual valuation</label><br><div id=Grid name=Grid style=margin-top:5px;></div><br><div id=UploadDefault></div></div></div></div></div><div class=col-md-12><div id=GridAthletes name=GridAthletes></div><div style=\"overflow: hidden;\"><button type=button class=\"cts-button red\" ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.removeAthletesFromResultReport() style=\"margin-top: 20px; margin-left: 5px; float: left\" translate>Remove</button></div></div></form><div class=col-md-12><form class=filter><div><br><hr><p translate>\\xC1tj\\xE1tsz\\xF3 sportol\\xF3k hozz\\xE1ad\\xE1sa/t\\xF6rl\\xE9se:</p></div><div class=row><cts-dropdown-list name=korosztaly label=AgeGroup value=vm.AtjatszoAgeGroup datasource=vm.AtjatszoAgeGroupList select=vm.atjatszoAgeGroupSelect></cts-dropdown-list><button type=button class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.addAtjatszok() style=\"margin-top: 20px; float: left\" translate>Add</button></div><div class=row><div id=GridAtjatszo></div></div></form></div></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button ej-button e-enabled=vm.CanCreateNew data-ng-disabled=!vm.CanCreateNew data-ng-click=vm.createResultReport() style=\"margin-top: 5px;\" translate>New</button> <button type=button class=cts-button ej-button data-ng-click=vm.modifyResultReport() e-enabled=vm.CanModify data-ng-disabled=!vm.CanModify style=\"margin-top: 5px; margin-left:5px;\" translate>Modify</button> <button type=submit form=form class=cts-button ej-button e-enabled=vm.editable data-ng-disabled=!vm.editable data-ng-click=vm.saveResultReport() style=\"margin-top: 5px;\" translate>Save</button> <button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=650 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=600 height=600 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=600 crop-height=600 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50 style=\"margin-top: 5px;\"></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" style=\"min-width: 100px;\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><script id=reretetemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script></div></div></section>');\n$templateCache.put('app/administration/sportSpecificTest/sportSpecificTest.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/trainingDiary/trainingDiary.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=trainingDiaryHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=edzo label=Coach value=vm.selectedCoach datasource=vm.coachList enabled=false></cts-dropdown-list><cts-dropdown-list name=szakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList enabled=false></cts-dropdown-list><cts-dropdown-list data-ng-if=\"vm.selectedAgeGroup>0\" name=korosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList enabled=false></cts-dropdown-list></div><div class=row><cts-dropdown-list name=ev label=Year value=vm.yearValue datasource=vm.years enabled=false></cts-dropdown-list><cts-dropdown-list name=honap label=Month value=vm.monthValue datasource=vm.months enabled=false></cts-dropdown-list><cts-date-picker name=MadeOn label=MadeOn value=vm.keszult></cts-date-picker><div class=button-wrapper ng-if=!vm.lezart><button type=button id=add class=cts-button ej-button e-click=vm.addRow e-enabled=vm.addEnabled translate>AddNewEntryForThisDay</button> <button type=button id=add class=cts-button ej-button e-click=vm.removeRow e-enabled=vm.removeEnabled translate>RemoveEntryForThisDay</button></div></div><div class=row><div id=Grid></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.Save ng-if=!vm.lezart translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=TKepzesiNaplo report-parameters=vm.reportParameters></report></div></div></div></div></section>');\n$templateCache.put('app/administration/trainingPlan/trainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlan.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/athletes/ageGroups/ageGroups.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view class=crossfade></div></div></div></div></section>');\n$templateCache.put('app/athletes/athletesManagement/athletesManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div ui-view class=crossfade style=\"position: relative; overflow: hidden;\"></div></div></div></div></section>');\n$templateCache.put('app/athletes/sections/sections.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sectionListHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><div class=button-wrapper><button id=AddSection class=cts-button ej-button e-click=vm.AddSection translate>AddSection</button> <button id=EditSection class=cts-button ej-button e-click=vm.EditSection translate>EditSection</button></div></div></div></form><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/athletes/teams/teams.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByAthletes/annualEducationalFeeByAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualeducationalfeebyathletecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${SportoloNeve}</a></script><script type=text/x-template id=annualeducationalfeebyathletecolumnTemplate2><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByCoach/annualEducationalFeeByCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualeducationalfeebycoachcolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeByOneSection/annualEducationalFeeByOneSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeByOneSectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList select=vm.sectionSelect></cts-dropdown-list></div></form><script type=text/x-template id=annualeducationalfeebyonesectioncolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualEducationalFeeBySection/annualEducationalFeeBySection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualEducationalFeeBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeByAthletes/annualSportServiceFeeByAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=annualsportservicefeebyathletecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${SportoloNeve}</a></script><script type=text/x-template id=annualsportservicefeebyathletecolumnTemplate2><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeByCoach/annualSportServiceFeeByCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-jsrender id=annualsportservicefeebycoachcolumnTemplate><a class=\\'bind\\' data-ng-click=\\'vm.openCoach(${Id})\\'>${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>;');\n$templateCache.put('app/business/annualSportServiceFeeByOneSection/annualSportServiceFeeByOneSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeByOneSectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList select=vm.sectionSelect></cts-dropdown-list></div></form><script type=text/x-template id=annualsportservicefeebyonesectioncolumnTemplate><a data-ng-click=\"vm.openCoach(${Id})\">${EdzoNeve}</a></script><div class=row><div id=Grid class=slim-grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/annualSportServiceFeeBySection/annualSportServiceFeeBySection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=annualSportServiceFeeBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=yearDropDown label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/checkPayment/checkPayment.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=checkPaymentHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form novalidate><div class=row><cts-text-box name=checkNumber label=PayerId data-ng-model=vm.checkNumber validation-rules=\"{required: true}\"></cts-text-box><cts-numeric-text-box name=payment label=Payment value=vm.payment validation-rules=\"{required: true}\"></cts-numeric-text-box><div class=button-wrapper><button type=submit class=cts-button ej-button e-click=vm.getCheck translate>GetCheck</button></div></div><div class=row data-ng-if=\"vm.hasCheck === true\"><cts-text-box name=athletesName label=AthletesName data-ng-model=vm.actualPayment.Versenyzo owndisabled=true></cts-text-box><cts-text-box name=section label=Section data-ng-model=vm.actualPayment.Szakosztaly owndisabled=true></cts-text-box></div><div class=row data-ng-if=\"vm.hasCheck === true\"><cts-text-box name=coach label=Coach data-ng-model=vm.actualPayment.Edzo owndisabled=true></cts-text-box><cts-text-box name=amount label=PaidAmount data-ng-model=vm.actualPayment.Osszeg owndisabled=true></cts-text-box><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.pay translate>Pay</button> <button type=button class=cts-button ej-button e-click=vm.removePayment translate>RemovePayment</button></div></div></form><div class=row><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.save translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/checkPrintingExport/checkPrintingExport.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=checkPrintExportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datefrom label=DateFrom value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect value=vm.sectionId validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach datasource=vm.coachList value=vm.coachId databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getDatas translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=checkprintingexportcolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Id})\">${SportoloNeve}</a></script><script type=text/x-template id=checkprintingexportcolumnTemplate2><a data-ng-click=\"vm.openCoach(${IdEdzo})\">${Edzo}</a></script><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/csvPayment/csvPayment.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=csvPaymentHelp right-text=rightText></ht-widget-header><div class=widget-content><div id=step1 ng-show=\"vm.step == 1\"><form class=filter name=form id=csvuploadform novalidate><label translate>Step 1. Select CSV File!</label><div class=row><div class=col-sm-5><div class=posupload translate>Selectfile</div><div class=button-wrapper><div id=UploadButton></div></div></div></div></form></div><div id=step2 class=row ng-show=\"vm.step == 2\"><label style=margin-bottom:2em; translate>Step 2. Select Header Row!</label><div id=WGridHeaderSelector></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label><div class=button-wrapper style=margin-top:2em;><button class=cts-button ej-button e-click=vm.noHeader translate>noHeader</button></div></div><div id=step3 class=row ng-show=\"vm.step == 3\"><label ng-if=\"vm.step == 3\" style=margin-bottom:2em; translate>Step 3. Select ENCODING!</label><div id=WGridEnc></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label></div><div id=step4 class=row ng-show=\"vm.step >= 4 && vm.step <= 7\"><label ng-if=\"vm.step == 4\" style=margin-bottom:2em; translate>Step 4. Select Comment Column!</label> <label ng-if=\"vm.step == 5\" style=margin-bottom:2em; translate>Step 5. Select Date Column!</label> <label ng-if=\"vm.step == 6\" style=margin-bottom:2em; translate>Step 6. Select Depositor Column!</label> <label ng-if=\"vm.step == 7\" style=margin-bottom:2em; translate>Step 7. Select Amount Column!</label><div id=WGridColumnSelector></div><label style=margin-bottom:2em; translate>Note: Not all lines are displayed in this grid!</label><div class=button-wrapper style=margin-top:2em;><button ng-if=\"vm.step == 6\" class=cts-button ej-button e-click=vm.noDepositor translate>noDepositor</button></div></div><div class=row ng-show=\"vm.step == 8\"><label style=margin-bottom:2em; translate>Step 8. To save time CSV Settings can be saved.</label><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.StartAgain translate>StartAgain</button> <button class=cts-button ej-button e-click=vm.SaveSettings translate>SaveSettings</button> <button class=cts-button ej-button e-click=vm.Continue translate>Continue</button></div></div><div class=row ng-show=\"vm.step == 9\"><label style=margin-bottom:2em; translate>Step 9. Select CSV Process mode!</label><div class=\"listbox frame\"><ul id=modes ej-listbox e-datasource=vm.processModes e-fields-text=modeName e-height=200px e-select=vm.modeSelect e-width=350px></ul></div></div><div class=row ng-show=\"vm.step >= 10\"><label ng-if=\"vm.step == 10\" style=margin-bottom:2em; translate>Step 10. Check the checkboxes next to payments!</label> <label ng-if=\"vm.step == 11\" style=margin-bottom:2em; translate>Step 11. Please print unprocessed payments and process them manually!</label><div class=row><div id=GridFinal></div></div></div><div class=row><div class=\"col-sm-12 back\" style=\"text-align: center\" data-ng-if=\"vm.data.length !== 0\"><div ng-if=\"vm.step == 10\"><button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button ej-button e-click=vm.StartAgain translate>Cancel</button> <button class=cts-button ej-button e-click=vm.save e-enabled=vm.saveEnabled translate>Save</button></div><div ng-if=\"vm.step == 11\"><div class=row><label ng-if=\"vm.step == 11\" style=margin-bottom:2em; translate>Note: Now only the unprocessed payments are shown in the list above!</label></div><div class=row><button class=cts-button ej-button e-click=back translate>Back</button></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/dailyEducationalFeePayments/dailyEducationalFeePayments.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyEducationalFeePaymentsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=number label=Number value=vm.selectedNumber datasource=vm.numberList databound=vm.numberDataBound select=vm.numberSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepick label=Date value=vm.dateValue change=vm.dateChange enabled=vm.dateEnabled validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><div class=row><script type=text/x-template id=dailyeducationalfeepaymentscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=dailyeducationalfeepaymentscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=printDialog><report report-name=TNapiTagdijBefizetesek report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/business/dailyEducationalFeesPerCoach/dailyEducationalFeesPerCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailyEducationalFeesPerCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter novalidate name=form enctype=multipart/form-data><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.selectCoach validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=yearDropDownFrom label=DateFrom value=vm.datumTol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=yearDropDownTo label=DateTo value=vm.datumIg validation-rules=\"{required: true}\"></cts-date-picker></div><div class=button-wrapper><button id=lekeres class=cts-button type=submit ej-button e-click=vm.getFeeDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid></div></div><div class=row><div class=col-md-4></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/dailySportServiceFeePayments/dailySportServiceFeePayments.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailySpoerServicePaymentsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=number label=Number value=vm.selectedNumber datasource=vm.numberList databound=vm.numberDataBound select=vm.numberSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-date-picker name=datepick label=Date value=vm.dateValue change=vm.dateChange enabled=vm.dateEnabled validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><div class=row><script type=text/x-template id=dailysportservicefeepaymentscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=dailysportservicefeepaymentscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.addNumbers data-ng-if=\"vm.showAddNumber === true\" translate>AddNumber</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><div id=printDialog><report report-name=TNapiTagdijBefizetesek report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/business/dailySportServiceFeesPerCoach/dailySportServiceFeesPerCoach.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=dailySportServiceFeesPerCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter novalidate name=form enctype=multipart/form-data><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.selectCoach validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=yearDropDownFrom label=DateFrom value=vm.datumTol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=yearDropDownTo label=DateTo value=vm.datumIg validation-rules=\"{required: true}\"></cts-date-picker></div><div class=button-wrapper><button id=lekeres class=cts-button type=submit ej-button e-click=vm.getFeeDatas translate>GetDatas</button></div></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/educationalFeeRegister/educationalFeeRegister.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=educationalFeeRegisterHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>Month</label><div class=input-group><input type=text id=monthDropDownList name=monthDropDownList></div></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=col-sm-12><script type=text/x-template id=educationalfeeregistercolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=educationalfeeregistercolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=Grid class=slim-grid></div><div id=remarks><div class=col-sm-12 style=\"margin-top:10px; float:left;text-align:left; margin-right:-10px;\"><p translate>NotationSportServiceFeeRegister</p></div><div class=col-sm-12><p><span translate>EducationalFee</span>: {{vm.EducationalFee}}</p><p><span translate>{{vm.kedvezmenyNevek[0]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD}}</p><p><span translate>{{vm.kedvezmenyNevek[1]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD2}}</p><p><span translate>{{vm.kedvezmenyNevek[2]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD3}}</p><p><span translate>{{vm.kedvezmenyNevek[3]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD4}}</p><p><span translate>{{vm.kedvezmenyNevek[4]}}</span>: {{vm.sectionFees[0].KedvezmenyesOD5}}</p></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveWithoutNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>Save</button> <button class=cts-button ej-button e-click=vm.saveWithNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>SaveWithNumbers</button> <button class=cts-button ej-button e-click=vm.goToDailyPayments data-ng-if=\"vm.atletesList.length !== 0\" translate>DailyPayments</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/modifyFees/modifyFees.html','<section class=mainbar><div class=container-fluid><div class=row><div class=col-xs-12><div class=widget><ht-widget-header title={{title}} text-id=modifyFeesHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><div class=row><div id=Grid name=Grid></div></div></div></div></div></div><div class=row><form name=form style=\"margin-top: 2em;\"><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>FeeSettings</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-numeric-text-box name=toleranceDays label=ToleranceDays value=vm.toleranceDays validation-rules=\"{required: true, minlength: 1, maxlength: 300}\"></cts-numeric-text-box></div><div class=widget-foot><button class=cts-button ej-button data-ng-click=vm.saveData() translate>Save</button><div class=clearfix></div></div></div></div><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>MeteOutSave</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-date-picker name=fromDate label=FromDate value=vm.fromDate></cts-date-picker><cts-check-box name=onlyNew label=onlyNew checked=vm.onlyNew></cts-check-box></div><div class=widget-foot><button class=cts-button ej-button data-ng-click=vm.meteOut() translate>MeteOut</button><div class=clearfix></div></div></div></div><div class=col-md-4 style=\"margin-bottom: 25px;\"><div class=widget><div class=widget-head><h2 class=page-title translate>YearClosing</h2></div><div class=\"widget-content text-center text-info\" style=\"min-height: 100px; height:150px; max-height: 150px; overflow-y: auto\"><cts-dropdown-list name=ddlYear label=Year datasource=vm.nonClosedYears value=vm.selectedYear select=vm.yearSelect></cts-dropdown-list><label data-ng-if=vm.yearclosed translate>YearIsAlreadyClosed</label></div><div class=widget-foot><button class=cts-button ej-button translate e-click=vm.closeYear e-enabled=vm.closeYearEnabled>Close Year</button><div class=clearfix></div></div></div></div><div class=row><div class=col-md-4></div></div></form></div></div></section>');\n$templateCache.put('app/business/monthlyAttendanceArrears/monthlyAttendanceArrears.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=monthlyAttendanceArrearsHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=row><script type=text/x-template id=monthlyattendancearrearscolumnTemplate><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><div id=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/sportServiceFeeArrears/sportServiceFeeArrears.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sportServiceFeeArrearsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=feearrearscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${VersenyzoId})\">${VersenyzoNeve}</a></script><script type=text/x-template id=feearrearscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/business/sportServiceFeeRegister/sportServiceFeeRegister.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=sportServiceFeeRegisterHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=yearDropDownList label=Year value=vm.year datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>Month</label><div class=input-group><input type=text id=monthDropDownList name=monthDropDownList></div></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.getAthletes translate>GetDatas</button></div></div></form><div class=col-sm-12><script type=text/x-template id=sportservicefeeregistercolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${Versenyzo_Id})\">${Versenyzo_Nev}</a></script><script type=text/x-template id=sportservicefeeregistercolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=Grid class=slim-grid></div><div id=remarks><div class=col-sm-12 style=\"margin-top:10px; float:left;text-align:left; margin-right:-10px;\"><p translate>NotationSportServiceFeeRegister</p></div><div class=col-sm-12><p><span translate>SportServiceFee</span>: {{vm.SportServiceFee}}</p><p><span translate>{{vm.kedvezmenyNevek[0]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD}}</p><p><span translate>{{vm.kedvezmenyNevek[1]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD2}}</p><p><span translate>{{vm.kedvezmenyNevek[2]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD3}}</p><p><span translate>{{vm.kedvezmenyNevek[3]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD4}}</p><p><span translate>{{vm.kedvezmenyNevek[4]}}</span>: {{vm.sectionFees[0].KedvezmenyesTD5}}</p></div></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveWithoutNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>Save</button> <button class=cts-button ej-button e-click=vm.saveWithNumbers data-ng-if=\"vm.atletesList.length !== 0\" translate>SaveWithNumbers</button> <button class=cts-button ej-button e-click=vm.goToDailyPayments data-ng-if=\"vm.atletesList.length !== 0\" translate>DailyPayments</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/other/files/files.html','<div class=widget-head><h2 class=page-title>{{vm.title}}</h2></div><div class=widget-content><div style=\"position: relative;\"><div id=UploadDefault></div><button class=\"cts-button red\" style=\"position: absolute; top: 0px; left: 130px;\" id=delete data-ng-click=vm.deleteFile() type=button translate>Delete</button></div><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button ej-button data-ng-click=back() style=\"margin-top: 5px;\" translate>Back</button></div><script id=fitemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script>');\n$templateCache.put('app/reports/absenceReport/absenceReport.html','<ht-widget-header title={{title}} text-id=absenceReportHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section value=vm.SelectedSectionID datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach value=vm.SelectedCoachID datasource=vm.coachList databound=vm.coachDropDownListDataBound select=vm.coachSelect></cts-dropdown-list><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.fromDateSelect validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.toDateSelect validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></div></form><div class=col-lg-12><script id=abretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=abretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoID})\">${EdzoNeve}</a></script><div id=Grid name=Grid></div></div>*<label translate>PercentageCalculationAndTotalNumberOfTrainingsIsPreciseOnlyWhenWholeMonthIsSelected</label></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/anthropometryTestPrinting/anthropometryTestPrinting.html','<ht-widget-header title={{title}} text-id=anthropometryTestPrintingHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\"></cts-date-picker><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button id=print class=cts-button ej-button e-click=vm.printSelection e-enabled=vm.printEnabled translate>Print</button></div></div></form><div class=row><script type=text/x-template id=anthropometryTestPrintingcolumnTemplate><a data-ng-click=\"vm.goToAthlete(${SportoloId})\">${SportoloNeve}</a></script><div id=Grid name=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialoganthtest><report report-name=TAntropometriaNyomtatasReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/reports/assetInventoryReportByUsers/assetInventoryReportByUsers.html','<ht-widget-header title={{title}} text-id=assetInventoryReportByUserHelp right-text=rightText></ht-widget-header><div class=widget-content><div class=row><form class=filter name=form><cts-dropdown-list name=searchType label=SearchType value=vm.sectionIdValue datasource=vm.athletecoachList databound=vm.searchTypeDateBound select=vm.searchTypeSelect></cts-dropdown-list><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound enabled=vm.searchTypeAthlete select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound enabled=vm.searchTypeAthlete select=vm.ageGroupSelect></cts-dropdown-list><div class=button-wrapper><button style=\"width:30%; float:left;\" id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></form></div><div class=row><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/assetInventoryReportByType/AssetInventoryReportByType.html','<ht-widget-header title={{title}} text-id=assetInventoryReportByTypeHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list style=\"width: auto\" name=AssetTypeDropDown label=AssetType value=vm.assetTypeId field-value=TipusId field-text=TipusNev datasource=vm.assetTypeList databound=vm.AssetTypeDataBound select=vm.assetTypeSelect></cts-dropdown-list><cts-check-box name=Active label=Active checked=vm.active enabled=vm.checkboxEnabled></cts-check-box><cts-check-box name=Expend label=Kiadva checked=vm.expend enabled=vm.checkboxEnabled></cts-check-box><cts-check-box name=All label=All checked=vm.all change=vm.selectAll></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/assetInventoryReports/assetInventoryReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/athleteTransfer/athleteTransfer.html','<ht-widget-header title={{title}} text-id=athleteTransferReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=attrcolumnTemplate1><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=columnTemplate2><a data-ng-click=\"vm.goToNewAthlete(${SportoloId})\">${SportoloNeve}</a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/awayBudgetPlanSummary/awayBudgetPlanSummary.html','<ht-widget-header title={{title}} text-id=awayBudgetPlanSummaryHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=onlyStartDate label=OnlyStartDate checked=vm.onlyStartDate change=vm.onlyStartDateChanged></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script id=rowtemplate type=text/x-template><tr role=\"row\" class=\"e-row ng-scope\"> ${if (Megnevezes == \\'Terv\\')} <td class=\"e-rowcell\" style=\"width: 90px;\" rowspan=\"4\">${VersenySorszam}</td> <td class=\"e-rowcell\" style=\"width: 125px;\" rowspan=\"4\">${Szakosztaly}</td> <td class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\" rowspan=\"4\">${VersenyKezdesIdopont}</td> <td class=\"e-rowcell\" style=\"width: 150px;\" rowspan=\"4\">${VersenyBefejezesIdopont}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> <td class=\"e-rowcell\" style=\"width: 120px;\" rowspan=\"3\">${ElolegOsszege}</td> ${/if} ${if (Megnevezes == \\'Teny\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px; \">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> ${/if} ${if (Megnevezes == \\'Szolg.\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\">${UtazasiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Etkezes}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Szallas}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${NevezesiDij}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${KikuldetesiKoltseg}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Egyeb}</td> <td class=\"e-rowcell\" style=\"width: 120px;\">${Osszesen}</td> ${/if} ${if (Megnevezes == \\'Megjegyz\\xE9s\\')} <td style=\"border-left: 1px solid #e0e0e0;\" class=\"e-rowcell\" style=\"width: 135px;\">${NevHelyCsopRsz}</td> <td class=\"e-rowcell\" style=\"width: 150px;\">${Megnevezes}</td> <td class=\"e-rowcell\" style=\"width: 130px;\" colspan=\"8\">${UtazasiKoltseg}</td> ${/if} </tr></script><div class=row><div id=Grid name=Grid style=\"overflow: hidden\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/duplicatedAthletes/duplicatedAthletes.html','<ht-widget-header title={{title}} text-id=duplicatedAthletesHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-check-box name=InactivesToo label=SearchInInactivesToo checked=vm.InactivesToo change=vm.InactivesChange></cts-check-box></div></form><script type=text/x-template id=duplicatedcolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=duplicatedcolumnTemplate2><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid name=Grid></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/expiringDocuments/expiringDocuments.html','<ht-widget-header title={{title}} text-id=expiringDocumentsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=agegroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=spc label=SearchForExpiringSportPhysicalCertificate checked=vm.searchSPC></cts-check-box><cts-check-box name=passp label=SearchForExpiringPassort checked=vm.searchPP></cts-check-box><cts-check-box name=pid label=SearchForExpiringPersonalIdentity checked=vm.searchPID></cts-check-box><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></div></form><div class=row><script id=exdotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=exdotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoID})\">${EdzoNeve}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/monthlyCompetitivePlans/monthlyCompetitivePlans.html','<ht-widget-header title={{title}} text-id=monthlyCompetitivePlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=moncompplacolumnTemplate1><a data-ng-click=\"vm.goToMonthlyCompetitivePlan(${planId})\" translate><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=monthlyCompetitivePlanscolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=monthlyCompetitivePlanscolumnTemplate2><a data-ng-click=\"vm.openCoach(${JovahagytaId})\">${JovahagytaNeve}</a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/managementReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/healthReport/healthReport.html','<ht-widget-header title={{title}} text-id=healthReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.changeDateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.changeDateTo validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=MainTypeDropDown label=MainType value=vm.mainType datasource=vm.healthMainType select=vm.MainTypeSelect databound=vm.mainTypeDataBound validation-rules=\"{required: false}\"></cts-dropdown-list><cts-dropdown-list name=SubTypeDropDown label=SubType value=vm.subType datasource=vm.filteredSubTypes databound=vm.subTypeDataBound validation-rules=\"{required: false}\"></cts-dropdown-list></div><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></form><div class=row><script type=text/x-template id=healthedit><a data-ng-click=\"vm.goToModifyHealthEvent(${EgeszsegEsetId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/playUpAndDown/playUpAndDown.html','<ht-widget-header title={{title}} text-id=playUpAbdDownHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script type=text/x-template id=puadath><a data-ng-click=\"vm.openAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=puadcoach><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/statisticalReports.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/reports/sportSpecificReport/sportSpecificReport.html','<ht-widget-header title={{title}} text-id=sportSpecificReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionIdValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=tipusDropDown label=FelmeroTipus value=vm.tipusIdValue datasource=vm.tipusList databound=vm.tipusDataBound select=vm.tipusSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.getData validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.getData validation-rules=\"{required: true}\"></cts-date-picker></div></form><div class=col-lg-12><div id=Grid2></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/trainingAttendanceReport/trainingAttendanceReport.html','<ht-widget-header title={{title}} text-id=trainingAttendanceReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><script type=text/x-template id=trainingAttendanceReportcolumnTemplate><a data-ng-click=\"vm.goToAthlete(${SportoloID})\">${SportoloNeve}</a></script><div id=Grid name=Grid></div>*<label translate>PercentageCalculationAndTotalNumberOfTrainingsIsPreciseOnlyWhenWholeMonthIsSelected</label></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/weeklyTrainingReport/weeklyTrainingReport.html','<ht-widget-header title={{title}} text-id=weeklyTreiningReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-auto-complete name=Place label=Place value=vm.place validation-rules=\"{required: false}\" datasource=vm.places></cts-auto-complete><cts-check-box name=ShowWeeks label=ShowWeeks checked=vm.showWeeks change=vm.showWeeksChange></cts-check-box><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><div class=row><script type=text/x-template id=wtro><a data-ng-click=\"vm.openPlan(${hetiedzestervid})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/weeklyTravelReport/weeklyTravelReport.html','<ht-widget-header title={{title}} text-id=weeklyTravelReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list></div><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.selectdateFrom change=vm.fromDateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.selectdateTo change=vm.toDateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=typeDropDown label=Type value=vm.typeId datasource=vm.typeList databound=vm.typeDataBound select=vm.typeSelect></cts-dropdown-list></div><div class=row><cts-dropdown-list name=BusOwnerDropDown label=BusOwner value=vm.busOwnerId datasource=vm.busOwners databound=vm.busOwnersDataBound select=vm.busOwnerSelect></cts-dropdown-list><cts-check-box name=onlyStartDate label=OnlyStartDate change=vm.onlyStartDateChanged></cts-check-box></div><div class=row><div class=button-wrapper><button id=lekeres class=cts-button ej-button e-click=vm.show translate>Show</button></div></div></form><script type=text/x-template id=WTRPlanOpenTemplate><a data-ng-click=\"vm.openPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/ageGroupChange/ageGroupChange.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=ageGroupChangeHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ng-if=\"vm.actualAthleteId>0 && vm.which==1\" class=\"form-group cts-form-group\"><label for=actualSection>{{\"ActualSection\"|translate}}</label> <label id=actualSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><div ng-if=\"vm.actualAthleteId>0 && vm.which==2\" class=\"form-group cts-form-group\"><label for=actualSection>{{\"ActualSection\"|translate}}</label> <label id=actualSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyNev}}</label></div><cts-dropdown-list ng-if=\"vm.actualAthleteId==0\" name=actualSectionDropDown value=vm.actualSectionId label=ActualSection datasource=vm.actualSectionList databound=vm.actualSectionDataBound select=vm.actualSectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div ng-if=\"vm.actualAthleteId>0 && vm.which==1\" class=\"form-group cts-form-group\"><label for=actualCoach>{{\"ActualCoach\"|translate}}</label> <label id=actualCoach style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.JelenlegiEdzoNev}}</label></div><div ng-if=\"vm.actualAthleteId>0 && vm.which==2\" class=\"form-group cts-form-group\"><label for=actualCoach>{{\"ActualCoach\"|translate}}</label> <label id=actualCoach style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyEdzoNev}}</label></div><cts-dropdown-list ng-if=\"vm.actualAthleteId==0\" name=actualCoachDropDown value=vm.actualCoachId label=ActualCoach datasource=vm.actualCoachList databound=vm.actualCoachDataBound select=vm.actualCoachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepick label=DateTransfer value=vm.dateValue change=vm.dateChange validation-rules=\"{required: true}\"></cts-date-picker><cts-dropdown-list name=ageGroupDropDown value=vm.ageGroupId label=NewAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button type=submit class=cts-button ej-button e-click=vm.transferAthletes translate>Transfer</button></div></div></form><div class=row><script type=text/x-template id=agegroupchangecolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=agegroupchangecolumnTemplate2><a data-ng-click=\"vm.goToAthlete(${SportolokId})\">${Nev}</a></script><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section><script id=checkboxTemplateAktiv type=text/x-template><input data-ng-if=\"\\'${Aktiv}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Aktiv}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/settings/athleteTransfer/athleteTransfer.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=athleteTransferHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=actualSectionDropDown value=vm.actualSectionId label=ActualSection datasource=vm.actualSectionList databound=vm.actualSectionDataBound select=vm.actualSectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=actualCoachDropDown value=vm.actualCoachId label=ActualCoach datasource=vm.actualCoachList databound=vm.actualCoachDataBound select=vm.actualCoachSelect></cts-dropdown-list></div><div class=row><cts-dropdown-list name=sectionDropDown value=vm.sectionId label=Section datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown value=vm.coachId label=Coach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown value=vm.ageGroupId label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=datepick label=DateTransfer value=vm.dateValue change=vm.dateChange></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.transferAthletes translate>Transfer</button></div></div></form><script type=text/x-template id=athltransfercolumnTemplate1><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=athltransfercolumnTemplate2><a data-ng-click=\"vm.goToAthlete(${SportolokId})\">${Nev}</a></script><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/createSportSpecificTest/createSportSpecificTest.html','<style>\\r\\n.flex-container {\\r\\n display: -webkit-flex;\\r\\n display: flex;\\r\\n flex-wrap: wrap;\\r\\n}\\r\\n.flex-item {\\r\\n width: 80px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n}\\r\\n.flex-iteminf {\\r\\n width: 20px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n margin-top: 25px;\\r\\n}\\r\\n.flex-itemcp {\\r\\n width: 80px;\\r\\n height: 50px;\\r\\n margin: 3px;\\r\\n margin-top: 4px;\\r\\n margin-right:-41px;\\r\\n}\\r\\n</style><section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=createSportSpecificTestHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=section label=Section datasource=vm.sectionList value=vm.sectionValue select=vm.sectionSelect databound=vm.sectionDataBound></cts-dropdown-list><div class=button-wrapper><div ng-if=vm.UJSPFELM><button id=newFelmeroElemFej class=cts-button ej-button e-click=vm.NewFelmeroTipus data-ng-if=\"vm.sectionValue>0\" translate>NewSportSpecificTestTemplate</button></div></div></div></form><div data-ng-show=\"vm.sectionValue > 0\"><label translate>FelmeroTipusokSzakosztalyonkent</label><div id=GridFelmeroTipus2></div><br><div class=button-wrapper ng-if=vm.UJSPFELM><button id=copyFelmeroElemFej class=cts-button ej-button e-click=vm.CopyFelmeroTipus e-enabled=vm.copyButtonEnabled translate>copyFelmeroElemFej</button> <button id=deleteFelmeroElemFej class=cts-button ej-button e-click=vm.DeleteFelmeroTipus e-enabled=vm.deleteButtonEnabled translate>deleteFelmeroElemFej</button> <button id=activateFelmeroElemFej class=cts-button ej-button e-click=vm.ActivateFelmeroTipus ng-if=\"!vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve\" translate>activate</button> <button id=inactivateFelmeroElemFej class=cts-button ej-button e-click=vm.InactivateFelmeroTipus ng-if=\"vm.selectedFelmeroIsActive && vm.felmeroTipusKijelolve\" translate>inactivate</button></div></div><div data-ng-show=\"vm.selectedFelmeroElemFej > 0\" style=\"margin-top: 25px;\"><label>{{vm.felmNev}}  </label><label translate>FelmeroElemei</label><div id=GridFelmeroElem2></div><div class=\"alert alert-warning\" ng-if=vm.saveBeforeColorWarning><label translate>PleaseSaveFelmeroElemBeforeChoosingColors</label></div><label ng-if=vm.colordivenabled style=margin-top:20px;>{{vm.felmElemNev}}  </label><label ng-if=vm.colordivenabled translate>FelmeroElemSzinei</label><div class=\"panel panel-default\" ng-if=vm.colordivenabled><div><p style=\"padding: 1em 1em 0; margin: 0;\"><span style=\"background-color: {{vm.color1}}; padding: 0.25em 2em;\">-\\u221E - {{vm.num1}}</span> <span style=\"background-color: {{vm.color12}}; padding: 0.25em 2em;\">>{{vm.num1}} - {{vm.num2}}</span> <span style=\"background-color: {{vm.color23}}; padding: 0.25em 2em;\">>{{vm.num2}} - {{vm.num3}}</span> <span style=\"background-color: {{vm.color34}}; padding: 0.25em 2em;\">>{{vm.num3}} - {{vm.num4}}</span> <span style=\"background-color: {{vm.color45}}; padding: 0.25em 2em;\">>{{vm.num4}} - {{vm.num5}}</span> <span style=\"background-color: {{vm.color5}}; padding: 0.25em 2em;\">>{{vm.num5}} - +\\u221E</span></p></div><div class=flex-container><div class=flex-iteminf><label>-\\u221E<label></label></label></div><div class=flex-itemcp><cts-color-picker name=colorPick1 value=vm.color1 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num1 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num1 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num1 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num1 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick12 value=vm.color12 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num2 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num2 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num2 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num2 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick23 value=vm.color23 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num3 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num3 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num3 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num3 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick34 value=vm.color34 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num4 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num4 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num4 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num4 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick45 value=vm.color45 select=vm.applyColor></cts-color-picker></div><div class=flex-item><cts-numeric-text-box value=vm.num5 change=vm.applyColor ng-if=vm.int></cts-numeric-text-box><cts-numeric-text-box value=vm.num5 change=vm.applyColor ng-if=vm.double decimalplaces=3></cts-numeric-text-box><cts-mask-box value=vm.num5 change=vm.applyColor mask-format=99:99 title=mm:ss ng-if=vm.mmss enabled=true></cts-mask-box><cts-mask-box value=vm.num5 change=vm.applyColor mask-format=99:99:99 title=hh:mm:ss ng-if=vm.hhmmss enabled=true></cts-mask-box></div><div class=flex-itemcp><cts-color-picker name=colorPick5 value=vm.color5 select=vm.applyColor></cts-color-picker></div><div class=flex-iteminf><label>+\\u221E<label></label></label></div></div><div class=button-wrapper style=\"margin-left: 50px;margin-bottom: 30px;\"><button id=clearColors class=cts-button ej-button e-click=vm.clearColors e-enabled=true translate>clearColors</button> <button id=setDefaultColors class=cts-button ej-button e-click=vm.setDefaultColors e-enabled=true translate>setDefaultColors</button></div></div><label>{{vm.editableHint}}</label> <label>{{vm.saveOrDiscardeHint}}</label><br><div class=button-wrapper ng-if=vm.UJSPFELM><button id=saveFelmeroElem class=cts-button ej-button e-click=vm.SaveFelmeroElemek e-enabled=vm.modified translate>saveFelmeroElem</button> <button id=discardFelmeroElem class=cts-button ej-button e-click=vm.DiscardFelmeroElem e-enabled=vm.modified translate>discardFelmeroElem</button></div></div><br><br><div class=well><div ng-repeat=\"hint in vm.typeHint\"><label style=color:rgb(128,128,128)>{{hint}}</label></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/editHealthType/editHealthType.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=editHealthTypeHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><div class=col-md-6><form class=filter><div class=row><div style=\"margin-top: 2em;\" class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddMainType id=addMainType e-enabled=vm.EGESZSMOD translate>addMainType</button> <button class=cts-button ej-button e-click=vm.EditMainType id=editeMainType e-enabled=vm.editDeleteMainTypeEnabled translate>editMainType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteMainType id=deleteMainType e-enabled=vm.editDeleteMainTypeEnabled translate>deleteMainType</button></div></div></form><div><div id=MainTypeGrid name=MainTypeGrid></div></div></div><div class=col-md-6><form class=filter><div class=row><div style=\"margin-top: 2em;\" class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddSubType id=addSubType e-enabled=vm.addNewSubType translate>addSubType</button> <button class=cts-button ej-button e-click=vm.EditSubType id=editeSubType e-enabled=vm.editDeleteSubTypeEnabled translate>editSubType</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteSubType id=deleteSubType e-enabled=vm.editDeleteSubTypeEnabled translate>deleteSubType</button></div></div></form><div id=SubTypeGrid name=SubTypeGrid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/editSection/editSection.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate id=form name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-text-box name=Section label=Section ng-model=vm.section.SzakosztalyNeve validation-rules=\"{required: true, minlength: 4 }\"></cts-text-box><cts-dropdown-list name=leader1DropDown label=PrimarySectionLeader value=vm.section.SzakosztalyVezetoId1 datasource=vm.sectionLeaders databound=vm.leader1DataBound select=vm.leader1Select validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=leader2DropDown label=SecondarySectionLeader value=vm.section.SzakosztalyVezetoId2 datasource=vm.sectionLeaders2 databound=vm.leader2DataBound select=vm.leader2Select validation-rules=\"{required: true}\"></cts-dropdown-list></div></div><div class=row><div class=col-lg-8><cts-check-box label=Active checked=vm.section.Aktiv></cts-check-box><cts-check-box label=IndividualSport checked=vm.section.Egyeni></cts-check-box><cts-check-box label=TeamSport checked=vm.section.Csapat></cts-check-box></div></div><hr><div class=row><div class=col-md-12 style=\"text-align: center;\"><label translate>TextColor</label></div><div class=col-lg-8 style=\"clear: both;\"><cts-color-picker name=TextColor label=TextColor value=vm.section.SzovegSzin style=margin-top:5px;></cts-color-picker><cts-color-picker name=BackgroundColor label=BackgroundColor value=vm.section.Szin style=margin-top:5px;></cts-color-picker></div></div><hr><div class=row><div class=col-md-12 style=\"text-align: center;\"><label style=margin-left:40px; translate>ClothesUsedInSection</label></div><div class=col-lg-8><cts-check-box label=Slippers checked=vm.section.RuhaPapucs></cts-check-box><cts-check-box label=Shoe checked=vm.section.RuhaCipo></cts-check-box><cts-check-box label=Jogging checked=vm.section.RuhaMelegito></cts-check-box><cts-check-box label=BathRobe checked=vm.section.RuhaFurdokopeny></cts-check-box><cts-check-box label=Coat checked=vm.section.RuhaKabat></cts-check-box></div></div><hr><div class=row><div class=col-lg-8><cts-check-box label=ArmorPant checked=vm.section.RuhaPancelnadrag></cts-check-box><cts-check-box label=Shirt checked=vm.section.RuhaPolo></cts-check-box><cts-check-box label=Short checked=vm.section.RuhaSort></cts-check-box><cts-check-box label=SwimmingPant checked=vm.section.RuhaUszonadrag></cts-check-box></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center; margin-bottom:15px;\"><button class=cts-button ej-button e-click=vm.save type=submit form=form translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/schoolManagement/schoolManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/settings/systemSettings/systemSettings.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=systemSettingsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=\"col-xs-12 col-lg-6\"><cts-check-box name=socialSecurityNumberRequired label=SocialSecurityNumberRequired checked=vm.socialSecurityNumberRequiredValue></cts-check-box><cts-check-box name=athleteRegistrationNumberRequired label=AthleteRegistrationNumberRequired checked=vm.athleteRegistrationNumberRequiredValue></cts-check-box><cts-check-box name=paymentNumberSeparately label=PaymentNumberSeparately checked=vm.paymentNumberSeparatelyValue></cts-check-box><cts-check-box name=SPORTMINKOTELEZO label=AthleteRequiredMinDatas checked=vm.SPORTMINKOTELEZO></cts-check-box><cts-check-box name=SPKORVALTTART label=AthleteTransferWithDebit checked=vm.SPKORVALTTART></cts-check-box><cts-check-box name=HAVIEDZTERVJOVAHAGYKOT label=MonthlyTrainingPlanApproveRequired checked=vm.HAVIEDZTERVJOVAHAGYKOT></cts-check-box><cts-check-box name=HETIEDZTERVJOVAHAGYKOT label=WeeklyTrainingPlanApproveRequired checked=vm.HETIEDZTERVJOVAHAGYKOT></cts-check-box><cts-check-box name=ESZKSPORTOLOKILEP label=AbleToExitAthleteWithAsset checked=vm.ESZKSPORTOLOKILEP></cts-check-box><cts-check-box name=ESZKUSERKILEP label=AbleToExitUserWithAsset checked=vm.ESZKUSERKILEP></cts-check-box><cts-check-box name=NINCSOKTDIJ label=NINCSOKTDIJ checked=vm.NINCSOKTDIJ></cts-check-box><cts-check-box name=INAKTIVMENUREJTES label=INAKTIVMENUREJTES checked=vm.INAKTIVMENUREJTES></cts-check-box></div><div class=\"col-xs-12 col-lg-6\"><cts-check-box name=FOLAPELFOGADASRAVAROJELENLETIK label=FOLAPELFOGADASRAVAROJELENLETIK checked=vm.FOLAPELFOGADASRAVAROJELENLETIK></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROHAVITERVEK label=FOLAPELFOGADASRAVAROHAVITERVEK checked=vm.FOLAPELFOGADASRAVAROHAVITERVEK></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROHETITERV label=FOLAPELFOGADASRAVAROHETITERV checked=vm.FOLAPELFOGADASRAVAROHETITERV></cts-check-box><cts-check-box name=FOLAPELFOGADASRAVAROEVESTERVEK label=FOLAPELFOGADASRAVAROEVESTERVEK checked=vm.FOLAPELFOGADASRAVAROEVESTERVEK></cts-check-box><cts-check-box name=FOLAPKIFIZETETLENTAGDIJAK label=FOLAPKIFIZETETLENTAGDIJAK checked=vm.FOLAPKIFIZETETLENTAGDIJAK></cts-check-box><cts-check-box name=FOLAPLINKEK label=FOLAPLINKEK checked=vm.FOLAPLINKEK></cts-check-box><cts-check-box name=FOLAPLEJARO label=FOLAPLEJARO checked=vm.FOLAPLEJARO></cts-check-box></div></div><div class=row><div class=col-sm-6><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ReducedFeeNames</label></div><cts-dropdown-list name=languages label=Languages value=vm.valasztottNyelv datasource=vm.NYELVEK select=vm.languageSelect></cts-dropdown-list><cts-text-box name=k1 label=ReducedFee1 data-ng-model=vm.kedvezmeny1></cts-text-box><cts-text-box name=k2 label=ReducedFee2 data-ng-model=vm.kedvezmeny2></cts-text-box><cts-text-box name=k3 label=ReducedFee3 data-ng-model=vm.kedvezmeny3></cts-text-box><cts-text-box name=k4 label=ReducedFee4 data-ng-model=vm.kedvezmeny4></cts-text-box><cts-text-box name=k5 label=ReducedFee5 data-ng-model=vm.kedvezmeny5></cts-text-box><cts-text-box name=ok1 label=ReducedEducationalFee1 data-ng-model=vm.kedvezmenyokt1></cts-text-box><cts-text-box name=ok2 label=ReducedEducationalFee2 data-ng-model=vm.kedvezmenyokt2></cts-text-box><cts-text-box name=ok3 label=ReducedEducationalFee3 data-ng-model=vm.kedvezmenyokt3></cts-text-box><cts-text-box name=ok4 label=ReducedEducationalFee4 data-ng-model=vm.kedvezmenyokt4></cts-text-box><cts-text-box name=ok5 label=ReducedEducationalFee5 data-ng-model=vm.kedvezmenyokt5></cts-text-box></div><div class=col-sm-6><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ExpiredDocNotificationGroup</label></div><div align=left style=margin-right:100px;><div class=row><cts-list-box name=expNotiList label css-class=scroller-fix datasource=vm.expNotiList show-checkbox=true checkedindices=vm.expNotiChecked height=170></cts-list-box></div><div class=row><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>ExpiredDocNotificationFrequencyForParentsAndAthletes</label></div><cts-dropdown-list name=nf1 label=NotificationFrequency value=vm.nf1 datasource=vm.nf1list select=vm.nf1Select databound=vm.nf1databound></cts-dropdown-list><cts-dropdown-list name=nf2 label=NotificationOn value=vm.nf2 datasource=vm.nf2list select=vm.nf2Select databound=vm.nf2databound></cts-dropdown-list></div></div><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>DeadlineSettings</label></div><div align=left style=margin-right:100px;><cts-numeric-text-box name=WtpGracePeriod label=WtpGracePeriod value=vm.HETIEDZTURELMI validation-rules=\"{required: false, minlength: -365, maxlength: 365}\"></cts-numeric-text-box></div></div></div><div class=row><div class=col-sm-6></div><div class=col-sm-6><div class=row><div class=row><label class=col-lg-12 style=\"text-align: center; margin-bottom: 25px\" translate>CountsAsAttendance</label></div><div style=margin-right:100px;><cts-list-box name=attendanceList label css-class=scroller-fix datasource=vm.attendanceList show-checkbox=true checkedindices=vm.attendanceChecked height=170></cts-list-box></div></div></div></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSystemSettings translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/reports/raceResultsReport/raceResultsReport.html','<ht-widget-header title={{title}} text-id=raceResultsReportHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev change=vm.nameChange enabled=false></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.birthDate clear=vm.clearYear change=vm.selectBirthDate></cts-date-picker><cts-dropdown-list name=Team label=Team datasource=vm.teamsList databound=vm.teamsDataBound clear=vm.clearTeam select=vm.teamsSelect></cts-dropdown-list><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom clear=vm.clearSelectdateFrom change=vm.selectdateFromChange></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound clear=vm.clearSection select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound clear=vm.clearAgeGroup select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coach label=Coach datasource=vm.coachList databound=vm.coachDropDownListDataBound clear=vm.clearCoach select=vm.coachSelect></cts-dropdown-list><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo clear=vm.clearSelectdateTo change=vm.selectdateToChange></cts-date-picker></div><div style=\"overflow: hidden;\"><cts-text-box name=athleteRatings label=CoachRating data-ng-model=vm.requestedData.Ertekeles></cts-text-box><cts-text-box name=athleteRanking label=AthleteRanking data-ng-model=vm.requestedData.Helyezes></cts-text-box><cts-text-box name=athleteResults label=ResultText data-ng-model=vm.requestedData.EredmenySzoveg></cts-text-box><div class=\"form-group cts-form-group\"><label for=coachRating><label translate>CoachRating</label></label><div id=coachRating><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio1 value=-2 e-change=vm.radioButtonChecked> <label for=Radio1 class=labelBtn>1</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio2 value=-1 e-change=vm.radioButtonChecked> <label for=Radio2 class=labelBtn>2</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio3 value=0 e-change=vm.radioButtonChecked> <label for=Radio3 class=labelBtn>3</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio4 value=1 e-change=vm.radioButtonChecked> <label for=Radio4 class=labelBtn>4</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio5 value=2 e-change=vm.radioButtonChecked> <label for=Radio5 class=labelBtn>5</label></div><div class=radioBtn><input type=radio ej-radiobutton name=large id=Radio6 value=2 e-change=vm.radioButtonClear> <label for=Radio6 class=labelBtn>-</label></div></div></div></div><div style=\"overflow: hidden;\"><cts-text-box name=location label=Location data-ng-model=vm.requestedData.Helyszin></cts-text-box><cts-text-box name=competitionType label=Jellege data-ng-model=vm.requestedData.Jellege></cts-text-box><cts-text-box name=competition label=VersenyLeiras data-ng-model=vm.requestedData.VersenyLeiras></cts-text-box><cts-text-box name=Versenyszam label=Versenyszam data-ng-model=vm.requestedData.Versenyszam></cts-text-box></div><div class=button-wrapper style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.searchTeam translate>SearchTeam</button> <button class=cts-button ej-button e-click=vm.searchAthlete translate>SearchAthlete</button> <button id=deleteResult class=cts-button e-enabled=vm.showDelButton ej-button e-click=vm.deleteResult translate>deleteResult</button></div><script id=rareretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><script id=rareretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.open(${Id})\" translate><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></a></script><script id=rareretemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.printAthleteResult(${Id})\" translate>Print</a></script></form><div class=row style=\"margin-top: 2em; clear: both;\"><div data-ng-show=\"vm.searched === \\'athlete\\'\"><div class=col-lg-12><div id=Grid class=slim-grid></div></div></div><script id=rareretemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openTeam(${CsapatId})\">${CsapatNev}</a></script><script id=rareretemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.open(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=rareretemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.printTeamResult(${Id})\" translate>Print</a></script><div data-ng-show=\"vm.searched === \\'team\\'\"><div class=col-lg-12><div id=Grid2 class=slim-grid></div></div></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=back translate>Back</button></div></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialogA ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenySportoloReport report-parameters=vm.reportParameters></report></div><div id=printDialogT ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenyCsapatReport report-parameters=vm.reportParameters2></report></div>');\n$templateCache.put('app/settings/userGroups/userGroupsManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div id=popup><div id=newgroup ej-dialog e-height=385px e-minheight=385px e-maxheight=385px e-title={{vm.newgrouptitle}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=newgroupName label=Name data-ng-model=vm.newgroup.Nev></cts-text-box><cts-text-box name=newgroupDesc label=Description data-ng-model=vm.newgroup.Leiras></cts-text-box></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=done data-ng-click=vm.newgroupSave() type=button translate>Save</button> <button class=cts-button id=cancel data-ng-click=vm.newgroupCancel() type=button translate>Cancel</button></div></div></div></div><div id=popup><div id=editgroup ej-dialog e-height=385px e-minheight=385px e-maxheight=385px e-title={{vm.editgrouptitle}} e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><form name=form class=popup><cts-text-box name=editgroupName label=Name data-ng-model=vm.editgroup.Nev></cts-text-box><cts-text-box name=editgroupDesc label=Description data-ng-model=vm.editgroup.Leiras></cts-text-box></form><hr><div class=form-group style=\"text-align: center;\"><button class=cts-button id=cancel data-ng-click=vm.editgroupCancel() type=button translate>Cancel</button> <button class=cts-button id=done data-ng-click=vm.editgroupSave() type=button translate>Save</button></div></div></div></div><div class=widget><ht-widget-header title={{title}} text-id=userGroupsHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\" /> </div></script><div class=widget-content><form class=filter><div class=row><div class=\"button-wrapper no-margin-top\"><button class=cts-button ej-button e-click=vm.AddGroup id=addGroup e-enabled=vm.UJFELHCSOP translate>addGroup</button> <button class=cts-button ej-button e-click=vm.EditGroup id=deleteGroup e-enabled=vm.deleteGroupEnabled translate>editGroup</button> <button class=\"cts-button red\" ej-button e-click=vm.DeleteGroup id=deleteGroup e-enabled=vm.deleteGroupEnabled translate>deleteGroup</button> <button class=cts-button ej-button e-click=vm.ManageRights id=manageRights e-enabled=vm.setGroupRightsEnabled translate>manageRights</button></div></div></form><div><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/userRights/userRights.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=userRightsHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><div class=row><div class=\"col-md-12 col-lg-8\"><form class=listboxkozepre><cts-dropdown-list name=userGroupDropDown label=\"User group\" value=vm.selectedUserGroup datasource=vm.userGroupList databound=vm.userGroupDataBound select=vm.userGroupSelect></cts-dropdown-list><cts-list-box enabled=vm.changeEventActive name=groupRightsList label=\"User group rights\" css-class=scroller-fix datasource=vm.accessRights show-checkbox=true check-change=vm.groupRightsChange checkedindices=vm.checkedIndices height=400></cts-list-box></form></div></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/settings/userManagement/userManagement.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/settings/usersBelongingToAthletes/usersBelongingToAthletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><ht-widget-header title={{title}} text-id=usersBelongingToAthletesHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><cts-dropdown-list name=sectionDropDown label=Section datasource=vm.sectionList value=vm.sectionIdValue databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=addTeam class=cts-button ej-button e-click=vm.getParentAndAthleteUsers translate>GetDatas</button></div></div></div></form><script id=usbetoattemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openUser(${UserID})\">${UserName}</a></script><script id=usbetoattemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloID})\">${SportoloNeve}</a></script><script id=usbetoattemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.unlinkUserFromAthlete(${UserID},${SportoloID},${szerepint})\" translate=\"\">unlinkUserFromAthlete</a></script><div id=Grid></div></div><div class=widget-foot><div class=clearfix></div></div></div></div></div></section>');\n$templateCache.put('app/search/athletes/athletes.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/search/user/user.html','<section class=mainbar><div class=container-fluid><div class=row><div class=widget><div class=crossfade ui-view></div></div></div></div></section>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanList/annualSeasonPlanList.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.yearList databound=vm.yearDataBound select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div id=Grid name=Grid></div></form></div><div class=widget-foot><button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=back() translate>Back</button><div class=clearfix></div></div><script id=ansepllitemplateDataColumn1 type=text/x-template><input type=\"checkbox\" data-ng-if=\"\\'${EgyeniTerv}\\' === \\'true\\'\" checked=\"checked\" disabled/> <input type=\"checkbox\" data-ng-if=\"\\'${EgyeniTerv}\\' !== \\'true\\'\" disabled/></script><script id=ansepllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${KorosztalyNeve}</a></script><script id=ansepllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToNewCoach(${IdEdzo})\">${EdzoNeve}</a></script><script id=ansepllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${EdzoLezarta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${EdzoLezarta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=ansepllitemplateDataColumn5 type=text/x-template><input data-ng-if=\"\\'${SzakosztalyvezetoJovahagyta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${SzakosztalyvezetoJovahagyta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=ansepllitemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage1/annualSeasonPlanReportPage1.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPageHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><br><button type=button id=olderReports class=cts-button style=float:right; ej-button e-click=vm.goToOlderAnnualSeasonPlanReports translate>OlderAnnualSeasonReports</button></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=teKapcsolat label=Contact data-ng-model=vm.coachContact owndisabled=true></cts-text-box><cts-dropdown-list name=maKorabbi enabled=vm.maKorabbiEditable label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect data-ng-hide=vm.noAnnualSeasonPlan></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=teEmail label=Email data-ng-model=vm.coachEmail owndisabled=true></cts-text-box></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect validation-rules=\"{required: true}\"></cts-dropdown-list><br><button type=button id=annualSeasonPlanReportSelect class=cts-button ej-button e-click=vm.annualSeasonPlanReportSelect style=margin-left:15px translate>Select</button> <button type=button id=annualSeasonPlanReportCreate class=cts-button e-enabled=vm.noAnnualSeasonPlan ej-button e-click=vm.annualSeasonPlanReportCreate translate>CreateNewAnnualSeasonPlanReport</button></div><div class=\"alert alert-danger\" data-ng-show=vm.noAnnualSeasonPlan translate>ThereIsntAnnualSeasonPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasAnnualSeasonPlan translate>ThereIsAnnualSeasonPlanReport</div><div class=\"alert alert-warning\" data-ng-show=vm.hasSignedAnnualSeasonPlan translate>TherIsSignedAnnualSeasonPlanReport</div><div class=\"alert alert-success\" data-ng-show=vm.hasAcceptedAnnualSeasonPlan translate>ThereIsSignedAndAcceptedAnnualSeasonPlanReport</div><label translate>TheMostImportantDataOfAGroupsMembers</label><div id=Grid name=Grid></div></form></div><div class=widget-foot style=\"text-align: center;\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshData() data-ng-show=vm.hasAnnualSeasonPlan translate>RefreshData</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() data-ng-show=\"vm.hasAnnualSeasonPlan || vm.hasSignedAnnualSeasonPlan || vm.hasAcceptedAnnualSeasonPlan\" translate>NextPage</button></div><script id=anseplrepa1templateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNeve}</a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage2/annualSeasonPlanReportPage2.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage2Help right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><label translate>AthleteStartOfOfficialTrainingAndPastTrainers</label><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>PreconditioningAndCompetitionPast</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshData() data-ng-hide=vm.disable translate>RefreshData</button><br><button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div><script id=anseplrepa2templateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNeve}</a></script>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage3/annualSeasonPlanReportPage3.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage3Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=270px e-minheight=270px e-maxheight=435px e-title=\"V\\xE1lassza ki a kiemelked\\u0151 eredm\\xE9nyt a list\\xE1b\\xF3l!\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-position-y=20% e-position-x=25%><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button ng-if=!vm.same type=submit class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults(false)>Rendben</button> <button ng-if=vm.same type=submit class=\"cts-button red doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults(true)>Rendben</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeOutstandingResultsWindow()>M\\xE9gsem</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>PreparationAndCompetitionPast</label><br><label translate>OutstandingResults</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.newAthletesNewRow() data-ng-hide=vm.disable translate>NewAthletesNewRow</button> <button disabled id=oldNew type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.oldAthletesNewRow() data-ng-hide=vm.disable translate>OldAthletesNewRow</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=vm.disable translate>Search</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search2() data-ng-hide=vm.disable translate>Search same</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage4/annualSeasonPlanReportPage4.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage4Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=435px e-minheight=435px e-maxheight=435px e-title=\"Kor\\xE1bbi versenyeztet\\xE9si tervek\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button type=button class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectEarlierAnnualSeasonPlan() translate>OK</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeEarlierAnnualSeasonPlanWindow() translate>Cancel</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><label translate>CapitalObjectives</label><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>NumberOfWeeklyTrainings</label><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teSpSpec label=SpSpec value=vm.data.HetiEdzesSportag change=vm.numberChange enabled=vm.editable></cts-numeric-text-box></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teAddTraining label=AdditionalTraining value=vm.data.HetiEdzesKiegeszito change=vm.numberChange enabled=vm.editable></cts-numeric-text-box></div><div style=\"overflow: hidden;\"><cts-numeric-text-box name=teWeeklyTotal label=WeeklyTotalTraining value=vm.data.HetiEdzesOsszesen enabled=false></cts-numeric-text-box></div><hr><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=TechnicalTrainingObjectives data-ng-model=vm.data.TechKepzesFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox1 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.TechKepzesFeladatokFile && vm.editable\"></div><button type=button class=\"cts-button doubleBtn\" ej-button e-click=vm.openTechnicalTrainingObjectives data-ng-show=vm.data.TechKepzesFeladatokFile translate>OpenDocument</button> <button type=button class=\"cts-button doubleBtn\" ej-button e-click=vm.removeTechnicalTrainingObjectives data-ng-show=vm.data.TechKepzesFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=SportSpecificTrainingObjectives data-ng-model=vm.data.SportagSpecFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox6 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.SportagSpecFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openSportSpecificTrainingObjectives data-ng-show=vm.data.SportagSpecFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.removeSportSpecificTrainingObjectives data-ng-show=vm.data.SportagSpecFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=TacticalTrainingObjectives data-ng-model=vm.data.TaktikaiKepzesFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox2 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.TaktikaiKepzesFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openTacticalTrainingObjectives data-ng-show=vm.data.TaktikaiKepzesFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeTacticalTrainingObjectives data-ng-show=vm.data.TaktikaiKepzesFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=AbilitydevelopmentObjectives data-ng-model=vm.data.KepessegFejlFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox3 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.KepessegFejlFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openAbilitydevelopmentObjectives data-ng-show=vm.data.KepessegFejlFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeAbilitydevelopmentObjectives data-ng-show=vm.data.KepessegFejlFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 30px;\"><cts-text-area name=comment label=EducationalObjectivesAndTasks data-ng-model=vm.data.NevelesiFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox4 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.NevelesiFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openEducationalObjectives data-ng-show=vm.data.NevelesiFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeEducationalObjectives data-ng-show=vm.data.NevelesiFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div><div style=\"overflow: hidden; margin-top: 10px; margin-bottom: 20px\"><cts-text-area name=comment label=EfficiencyObjectives data-ng-model=vm.data.EredmenyessegiFeladatok owndisabled=vm.disable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area><div style=\"text-align: center; margin-top: -10px;\"><div id=uploadbox5 style=\"margin-top: -15px;\" data-ng-hide=\"vm.data.EredmenyessegiFeladatokFile && vm.editable\"></div><button type=button class=cts-button style=margin-top:-10px; ej-button e-click=vm.openEfficiencyObjectives data-ng-show=vm.data.EredmenyessegiFeladatokFile translate>OpenDocument</button> <button type=button class=cts-button ej-button e-click=vm.removeEfficiencyObjectives data-ng-show=vm.data.EredmenyessegiFeladatokFile e-enabled=vm.editable translate>RemoveDocument</button></div></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=vm.disable translate>CopyFromOlderAnnualSeasonPlan</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage5/annualSeasonPlanReportPage5.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage5Help right-text=rightText></ht-widget-header><div id=popup><div id=searchWindow ej-dialog e-height=270px e-minheight=270px e-maxheight=435px e-title=\"Kor\\xE1bbi versenyeztet\\xE9si tervek\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button type=button class=\"cts-button doubleBtn\" id=done data-ng-click=vm.selectOutstandingResults() translate>OK</button> <button type=button class=\"cts-button red doubleBtn\" id=cancel data-ng-click=vm.closeOutstandingResultsWindow() translate>Cancel</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>CompetitionPlansAndObjectives</label><div id=Grid name=Grid></div></div></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.newRow() data-ng-hide=!vm.editable translate>NewRow</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.removeRow() data-ng-hide=!vm.editable translate>RemoveRow</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.search() data-ng-hide=!vm.editable translate>CopyFromOldCompetitionPlan</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=submit class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToNextPage() translate>NextPage</button></div>');\n$templateCache.put('app/administration/annualSeasonPlan/annualSeasonPlanReportPage6/annualSeasonPlanReportPage6.html','<ht-widget-header title={{title}} text-id=annualSeasonPlanReportPage6Help right-text=rightText></ht-widget-header><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maKorabbi style=float:right; label=JumpToPage value=vm.jumpedPage datasource=vm.JumpPageList databound=vm.jumpPageDataBound select=vm.jumpPageSelect></cts-dropdown-list></div><label translate>YearlyTablePlan</label><div id=Grid></div><div id=Grid2 name=Grid2></div><cts-text-area name=comment label=OtherObjectivesPlansTasks data-ng-model=vm.head.EgyebCelkituzesek disabled=!vm.editable css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area></form></div><div class=widget-foot style=\"text-align: center\"><button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.closePlan() data-ng-show=vm.editable translate>CloseYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.rejectPlan() data-ng-hide=\"vm.editable || vm.closed\" translate>RejectYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.acceptPlan() data-ng-hide=\"vm.editable || vm.closed\" translate>AcceptYearlyPlan</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.gotoMainPage() translate>Close</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.print() translate>Print</button> <button type=button class=\"cts-button doubleBtn\" style=\"margin-top: 5px;\" ej-button data-ng-click=vm.refreshCompetition() data-ng-show=vm.editable translate>RefreshCompetition</button><br><button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.goToPreviousPage() translate>PreviousPage</button> <button type=button class=cts-button style=\"margin-top: 5px;\" ej-button data-ng-click=vm.savePlan() data-ng-show=vm.editable translate>Save</button></div><div id=popup><div id=rejectAttendanceWindow ej-dialog e-height=215px e-minheight=215px e-maxheight=215px e-title=\"\\xC9ves versenyeztet\\xE9si terv visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel>Adja meg a visszautas\\xEDt\\xE1s ok\\xE1t:</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectAttendanceText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button type=button class=\"btn btn-primary post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow()>M\\xE9gsem</button> <button type=button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectAttendance()>Rendben</button></div></div></div></div></div><div id=printDialog><report report-name=TEvesVersTerv report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlanCreate/awayBudgetPlanCreate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate><div class=row style=\"margin: auto;\"><div class=col-xs-12 style=margin-top:1em;><h3 style=\"text-align: center;\">{{vm.title}}</h3></div><div class=col-xs-12><div class=button-wrapper><button class=cts-button ej-button e-click=vm.openPlan ng-if=\"(vm.terv != true && vm.teny)\" translate>OpenPlan</button> <button class=cts-button ej-button e-click=vm.openFact ng-if=\"(vm.teny != true && vm.tenyId > 0)\" translate>OpenFact</button></div></div></div><div class=row style=margin-top:2em;><div class=col-lg-5><cts-dropdown-list name=sectionDropDown label=Section value=vm.data.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.data.EdzoIdValue datasource=vm.coachList databound=vm.coachDataBound select=vm.edzoSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list></div><div class=col-lg-5><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.data.KorosztalyId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list></div><div class=col-lg-5><cts-text-box name=coachContact label=CoachContact data-ng-model=vm.EdzoElerhetosege owndisabled=true></cts-text-box></div></div><hr><div class=row><div class=col-lg-5><cts-text-box name=competitionName label=CompetitionName data-ng-model=vm.data.VersenyNeve validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div><div class=col-lg-5><cts-text-box name=competitionPlace label=CompetitionPlace data-ng-model=vm.data.VersenyHelye validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div></div><div class=row><div class=col-lg-5><cts-date-picker name=CompetitionStart label=CompetitionStart value=vm.data.VersenyKezdete validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker></div><div class=col-lg-5><cts-date-picker name=CompetitionEnd label=CompetitionEnd value=vm.data.VisszaindulasIdopontja validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker></div></div><div class=row><div class=col-lg-5><cts-text-box name=CompetitionDepartmentPlace label=CompetitionDepartmentPlace data-ng-model=vm.data.BuszKiallasHelye validation-rules=\"{required: true, maxlength: 100}\" owndisabled=!vm.allowEdit></cts-text-box></div><div class=col-lg-5><cts-date-time-picker name=CompetitionDepartmentTime label=CompetitionDepartmentTime value=vm.data.BuszKiallasIdopontja interval=15 validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-time-picker></div></div><div class=row><div class=col-lg-5><cts-auto-complete name=Bus label=Bus value=vm.data.SzallitoJarmu datasource=vm.busLists validation-rules=\"{required: true, maxlength: 50}\" owndisabled=!vm.allowEdit show-popup-button=true></cts-auto-complete></div><div class=col-lg-5><cts-auto-complete name=BusOwner label=BusOwner validation-rules=\"{required: true, maxlength: 50}\" value=vm.data.SzallitoJarmuTulajdonos datasource=vm.busOwners owndisabled=!vm.allowEdit style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div></div><div class=row><div class=col-lg-5><cts-numeric-text-box name=Advance label=Advance value=vm.data.ElolegOsszege validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box></div><div class=col-lg-5></div></div><h3 style=\"text-align: center;margin: 2em;\" translate>DetailedBudget</h3><div class=budgetPlanContainer><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>TravelCost</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=TravelCostAmount label=TravelCostAmount value=vm.data.UtazasiKoltsegOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.UtazasiKoltsegOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=TravelCostProvider label=TravelCostProvider data-ng-model=vm.data.UtazasiKoltsegSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=TravelCostDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.travelCostDivide e-width=100% translate>TravelCostDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Meal</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=MealAmount label=MealAmount value=vm.data.EtkezesOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.EtkezesOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=MealProvider label=MealProvider data-ng-model=vm.data.EtkezesSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=MealDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.mealDivide e-width=100% translate>MealDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Accommodation</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=AccommodationAmount label=AccommodationAmount value=vm.data.SzallasOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.SzallasOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=AccommodationProvider label=AccommodationProvider data-ng-model=vm.data.SzallasSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=AccommodationDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.accommodationDivide e-width=100% translate>AccommodationDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>RegistrationFee</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=RegistrationFeeAmount label=RegistrationFeeAmount value=vm.data.NevezesiOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.NevezesiOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=RegistrationFeeProvider label=RegistrationFeeProvider data-ng-model=vm.data.NevezesiDijSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=RegistrationFeeDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.registrationFeeDivide e-width=100% translate>RegistrationFeeDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>SecondmentCost</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=SecondmentCostAmount label=SecondmentCostAmount value=vm.data.KikuldetesiKoltsegOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.KikuldetesiKoltsegOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=SecondmentCostProvider label=SecondmentCostProvider data-ng-model=vm.data.KikuldetesiKoltsegSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=SecondmentCostDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.secondmentCostDivide e-width=100% translate>SecondmentCostDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Other</p><div class=budgetPlanInputWrapper><cts-numeric-text-box name=OtherAmount label=OtherAmount value=vm.data.EgyebOsszeg validation-rules=\"{required: true}\" enabled=vm.allowEdit inputonly=true change=vm.EgyebOsszegChange></cts-numeric-text-box></div><div class=budgetPlanInputWrapper><cts-text-box name=OtherProvider label=OtherProvider data-ng-model=vm.data.EgyebSzolgaltato owndisabled=!vm.allowEdit inputonly=true></cts-text-box></div><button type=button id=OtherDivide class=cts-button ej-button e-enabled=vm.allowEdit e-click=vm.otherDivide e-width=100% translate>OtherDivide</button></div><div class=budgetPlanItem><p class=budgetPlanItemHeader translate>Sum</p><cts-numeric-text-box name=Sum label=Sum value=vm.data.OsszesenOszeg validation-rules=\"{required: false}\" enabled=false inputonly=true></cts-numeric-text-box></div></div><cts-text-area name=Comment label=Comment data-ng-model=vm.data.Megjegyzes css=\"padding-left:0; padding-right:0; width: 95%; margin: auto;\" disabled=!vm.allowEdit inputonly=true></cts-text-area><h3 style=\"text-align: center;margin: 2em;\" translate>DetailedPeople</h3><div class=row ng-show=vm.allowEdit><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>MoreAgeGroups</label><div class=input-group><input type=text id=MoreAgeGroups name=MoreAgeGroups></div></div></div><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>Athlete</label><div class=input-group><input type=text id=AthleteDropDownMS name=AthleteDropDownMS></div></div></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddAthlete class=cts-button ej-button e-click=vm.addAthlete e-enabled=vm.allowEdit translate>Add</button> <button type=button id=AddAllAthlete class=cts-button ej-button e-click=vm.addAllAthlete e-enabled=vm.allowEdit translate>AddAll</button></div><div class=col-lg-8><div class=\"form-group cts-form-group\"><label translate>User</label><div class=input-group><input type=text id=UserDropDownMS name=UserDropDownMS></div></div></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddUser class=cts-button ej-button e-click=vm.addUser e-enabled=vm.allowEdit translate>Add</button></div><div class=col-lg-8><cts-text-box name=OtherPersonName label=OtherPersonName data-ng-model=vm.otherPersonName owndisabled=!vm.allowEdit></cts-text-box><cts-numeric-text-box name=OtherPersonYear label=OtherPersonYear value=vm.otherPersonYear enabled=vm.allowEdit></cts-numeric-text-box></div><div class=\"col-lg-4 smCenter\"><button type=button id=AddOther class=cts-button ej-button e-click=vm.addOtherPersonName e-enabled=vm.allowEdit translate>Add</button></div><div class=\"col-lg-12 smCenter\"><button type=button id=DeleteSelected class=cts-button ej-button e-click=vm.deleteSelected e-enabled=vm.allowEdit translate>DeleteSelected</button></div></div><div class=row style=margin-top:0.5rem><div id=Grid></div></div><div class=button-wrapper style=\"text-align: center; margin-top: 2em; width: 100%;\"><div class=row><button type=submit name=saveAwayBudgetPlan id=search class=cts-button ej-button e-click=vm.save e-enabled=vm.allowEdit translate>Save</button> <button type=button id=delete class=cts-button ej-button e-click=vm.deletePlan ng-if=\"vm.data.Id > 0 && !vm.forceDisableEdit && !vm.teny && vm.allowEdit\" translate>DeletePlan</button> <button class=cts-button ej-button e-click=vm.print translate>Print</button> <button class=cts-button ej-button e-click=vm.excel ng-if=\"vm.data.Id>0\" translate>Excel Export</button></div><div class=row><button class=cts-button ej-button e-click=vm.close ng-if=vm.allowClose translate>ClosePlan</button> <button class=cts-button ej-button e-click=vm.open ng-if=\"vm.allowOpen && vm.forceDisableEdit == false\" translate>ReOpenPlan</button> <button class=cts-button ej-button ng-if=\"vm.allowOpen && vm.forceDisableEdit == true && vm.teny == false\" e-enabled=false translate>UnableToReOpenPlan</button> <button class=cts-button ej-button e-click=vm.finalize ng-if=\"vm.allowFinalize == true && vm.forceDisableEdit == false\" translate>Finalize</button></div><div class=row ng-hide=\"vm.terv && vm.tenyId > 0\"><button ej-button class=cts-button e-enabled=vm.Accept1Enabled e-click=vm.IWillAccept1 ng-if=\"vm.allowIWillAccept1 && !vm.allowAccept1 && !vm.allowUndoAccept1\" translate>IWillAccept1</button> <button ej-button class=cts-button e-enabled=vm.Accept1Enabled e-click=vm.accept1 ng-if=\"!vm.allowIWillAccept1 && vm.allowAccept1 && !vm.allowUndoAccept1\" translate>Accept1</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept1Enabled e-click=vm.UndoAccept1 ng-if=\"!vm.allowIWillAccept1 && !vm.allowAccept1 && vm.allowUndoAccept1\" translate>UndoAccept1</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept1 && !vm.allowAccept1 && !vm.allowUndoAccept1\" translate>UnableAccept1</button> <button ej-button class=cts-button e-enabled=vm.Accept2Enabled e-click=vm.IWillAccept2 ng-if=\"vm.allowIWillAccept2 && !vm.allowAccept2 && !vm.allowUndoAccept2\" translate>IWillAccept2</button> <button ej-button class=cts-button e-enabled=vm.Accept2Enabled e-click=vm.accept2 ng-if=\"!vm.allowIWillAccept2 && vm.allowAccept2 && !vm.allowUndoAccept2\" translate>Accept2</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept2Enabled e-click=vm.UndoAccept2 ng-if=\"!vm.allowIWillAccept2 && !vm.allowAccept2 && vm.allowUndoAccept2\" translate>UndoAccept2</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept2 && !vm.allowAccept2 && !vm.allowUndoAccept2\" translate>UnableAccept2</button> <button ej-button class=cts-button e-enabled=vm.Accept3Enabled e-click=vm.IWillAccept3 ng-if=\"vm.allowIWillAccept3 && !vm.allowAccept3 && !vm.allowUndoAccept3\" translate>IWillAccept3</button> <button ej-button class=cts-button e-enabled=vm.Accept3Enabled e-click=vm.accept3 ng-if=\"!vm.allowIWillAccept3 && vm.allowAccept3 && !vm.allowUndoAccept3\" translate>Accept3</button> <button ej-button class=cts-button e-enabled=vm.UndoAccept3Enabled e-click=vm.UndoAccept3 ng-if=\"!vm.allowIWillAccept3 && !vm.allowAccept3 && vm.allowUndoAccept3\" translate>UndoAccept3</button> <button ej-button class=cts-button e-enabled=false ng-if=\"!vm.allowIWillAccept3 && !vm.allowAccept3 && !vm.allowUndoAccept3\" translate>UnableAccept3</button></div></div><div class=row><table class=table><tbody><tr><td><label>Szakmai j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle1}}</td></tr><tr><td><label>Gazdas\\xE1gi j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle2}}</td></tr><tr><td><label>Vezet\\u0151i j\\xF3v\\xE1hagy\\xF3:</label></td><td>{{vm.subtitle3}}</td></tr></tbody></table></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog style=\"height: 100%;\"><report report-name=TIdegenbeliKoltsegvetesiTervReport report-parameters=vm.reportParameters style=\"height: 100%;\"></report></div>');\n$templateCache.put('app/administration/awayBudgetPlan/awayBudgetPlanList/awayBudgetPlanList.html','<ht-widget-header title={{title}} text-id=awayBudgetPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-dropdown-list name=typeDropDown label=Type value=vm.typeId datasource=vm.typeList databound=vm.typeDataBound select=vm.typeSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-date-picker name=DateFrom label=DateFrom value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=DateTo label=DateTo value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker><cts-auto-complete name=competitionPlace label=CompetitionPlace value=vm.competitionPlace datasource=vm.competitionPlaceList multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=onlyStartDate label=OnlyStartDate checked=vm.onlyStartDate></cts-check-box></div><div class=row><div class=button-wrapper><button type=button id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=button id=create class=cts-button ej-button e-click=vm.create translate>Create</button> <button type=button id=delete class=\"cts-button red\" ej-button e-click=vm.delete translate>Delete</button></div></div><div class=row style=margin-top:2rem><script type=text/x-template id=PlanOpenTemplate><a data-ng-click=\"vm.openPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanList/competitiveMonthlyPlanList.html','<ht-widget-header title={{title}} text-id=competitionMonthlyPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year value=vm.selectedYear select=vm.yearChanged datasource=vm.years databound=vm.yearDataBound validation-rules=\"{required: true}\"></cts-dropdown-list></div></form><script type=text/x-template id=coachColumnTemplate><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script type=text/x-template id=openDeleteColumnTemplate><a data-ng-click=\"vm.goToCompetitiveMonthlyPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid name=Grid></div><div class=col-xs-9><hr><button class=cts-button ej-button data-ng-if=\"vm.selectedCoach!==undefined && vm.selectedCoach!==null && vm.selectedCoach!==0 && vm.selectedSection!==undefined && vm.selectedSection!==null && vm.selectedSection!==0 && vm.selectedSection!==null && vm.allowAddNew.individual\" data-ng-click=\"vm.goToNewCompetitiveMonthlyPlan(\\'egyeni\\')\" translate>\\xDAj havi versenyterv k\\xE9sz\\xEDt\\xE9se (egy\\xE9ni)</button> <button class=cts-button ej-button data-ng-if=\"vm.selectedCoach!==undefined && vm.selectedCoach!==null && vm.selectedCoach!==0 && vm.selectedSection!==undefined && vm.selectedSection!==null && vm.selectedSection!==0 && vm.selectedSection!==null && vm.allowAddNew.teams\" data-ng-click=\"vm.goToNewCompetitiveMonthlyPlan(\\'csapat\\')\" translate>\\xDAj havi versenyterv k\\xE9sz\\xEDt\\xE9se (csapat)</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/competitiveMonthlyPlan/competitiveMonthlyPlanReport/competitiveMonthlyPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedMonthlyPlan.fej.EdzoNeve owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedMonthlyPlan.fej.SzakosztalyNeve owndisabled=true></cts-text-box><cts-text-box name=txTipusI label=Type owndisabled=true ng-model=vm.individualText ng-if=vm.egyeni></cts-text-box><cts-text-box name=txTipusT label=Type owndisabled=true ng-model=vm.teamText ng-if=!vm.egyeni></cts-text-box><div class=smCenter><button id=olderReports style=margin-top:10px class=cts-button ej-button e-click=vm.goToOlderMonthlyCompetitiveReports data-ng-hide={{vm.editedMonthlyPlan.fej.Vegleges}} translate>OlderMonthlyCompetitveReports</button></div></div><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect databound=vm.yearDatabound enabled=\"vm.Id===0\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months select=vm.monthSelect databound=vm.monthDatabound enabled=\"vm.Id===0\"></cts-dropdown-list></div><br><div style=\"overflow: hidden;\"><div class=\"alert alert-info\" data-ng-show=vm.noMonthlyPlan translate>ThereIsntMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasMonthlyPlan translate>ThereIsMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasSignedMonthlyPlan translate>TherIsSignedMonthlyPlanReport</div><div class=\"alert alert-info\" data-ng-show=vm.hasAcceptedMonthlyPlan translate>ThereIsSignedAndAcceptedAMonthlyPlanReport</div><cts-text-box name=\"Finalized on\" label=\"Finalized on\" data-ng-model=vm.leadvaStr css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=true></cts-text-box><cts-text-box name=\"Accepted on\" label=\"Accepted on\" data-ng-model=vm.elfogadvaStr css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=true></cts-text-box></div><div class=row><p><span translate>LastEditedValue</span>: {{vm.editedColumnValue}}<button id=CopyCellToColumn class=cts-button e-enabled={{vm.readOnlyMonthlyPlan}} ej-button e-click=vm.CopyCellToColumn style=\"margin-left: 2em;\" translate>CopyCellToColumn</button></p></div><div class=row style=\"position: relative;\"><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=GridNew name=GridNew class=slim-grid></div></div><br><cts-text-area name=comment label=Comment data-ng-model=vm.editedMonthlyPlan.fej.Megjegyzes owndisabled=vm.readOnlyMonthlyPlan css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{maxLenght: 255}\"></cts-text-area><div class=col-sm-12 style=\"text-align: center\"><button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && !vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.closeMonthlyPlan translate>MonthlyPlanReportClose</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && vm.leadvaStr.length>0 && vm.editedMonthlyPlan.fej.Elfogadas1 == null\" class=cts-button ej-button e-click=vm.acceptMonthlyPlan translate>SectionLeaderApprove</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.rejectMonthlyPlan translate>Deny</button> <button class=cts-button ej-button e-click=vm.printMonthlyPlan translate>Print</button> <button class=cts-button ej-button e-enabled=vm.saveButton e-click=vm.saveMonthlyPlan translate>Save</button> <button class=cts-button ej-button e-click=back translate>Close</button> <button data-ng-if=\"vm.editedMonthlyPlan.fej.Id>0 && !vm.leadvaStr.length>0\" class=cts-button ej-button e-click=vm.deletePlan translate>Delete</button></div></form><br><br><div class=button-wrapper><button id=ShowYearlyPlan class=cts-button ej-button e-enabled=vm.MEGTEVVERST data-toggle=collapse data-target=#yearlyplan translate>ShowYearlyPlan</button></div><div id=yearlyplan class=collapse><div style=\"overflow: hidden;\"><cts-dropdown-list name=AgeGroupForAnnual label=AgeGroupForAnnual select=vm.ageGroupSelect datasource=vm.coachsAgeGroups></cts-dropdown-list></div><br><div id=GridYear name=GridYear></div></div><div id=popup><div id=rejectAttendanceWindow ej-dialog e-width=80% e-title=\"Havi vers enyeztet\\xE9si terv visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-allowsorting=true e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel translate>ReasonForRejection</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectMonthlyPlanText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectMonthlyPlanOk() type=button translate>Rendben</button> <button class=\"btn btn-primary post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow() type=button translate>M\\xE9gsem</button></div></div></div></div></div><div id=popup><div id=searchWindow ej-dialog e-title=\"Kor\\xE1bbi versenyeztet\\xE9si terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 10px\"><button class=cts-button id=done data-ng-click=vm.selectEarlierCompetitvePlanWindow() type=button>Rendben</button> <button class=cts-button id=cancel data-ng-click=vm.closeEarlierCompetitvePlanWindow() type=button>M\\xE9gsem</button></div></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div><div data-ng-if=\"vm.egyeni==true\" id=printDialogE><report report-name=THaviVersenytervEgyeni2 report-parameters=vm.reportParameters></report></div><div data-ng-if=\"vm.egyeni!=true\" id=printDialogCS><report report-name=THaviVersenytervCsapat2 report-parameters=vm.reportParameters></report></div><script type=text/x-template id=cmpropenathlete><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${KorosztalySportolo}</a></script><script type=text/x-template id=cmpropenteam><a data-ng-click=\"vm.openTeam(${CsapatId},${KorosztalyId},${SzakosztalyId})\">${KorosztalyCsapat}</a></script><script type=text/x-template id=columnTemplate1><div><cts-text-box/><button type=\"button\">|</button></div></script>');\n$templateCache.put('app/administration/exercises/exercisesList/exercisesList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.SzakosztalyId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.KorosztalyId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.EdzoId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-auto-complete name=BodyParts label=BodyParts value=vm.bodyPartValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Testresz multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesType label=Type value=vm.TypeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Tipus multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=individualTeam label=individualTeam value=vm.individualTeamValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Jellege multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesAsset label=Assets value=vm.AssetValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Felszerelesek multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Difficulty label=Difficulty value=vm.difficultyValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Nehezseg multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Time label=TimeLength value=vm.timeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Ido multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=NecessaryArea label=Space value=vm.necessaryAreaValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.SzuksegesTerulet multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=Video label=Video checked=vm.withVideo style=\"width: 125px;\"></cts-check-box><cts-check-box name=Pattern label=Pattern checked=vm.withPattern style=\"width: 125px;\"></cts-check-box><cts-check-box name=Paint label=Paint checked=vm.withPaint style=\"width: 200px;\"></cts-check-box><cts-check-box name=Public label=Public checked=vm.public style=\"width: 125px;\"></cts-check-box></div><div class=row><div class=button-wrapper><button type=submit ej-button class=cts-button e-click=vm.create translate>Create</button> <button class=cts-button ej-button e-click=vm.getDatas translate>Show</button></div></div></form><div class=row style=margin-top:1rem><div id=Grid name=Grid></div><script type=text/x-template id=teamlistcolumnTemplate3><a data-ng-click=\"vm.deleteExercise(${GyakorlatId})\" ng-show=\"vm.MODGYAKORLAT\" translate>Delete</a></script><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"> <img src=\"${Mintakep}\" align=\"center\" height=\"64px\" width=\"64px\" style=\"object-fit: cover;\"/> </div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.goToExercise(${GyakorlatId})\">${Nev}</a></div></script></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/exercises/exercisesCreate/exercisesCreate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><h4 style=\"text-align: center; margin-bottom: 1.5em;\" translate>ExerciseDetails</h4><cts-text-box name=exerciseName label=ExerciseName data-ng-model=vm.formdata.exerciseName validation-rules=\"{required: true, maxlength: 50}\"></cts-text-box><cts-dropdown-list name=sectionId label=Section value=vm.formdata.sectionId datasource=vm.sectionList validation-rules=\"{required: true}\" databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupId label=AgeGroup value=vm.formdata.ageGroupId datasource=vm.ageGroupList validation-rules=\"{required: true}\" databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachId label=Coach value=vm.formdata.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-auto-complete name=bodyParts label=BodyParts value=vm.formdata.bodyParts datasource=vm.bodyPartsList show-popup-button=true change=vm.bodyPartsChange validation-rules=\"{required: true}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-auto-complete name=type label=Type value=vm.formdata.type datasource=vm.typeList show-popup-button=true change=vm.typeChange validation-rules=\"{required: true}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-auto-complete name=individualTeam label=IndividualTeam value=vm.formdata.individualTeam datasource=vm.individualTeamList show-popup-button=true change=vm.individualTeamChange validation-rules=\"{required: true, maxlength: 50}\" multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-numeric-text-box name=time label=TimeLength value=vm.formdata.time></cts-numeric-text-box><cts-numeric-text-box name=difficulty label=Difficulty value=vm.formdata.difficulty></cts-numeric-text-box><cts-text-box name=players label=Players data-ng-model=vm.formdata.players validation-rules=\"{maxlength: 20}\"></cts-text-box><cts-text-box name=space label=Space data-ng-model=vm.formdata.space></cts-text-box><cts-auto-complete name=asserts label=Asserts value=vm.formdata.asserts datasource=vm.assertsList show-popup-button=true change=vm.assertsChange multi-select=true allow-add-new=true addnewtext=vm.addNewText></cts-auto-complete><cts-text-box name=youtube label=Youtube data-ng-model=vm.youtube change=vm.youtubeChanged></cts-text-box><div class=\"form-group cts-form-group\"><label></label><div class=input-group><button type=button class=\"btn btn-link\" style=\"padding-left: 0; padding-top: 0;\" data-ng-click=vm.deleteVideo() translate>DeleteVideo</button></div></div><cts-dropdown-list name=paintId label=PaintLabel value=vm.formdata.paintId datasource=vm.paintList databound=vm.paintDataBound select=vm.paintSelect open=vm.openPaint></cts-dropdown-list><div class=\"form-group cts-form-group\"><label></label><div class=input-group><button type=button class=\"btn btn-link\" style=\"padding-left: 0; padding-top: 0;\" data-ng-click=vm.goToCreatePaint() translate>NewPaint</button></div></div><cts-check-box name=public label=Public change=vm.publicChanged></cts-check-box><cts-text-area width=100% label=Description rows=5 cols=30 ng-model=vm.formdata.Leiras></cts-text-area></div><div class=col-lg-6><h4 style=\"text-align: center; margin-bottom: 1em;\" translate data-ng-show=vm.formdata.youtube>YoutubeVideo</h4><div id=playerWrapper class=auto-clear style=\"text-align: center;\" data-ng-show=vm.formdata.youtube></div><h4 style=\"text-align: center; margin-bottom: 1em;\" translate>UploadedImages</h4><div class=auto-clear><div class=col-xs-12><div class=\"col-xs-12 col-md-6 col-lg-4\" ng-repeat=\"image in vm.formdata.savedImageList track by $index\" style=\"margin-bottom: 2em; width: 235px;\"><label style=\"overflow: hidden; -ms-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;\">{{image.fileName}}</label><div style=\"height: 100%;\"><a class=gallery-item href={{image.fileUrl}}><img src={{image.fileUrl}} style=\"width: 100%;\"></a></div><div style=\"text-align: center;\"><button class=cts-button translate style=\"float: left;\" ng-click=vm.makeToThumb($index) ng-disabled=\"image.thumbnail == true\"><img style=\"height: 24px; width: 24px;\" src={{imageThumb}}></button> <button class=cts-button translate style=\"float: right;\" ng-click=vm.deleteExistingImg($index)><img style=\"height: 24px; width: 24px;\" src={{dustbin}}></button></div></div></div></div><div class=col-xs-12><div class=dropzone file-dropzone style=\"text-align: center; height: 150px; width: 100%; border: 2px dashed #333333; position: relative;\"><p style=\"position: relative; top: 40px; text-align: center; width: 100%;\" translate>ImageDropZoneText</p><label for=addFile style=\"position: relative; top: 40px;\"><div class=cts-button><i class=\"fa fa-file-image-o\" aria-hidden=true></i> <span translate>AddImages</span></div></label></div><input id=addFile name=addFile type=file ng-file-select=vm.onFileSelect($files) style=\"display: none;\" multiple accept=.jpg,.jpeg,.bmp,.png,.gif></div><div class=col-xs-12><h4 style=\"margin-top: 2em; text-align: center;\" translate>UploadingImages</h4></div><div class=auto-clear><div class=\"col-xs-12 col-md-6 col-lg-4\" ng-repeat=\"image in files track by $index\" style=\"margin-bottom: 2em;\"><label style=\"overflow: hidden; -ms-text-overflow: ellipsis;text-overflow: ellipsis;white-space: nowrap;\">{{files[$index].name}}</label><div style=\"height: 100%;\"><img ng-src={{imageDatas[$index]}} style=\"width: 100%;\"></div><div style=\"text-align: center;\"><button class=cts-button translate style=\"width: 100%;\" ng-click=vm.deleteImg($index) ng-class=\"{fullWidthThis: image.thumbnail == true}\"><img style=\"height: 24px; width: 24px;\" src={{dustbin}}></button></div></div></div></div><div class=col-xs-12><div class=col-sm-12 style=\"text-align: center; margin-top: 2em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendanceList/monthlyAttendanceList.html','<ht-widget-header title={{title}} text-id=monthlyAttendanceListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months cts-placeholder=AllMonth validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maMode label=Mode value=vm.selectedMode datasource=vm.modeList></cts-dropdown-list><div class=button-wrapper><button type=submit class=cts-button ej-button data-ng-click=vm.refreshData() translate>Keres</button></div></div></form><div id=Grid name=Grid></div><div class=\"col-sm-12 col-md-12 col-lg-12\"><hr><button class=cts-button ej-button data-ng-show=\"(!vm.hasSignedAttendance && !vm.hasAcceptedAttendance) && vm.HJFELVIHET\" data-ng-click=vm.createNewAttendance() translate>\\xDAj havi jelenl\\xE9ti \\xF6sszes\\xEDt\\u0151 k\\xE9sz\\xEDt\\xE9se</button> <button class=cts-button style=margin-right:20px; ej-button data-ng-click=back() translate>Bez\\xE1r\\xE1s</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=moatlitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${Korosztaly}</a></script><script id=moatlitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=moatlitemplateDataColumn3 type=text/x-template><input data-ng-if=\"\\'${EdzoLezarta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${EdzoLezarta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=moatlitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${SzakvezJovahagyta}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${SzakvezJovahagyta}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script><script id=moatlitemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.goToMonthlyAttendance(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script>');\n$templateCache.put('app/administration/monthlyAttendance/monthlyAttendanceReport/monthlyAttendanceReport.html','<div class=widget><ht-widget-header title={{title}} text-id=monthlyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list data-ng-if=vm.allAgeGroupfill name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=olderReports class=cts-button ej-button e-click=vm.goToOlderMonthlyAttendanceReports translate>OlderMonthlyAttendanceReports</button></div></div><div><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years select=vm.yearSelect validation-rules=\"{required: true}\" databound=vm.yearDataBound></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.selectedMonth datasource=vm.months select=vm.monthSelect validation-rules=\"{required: true}\" databound=vm.monthDataBound></cts-dropdown-list><div class=button-wrapper><button id=attendanceSelect class=cts-button ej-button e-click=vm.attendanceSelect translate>ChooseIt</button></div></div><div><cts-check-box name=autoSaveCheckBox label=AutoSave checked=vm.autoSave data-ng-if=\"vm.autoSave != undefined && vm.saveButton\" change=vm.autoSaveCheckboxChanged></cts-check-box></div><div class=\"alert alert-info\" data-ng-show=\"vm.noAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsntAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasSignedAttendance && vm.editedAttendance.tetelek.length > 0\" translate>TherIsSignedAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.hasAcceptedAttendance && vm.editedAttendance.tetelek.length > 0\" translate>ThereIsSignedAndAcceptedAttendanceReport</div><div class=\"alert alert-info\" data-ng-show=\"vm.noAttendance && vm.editedAttendance.tetelek.length <= 0\" translate>NoAthletesInSelectedMonthlyAttendanceReport</div><div data-ng-show=\"vm.editedAttendance.tetelek.length > 0\"><div class=monthlyAttendanceContainer><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Monday</p><input type=text class=monthlyAttendanceItemInput name=maHetfoHely id=maHetfoHely data-ng-model=vm.dayz.HetfoHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maHetfoIdo id=maHetfoIdo data-ng-model=vm.dayz.HetfoIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Tuesday</p><input type=text class=monthlyAttendanceItemInput name=maKeddHely id=maKeddHely data-ng-model=vm.dayz.KeddHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maKeddIdo id=maKeddIdo data-ng-model=vm.dayz.KeddIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Wednesday</p><input type=text class=monthlyAttendanceItemInput name=maSzerdaHely id=maSzerdaHely data-ng-model=vm.dayz.SzerdaHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maSzerdaIdo id=maSzerdaIdo data-ng-model=vm.dayz.SzerdaIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Thursday</p><input type=text class=monthlyAttendanceItemInput name=maCsutHely id=maCsutHely data-ng-model=vm.dayz.CsutortokHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maCsutIdo id=maCsutIdo data-ng-model=vm.dayz.CsutortokIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Friday</p><input type=text class=monthlyAttendanceItemInput name=maPentekHely id=maPentekHely data-ng-model=vm.dayz.PentekHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maPentekIdo id=maPentekIdo data-ng-model=vm.dayz.PentekIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Saturday</p><input type=text class=monthlyAttendanceItemInput name=maSzombatHely id=maSzombatHely data-ng-model=vm.dayz.SzombatHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maSzombatIdo id=maSzombatIdo data-ng-model=vm.dayz.SzombatIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div><div class=monthlyAttendanceItem><p class=monthlyAttendanceItemHeader translate>Sunday</p><input type=text class=monthlyAttendanceItemInput name=mavasarnapHely id=mavasarnapHely data-ng-model=vm.dayz.VasarnapHely data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Place\\'|translate}}\"> <input type=text class=monthlyAttendanceItemInput name=maVasarnapIdo id=maVasarnapIdo data-ng-model=vm.dayz.VasarnapIdo data-ng-disabled=vm.readOnlyAttendance placeholder=\"{{\\'Time\\'|translate}}\"></div></div><form name=formsetforall class=filter><div style=\"overflow: hidden;\" ng-if=!vm.editedAttendance.fej.EdzoAlairta><cts-numeric-text-box name=pmtn label=PlannedMonthlyTrainingsNumbers value=vm.plannedTrainings></cts-numeric-text-box><div class=button-wrapper><button id=SetForAll class=cts-button ej-button e-click=vm.SetForAll translate>SetForAll</button></div></div></form><div class=attendance-report-div><p><span translate>NumberOfAthletes</span>: {{vm.editedAttendance.fej.CsoportLetszam}}</p><p><span translate>Entered</span>: {{vm.editedAttendance.fej.Erkezett}}</p><p><span translate>Leave</span>: {{vm.editedAttendance.fej.Tavozott}}</p></div><div class=attendance-report-div><p><span translate>LastEditedValue</span>: {{vm.editedColumnValue}} <button id=CopyCellToColumn class=cts-button ej-button e-click=vm.CopyCellToColumn style=\"margin-left: 2em;\" translate>CopyCellToColumn</button></p></div><script type=text/x-template id=columnTemplate><a data-ng-click=\"vm.goToNewAthlete(${IdSportolo})\">${SportoloNev}</a></script><div class=row><div style=\"position: fixed; z-index: 10000; top: 70px; left: 45%; background-color: forestgreen; color: white; border: 2px solid forestgreen; -webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;\" data-ng-if=vm.AthleteUnderEditing><h2>{{vm.AthleteUnderEditingText}}: {{vm.AthleteUnderEditing}}</h2></div><div id=GridNew name=GridNew class=slim-grid></div></div><div class=col-sm-6 style=\"margin-top:10px; margin-left: -15px\"><p><b><span translate>SumPresence</span>: {{vm.presencePercentSum}}%</b></p></div><div class=col-sm-6 style=\"margin-top:10px; float:right;text-align:right; margin-right:-10px;\"><p translate>NotationMonthlyAttendanceReport</p></div><cts-text-area name=comment label=Comment data-ng-model=vm.editedAttendance.fej.Megjegyzes disabled=vm.readOnlyAttendance css=\"padding-left:0; padding-right:0; width: 100%; margin-top:10px\"></cts-text-area><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button data-ng-if=vm.closeButton e-click=vm.CopyTimeAndPlaceFromWeeklyPlan translate>CopyTimeAndPlaceFromWeeklyPlan</button> <button class=cts-button ej-button data-ng-if=vm.closeButton e-click=vm.closeMonthlyAttendance translate>AttendanceReportClose</button> <button class=cts-button ej-button data-ng-if=vm.acceptButton e-click=vm.acceptMonthlyAttendance translate>SectionLeaderApprove</button> <button class=cts-button ej-button data-ng-if=vm.rejectButton e-click=vm.rejectMonthlyAttendance translate>Deny</button> <button class=cts-button ej-button e-click=vm.print data-ng-if=\"vm.editedAttendance.fej.Id>0\" translate>Print</button><button class=cts-button ej-button data-ng-if=vm.saveButton e-click=vm.saveAttendance e-enabled=vm.saveButtonEnabled translate>Save</button> <button class=cts-button ej-button data-ng-if=\"vm.editedAttendance.fej.Id>0\" e-click=vm.openTrainingDiary translate>openTrainingDiary</button></div></div></form><div id=popup><div id=rejectAttendanceWindow ej-dialog e-height=235px e-minheight=235px e-maxheight=235px e-title=\"Havi jelenl\\xE9ti \\xF6sszes\\xEDt\\u0151 visszautas\\xEDt\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-showroundedcorner=false><div class=col-md-12><div class=text-center><p class=dialog-hide-elemet style=\"color: darkgray;\" id=expiresLabel>Adja meg a visszautas\\xEDt\\xE1s ok\\xE1t:</p><form style=height:100px;><div class=form-group><textarea class=form-control data-ng-model=vm.rejectAttendanceText style=\"height:80px; max-height: 80px; min-height: 80px;\"></textarea></div></form><div class=form-group><button class=\"btn btn-danger post pull-right\" id=cancel data-ng-click=vm.closerejectingWindow() type=button>M\\xE9gsem</button> <button class=\"btn btn-primary post left-padding\" id=done data-ng-click=vm.rejectAttendance() type=button>Rendben</button></div></div></div></div></div></div><div class=widget-foot><div class=clearfix></div></div></div><div id=printDialog><report report-name=THaviJelenleti report-parameters=vm.reportParameters></report></div><script id=datetemplate type=text/x-template><div style=\"\">Order Date</div></script><style>\\r\\n .e-columnheader .e-headercell .e-headercelldiv {\\r\\n height: 170px;\\r\\n text-align: left !important;\\r\\n display: table-cell;\\r\\n }\\r\\n\\r\\n .e-columnheader .e-headercell .e-headercelldiv #gridheaderverticalcenter {\\r\\n margin-top: 85px;\\r\\n margin-bottom: -85px;\\r\\n }\\r\\n\\r\\n .e-columnheader .e-headercell .e-headercelldiv .e-headertext {\\r\\n vertical-align: center;\\r\\n }\\r\\n\\r\\n .e-grid .e-headercelldiv {\\r\\n line-height: 0 !important;\\r\\n }\\r\\n</style>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlanList/monthlyTrainingPlanList.html','<ht-widget-header title={{title}} text-id=monthlyTrainingPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound validation-rules=\"{required: true}\" select=vm.ageGroupChanged></cts-dropdown-list><cts-dropdown-list name=maEv label=Year datasource=vm.years value=vm.selectedYear select=vm.yearChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=txTartalom label=textSearch ng-model=vm.textSearch></cts-text-box><div class=button-wrapper><button type=submit e-height=34px ej-button class=cts-button data-ng-click=vm.refreshData() translate>Search</button></div></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button class=cts-button e-height=34px ej-button data-ng-click=vm.createNewWeeklyTrainingPlan() translate>New</button> <button data-ng-disabled=!vm.delEnabled class=cts-button e-height=34px ej-button e-enabled=vm.delEnabled data-ng-click=vm.deleteWeeklyTrainingPlan() translate>deleteWeeklyTrainingPlan</button> <button class=cts-button e-height=34px ej-button data-ng-click=back() translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=motrpllitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${Edzo}</a></script><script id=motrpllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorcsoport})\">${Korosztaly}</a></script><script id=motrpllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\" ><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=motrpllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${Jovahagyott}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Jovahagyott}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/administration/monthlyTrainingPlan/monthlyTrainingPlanReport/monthlyTrainingPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div id=popup><div id=searchWindow ej-dialog e-height=435px e-minheight=435px e-maxheight=900px e-minwidth=600px e-title=\"Kor\\xE1bbi heti edz\\xE9s terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=60% e-showroundedcorner=false><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=\"cts-button post\" id=cancel data-ng-click=vm.closeEarlierMonthlyPlanWindow() type=button translate>Cancel</button> <button class=\"cts-button post\" id=done data-ng-click=vm.selectEarlierMonthlyPlanWindow() type=button translate>Rendben</button></div></div></div></div></div><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden; text-align:right; margin-right:15px\"><button class=cts-button id=korabbiMasol data-ng-show=vm.copyEnabled data-ng-click=vm.copyFromOldPlan() type=button translate>OlderMonthlyCompetitveReports</button></div><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedMTP.EdzoNev owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedMTP.SzakosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txKorosztaly label=AgeGroup ng-model=vm.editedMTP.KorosztalyNev owndisabled=true></cts-text-box></div><hr><div style=\"overflow: hidden;\"><cts-numeric-text-box name=txMakrociklus label=Makrociklus value=vm.editedMTP.Makrociklus disabled=false validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-numeric-text-box name=txTervEdzesszam label=PlannedNumberOfTrainings value=vm.editedMTP.TervezettEdzesszam disabled=false validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-dropdown-list name=maEv label=Year value=vm.editedMTP.Ev datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=Month value=vm.editedMTP.HonapSzama datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list></div><br><p class=text-center translate>NAPDATUMEDZESTERV</p><table class=\"attendance-report-table table-no-margin\"><thead><tr><th translate class=text-center>TrainingPlan</th></tr></thead><tbody><tr><td><cts-text-area name=HetfoDe ng-model=vm.editedMTP.Tartalom css=\"padding-left:0; padding-right:0; width: 100%;\"></cts-text-area></td></tr><tr></tr></tbody></table><p data-ng-if=vm.JOVAHAGYOTT translate>MonthlyTraningPlanApproved</p><div class=form-group><button class=\"cts-button post pull-left\" id=mentes data-ng-click=vm.save() type=button translate>Save</button> <button class=\"cts-button post pull-left\" id=SectionLeaderApprove data-ng-if=vm.HAVIEDZTERVJOVAHAGY data-ng-click=vm.SectionLeaderApprove() type=button translate>SectionLeaderApprove</button> <button class=\"cts-button post pull-left\" id=vissza data-ng-click=back() type=button translate>Back</button> <button class=\"cts-button post pull-left\" id=fileok ng-if=\"vm.trainingPlanId>0\" data-ng-click=vm.files() type=button translate>Files</button> <button class=\"cts-button post pull-left\" id=print data-ng-click=vm.print() type=button data-ng-show=\"vm.trainingPlanId>0\" translate>Print</button></div><label style=margin-top:2em;>{{vm.numberOfPaintsLabel}}</label></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=THaviEdzesTervReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/administration/sportSpecificTest/newSportSpecificTest/newSportSpecificTest.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionIdValue datasource=vm.sectionList databound=vm.sectionDataBound enabled=false></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupIdValue datasource=vm.ageGroupList databound=vm.ageGroupDataBound enabled=false></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachIdValue datasource=vm.coachList databound=vm.coachDataBound enabled=false></cts-dropdown-list></div><div class=row><cts-dropdown-list name=felmeroTipusDropDown label=FelmeroTipus value=vm.felmeroElemFejIdValue datasource=vm.felmeroElemFejList databound=vm.felmeroDataBound validation-rules=\"{required: true}\" enabled=\"vm.felmeroFejId<0 && !vm.test.length>0\"></cts-dropdown-list><cts-date-picker name=datepicker label=Date value=vm.dateValue validation-rules=\"{required: true}\" enabled=\"vm.felmeroFejId<0\"></cts-date-picker><div class=button-wrapper><button class=cts-button ej-button e-click=vm.CreateTest data-ng-if=vm.createButtonEnabled translate>Create</button></div></div><div class=row><div class=button-wrapper><button class=cts-button ej-button e-click=vm.CreateTestType data-ng-if=\"!vm.test.length>0\" translate>CreateNewSportSpecificTestTemplate</button> <button class=cts-button ej-button e-click=vm.EditTestType data-ng-if=vm.editTestTypeButtonEnabled translate>EditTestType</button></div></div><script type=text/x-template id=sstname><a data-ng-click=\"vm.openAthlete({{:SportoloID}})\">{{:SportoloNeve}}</a></script><div style=\"overflow: hidden;\" data-ng-show=\"vm.test.length>0\"><cts-text-area name=coachRating label=CoachRating data-ng-model=vm.edzoertekeles css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 200}\" owndisabled=!vm.UJSPFELM></cts-text-area></div><div class=row data-ng-show=\"vm.test.length>0\"><div id=Grid2></div><label>{{vm.cellHint}}</label></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button class=cts-button data-ng-if=\"vm.test.length>0 && vm.UJSPFELM\" ej-button e-click=vm.SaveTest translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button data-ng-if=\"vm.felmeroFejId>0 && vm.UJSPFELM\" ej-button e-click=vm.DeleteTest translate>Delete</button></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><cts-check-box label=ShowColors change=vm.colorCheckBoxChange checked=vm.showColors data-ng-if=\"vm.felmeroFejId>0\" id=sportagSpecifikus></cts-check-box></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/sportSpecificTest/newSportSpecificTestList/newSportSpecificTestList.html','<ht-widget-header title={{title}} text-id=newSportSpecificTestListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ng-if=\"vm.Highlight==-1\" style=\"overflow: hidden;\"><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div style=\"overflow: hidden;\"><cts-date-picker name=datefrom label=DateFrom change=vm.dateFromChange value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo change=vm.dateToChange value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker></div><div ng-if=\"vm.Highlight==-1\" style=\"overflow: hidden;\"><div class=button-wrapper><button id=addFelmero class=cts-button ej-button e-click=vm.newTest translate>NewTest</button></div></div></div><script type=text/x-template id=sstlTest><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\">${Datum}</a></script><script type=text/x-template id=sstlCoach><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNev}</a></script><script type=text/x-template id=sstlOpen><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div class=row><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanCreate/trainingPlanCreate.html','<ht-widget-header title={{title}} text-id=trainingPlanCreateHelp right-text=rightText></ht-widget-header><div class=\"widget-content form\"><div class=col-lg-8><form novalidate id=form name=form enctype=multipart/form-data><cts-dropdown-list name=trainingSectionDropDown label=Section value=vm.trainingSectionId datasource=vm.trainingSectionList databound=vm.trainingSectionDataBound select=vm.trainingSectionSelect enabled=vm.allowSave></cts-dropdown-list><cts-dropdown-list name=trainingAgeGroupDropDown label=AgeGroup value=vm.trainingAgeGroupId datasource=vm.trainingAgeGroupList databound=vm.trainingAgeGroupDataBound select=vm.trainingAgeGroupSelect enabled=vm.allowSave></cts-dropdown-list><cts-text-box name=TrainingName label=TrainingName ng-model=vm.trainingName validation-rules=\"{required: true, maxlength: 50}\" owndisabled=!vm.allowSave></cts-text-box><cts-text-box name=TrainingDescription label=Description ng-model=vm.trainingDescription owndisabled=!vm.allowSave></cts-text-box><cts-check-box name=Public label=Public checked=vm.public enabled=vm.allowSave></cts-check-box><div class=\"cts-form-group gorm-group\"><label translate>TrainingTimeLength</label><div><p>{{vm.timeLength}}</p></div></div></form></div><div class=col-md-12><div id=MainGrid name=MainGrid></div><h3 style=\"text-align: center\" translate>TrainingSearch</h3><form class=filter name=Form2><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-auto-complete name=BodyParts label=BodyParts value=vm.bodyPartValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Testresz multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesType label=Type value=vm.TypeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Tipus multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=individualTeam label=individualTeam value=vm.individualTeamValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Jellege multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=ExercisesAsset label=Assets value=vm.AssetValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Felszerelesek multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Difficulty label=Difficulty value=vm.difficultyValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Nehezseg multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=Time label=TimeLength value=vm.timeValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.Ido multi-select=true show-popup-button=true></cts-auto-complete><cts-auto-complete name=NecessaryArea label=Space value=vm.necessaryAreaValue validation-rules=\"{required: false}\" datasource=vm.autoComplete.SzuksegesTerulet multi-select=true show-popup-button=true></cts-auto-complete><cts-check-box name=Video label=Video checked=vm.withVideo></cts-check-box><cts-check-box name=Pattern label=Pattern checked=vm.withPattern></cts-check-box><cts-check-box name=Paint label=Paint checked=vm.withPaint></cts-check-box></form><div id=TrainingGrid name=TrainingGrid class=slim-grid></div><div class=button-wrapper style=\"margin-top: 1em\"><button id=lekeres class=cts-button ej-button e-click=vm.showExercises translate>Show</button> <button id=add class=cts-button ej-button e-enabled=vm.addEnabled e-click=vm.addRow translate>AddSelected</button> <button ej-button e-enabled=vm.addNewPermission class=cts-button e-click=vm.createNewTrainingPlan translate>NewTrainingPlan</button></div><div class=row><div class=col-lg-12 style=\"text-align: center; margin: 1em\"><button type=submit class=cts-button ej-button e-click=vm.save e-enabled=vm.allowSave form=form translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp \"><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\" style=\"white-space: normal !important;\">${Nev}</a></div></script></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanTemplate/trainingPlanTemplate.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form name=form class=form novalidate enctype=multipart/form-data><div class=col-lg-8><cts-dropdown-list name=trainingSectionDropDown label=Section value=vm.trainingSectionId datasource=vm.trainingSectionList databound=vm.trainingSectionDataBound select=vm.trainingSectionSelect enabled=false></cts-dropdown-list><cts-dropdown-list name=trainingAgeGroupDropDown label=AgeGroup value=vm.trainingAgeGroupId datasource=vm.trainingAgeGroupList databound=vm.trainingAgeGroupDataBound select=vm.trainingAgeGroupSelect enabled=false></cts-dropdown-list><cts-text-box name=TrainingName label=TrainingName ng-model=vm.trainingName validation-rules=\"{required: true}\" disabled=true></cts-text-box><cts-text-box name=TrainingDescription label=Description ng-model=vm.trainingDescription disabled=true></cts-text-box><cts-check-box name=Public label=Public checked=vm.public enabled=false></cts-check-box><div class=\"cts-form-group gorm-group\"><label translate>TrainingTimeLength</label><div><p>{{vm.timeLength}}</p></div></div></div></form><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\"><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\">${Nev}</a></div></script><div class=\"panel-body col-lg-12\"><div id=GridTraining name=GridTraining></div></div><div class=row><div class=col-lg-12 style=\"text-align: center; margin: 1em\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/trainingPlan/trainingPlanList/trainingPlanList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=row><form class=filter><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button class=cts-button ej-button e-click=vm.search translate>Search</button></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button ej-button e-enabled=vm.addNewPermission class=cts-button e-height=34px e-click=vm.createNewTrainingPlan translate>New</button> <button e-enabled=vm.deletePermission ej-button class=cts-button e-height=34px e-click=vm.deleteTrainingPlan translate>Delete</button></div></div><script id=wtro type=text/x-template><a data-ng-click=\"vm.openTrainingPlan(${EdzesFejId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=imagetemplateGrid type=text/x-handlebars-template><div height=\"64px\" max-width=\"64px\" class=\"thumbnail-item\" href=\"${Mintakep}\" ><img src=\"${Mintakep}\" align=\"center\" height=\"64px\" max-width=\"64px\"/></div></script><script type=text/x-template id=wtpropentemp><div><a data-ng-click=\"vm.openTemplate(${GyakorlatId})\">${Nev}</a></div></script></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlanList/weeklyTrainingPlanList.html','<ht-widget-header title={{title}} text-id=weeklyTrainingPlanListHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden\"><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachChanged databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupChanged validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEv label=Year datasource=vm.years select=vm.yearChanged></cts-dropdown-list><cts-text-box name=txTartalom label=textSearch ng-model=vm.textSearch></cts-text-box><div class=button-wrapper><button type=submit e-height=34px ej-button class=cts-button data-ng-click=vm.refreshData() translate>Keres</button></div></div></form><div id=Grid name=Grid></div><div class=col-xs-12><hr><button class=cts-button e-height=34px ej-button data-ng-click=vm.createNewWeeklyTrainingPlan() translate>New</button> <button data-ng-disabled=!vm.delEnabled class=cts-button e-height=34px ej-button data-ng-click=vm.deleteWeeklyTrainingPlan() e-enabled=vm.delEnabled translate>Delete</button> <button class=cts-button e-height=34px ej-button data-ng-click=back() translate>Close</button></div></div><div class=widget-foot><div class=clearfix></div></div><script id=wetrpllitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${IdEdzo})\">${Edzo}</a></script><script id=wetrpllitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewAgeGroup(${IdKorosztaly})\">${Korosztaly}</a></script><script id=wetrpllitemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script id=wetrpllitemplateDataColumn4 type=text/x-template><input data-ng-if=\"\\'${Jovahagyott}\\' === \\'true\\'\" type=\"checkbox\" checked=\"checked\" disabled/> <input data-ng-if=\"\\'${Jovahagyott}\\' !== \\'true\\'\" type=\"checkbox\" disabled/></script>');\n$templateCache.put('app/administration/weeklyTrainingPlan/weeklyTrainingPlanReport/weeklyTrainingPlanReport.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content id=popupHolder><form name=form class=filter><div style=\"overflow: hidden;\"><cts-text-box name=txEdzo label=Coach ng-model=vm.editedWTP.EdzoNev owndisabled=true></cts-text-box><cts-text-box name=txSzakosztaly label=Section ng-model=vm.editedWTP.SzakosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txKorosztaly label=AgeGroup ng-model=vm.editedWTP.KorosztalyNev owndisabled=true></cts-text-box><cts-text-box name=txEv label=Made ng-model=vm.editedWTP.Keszult owndisabled=true></cts-text-box></div><hr><div style=\"overflow: hidden;\"><cts-date-picker name=deHetfo label=Monday value=vm.editedWTP.Hetfo ng-model=vm.editedWTP.Hetfo enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\" change=vm.MondayChange></cts-date-picker><cts-text-box name=deVasarnap label=Sunday owndisabled=true ng-model=vm.editedWTP.Vasarnap></cts-text-box><cts-numeric-text-box name=txMakrociklus label=Makrociklus value=vm.editedWTP.Makrociklus enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\"></cts-numeric-text-box><cts-numeric-text-box name=txHetSzama label=FelkHetSzam value=vm.editedWTP.HetSzama ng-model=vm.editedWTP.HetSzama enabled=!vm.JOVAHAGYOTT validation-rules=\"{required: true}\"></cts-numeric-text-box></div><hr><label translate>NAPDATUMEDZESTERV</label><div class=container-fluid><div class=row><div style=\"padding: 1em;\"><div style=\"float:left; margin-bottom:15px;\"><button type=button class=cts-button ej-button e-click=vm.addNew e-enabled=\"vm.editEnabled == false && vm.JOVAHAGYOTT == false\" id=addBtn translate>Add</button> <button ej-button class=cts-button id=korabbiMasol e-click=vm.copyFromOldPlan e-enabled=\"vm.JOVAHAGYOTT == false\" type=button translate>OlderMonthlyCompetitveReports</button></div></div></div><script type=text/x-template id=wtpropentemp><a data-ng-click=\"vm.openTemplate({{:EdzesFejId}})\">{{:Sablon}}</a></script><div id=Grid name=Grid></div></div><div class=container-fluid ng-show=vm.editEnabled><hr><label translate>TrainingDetails</label><div class=row style=\"padding: 2em 0;\"><div class=col-md-3 style=margin-top:-14px;><div style=\"margin-top: 1em;\"><div><label translate>Days</label><div ng-if=!vm.JOVAHAGYOTT><input ej-dropdownlist id=Napok e-value=vm.edit.NapSzam e-datasource=vm.days e-databound=vm.NapokDataBound e-select=vm.NapSelect e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input ej-dropdownlist id=Napok e-value=vm.edit.NapSzam e-datasource=vm.days e-databound=vm.NapokDataBound e-select=vm.NapSelect e-enabled=false e-width=100%></div></div></div><div style=\"margin-top: 1em;\"><label translate>Place</label> <input id=Hely class=form-control type=text data-ng-model=vm.edit.Hely e-width=100% ng-if=!vm.JOVAHAGYOTT> <input class=form-control type=text data-ng-model=vm.edit.Hely e-width=100% ng-if=vm.JOVAHAGYOTT disabled></div><div style=\"margin-top: 1em;\"><label translate>From</label><div ng-if=!vm.JOVAHAGYOTT><input id=Tol ej-timepicker e-timeformat=HH:mm e-value=vm.edit.Tol e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input class=form-control type=text data-ng-model=vm.edit.Tol e-width=100% disabled></div></div><div style=\"margin-top: 1em;\"><label translate>To</label><div ng-if=!vm.JOVAHAGYOTT><input id=Ig ej-timepicker e-timeformat=HH:mm e-value=vm.edit.Ig e-width=100%></div><div ng-if=vm.JOVAHAGYOTT><input class=form-control type=text data-ng-model=vm.edit.Ig e-width=100% disabled></div></div></div><div class=col-md-3><label translate>Map</label><iframe id=map style=width:100%;height:15em; frameborder=0 scrolling=no marginheight=0 marginwidth=0 ng-src={{vm.Helyek}}></iframe></div><div class=col-md-6><label translate>Description</label><div ng-if=!vm.JOVAHAGYOTT><textarea rows=10 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.edit.Leiras></textarea></div><div ng-if=vm.JOVAHAGYOTT><textarea rows=10 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.edit.Leiras disabled></textarea></div></div></div><div ng-if=\"vm.edit.EdzesFejId>0\"><label translate>OpenTrainingTemplate</label><a style=margin-left:7px; ng-click=vm.openTemplate()>{{vm.edit.Sablon}}</a></div><div class=row><div style=\"padding: 1em;\"><button type=button class=cts-button ej-button e-click=vm.ok id=ok e-enabled=\"vm.JOVAHAGYOTT == false\" translate>Ok</button> <button type=button class=cts-button ej-button e-click=vm.cancel id=cancel translate>Cancel</button> <button type=button class=cts-button ej-button e-click=vm.del e-enabled=vm.deleteBtnEnabled id=deleteBtn translate>Delete</button> <button type=button class=cts-button ej-button e-click=vm.chooseTraining e-enabled=\"vm.JOVAHAGYOTT == false\" id=ct name=ct translate>ChooseTraining</button> <button type=button class=cts-button ej-button e-click=vm.claimAsset id=ca e-enabled=vm.caBtnEnabled translate>ClaimAsset</button></div></div><hr></div><div class=row><hr><label translate>AthletesOnWeeklyPlan</label><div style=\"padding: 1em;\"><button type=button class=cts-button ej-button e-click=vm.selectAll id=selectAll e-enabled=\"vm.JOVAHAGYOTT == false\" translate>SelectAll</button> <button type=button class=cts-button ej-button e-click=vm.deleteSelection id=unselectAll e-enabled=\"vm.JOVAHAGYOTT == false\" translate>UnselectAll</button></div><cts-list-box name=athletesList label=Athletes css-class=scroller-fix datasource=vm.athletes show-checkbox=true check-change=vm.athletesChange checkedindices=vm.checkedIndices height=vm.athleteListHeight enabled=!vm.JOVAHAGYOTT style=\"width: 100%;\"></cts-list-box><hr></div><p data-ng-if=vm.JOVAHAGYOTT translate>WeeklyTraningPlanApproved</p><div class=form-group style=\"text-align: center;\"><button class=\"cts-button post left-padding\" id=mentes data-ng-disabled=vm.JOVAHAGYOTT data-ng-click=vm.save(false) type=button translate>Save</button> <button class=\"cts-button post left-padding\" id=SectionLeaderApprove data-ng-if=vm.HETIEDZTERVJOVAHAGY data-ng-click=vm.SectionLeaderApprove() type=button translate>SectionLeaderApprove</button> <button class=\"cts-button post left-padding\" id=vissza data-ng-click=vm.back() type=button translate>Back</button> <button class=\"cts-button post left-padding\" id=fileok ng-if=\"vm.trainingPlanId>0\" data-ng-click=vm.files() type=button translate>Files</button> <button class=\"cts-button post left-padding\" id=print data-ng-click=vm.print() type=button data-ng-show=\"vm.trainingPlanId>0\" translate>Print</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialog><report report-name=THetiEdzesTerv report-parameters=vm.reportParameters></report></div><div id=printDialog2><report report-name=TEszkozIgenyek report-parameters=vm.reportParameters2></report></div><script>\\r\\n var searchBox = undefined;\\r\\n\\r\\n function initAutocomplete() {\\r\\n console.log(\\'initAutocomplete\\');\\r\\n searchBox = new google.maps.places.SearchBox(document.getElementById(\\'Hely\\'));\\r\\n searchBox.addListener(\\'places_changed\\', function () {\\r\\n var places = searchBox.getPlaces();\\r\\n if (places.length == 0) {\\r\\n return;\\r\\n }\\r\\n console.log(\\'places\\',places);\\r\\n var name;\\r\\n if (places[0].url)\\r\\n {\\r\\n document.getElementById(\\'map\\').src = places[0].url + \\'&output=embed\\';\\r\\n } else {\\r\\n name = places[0].name;\\r\\n document.getElementById(\\'map\\').src = \\'https://maps.google.com/?q=\\' + name + \\'&output=embed\\';\\r\\n }\\r\\n console.log(\\'name\\',name);\\r\\n if (name) {\\r\\n $(\\'#Hely\\').val(name);\\r\\n }\\r\\n });\\r\\n }\\r\\n</script><script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyBqa3knjWCrkKD0OS3XIBNlPanwR2Z8cP8&libraries=places&callback=initAutocomplete\" async defer></script><div id=popup2><div id=ChooseTrainingWindow ej-dialog e-height=635px e-title=\"Edz\\xE9s sablon v\\xE1laszt\\xE1sa\" e-showoninit=false e-enablemodal=true e-backgroundscroll=true e-enableresize=true e-allowkeyboardnavigation=true e-closeonescape=true e-isresponsive=true e-content=#popup2 e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=row><div class=col-sm-12 style=margin-bottom:15px;><label translate>EdzesSablonok</label> <input id=TrainingTemplate ej-autocomplete></div></div><div class=row><div class=col-md-8><label translate>EdzesTetelek</label><div id=GridEdzesTetelek name=GridEdzesTetelek></div></div><div class=col-md-4><label translate>Description</label> <textarea rows=5 style=resize:none; class=\"form-control textarea\" data-ng-model=vm.EdzesTetelLeiras disabled></textarea></div></div><div class=form-group style=\"margin-top: 10px;\"><button class=cts-button id=cancel data-ng-click=vm.chooseTrainingCancel() type=button translate>Cancel</button> <button class=cts-button id=cancel data-ng-click=vm.createTrainingTemplate() type=button translate>CreateTrainingTemplate</button> <button class=cts-button id=done data-ng-click=\"vm.chooseTrainingAccept(\\'copy\\')\" type=button ng-if=\"vm.editedWTP.Id > 0\" translate>AcceptCopy</button> <button class=cts-button id=done data-ng-click=\"vm.chooseTrainingAccept(\\'append\\')\" type=button translate>AcceptAppend</button></div></div></div><div id=popup><div id=searchWindow ej-dialog e-height=435px e-title=\"Kor\\xE1bbi heti edz\\xE9s terv m\\xE1sol\\xE1sa\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-content=#popup e-enableanimation=true e-width=80% e-showroundedcorner=false e-target=#popupHolder><div class=col-md-12><div class=text-center><div id=GridPopup name=GridPopup></div><div class=form-group style=\"margin-top: 20px\"><button class=\"cts-button post\" id=cancel data-ng-click=vm.closeEarlierWeeklyPlanWindow() type=button translate>Cancel</button> <button class=\"cts-button post\" id=done data-ng-click=vm.selectEarlierWeeklyPlanWindow() type=button translate>Rendben</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/ageGroups/addAgeGroup/addAgeGroup.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-dropdown-list name=sectionDropDown label=Section value=vm.formData.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=ageGroupName label=AgeGroup data-ng-model=vm.formData.AgeGroupName validation-rules=\"{required: true}\"></cts-text-box><cts-dropdown-list name=yearFromDropDown label=yearFrom value=vm.formData.SelectedYearFrom datasource=vm.yearList change=vm.yearFromDropDownChanged></cts-dropdown-list><cts-dropdown-list name=yearToDropDown label=yearTo value=vm.formData.SelectedYearTo datasource=vm.yearListTo change=vm.yearToDropDownChanged clear=vm.clearDropdown></cts-dropdown-list><cts-color-picker name=colorPick label=CalendarColor value=vm.formData.Color change=vm.colorChanged validation-rules=\"{required: true}\"></cts-color-picker><cts-text-box name=comment label=Comment data-ng-model=vm.formData.Comment></cts-text-box><cts-check-box name=activeCheckBox label=ActiveAgeGroup checked=vm.formData.ActiveAgeGroup change=vm.activeCheckboxChanged></cts-check-box></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.saveAgeGroup translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/ageGroupMembersList/ageGroupMembersList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><div class=button-wrapper style=\"float: left;\"><button class=cts-button id=addToTheNewAgeGroup ej-button e-click=vm.goToAgeGroupChange translate>ChangeAgeGroup</button></div></div></form><script id=aggrmelitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${SportolokID})\">${Nev}</a></script><script id=aggrmelitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToNewUser(${EdzoId})\">${EdzoNeve}</a></script><div class=row><div id=Grid class=slim-grid></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/ageGroupsList/ageGroupsList.html','<ht-widget-header title={{title}} text-id=ageGroupListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list></div><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.copyAllAgeGroup id=copyAllAgeGroup translate>CopyAllAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToAddAgeGroup id=addTeam translate>AddAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToModifyAgeGroupButton id=modifyAgeGroup e-enabled=vm.thereIsSelectedAgeGroup translate>ModifyAgeGroup</button> <button type=button class=cts-button ej-button e-click=vm.goToAgeGroupMembersList id=ageGroupMembersList e-enabled=vm.thereIsSelectedAgeGroup translate>MembersOfAgeGroup</button></div></form><script id=templateData type=text/x-template><a data-ng-click=\"vm.goToModifyAgeGroup(${id})\">${nev}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/ageGroups/modifyAgeGroup/modifyAgeGroup.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><cts-dropdown-list name=sectionDropDown label=Section value=vm.formData.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=false></cts-dropdown-list><cts-text-box name=ageGroupName label=AgeGroup data-ng-model=vm.formData.ageGroupName validation-rules=\"{required: true}\" owndisabled=!vm.MODKOROKEZ></cts-text-box><cts-dropdown-list name=yearFromDropDown label=yearFrom value=vm.formData.selectedYearFrom datasource=vm.yearList change=vm.yearFromDropDownChanged enabled=vm.MODKOROKEZ></cts-dropdown-list><cts-dropdown-list name=yearToDropDown label=yearTo value=vm.formData.selectedYearTo datasource=vm.yearListTo change=vm.yearToDropDownChanged enabled=vm.MODKOROKEZ clear=vm.clearDropdown></cts-dropdown-list><cts-color-picker name=colorPick label=CalendarColor value=vm.formData.color change=vm.colorChanged validation-rules=\"{required: true}\" enabled=vm.MODKOROKEZ></cts-color-picker><cts-text-box name=comment label=Comment data-ng-model=vm.formData.comment owndisabled=!vm.MODKOROKEZ></cts-text-box><cts-check-box name=activeCheckBox label=ActiveAgeGroup checked=vm.formData.activeAgeGroup change=vm.activeCheckboxChanged enabled=vm.MODKOROKEZ></cts-check-box></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.modifyAgeGroup data-ng-if=vm.MODKOROKEZ translate>Modify</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteModify.html','<div class=widget-head style=\"padding-left: 0.2em;padding-right: 0.2em;\"><div class=athleteWidget><span class=widgetItem data-ng-click=vm.openAthleteMenu() style=\"cursor: pointer;\"><div id=AthleteMenuButton class=\"hamburger hamburger--spring\" style=\"padding-top: 10px;\"><span class=hamburger-box><span class=hamburger-inner></span></span></div></span><h2 class=widgetItem>{{title}}</h2><span class=widgetItem data-ng-click=vm.openPrintMenu() style=\"cursor: pointer; padding-top: 10px;\"><img src=images/print.png style=\"width: 27px; margin-right: 0.75em;\"></span></div></div><div id=athleteModifyWidgetContent class=\"widget-content form\"><div id=athleteMenu data-ng-class=\"{\\'is-activate\\': vm.athleteMenuOpened}\"><ul><li data-ng-repeat=\"item in vm.athleteMenuItems\" id={{item.name}} data-ng-if=\"item.enabled == true\"><a data-ng-click=vm.openAthletePage(item) data-ng-class=\"{disabled: item.enabled === false}\">{{item.name}}</a></li></ul></div><div id=printMenu data-ng-class=\"{\\'is-activate\\': vm.printMenuOpened}\"><ul><li data-ng-repeat=\"item in vm.printMenuItems\" id={{item.name}}><a data-ng-click=vm.printPage(item) data-ng-class=\"{disabled: item.enabled === false}\">{{item.name}}</a></li></ul></div><div ui-view style=\"min-height: 700px;\"></div></div><div class=widget-foot><div class=clearfix></div></div><div id=printDialogDatasheet><report report-name=TSportoloAdatlapNyomtatasReport report-parameters=vm.reportParameters></report></div><div id=printDialogSchoolRequesting><report report-name=TIskolaiKikeroReport report-parameters=vm.reportParametersSchoolRequesting></report></div><div id=printDialogHealth><report report-name=TEgeszseg report-parameters=vm.reportParametersEgeszsegProfil></report></div>');\n$templateCache.put('app/athletes/athletesManagement/athletesList/athletesList.html','<ht-widget-header title={{title}} text-id=athleteListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.selectedSectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.selectedAgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=active label=OnlyInactives enabled=vm.checkboxEnabled checked=vm.inactiveAthletes change=vm.inactiveChange></cts-check-box></div><div class=row><div class=button-wrapper><button class=cts-button id=newAthletes ej-button e-click=vm.goToNewAthlete translate>NewAthlete</button><button class=cts-button id=modifyAthletes ej-button e-click=vm.modifyAthletesButton translate>ModifyAthletes</button><button class=cts-button id=goneAthletes ej-button e-click=vm.goneAthletesBtn e-enabled=vm.exitAthletesEnabled translate>goneAthletes</button><button class=cts-button id=competitionResult ej-button e-click=vm.competitionResult translate>RaceResultsReport</button></div></div></form><script id=templateDataRow1 type=text/x-template><a data-ng-click=\"vm.modifyAthletes(${SportolokId})\">${Nev}</a></script><script id=templateDataRow2 type=text/x-template><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div class=col-sm-12><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteNew/athleteNew.html','<div class=widget-head><h2>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data prevent-enter-submit><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion name=accordion><h3><a href=# translate>AthleteDatasheet</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev validation-rules=\"{required: true, minlength: 5, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=gender label=Sex value=vm.athleteData.Neme datasource=vm.sexList select=vm.sexSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.displayPhoto}} id=profilePic><div style=\"position: relative;\"><button class=cts-button type=button data-ng-click=vm.openCropDialog() translate>Modify</button> <button class=\"cts-button red\" type=button data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><div class=\"form-group cts-form-group\"><label for=sectionValue>{{\"Section\"|translate}}</label> <label id=sectionValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.athleteData.Korcsoport datasource=vm.ageGroupList databound=vm.ageGroupDataBound validation-rules=\"{required: true}\" select=vm.ageGroupSelect></cts-dropdown-list><cts-dropdown-list name=coachName label=CoachName value=vm.athleteData.JelenlegiEdzo datasource=vm.coachList select=vm.coachSelect databound=vm.coachDropDownListDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=secondSectionDropDown label=SecondSection value=vm.athleteData.MasodlagosSzakosztaly datasource=vm.secondSectionList databound=vm.secondSelectedSectionId validation-rules=\"{required: false}\" clear=vm.clearSecondSection enabled=vm.ADMIN select=vm.secondSectionSelect></cts-dropdown-list><cts-dropdown-list name=secondAgeGroupDropDown label=SecondAgeGroup value=vm.athleteData.MasodlagosKorcsoport datasource=vm.secondAgeGroupList databound=vm.secondAgeGroupDataBound validation-rules=\"{required: false}\" clear=vm.clearSecondAgeGroup enabled=vm.ADMIN select=vm.secondAgeGroupSelect></cts-dropdown-list><cts-dropdown-list name=secondCoachName label=SecondCoachName value=vm.athleteData.MasodlagosEdzo datasource=vm.secondCoachList select=vm.secondCoachSelect databound=vm.secondCoachDropDownListDataBound clear=vm.clearSecondCoach enabled=vm.ADMIN validation-rules=\"{required: false}\"></cts-dropdown-list><cts-text-box name=bpcountry label=BirthPlaceCountry cts-placeholder=BirthPlaceCountry data-ng-model=vm.athleteData.SzuletesiHelyOrszag validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=bpcity label=BirthPlaceCity cts-placeholder=BirthPlaceCity data-ng-model=vm.athleteData.SzuletesiHelyVaros validation-rules=\"{required: true}\"></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.athleteData.SzuletesiIdo validation-rules=\"{required: true}\"></cts-date-picker><cts-text-box name=motherBirthName data-ng-if=!vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: true, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box name=motherBirthName data-ng-if=vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=citizenship data-ng-if=!vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=citizenship data-ng-if=vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: false}\"></cts-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag validation-rules=\"{required: true, minlength: 1}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly validation-rules=\"{required: true, minlength: 1}\"></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-dropdown-list name=betterHandDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezB datasource=vm.betterHandList select=vm.betterHandSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=betterHandDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezB datasource=vm.betterHandList select=vm.betterHandSelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabB datasource=vm.betterFootList select=vm.betterFootSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabB datasource=vm.betterFootList select=vm.betterFootSelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-date-picker name=startSportDate data-ng-if=!vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=startSportDate data-ng-if=vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: false}\"></cts-date-picker><cts-date-picker name=startMemberDate value=vm.athleteData.DSITagsagKezdete label=StartMemberDate validation-rules=\"{required: true}\"></cts-date-picker><cts-check-box name=active label=Active enabled=false checked=vm.athleteData.Aktiv change=vm.activeChange></cts-check-box><cts-text-box-taj-szam data-ng-if=vm.socialSecurityNumberRequiredValue name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: true}\"></cts-text-box-taj-szam><cts-text-box-taj-szam data-ng-if=!vm.socialSecurityNumberRequiredValue name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-date-picker name=medicalCertificateExpirationDate label=medicalCertificateExpirationDate value=vm.athleteData.SportorvosIgazolasLejarat></cts-date-picker><cts-text-area name=coachDetails data-ng-if=!vm.athleteRequiredMinimumDatas label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: true, maxlength: 4096}\"></cts-text-area><cts-text-area name=coachDetails data-ng-if=vm.athleteRequiredMinimumDatas label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-dropdown-list name=feeOfEducation label=FeeOfEducation value=vm.athleteData.TagdijasText datasource=vm.feeOfEducationList databound=vm.feeOfEducationBound enabled=vm.noSelectedAthlete></cts-dropdown-list><cts-text-box data-ng-if=vm.athleteRegistrationNumberRequiredValue name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: true }\"></cts-text-box><cts-text-box data-ng-if=!vm.athleteRegistrationNumberRequiredValue name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: false }\"></cts-text-box><div class=\"cts-form-group form-group\"><div class=\"col-lg-6 col-lg-offset-6\"><button class=cts-button type=button id=regnumgen ej-button e-click=vm.generateRegNum translate>GenerateRegNum</button></div></div><cts-text-box name=JatekEngedelySzama label=JatekEngedelySzama data-ng-model=vm.athleteData.JatekEngedelySzama></cts-text-box></fieldset><h3><a href=# translate>Contact</a></h3><fieldset class=\"panel col-lg-8\"><cts-dropdown-list name=county data-ng-if=!vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=!vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: true, minlength: 2, maxlength: 10}\"></cts-text-box><cts-text-box name=city data-ng-if=!vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: true, minlength: 2, maxlength: 50}\"></cts-text-box><cts-text-box name=street data-ng-if=!vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-text-box><cts-text-box name=streetNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-text-box><cts-dropdown-list name=county data-ng-if=vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: false}\"></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: false, maxlength: 10}\"></cts-text-box><cts-text-box name=city data-ng-if=vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=street data-ng-if=vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=streetNumber data-ng-if=vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: false, maxlength: 50}\"></cts-text-box><cts-text-box name=phoneNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: true}\"></cts-text-box><cts-text-box name=phoneNumber data-ng-if=vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: false}\"></cts-text-box><cts-text-box-email name=eMail label=Email data-ng-model=vm.athleteData.EmailCim></cts-text-box-email></fieldset><h3><a href=# translate>IdentificationNumbers</a></h3><fieldset class=\"panel col-lg-8\"><cts-text-box name=personalId label=PersonalId data-ng-model=vm.athleteData.SzemIgSzam></cts-text-box><cts-date-picker name=personalIdExpiration label=PersonalIdExpiration value=vm.athleteData.SzemelyiErvenyessege></cts-date-picker><cts-text-box-tax-id name=taxId label=taxId data-ng-model=vm.athleteData.AdoSzam></cts-text-box-tax-id><cts-text-box-passport-number name=passportNumber label=PassportNumber data-ng-model=vm.athleteData.UtlevelSzam></cts-text-box-passport-number><cts-date-picker name=passportExpiration label=PassportExpiration value=vm.athleteData.UtlevelErvenyessege></cts-date-picker></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset class=\"panel col-lg-8\"><div><cts-text-box name=slippersSize label=SlippersSize data-ng-model=vm.athleteData.PapucsMerete ng-show=vm.RUHA.PAPUCS></cts-text-box></div><div><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.athleteData.CipoMerete ng-show=vm.RUHA.CIPO></cts-text-box></div><div><cts-text-box name=joggingSuitSize label=JoggingSize data-ng-model=vm.athleteData.MelegitoMerete ng-show=vm.RUHA.MELEGITO></cts-text-box></div><div><cts-text-box name=bathrobeSize label=BathrobeSize data-ng-model=vm.athleteData.FurdokopenyMerete ng-show=vm.RUHA.FURDOKOPENY></cts-text-box></div><div><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.athleteData.KabatMerete ng-show=vm.RUHA.KABAT></cts-text-box></div><div><cts-text-box name=armorPantSize label=ArmorPantSize data-ng-model=vm.athleteData.PancelNadragMerete ng-show=vm.RUHA.PANCELNADRAG></cts-text-box></div><div><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.athleteData.PoloMerete ng-show=vm.RUHA.POLO></cts-text-box></div><div><cts-text-box name=shortDressSize label=ShortsSize data-ng-model=vm.athleteData.SortMerete ng-show=vm.RUHA.SORT></cts-text-box></div><div><cts-text-box name=swimmingPantSize label=SwimmingPantSize data-ng-model=vm.athleteData.UszoNadragMerete ng-show=vm.RUHA.USZONADRAG></cts-text-box></div></fieldset><h3><a href=# translate>SchoolDatas</a></h3><fieldset class=col-sm-12><div class=\"panel col-lg-8\"><div class=\"col-lg-12 col-lg-offset-6\"><button class=cts-button type=button id=changeSchool ej-button e-click=vm.selectSchools translate>SelectSchool</button></div></div><br><div class=hidedContent id=hidedContent><div class=form-group><div class=slim-grid id=Grid></div></div></div><br><div class=\"panel col-lg-8\"><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.athleteData.IskolaNeve change=vm.schoolNameChanged data-ng-model-options=\"{debounce: 500}\"></cts-text-box><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.athleteData.IskolaIrSzam></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.athleteData.IskolaVaros></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.athleteData.IskolaUtca></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.athleteData.IskolaHazszam></cts-text-box><cts-text-box name=directorName label=DirectorName data-ng-model=vm.athleteData.IskolaIgazgatoNeve></cts-text-box><cts-auto-complete name=classMaster label=ClassMaster value=vm.athleteData.OsztalyFonokNeve datasource=vm.classMasterDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectOf></cts-auto-complete><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.athleteData.OfTel></cts-text-box><cts-text-box-email name=classMasterEmail label=ClassMasterEmail data-ng-model=vm.athleteData.OfEmail></cts-text-box-email><cts-auto-complete name=gymTeacher label=GymTeacher value=vm.athleteData.TestneveloNeve datasource=vm.gymTeacherDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectTesiTanar></cts-auto-complete><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.athleteData.TestneveloElerhetosege></cts-text-box><cts-text-box-email name=gymTeacherEmail label=GymTeacherEmail data-ng-model=vm.athleteData.TestneveloEmail></cts-text-box-email><cts-dropdown-list name=course label=Course value=vm.athleteData.IskolaEvfolyam datasource=vm.courseList select=vm.courseSelect></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.athleteData.IskolaOsztaly datasource=vm.classList select=vm.classSelect></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-auto-complete name=motherName label=MothersName value=vm.athleteData.AnyjaNeve datasource=vm.motherNames emptyresulttext=vm.emptyResultText show-popup-button=true disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectMother></cts-auto-complete><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.athleteData.Szulo1Elerhetosege validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=motherEmail label=MotherEmail data-ng-model=vm.athleteData.AnyaEmail disabled=!vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=motherHeightDropDown label=Height value=vm.athleteData.AnyjaTestmagassaga validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.athleteData.SportoloiMultAnya css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.athleteData.AnyjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.athleteData.AnyaMunkahely validation-rules=\"{required: false}\"></cts-text-box><cts-auto-complete name=fatherName label=FatherName value=vm.athleteData.SzuloNeve datasource=vm.fatherNames emptyresulttext=vm.emptyResultText show-popup-button=true disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectFather></cts-auto-complete><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.athleteData.Szulo2Elerhetosege validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=fatherEmail label=FatherEmail data-ng-model=vm.athleteData.ApaEmail disabled=!vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=fatherHeightDropDown label=Height value=vm.athleteData.ApjaTestmagassaga validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=FatherSportHistory data-ng-model=vm.athleteData.SportoloiMultApa css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.athleteData.ApjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\"></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.athleteData.ApaMunkahely validation-rules=\"{required: false}\"></cts-text-box></fieldset><h3><a href=# translate>OtherDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-numeric-text-box name=AtigazolasiDij label=AtigazolasiDij value=vm.athleteData.AtigazolasiDij validation-rules=\"{required: false}\"></cts-numeric-text-box><cts-date-picker name=trainingStart label=TrainingStart value=vm.athleteData.EdzesreJarasKezdete validation-rules=\"{required: false}\"></cts-date-picker><cts-text-area name=Notes label=Notes data-ng-model=vm.athleteData.Megjegyzes css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-area name=SportAssociation label=SportAssociation data-ng-model=vm.athleteData.EddigiSpEgyesuletei css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=childAgeSport label=ChildageSport data-ng-model=vm.athleteData.GyermekkoriSport validation-rules=\"{required: false, minlength: 1, maxlength: 30}\"></cts-text-box><cts-text-box name=origin label=Origin data-ng-model=vm.athleteData.FajiEredet validation-rules=\"{required: false, minlength: 3, maxlength: 30}\"></cts-text-box><cts-text-box name=howSpentFreeTime label=HowSpentFreeTime data-ng-model=vm.athleteData.SzunideiElfoglaltsag validation-rules=\"{required: false, minlength: 1, maxlength: 30}\"></cts-text-box><cts-text-box name=birthName label=BirthName data-ng-model=vm.athleteData.LeanykoriNev validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-date-picker name=pubertasEndTime label=PubertasEndTime value=vm.athleteData.PubertasVege validation-rules=\"{required: false}\"></cts-date-picker></fieldset></div></div></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\" translate>ChooseImage</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper min-width=50 min-height=50 image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=submit style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/addTeam/addTeam.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><cts-text-box name=TeamName label=TeamName data-ng-model=vm.formData.TeamName validation-rules=\"{required: true, maxlength: 200}\"></cts-text-box><cts-text-box name=Comment label=Comment data-ng-model=vm.formData.Comment validation-rules=\"{maxlength: 255}\"></cts-text-box><cts-dropdown-list name=SectionId label=Section value=vm.formdata.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=AgeGroupId label=AgeGroup value=vm.formdata.AgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=CoachId label=Coach value=vm.formdata.CoachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=\"col-sm-12 col-md-12 col-lg-6 overflow-hidden pull-lg-left\"><div class=image-preview style=\"width: 210px;\"><img ng-src={{vm.photoUrl}} id=profileImg class=\"thumb pull-left\" style=\"clear: both; margin-bottom: 2px;\"> <button type=button data-ng-click=vm.openCropDialog() class=\"cts-button pull-left\" style=\"display: block; clear: both; float: left; margin-right: 2px;\" translate>Modify</button> <button type=button data-ng-disabled=\"vm.noImg === vm.photoUrl\" data-ng-click=vm.deleteImg() id=deleteImgBtn class=\"cts-button red pull-left\" style=\"display: block; float: left\" translate>Delete</button></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.simpleSave translate>Save</button> <button type=submit class=cts-button ej-button e-click=vm.saveTeamAndAddMembers e-enabled=vm.MEGTCSOPORT translate>SaveAndManageTeamMember</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=FileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=FileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-right pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/addTeamMember/addTeamMember.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.addTeamMemberToTeam id=addTeamMember translate>AddToTeam</button></div></div></form><script id=adtemetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${Id})\">${Name}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/teams/modifyTeam/modifyTeam.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-6><cts-text-box name=TeamName label=TeamName data-ng-model=vm.formData.TeamName validation-rules=\"{required: true, maxlength: 200}\" owndisabled=!vm.MODCSOPORT></cts-text-box><cts-text-box name=Comment label=Comment data-ng-model=vm.formData.Comment validation-rules=\"{maxlength: 255}\" owndisabled=!vm.MODCSOPORT></cts-text-box><cts-dropdown-list name=sectionDropDown label=Section value=vm.formdata.SectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.formdata.AgeGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.formdata.CoachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect validation-rules=\"{required: true}\" enabled=vm.MODCSOPORT></cts-dropdown-list><cts-check-box name=activeCheckBox label=Active checked=vm.formdata.ActiveTeam change=vm.activeCheckboxChanged enabled=vm.MODCSOPORT></cts-check-box></div><div class=\"col-sm-12 col-md-12 col-lg-6 overflow-hidden pull-lg-left\"><div class=image-preview style=\"width: 210px;\"><img ng-src={{vm.photoUrl}} id=profileImg class=\"thumb pull-left\" style=\"clear: both; margin-bottom: 2px;\"> <button data-ng-if=vm.MODCSOPORT data-ng-click=vm.openCropDialog() class=\"cts-button pull-left\" style=\"display: block; clear: both; float: left; margin-right: 2px;\" translate>Modify</button> <button data-ng-if=vm.MODCSOPORT data-ng-disabled=\"vm.noImg === vm.photoUrl\" data-ng-click=vm.deleteImg() id=deleteImgBtn class=\"cts-button red pull-left\" style=\"display: block; float: left\" translate>Delete</button></div></div><div class=col-sm-12 style=\"text-align: center\"><button type=submit data-ng-if=vm.MODCSOPORT class=cts-button ej-button e-click=vm.simpleModifyTeam translate>Modify</button> <button name=modifyTeamAndAddMembersButton type=button data-ng-if=vm.MODCSOPORT class=cts-button ej-button e-enabled=vm.modifyTeamAndAddMembersButtonEnabled e-click=vm.modifyTeamAndAddMembers translate>ModifyAndManageTeamMember</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=FileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=FileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/teams/teamMembersList/teamMembersList.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepick label=TeamMemberDate value=vm.dateValue change=vm.dateChange></cts-date-picker></div><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.goToAddTeamMember id=addTeamMember translate>AddTeamMember</button> <button type=button class=\"cts-button red\" ej-button e-click=vm.deleteTeamMember id=deleteTeamMember translate>DeleteTeamMembers</button></div></form><script id=temelitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToNewAthlete(${Id})\">${Name}</a></script><div class=row><h3 style=\"text-align: center;\">{{vm.sectionName}} ({{vm.ageGroupName}}) - {{vm.teamName}}</h3><div id=Grid class=\"slim-grid no-print-first-col\"></div></div><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=reset class=cts-button ej-button e-click=back translate>Back</button></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/teams/teamList/teamList.html','<ht-widget-header title={{title}} text-id=teamListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList change=vm.sectionChange></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList change=vm.ageGroupChange></cts-dropdown-list><cts-check-box name=active label=InactivesToo enabled=vm.checkboxEnabled checked=vm.inactiveTeams change=vm.inactiveChange></cts-check-box></div><div class=button-wrapper><button type=button id=addTeam class=cts-button ej-button e-click=vm.goToAddTeam translate>NewTeam</button> <button type=button id=modifyTeam class=cts-button ej-button e-click=vm.goToModifyTeam translate>Modify</button> <button type=button id=deleteTeam class=\"cts-button red\" ej-button e-click=vm.deleteTeam translate>Delete</button> <button type=button id=teamMembersList class=cts-button ej-button e-click=vm.goToTeamMembersList translate>TeamMembers</button> <button type=button id=teamResults class=cts-button ej-button e-click=vm.openTeamResults translate>TeamResults</button></div></form><script type=text/x-template id=teamlistcolumnTemplate1><a data-ng-click=\"vm.goToTeamMembersList(${szakosztalyId}, ${korosztalyId}, ${csapatId}, ${aktiv})\">${csapatNev}</a></script><script type=text/x-template id=teamlistcolumnTemplate2><a data-ng-click=\"vm.openCoach(${edzoId})\">${edzoNeve}</a></script><div class=row><div id=Grid class=\"slim-grid no-print-first-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsBySections/annualPresenceReportsBySections.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsBySectionsHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form novalidate class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maSzakosztaly databound=vm.sectionDataBound label=Section value=vm.selectedSection datasource=vm.sectionList required select=vm.sectionSelect validation-rules=\"{required: true}\"></cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></div><script type=text/x-template id=columnTemplate><a data-ng-click=\"vm.goToNewCoach(${VersenyzoId})\">${VersenyzoNeve}</a></script><div><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsBySportSchool/annualPresenceReportsBySportSchool.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsBySportSchoolHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\" < cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></cts-dropdown-list></div><div class=row><div id=Grid name=Grid></div></div></form></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/annualPresenceReports/annualPresenceReportsByTrainers/annualPresenceReportsByTrainers.html','<ht-widget-header title={{title}} text-id=annualPresenceReportsByTrainersHelp right-text=rightText></ht-widget-header><div class=widget-content><form name=form class=filter><div class=row><cts-dropdown-list name=maEv label=StartYear value=vm.selectedYear datasource=vm.years validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maHonap label=StartMonth value=vm.selectedMonth datasource=vm.months validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=row><cts-dropdown-list name=maSzakosztaly label=Section value=vm.selectedSection datasource=vm.sectionList select=vm.sectionSelect databound=vm.sectionDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maKorosztaly label=AgeGroup value=vm.selectedAgeGroup datasource=vm.ageGroupList select=vm.ageGroupSelect databound=vm.ageGroupDataBound validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=maEdzo label=Coach value=vm.selectedCoach datasource=vm.coachList select=vm.coachSelect databound=vm.coachDataBound validation-rules=\"{required: true}\"></cts-dropdown-list></div><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></form><div class=row><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/annualCompetitivePlans/annualCompetitivePlans.html','<ht-widget-header title={{title}} text-id=annualCompetitivePlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=ancoplcolumnTemplate1><a data-ng-click=\"vm.goToAnnualSeasonPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=ancopopencoach><a data-ng-click=\"vm.openCoach(${IdEzdo})\">${EdzoNeve}</a></script><script type=text/x-template id=ancopfiltersection><a data-ng-click=\"vm.filterSection(${IdSzakosztaly})\">${SzakosztalyNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/monthlyAttendanceReports/monthlyAttendanceReports.html','<ht-widget-header title={{title}} text-id=monthlyAttendaceReportsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=marsection><a data-ng-click=\"vm.clickOnSection(${Szakosztaly_Id})\">${SzakosztalyNeve}</a></script><script type=text/x-template id=marcoach><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><script type=text/x-template id=moatrecolumnTemplate1><a data-ng-click=\"vm.goToMonthlyAttendance(${attendaceId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/monthlyCompetitivePlans/monthlyCompetitivePlans.html','<ht-widget-header title={{title}} text-id=monthlyCompetitivePlansManagementReportHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=mocomplcolumnTemplate1><a data-ng-click=\"vm.goToMonthlyCompetitivePlan(${Id.Id}, ${Id.Egyeni})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=mocomplcolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=mocomplcolumnTemplate3><a data-ng-click=\"vm.openCoach(${JovahagytaId})\">${JovahagytaNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/trainingDiaryReports/trainingDiaryReports.html','<ht-widget-header title={{title}} text-id=trainingDiaryReportsHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue change=vm.dateToChange validation-rules=\"{required: true}\"></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><cts-dropdown-list name=ageGroupDropDown label=AgeGroup value=vm.ageGroupId datasource=vm.ageGroupList databound=vm.ageGroupDataBound select=vm.ageGroupSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=tdrcoach><a data-ng-click=\"vm.openCoach(${Edzo_Id})\">${EdzoNeve}</a></script><script type=text/x-template id=tdropentd><a data-ng-click=\"vm.openTrainingDiary(${attendaceId})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/managementReports/weeklyTrainingPlans/weeklyTrainingPlans.html','<ht-widget-header title={{title}} text-id=weeklyTrainingPlansHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><cts-date-picker name=datepickerFrom label=From value=vm.dateFromValue validation-rules=\"{required: true}\" change=vm.dateChange></cts-date-picker><cts-date-picker name=datepickerTo label=To value=vm.dateToValue validation-rules=\"{required: true}\" change=vm.dateChange2></cts-date-picker></div><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionId datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-dropdown-list name=coachDropDown label=Coach value=vm.coachId datasource=vm.coachList databound=vm.coachDataBound select=vm.coachSelect></cts-dropdown-list><div class=button-wrapper><button id=search class=cts-button ej-button e-click=vm.search translate>GetDatas</button></div></div></form><div class=row><script type=text/x-template id=wetrplcolumnTemplate1><a data-ng-click=\"vm.goToWeeklyTrainingPlan(${Id})\"><i class=\"fa fa-eye\" style=\"font-size: 1.5em;\"></i></a></script><script type=text/x-template id=wetrplcolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid class=\"slim-grid no-print-last-col\"></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByAge/activeAthletesByAge.html','<ht-widget-header title={{title}} text-id=activeAthletesByAgeHelp right-text=rightText></ht-widget-header><div class=widget-content><script type=text/x-template id=aaba_year><a data-ng-click=\"vm.openBirthYear(${SzuletesiEv})\">${SzuletesiEv}</a></script><script type=text/x-template id=aaba_ops01><a data-ng-click=\"vm.openSection(${1},${SzuletesiEv})\">${_sz_01}</a></script><script type=text/x-template id=aaba_ops02><a data-ng-click=\"vm.openSection(${2},${SzuletesiEv})\">${_sz_02}</a></script><script type=text/x-template id=aaba_ops03><a data-ng-click=\"vm.openSection(${3},${SzuletesiEv})\">${_sz_03}</a></script><script type=text/x-template id=aaba_ops04><a data-ng-click=\"vm.openSection(${4},${SzuletesiEv})\">${_sz_04}</a></script><script type=text/x-template id=aaba_ops05><a data-ng-click=\"vm.openSection(${5},${SzuletesiEv})\">${_sz_05}</a></script><script type=text/x-template id=aaba_ops06><a data-ng-click=\"vm.openSection(${6},${SzuletesiEv})\">${_sz_06}</a></script><script type=text/x-template id=aaba_ops07><a data-ng-click=\"vm.openSection(${7},${SzuletesiEv})\">${_sz_07}</a></script><script type=text/x-template id=aaba_ops08><a data-ng-click=\"vm.openSection(${8},${SzuletesiEv})\">${_sz_08}</a></script><script type=text/x-template id=aaba_ops09><a data-ng-click=\"vm.openSection(${9},${SzuletesiEv})\">${_sz_09}</a></script><script type=text/x-template id=aaba_ops10><a data-ng-click=\"vm.openSection(${10},${SzuletesiEv})\">${_sz_10}</a></script><script type=text/x-template id=aaba_ops11><a data-ng-click=\"vm.openSection(${11},${SzuletesiEv})\">${_sz_11}</a></script><script type=text/x-template id=aaba_ops12><a data-ng-click=\"vm.openSection(${12},${SzuletesiEv})\">${_sz_12}</a></script><script type=text/x-template id=aaba_ops13><a data-ng-click=\"vm.openSection(${13},${SzuletesiEv})\">${_sz_13}</a></script><script type=text/x-template id=aaba_ops14><a data-ng-click=\"vm.openSection(${14},${SzuletesiEv})\">${_sz_14}</a></script><script type=text/x-template id=aaba_ops15><a data-ng-click=\"vm.openSection(${15},${SzuletesiEv})\">${_sz_15}</a></script><script type=text/x-template id=aaba_ops16><a data-ng-click=\"vm.openSection(${16},${SzuletesiEv})\">${_sz_16}</a></script><script type=text/x-template id=aaba_ops17><a data-ng-click=\"vm.openSection(${17},${SzuletesiEv})\">${_sz_17}</a></script><script type=text/x-template id=aaba_ops18><a data-ng-click=\"vm.openSection(${18},${SzuletesiEv})\">${_sz_18}</a></script><script type=text/x-template id=aaba_ops19><a data-ng-click=\"vm.openSection(${19},${SzuletesiEv})\">${_sz_19}</a></script><script type=text/x-template id=aaba_ops20><a data-ng-click=\"vm.openSection(${20},${SzuletesiEv})\">${_sz_20}</a></script><script type=text/x-template id=aaba_ops21><a data-ng-click=\"vm.openSection(${21},${SzuletesiEv})\">${_sz_21}</a></script><script type=text/x-template id=aaba_ops22><a data-ng-click=\"vm.openSection(${22},${SzuletesiEv})\">${_sz_22}</a></script><script type=text/x-template id=aaba_ops23><a data-ng-click=\"vm.openSection(${23},${SzuletesiEv})\">${_sz_23}</a></script><script type=text/x-template id=aaba_ops24><a data-ng-click=\"vm.openSection(${24},${SzuletesiEv})\">${_sz_24}</a></script><script type=text/x-template id=aaba_ops25><a data-ng-click=\"vm.openSection(${25},${SzuletesiEv})\">${_sz_25}</a></script><script type=text/x-template id=aaba_ops26><a data-ng-click=\"vm.openSection(${26},${SzuletesiEv})\">${_sz_26}</a></script><script type=text/x-template id=aaba_ops27><a data-ng-click=\"vm.openSection(${27},${SzuletesiEv})\">${_sz_27}</a></script><script type=text/x-template id=aaba_ops28><a data-ng-click=\"vm.openSection(${28},${SzuletesiEv})\">${_sz_28}</a></script><script type=text/x-template id=aaba_ops29><a data-ng-click=\"vm.openSection(${29},${SzuletesiEv})\">${_sz_29}</a></script><script type=text/x-template id=aaba_ops30><a data-ng-click=\"vm.openSection(${30},${SzuletesiEv})\">${_sz_30}</a></script><script type=text/x-template id=aaba_ops31><a data-ng-click=\"vm.openSection(${31},${SzuletesiEv})\">${_sz_31}</a></script><script type=text/x-template id=aaba_ops32><a data-ng-click=\"vm.openSection(${32},${SzuletesiEv})\">${_sz_32}</a></script><script type=text/x-template id=aaba_ops33><a data-ng-click=\"vm.openSection(${33},${SzuletesiEv})\">${_sz_33}</a></script><script type=text/x-template id=aaba_ops34><a data-ng-click=\"vm.openSection(${34},${SzuletesiEv})\">${_sz_34}</a></script><script type=text/x-template id=aaba_ops35><a data-ng-click=\"vm.openSection(${35},${SzuletesiEv})\">${_sz_35}</a></script><script type=text/x-template id=aaba_ops36><a data-ng-click=\"vm.openSection(${36},${SzuletesiEv})\">${_sz_36}</a></script><script type=text/x-template id=aaba_ops37><a data-ng-click=\"vm.openSection(${37},${SzuletesiEv})\">${_sz_37}</a></script><script type=text/x-template id=aaba_ops38><a data-ng-click=\"vm.openSection(${38},${SzuletesiEv})\">${_sz_38}</a></script><script type=text/x-template id=aaba_ops39><a data-ng-click=\"vm.openSection(${39},${SzuletesiEv})\">${_sz_39}</a></script><script type=text/x-template id=aaba_ops40><a data-ng-click=\"vm.openSection(${40},${SzuletesiEv})\">${_sz_40}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByCoach/activeAthletesByCoach.html','<ht-widget-header title={{title}} text-id=activeAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker label=Date change=vm.dateChange value=vm.queryDate></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=acatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId},${SzakosztalyId})\">${EdzoNeve}</a></script><script id=acatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=acatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=acatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=acatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openAthleteListByCoach(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesBySection/activeAthletesBySection.html','<ht-widget-header title={{title}} text-id=activeAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker label=Date change=vm.dateChange value=vm.queryDate></cts-date-picker><div class=button-wrapper><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></div></form><script id=acatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${Szam}</a></script><script id=acatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamFiu}</a></script><script id=acatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesByMonth/activeAthletesByMonth.html','<ht-widget-header title={{title}} text-id=activeAthletesByMonthHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker></div></form><script type=text/x-template id=aabm_allgender><a data-ng-click=\"vm.openAthletes(${id},0)\">${Szam}</a></script><script type=text/x-template id=aabm_male><a data-ng-click=\"vm.openAthletes(${id},1)\">${SzamFiu}</a></script><script type=text/x-template id=aabm_female><a data-ng-click=\"vm.openAthletes(${id},2)\">${SzamLany}</a></script><script type=text/x-template id=aabm_joined><a data-ng-click=\"vm.openJoined(${id})\">${SzamErkezett}</a></script><script type=text/x-template id=aabm_leaving><a data-ng-click=\"vm.openLeaving(${id})\">${SzamKilepett}</a></script><script type=text/x-template id=aabm_ops1><a data-ng-click=\"vm.openSection(${1},${id})\">${c1}</a></script><script type=text/x-template id=aabm_ops2><a data-ng-click=\"vm.openSection(${2},${id})\">${c2}</a></script><script type=text/x-template id=aabm_ops3><a data-ng-click=\"vm.openSection(${3},${id})\">${c3}</a></script><script type=text/x-template id=aabm_ops4><a data-ng-click=\"vm.openSection(${4},${id})\">${c4}</a></script><script type=text/x-template id=aabm_ops5><a data-ng-click=\"vm.openSection(${5},${id})\">${c5}</a></script><script type=text/x-template id=aabm_ops6><a data-ng-click=\"vm.openSection(${6},${id})\">${c6}</a></script><script type=text/x-template id=aabm_ops7><a data-ng-click=\"vm.openSection(${7},${id})\">${c7}</a></script><script type=text/x-template id=aabm_ops8><a data-ng-click=\"vm.openSection(${8},${id})\">${c8}</a></script><script type=text/x-template id=aabm_ops9><a data-ng-click=\"vm.openSection(${9},${id})\">${c9}</a></script><script type=text/x-template id=aabm_ops10><a data-ng-click=\"vm.openSection(${10},${id})\">${c10}</a></script><script type=text/x-template id=aabm_ops11><a data-ng-click=\"vm.openSection(${11},${id})\">${c11}</a></script><script type=text/x-template id=aabm_ops12><a data-ng-click=\"vm.openSection(${12},${id})\">${c12}</a></script><script type=text/x-template id=aabm_ops13><a data-ng-click=\"vm.openSection(${13},${id})\">${c13}</a></script><script type=text/x-template id=aabm_ops14><a data-ng-click=\"vm.openSection(${14},${id})\">${c14}</a></script><script type=text/x-template id=aabm_ops15><a data-ng-click=\"vm.openSection(${15},${id})\">${c15}</a></script><script type=text/x-template id=aabm_ops16><a data-ng-click=\"vm.openSection(${16},${id})\">${c16}</a></script><script type=text/x-template id=aabm_ops17><a data-ng-click=\"vm.openSection(${17},${id})\">${c17}</a></script><script type=text/x-template id=aabm_ops18><a data-ng-click=\"vm.openSection(${18},${id})\">${c18}</a></script><script type=text/x-template id=aabm_ops19><a data-ng-click=\"vm.openSection(${19},${id})\">${c19}</a></script><script type=text/x-template id=aabm_ops20><a data-ng-click=\"vm.openSection(${20},${id})\">${c20}</a></script><script type=text/x-template id=aabm_ops21><a data-ng-click=\"vm.openSection(${21},${id})\">${c21}</a></script><script type=text/x-template id=aabm_ops22><a data-ng-click=\"vm.openSection(${22},${id})\">${c22}</a></script><script type=text/x-template id=aabm_ops23><a data-ng-click=\"vm.openSection(${23},${id})\">${c23}</a></script><script type=text/x-template id=aabm_ops24><a data-ng-click=\"vm.openSection(${24},${id})\">${c24}</a></script><script type=text/x-template id=aabm_ops25><a data-ng-click=\"vm.openSection(${25},${id})\">${c25}</a></script><script type=text/x-template id=aabm_ops26><a data-ng-click=\"vm.openSection(${26},${id})\">${c26}</a></script><script type=text/x-template id=aabm_ops27><a data-ng-click=\"vm.openSection(${27},${id})\">${c27}</a></script><script type=text/x-template id=aabm_ops28><a data-ng-click=\"vm.openSection(${28},${id})\">${c28}</a></script><script type=text/x-template id=aabm_ops29><a data-ng-click=\"vm.openSection(${29},${id})\">${c29}</a></script><script type=text/x-template id=aabm_ops30><a data-ng-click=\"vm.openSection(${30},${id})\">${c30}</a></script><script type=text/x-template id=aabm_ops31><a data-ng-click=\"vm.openSection(${31},${id})\">${c31}</a></script><script type=text/x-template id=aabm_ops32><a data-ng-click=\"vm.openSection(${32},${id})\">${c32}</a></script><script type=text/x-template id=aabm_ops33><a data-ng-click=\"vm.openSection(${33},${id})\">${c33}</a></script><script type=text/x-template id=aabm_ops34><a data-ng-click=\"vm.openSection(${34},${id})\">${c34}</a></script><script type=text/x-template id=aabm_ops35><a data-ng-click=\"vm.openSection(${35},${id})\">${c35}</a></script><script type=text/x-template id=aabm_ops36><a data-ng-click=\"vm.openSection(${36},${id})\">${c36}</a></script><script type=text/x-template id=aabm_ops37><a data-ng-click=\"vm.openSection(${37},${id})\">${c37}</a></script><script type=text/x-template id=aabm_ops38><a data-ng-click=\"vm.openSection(${38},${id})\">${c38}</a></script><script type=text/x-template id=aabm_ops39><a data-ng-click=\"vm.openSection(${39},${id})\">${c39}</a></script><script type=text/x-template id=aabm_ops40><a data-ng-click=\"vm.openSection(${40},${id})\">${c40}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/activeAthletesInSectionByMonth/activeAthletesInSectionByMonth.html','<ht-widget-header title={{title}} text-id=activeAthletesInSectionByMonthHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.dateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.dateTo></cts-date-picker></div></form><script id=acatinsebymotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthletes(${id})\">${Szam}</a></script><script id=acatinsebymotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openBoys(${id})\">${SzamFiu}</a></script><script id=acatinsebymotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openGirls(${id})\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesByBirthYear/athletesByBirthYear.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter><div class=row></div></form><script id=atbybiyetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},0)\">${Szam}</a></script><script id=atbybiyetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},1)\">${SzamFiu}</a></script><script id=atbybiyetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.listAthletes(${SzuletesiEv},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesByYear/athletesByYear.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><form class=filter><div class=row></div></form><script id=atbyyetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script id=atbyyetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.goToCoach(${EdzoId})\">${EdzoNeve}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/athletesNotPresentOnMonthlyAttendance/athletesNotPresentOnMonthlyAttendance.html','<ht-widget-header title={{title}} text-id=athletesNotPresentOnMonthlyAttendanceHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-dropdown-list name=sectionDropDown label=Section value=vm.sectionValue datasource=vm.sectionList databound=vm.sectionDataBound select=vm.sectionSelect></cts-dropdown-list><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker></div></form><script type=text/x-template id=anpomaathlete><a data-ng-click=\"vm.goToAthlete(${IdSportolo})\">${MezoSportoloNev}</a></script><script type=text/x-template id=anpomacoach><a data-ng-click=\"vm.goToCoach(${IdEdzo})\">${MezoEdzoNev}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div><label translate>hintAthletesNotPresentOnMonthlyAttendance</label></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/joinedAthletesByCoach/joinedAthletesByCoach.html','<ht-widget-header title={{title}} text-id=joinedAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=joatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=joatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=joatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=joatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=joatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openCoachesJoinedAthletes(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/joinedAthletesBySection/joinedAthletesBySection.html','<ht-widget-header title={{title}} text-id=joinedAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.DateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.DateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=joatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${SzamErkezett}</a></script><script id=joatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamBelepettFiuk}</a></script><script id=joatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamBelepettLanyok}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/leavingAthletesByCoach/leavingAthletesByCoach.html','<ht-widget-header title={{title}} text-id=leavingAthletesByCoachHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateFromChanged value=vm.DateFrom></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateToChanged value=vm.DateTo></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=leatbycotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=leatbycotemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId})\">${SzakosztalyNeve}</a></script><script id=leatbycotemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},0)\">${Szam}</a></script><script id=leatbycotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},1)\">${SzamFiu}</a></script><script id=leatbycotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openCoachesLeavingAthletes(${EdzoId},${SzakosztalyId},2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/leavingAthletesBySection/leavingAthletesBySection.html','<ht-widget-header title={{title}} text-id=leavingAthletesBySectionHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><cts-date-picker name=datepicker1 label=DateFrom change=vm.dateChange value=vm.queryDate></cts-date-picker><cts-date-picker name=datepicker2 label=DateTo change=vm.dateChange2 value=vm.queryDate2></cts-date-picker><cts-check-box name=active label=ShowAll enabled=vm.checkboxEnabled change=vm.checkboxChanged checked=vm.checked></cts-check-box></div></form><script id=leatbysetemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 0)\">${SzamKilepett}</a></script><script id=leatbysetemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 1)\">${SzamFiu}</a></script><script id=leatbysetemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openSection(${SzakosztalyId}, 2)\">${SzamLany}</a></script><div class=form-group><div class=col-sm-12><div id=Grid class=slim-grid></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/reports/statisticalReports/listAthletes/listAthletes.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><script type=text/x-template id=laopenath><a data-ng-click=\"vm.openAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=laopencoach><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script type=text/x-template id=laopenfee><a data-ng-click=\"vm.openSportServiceFee(${SportolokID})\">${Egyenleg}</a></script><div class=form-group><div class=col-sm-12><div id=Grid2></div></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/addSchool/addSchool.html','<div class=widget-head><h2>{{title}}</h2></div><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><br><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.newSchool.IskolaNeve validation-rules=\"{required: true, maxlength:100}\"></cts-text-box><cts-text-box name=SchoolZipCode label=SchoolZipCode data-ng-model=vm.newSchool.IskolaIrSzam validation-rules=\"{required: false, maxlength:5}\"></cts-text-box><cts-text-box name=SchoolCity label=SchoolCity data-ng-model=vm.newSchool.IskolaVaros validation-rules=\"{required: true, maxlength:50}\"></cts-text-box><cts-text-box name=SchoolStreet label=SchoolStreet data-ng-model=vm.newSchool.IskolaUtca validation-rules=\"{required: false, maxlength:60}\"></cts-text-box><cts-text-box name=SchoolHouseNumber label=SchoolHouseNumber data-ng-model=vm.newSchool.IskolaHazszam validation-rules=\"{required: false, maxlength:20}\"></cts-text-box><cts-text-box name=SchoolDirectorName label=SchoolDirectorName data-ng-model=vm.newSchool.IskolaIgazgatoNeve validation-rules=\"{required: false, maxlength:60}\"></cts-text-box></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.saveSchool translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/editSchool/editSchool.html','<div class=widget-head><h2>{{title}}</h2></div><form novalidate name=form enctype=multipart/form-data><div class=row><div class=col-lg-8><br><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.params.IskolaNeve validation-rules=\"{required: true, maxlength:100}\"></cts-text-box><cts-text-box name=SchoolZipCode label=SchoolZipCode data-ng-model=vm.params.IskolaIrSzam validation-rules=\"{required: false, maxlength:5}\"></cts-text-box><cts-text-box name=SchoolCity label=SchoolCity data-ng-model=vm.params.IskolaVaros validation-rules=\"{required: true, maxlength:50}\"></cts-text-box><cts-text-box name=SchoolStreet label=SchoolStreet data-ng-model=vm.params.IskolaUtca validation-rules=\"{required: false, maxlength:60}\"></cts-text-box><cts-text-box name=SchoolHouseNumber label=SchoolHouseNumber data-ng-model=vm.params.IskolaHazszam validation-rules=\"{required: false, maxlength:20}\"></cts-text-box><cts-text-box name=SchoolDirectorName label=SchoolDirectorName data-ng-model=vm.params.IskolaIgazgatoNeve validation-rules=\"{required: false, maxlength:60}\"></cts-text-box></div><div class=col-lg-12 style=\"text-align: center; margin-top: 1.5em;\"><button class=cts-button ej-button e-click=vm.ModifySchool translate>Save</button> <button class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/schoolManagement/schoolList/schoolList.html','<ht-widget-header title={{title}} text-id=schoolListHelp right-text=rightText></ht-widget-header><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\"/> </div></script><div class=widget-content><button class=cts-button ej-button e-click=vm.goToAddSchool id=addSchool translate>addSchool</button> <button class=cts-button ej-button e-click=vm.goToEditSchool id=editSchool e-enabled=vm.editSchoolButtonEnabled translate>editSchool</button> <button class=cts-button ej-button e-click=vm.DeleteSchool id=deleteSchool e-enabled=vm.editSchoolButtonEnabled translate>deleteSchool</button><div class=row><br><div id=Grid name=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/userManagement/modifyUser/modifyUser.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\" id=popupHolder><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>UserInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 3, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=userGroup label=UserGroup datasource=vm.userGroupList value=vm.formData.userGroupId change=vm.changeUserGroup validation-rules=\"{required: true, minlength: 1, maxlength: 50}\"></cts-dropdown-list><cts-text-box name=loginName label=LoginName data-ng-model=vm.formData.loginName validation-rules=\"{required: true, minlength: 2, maxlength: 30}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-date-picker name=passwordExpiryDate label=PasswordExpiryDate value=vm.formData.passwordExpiryDate></cts-date-picker><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, minlength: 1, maxlength: 1000}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: true, minlength: 9, maxlength: 11}\" data-ng-if=\"!vm.LIMITEDUSER && vm.socialSecurityNumberRequiredValue\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: false}\" data-ng-if=\"!vm.LIMITEDUSER && !vm.socialSecurityNumberRequiredValue\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box-taj-szam><cts-color-picker name=colorPick label=CalendarColor value=vm.colorValue change=vm.colorChanged validation-rules=\"{required: true}\"></cts-color-picker><cts-check-box name=monthlyAttendanceRegister label=monthlyAttendanceRegister change=vm.monthlyAttendanceRegisterChanged></cts-check-box><cts-check-box name=autoSaveCheckBox label=AutoSave checked=vm.formData.autoSave change=vm.autoSaveCheckboxChanged></cts-check-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex validation-rules=\"{required: true}\"></cts-dropdown-list><cts-check-box name=activeCheckBox label=Active checked=vm.activeValue change=vm.activeChange></cts-check-box></fieldset><h3><a href=# translate>ProfessionalInformation</a></h3><fieldset class=col-lg-8><cts-list-box name=sectionListBox label=SectionLeaderHere css-class=scroller-fix datasource=vm.sectionLeaderList show-checkbox=true check-change=vm.sectionLeaderChecked ng-show=vm.SZAKOSZTVEZADATLAP></cts-list-box><div ng-show=vm.EDZOADATLAP class=\"form-group cts-form-group\"><label for=ageGroupTreeView translate>CoachHere</label><div class=input-group><div id=ageGroupTreeView name=ageGroupTreeView ej-treeview e-fields-datasource=vm.ageGroupList e-showcheckbox=true placeholder={{CoachHere|translate}} e-enabled=true e-height=200></div></div></div><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: true, maxlength: 500}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: true, maxlength: 500}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-box name=identityCardNumber label=IdentityCardNumber data-ng-model=vm.formData.identityCardNumber></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset><h3><a href=# translate>IssuedAssets</a></h3><fieldset class=col-lg-10><div class=col-sm-12 style=\"margin-top: 1.5em;\"><div class=row><div id=UsersAssetGrid></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><div style=\"width:50%; float:left;text-align:right\"><cts-text-box name=TakeBackComment ng-if=vm.takebackEnabled label=TakeBackAssetComment data-ng-model=vm.TakeBackComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box></div><div style=\"width:50%; float:right;\"><button e-enabled=vm.takebackEnabled type=button class=cts-button ej-button e-click=vm.TakeBack translate>TakeBack</button></div></div></div></fieldset></div></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button> <button type=button class=cts-button ej-button e-click=vm.goToFiles translate>Contracts</button> <button type=button class=cts-button e-enabled=vm.formData.activeUser ej-button e-click=vm.IssueAsset translate>IssueAsset</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa felhaszn\\xE1l\\xF3nak\" e-showoninit=false e-enablemodal=true e-enableresize=false e-height=690px e-minheight=690px e-maxheight=690px e-allowkeyboardnavigation=false e-width=900px e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false e-target=#popupHolder><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><cts-text-box name=IssueComment ng-if=\"vm.assets.length>0\" label=IssueAssetComment data-ng-model=vm.IssueComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn e-enabled=vm.chooseEnabled translate>Issue</button> <button class=cts-button ej-button e-click=vm.IssueNewAsset id=IssueNewBtn translate>IssueNew</button></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><div id=AssetGrid name=AssetGrid></div></div></div></div>');\n$templateCache.put('app/settings/userManagement/newUser/newUser.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>UserInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 5, maxlength: 80}\"></cts-text-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex validation-rules=\"{required: true}\"></cts-dropdown-list><cts-dropdown-list name=userGroup label=UserGroup datasource=vm.userGroupList value=vm.formData.userGroupId change=vm.changeUserGroup validation-rules=\"{required: true}\"></cts-dropdown-list><cts-text-box name=loginName label=LoginName data-ng-model=vm.formData.loginName validation-rules=\"{required: true, minlength: 2, maxlength: 30}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 30}\"></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: true, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: true, minlength: 5, maxlength: 10}\"></cts-text-box><cts-date-picker name=passwordExpiryDate label=PasswordExpiryDate value=vm.formData.passwordExpiryDate></cts-date-picker><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.displayPhoto}} id=profilePic><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><cts-text-box name=address label=Address data-ng-model=vm.formData.address validation-rules=\"{required: true, maxlength: 50}\"></cts-text-box><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, maxlength: 100}\"></cts-text-area><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber data-ng-if=vm.socialSecurityNumberRequiredValue validation-rules=\"{required: true, minlength: 9, maxlength: 11}\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber data-ng-if=!vm.socialSecurityNumberRequiredValue validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-check-box name=monthlyAttendanceRegister label=monthlyAttendanceRegister change=vm.monthlyAttendanceRegisterChanged></cts-check-box><cts-check-box name=activeCheckBox label=Active checked=vm.activeValue change=vm.activeChange></cts-check-box></fieldset><h3><a href=# translate>ProfessionalInformation</a></h3><fieldset class=col-lg-8><cts-list-box name=sectionListBox label=SectionLeaderHere css-class=scroller-fix datasource=vm.sectionLeaderList show-checkbox=true check-change=vm.sectionLeaderChecked></cts-list-box><div class=\"form-group cts-form-group\"><label for=ageGroupTreeView translate>CoachHere</label><div class=input-group><div id=ageGroupTreeView name=ageGroupTreeView ej-treeview e-fields-datasource=vm.ageGroupList e-showcheckbox=true placeholder={{CoachHere|translate}} e-height=200></div></div></div><cts-text-area name=mainWorkPlace label=MainWorkPlace data-ng-model=vm.formData.mainWorkPlace validation-rules=\"{required: true, maxlength: 500}\"></cts-text-area><cts-text-area name=qualifications label=Qualifications data-ng-model=vm.formData.qualifications validation-rules=\"{required: true, maxlength: 500}\"></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-box name=identityCardNumber label=IdentityCardNumber data-ng-model=vm.formData.identityCardNumber></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset></div></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/settings/userManagement/userList/userList.html','<ht-widget-header title={{title}} text-id=userListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter><div class=row><div class=\"button-wrapper no-margin-top\"><button id=NewUser class=cts-button ej-button e-click=vm.goToNewUser data-ng-enabled=vm.UJFELH translate>NewUser</button> <button id=SelectedDetails class=cts-button ej-button e-click=vm.goToUser data-ng-enabled=vm.MODFELH translate>Modify</button></div></div></form><script id=uslitemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToUser2(${Id})\">${TeljesNev}</a></script><script id=uslitemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.goToGroup(${CsoportId})\">${CsoportNeve}</a></script><script id=pagerTemplate type=text/x-template><div style=\"width: 100px\"> <p style=\"float: left; margin:0; padding:0; line-height: 28px\">Items per page:</p> <input style=\"float: left\" type=\"text\" ej-numerictextbox id=\"txtPageNumber\" e-width=\"70px\" stype=\"border: none; cursor: text\" e-value=\"vm.pageSize\" /> </div></script><div class=row data-ng-if=\"vm.userList.length !== 0\"><div id=Grid class=slim-grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/settings/userManagement/userSettings/userSettings.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=\"widget-content form\"><form name=form novalidate enctype=multipart/form-data><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion><h3><a href=# translate>NotificationSettings</a></h3><fieldset class=col-lg-8><cts-check-box name=pushNotification label=PushNotification checked=vm.PushNotificationEnabled change=vm.NotificationChanged></cts-check-box><div ng-class=\"{\\'disabled\\': !vm.PushNotificationEnabled}\"><cts-check-box name=notificationsFromTrainings label=NotificationsFromTrainings checked=vm.formData.PushNotificationSetting.ErtesitesEdzesrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationTrainingPresents data-ng-if=vm.AthleteOrParent label=NotificationTrainingPresents checked=vm.formData.PushNotificationSetting.ErtesitesEdzesJelenletrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromAgegroupChanges data-ng-if=vm.AthleteOrParent label=NotificationsFromAgegroupChanges checked=vm.formData.PushNotificationSetting.ErtesitesEdzoKorosztalyValtasrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromEvents label=NotificationsFromEvents checked=vm.formData.PushNotificationSetting.ErtesitesEsemenyrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromTests data-ng-if=vm.AthleteOrParent label=NotificationsFromTests checked=vm.formData.PushNotificationSetting.ErtesitesFelmeroEredmenyrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromAbsences data-ng-if=vm.AthleteOrParent label=NotificationsFromAbsences checked=vm.formData.PushNotificationSetting.ErtesitesHianyzasrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromExpDocuments label=NotificationsFromExpDocuments checked=vm.formData.PushNotificationSetting.ErtesitesLejaroDokrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromFees data-ng-if=vm.AthleteOrParent label=NotificationsFromFees checked=vm.formData.ErtesitesTagdijrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromMessages label=NotificationsFromMessages checked=vm.formData.PushNotificationSetting.ErtesitesUzenetrol enabled=vm.PushNotificationEnabled></cts-check-box><cts-check-box name=notificationsFromResults data-ng-if=vm.AthleteOrParent label=NotificationsFromResults checked=vm.formData.PushNotificationSetting.ErtesitesEdzesrol enabled=vm.PushNotificationEnabled></cts-check-box></div></fieldset><h3><a href=# translate>SurfaceSettings</a></h3><fieldset class=col-lg-8><div><cts-check-box name=autoSaveInCheckBox label=AutoSaveInmonthlyAttendance checked=vm.formData.autoSave change=vm.autoSaveCheckboxChanged></cts-check-box></div><div><cts-dropdown-list name=GridRowNB label=gridRecordPerPage datasource=vm.recordPerPageList select=vm.recordPerPageSelect></cts-dropdown-list></div></fieldset><h3><a href=# translate>UserInformation</a></h3><fieldset id=generalFieldset name=generalFieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.formData.name validation-rules=\"{required: true, minlength: 3, maxlength: 80}\"></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: true, minlength: 7, maxlength: 50}\" data-ng-if=!vm.LIMITEDUSER></cts-text-box><cts-text-box type=email name=email label=EmailAddress data-ng-model=vm.formData.email validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-box><cts-text-box type=password name=password label=Password data-ng-model=vm.formData.password validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><cts-text-box type=password name=passwordAgain label=PassordAgain data-ng-model=vm.passwordAgain validation-rules=\"{required: false, minlength: 5, maxlength: 10}\"></cts-text-box><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><div style=\"position: relative\"><img ng-src={{vm.photoUrl}} id=profilePic> <button type=button class=cts-button data-ng-click=vm.openCropDialog() style=\"top: 10px;\" translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() data-ng-disabled=\"vm.photoUrl === vm.noImage\" style=\"top: 50px;\" translate>Delete</button></div></div></div></div><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: true, minlength: 1, maxlength: 1000}\" data-ng-if=!vm.LIMITEDUSER></cts-text-area><cts-text-area name=contact label=Contact data-ng-model=vm.formData.contact validation-rules=\"{required: false}\" data-ng-if=vm.LIMITEDUSER></cts-text-area></fieldset><h3><a href=# translate>PersonalInformation</a></h3><fieldset id=personalFieldset name=personalFieldset class=col-lg-8><cts-text-box name=country label=BirthPlace cts-placeholder=Country data-ng-model=vm.formData.country></cts-text-box><cts-text-box name=city cts-placeholder=City data-ng-model=vm.formData.city></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.birthDate></cts-date-picker><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box><cts-text-box name=mothersName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-numeric-text-box name=heightDropDown label=Height datasource=vm.heightList value=vm.formData.height change=vm.changeHeight></cts-numeric-text-box><cts-numeric-text-box name=weightDropDown label=Weight datasource=vm.weightList value=vm.formData.weight change=vm.changeWeight></cts-numeric-text-box><cts-text-area name=otherInformation label=OtherInformation data-ng-model=vm.formData.otherInformation></cts-text-area></fieldset></div></div><div class=col-sm-12 style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.saveUser translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></div></form></div><div class=widget-foot><div class=clearfix></div></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=button style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/search/athletes/memberList/memberList.html','<ht-widget-header title={{title}} text-id=memberListHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><label><span translate>SearchWithTheFollowingParameters</span></label><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=Name label=AthleteName data-ng-model=vm.query.nev change=vm.nameChange></cts-text-box><cts-check-box name=NameExactMatch label=exactMatch change=vm.NameExactMatch checked=vm.NameExactMatchChecked enabled=\"vm.query.nev.length>0\"></cts-check-box><cts-check-box name=NotMatching label=notMatching change=vm.NameNotMatching checked=vm.NameNotMatchingChecked enabled=\"vm.query.nev.length>0\"></cts-check-box></div><div class=row><cts-dropdown-list name=active label=activeAthlete datasource=vm.yesno value=vm.query.aktiv></cts-dropdown-list></div><div class=row><cts-dropdown-list name=sectionId label=Section datasource=vm.sectionList value=vm.query.szakosztalyId select=vm.sectionSelect></cts-dropdown-list><cts-check-box name=MemberOfSection label=memberOfSection change=vm.MemberOfSection checked=vm.MemberOfSectionChecked enabled=\"vm.query.szakosztalyId>0\"></cts-check-box><cts-check-box name=NotMemberOfSection label=notMemberOfSection change=vm.NotMemberOfSection checked=vm.NotMemberOfSectionChecked enabled=\"vm.query.szakosztalyId>0\"></cts-check-box></div><div class=row><cts-dropdown-list name=korosztalyId label=AgeGroup datasource=vm.ageGroupList value=vm.query.korosztalyId select=vm.ageGroupSelect></cts-dropdown-list><cts-check-box name=MemberOfAgeGroup label=memberOfAgegroup change=vm.MemberOfAgeGroup checked=vm.MemberOfAgeGroupChecked></cts-check-box><cts-check-box name=NotMemberOfAgeGroup label=notMemberOfAgegroup change=vm.NotMemberOfAgeGroup checked=vm.NotMemberOfAgeGroupChecked></cts-check-box></div><div class=row><cts-dropdown-list name=edzoId label=Coach datasource=vm.coachList value=vm.query.edzoId select=vm.coachSelect></cts-dropdown-list><cts-check-box name=BelongsToCoach label=belongsToCoach change=vm.BelongsToCoach checked=vm.BelongsToCoachChecked></cts-check-box><cts-check-box name=NotBelongsToCoach label=notBelongsToCoach change=vm.NotBelongsToCoach checked=vm.NotBelongsToCoachChecked></cts-check-box></div><div class=row><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.query.tol></cts-date-picker><cts-dropdown-list name=muvtol datasource=vm.muv_DATE value=vm.query.muvtol></cts-dropdown-list><cts-date-picker name=birthDateTo label=birthDateTo value=vm.query.ig data-ng-if=\"vm.query.muvtol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-dropdown-list name=neme label=gender datasource=vm.genderList value=vm.query.neme></cts-dropdown-list></div><div class=row><cts-text-box name=Nationality label=Nationality data-ng-model=vm.query.allamp></cts-text-box></div><div class=row><cts-date-picker name=versenySportKezdeteTol label=competitiveSportFrom value=vm.query.vspTol></cts-date-picker><cts-dropdown-list name=muvvspTol datasource=vm.muv_DATE value=vm.query.muvvspTol></cts-dropdown-list><cts-date-picker name=versenySportKezdeteTol label=competitiveSportTo value=vm.query.vspIg data-ng-if=\"vm.query.muvvspTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-text-box name=leanykoriNev label=MaidenName data-ng-model=vm.query.leanykoriNev></cts-text-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-text-box name=lakcimMegye label=County data-ng-model=vm.query.lakcimMegye></cts-text-box></div><div class=row><cts-text-box name=lakcimIrSzam label=ZipCode data-ng-model=vm.query.lakcimIrSzam></cts-text-box></div><div class=row><cts-text-box name=lakcimVaros label=City data-ng-model=vm.query.lakcimVaros></cts-text-box></div><div class=row><cts-text-box name=lakcimUtca label=Street data-ng-model=vm.query.lakcimUtca></cts-text-box></div><div class=row><cts-text-box name=lakcimHazszam label=housenumber data-ng-model=vm.query.lakcimHazszam></cts-text-box></div><div class=row><cts-text-box name=elerhetoseg label=Contact data-ng-model=vm.query.elerh></cts-text-box></div><div class=row><cts-text-box name=email label=Email data-ng-model=vm.query.email></cts-text-box></div><div class=row><cts-check-box name=NotMatchingContact label=contactNotMatching change=vm.ContactNotMatching checked=vm.ContactNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-text-box name=SchoolName label=SchoolName data-ng-model=vm.query.iskNev></cts-text-box></div><div class=row><cts-text-box name=SchoolZIP label=SchoolZipCode data-ng-model=vm.query.iskIrSzam></cts-text-box></div><div class=row><cts-text-box name=SchoolVaros label=SchoolCity data-ng-model=vm.query.iskVaros></cts-text-box></div><div class=row><cts-text-box name=SchoolUtca label=SchoolStreet data-ng-model=vm.query.iskUtca></cts-text-box></div><div class=row><cts-text-box name=SchoolHazszam label=SchoolHouseNumber data-ng-model=vm.query.iskHazszam></cts-text-box></div><div class=row><cts-text-box name=SchoolPrincipal label=SchoolNameOfPrincipal data-ng-model=vm.query.igNeve></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloNeve label=SchoolPETeacherName data-ng-model=vm.query.testnev></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloElerh label=SchoolPETeacherContact data-ng-model=vm.query.testnevElerh></cts-text-box></div><div class=row><cts-text-box name=SchoolTestneveloEmail label=GymTeacherEmail data-ng-model=vm.query.testnevEmail></cts-text-box></div><div class=row><cts-text-box name=SchoolEvfolyam label=SchoolYear data-ng-model=vm.query.evfolyam></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztaly label=SchoolClass data-ng-model=vm.query.osztaly></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoNev label=SchoolHeadTeacherName data-ng-model=vm.query.osztFoNeve></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoTel label=ClassMasterTel data-ng-model=vm.query.OfTel></cts-text-box></div><div class=row><cts-text-box name=SchoolOsztFoEmail label=ClassMasterEmail data-ng-model=vm.query.OfEmail></cts-text-box></div><div class=row><cts-check-box name=NotMatchingSchool label=schoolNotMatching change=vm.SchoolNotMatching checked=vm.SchoolNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset><div class=row><cts-text-box name=MotherName label=motherName data-ng-model=vm.query.anyjaNeve></cts-text-box></div><div class=row><cts-text-box name=MotherContact label=motherContact data-ng-model=vm.query.anyjaElerh></cts-text-box></div><div class=row><cts-text-box name=MotherEmail label=MotherEmail data-ng-model=vm.query.AnyaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=MotherHeightFrom label=motherHeightFrom value=vm.query.anyjaMagTol></cts-numeric-text-box><cts-dropdown-list name=muvanyjaMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvanyjaMagTol></cts-dropdown-list><cts-numeric-text-box name=MotherHeightTo label=motherHeightTo value=vm.query.anyjaMagIg data-ng-if=\"vm.query.muvanyjaMagTol===\\'K\\xF6z\\xF6tt\\' && !vm.ParentNotMatchingChecked\"></cts-numeric-text-box></div><div class=row><cts-text-box name=MotherSport label=motherAthletesPast data-ng-model=vm.query.anyjaSpMult></cts-text-box></div><div class=row><cts-text-box name=MotherMaidenName label=motherMaidenName data-ng-model=vm.query.anyjaLeanyNeve></cts-text-box></div><div class=row><cts-text-box name=MotherJob label=motherJob data-ng-model=vm.query.anyjaFoglalkozasa></cts-text-box><cts-text-box name=MothersWorkplace label=MothersWorkplace data-ng-model=vm.query.AnyaMunkahely></cts-text-box></div><div class=row><cts-text-box name=FatherName label=FatherName data-ng-model=vm.query.apaNeve></cts-text-box></div><div class=row><cts-text-box name=FatherContact label=FatherContact data-ng-model=vm.query.apaElerh></cts-text-box></div><div class=row><cts-text-box name=FatherEmail label=FatherEmail data-ng-model=vm.query.ApaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=FatherHeightFrom label=FatherHeightFrom value=vm.query.apaMagTol></cts-numeric-text-box><cts-dropdown-list name=muvapaMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvapaMagTol></cts-dropdown-list><cts-numeric-text-box name=FatherHeightTo label=FatherHeightTo value=vm.query.apaMagIg data-ng-if=\"vm.query.muvapaMagTol===\\'K\\xF6z\\xF6tt\\' && !vm.ParentNotMatchingChecked\"></cts-numeric-text-box></div><div class=row><cts-text-box name=FatherSport label=fatherAthletePast data-ng-model=vm.query.apaSpMult></cts-text-box></div><div class=row><cts-text-box name=FatherJob label=fatherJob data-ng-model=vm.query.apaFoglalkozasa></cts-text-box><cts-text-box name=FathersWorkplace label=FathersWorkplace data-ng-model=vm.query.AnyaMunkahely></cts-text-box></div><div class=row><cts-check-box name=NotMatchingParent label=parentNotMatching change=vm.ParentNotMatching checked=vm.ParentNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>BodyShape</a></h3><fieldset><div class=row><cts-numeric-text-box name=HeightFrom label=HeightFrom value=vm.query.testMagTol></cts-numeric-text-box><cts-dropdown-list name=muvtestMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvtestMagTol></cts-dropdown-list><cts-numeric-text-box name=HeightTo label=HeightTo value=vm.query.testMagIg data-ng-if=\"vm.query.muvtestMagTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=WeightFrom label=WeightFrom value=vm.query.testsulyTol></cts-numeric-text-box><cts-dropdown-list name=testsulyTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvtestsulyTol></cts-dropdown-list><cts-numeric-text-box name=WeightTo label=WeightTo value=vm.query.testSulyIg data-ng-if=\"vm.query.muvtestsulyTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=BMI label=BMIfrom value=vm.query.bmi></cts-numeric-text-box><cts-dropdown-list name=muvbmi label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvbmi></cts-dropdown-list><cts-numeric-text-box name=BMIig label=BMIto value=vm.query.bmiig data-ng-if=\"vm.query.muvbmi===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActHeightFrom label=actualHeightFrom value=vm.query.acttestMagTol></cts-numeric-text-box><cts-dropdown-list name=muvacttestMagTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvacttestMagTol></cts-dropdown-list><cts-numeric-text-box name=ActHeightTo label=actualHeightTo value=vm.query.acttestMagIg data-ng-if=\"vm.query.muvacttestMagTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActWeightFrom label=actualWeightFrom value=vm.query.acttestSulyTol></cts-numeric-text-box><cts-dropdown-list name=muvacttestSulyTol label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvacttestSulyTol></cts-dropdown-list><cts-numeric-text-box name=ActWeightTo label=actualWeightTo value=vm.query.acttestSulyIg data-ng-if=\"vm.query.muvacttestSulyTol===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ActBMI label=actualBMIfrom value=vm.query.actbmi></cts-numeric-text-box><cts-dropdown-list name=muvactbmi label=\"\" datasource=vm.muv_REL_KOZ value=vm.query.muvactbmi></cts-dropdown-list><cts-numeric-text-box name=ActBMIig label=actualBMIto value=vm.query.actbmiig data-ng-if=\"vm.query.muvactbmi===\\'K\\xF6z\\xF6tt\\'\"></cts-numeric-text-box></div><div class=row><cts-dropdown-list name=BetterHand label=BetterHand datasource=vm.leftrightboth value=vm.query.ugyKez></cts-dropdown-list><cts-dropdown-list name=muvugyKez datasource=vm.muv_EGYEZIK_NEMEGYZIK value=vm.query.muvugyKez></cts-dropdown-list></div><div class=row><cts-dropdown-list name=BetterFoot label=BetterFoot datasource=vm.leftrightboth value=vm.query.ugyLab></cts-dropdown-list><cts-dropdown-list name=muvugyLab datasource=vm.muv_EGYEZIK_NEMEGYZIK value=vm.query.muvugyLab></cts-dropdown-list></div><div class=row><cts-check-box name=NotMatchingBodyShape label=bodyshapeNotMatching change=vm.BodyShapeNotMatching checked=vm.BodyShapeNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>IdNumbers</a></h3><fieldset><div class=row><cts-text-box name=personalID label=PersonalID data-ng-model=vm.query.szemIgSzam></cts-text-box></div><div class=row><cts-text-box-taj-szam name=SocialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.query.tajSzam></cts-text-box-taj-szam></div><div class=row><cts-text-box name=TaxNumber label=TaxNumber data-ng-model=vm.query.adoSzam></cts-text-box></div><div class=row><cts-text-box name=PassportNumber label=PassportNumber data-ng-model=vm.query.utlevelSzam></cts-text-box></div><div class=row><cts-text-box name=SchoolRegSzam label=SchoolRegistrationNumber data-ng-model=vm.query.regszam></cts-text-box></div><div class=row><cts-check-box name=NotMatchingIdNumbers label=idNumbersNotMatching change=vm.IdNumbersNotMatching checked=vm.IdNumbersNotMatchingChecked></cts-check-box></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-text-box name=Other label=Others data-ng-model=vm.query.egyeb></cts-text-box></div><div class=row><cts-dropdown-list name=havidijas label=HaviDijas datasource=vm.yesno value=vm.query.havidijas></cts-dropdown-list></div><div class=row><cts-dropdown-list name=oktdijas label=oktataDijas datasource=vm.yesno value=vm.query.oktdijas></cts-dropdown-list></div><div class=row><cts-text-box name=ChildhoodSport label=ChildhoodSport data-ng-model=vm.query.gyereksport></cts-text-box></div><div class=row><cts-text-box name=VacationActivity label=VacationActivity data-ng-model=vm.query.szunidElfogl></cts-text-box></div><div class=row><cts-text-box name=ChosenSports label=ChosenSports data-ng-model=vm.query.valSportagak></cts-text-box></div><div class=row><cts-date-picker name=SchoolKezdeteTol label=registrationTimeFrom value=vm.query.dsiKezdTol></cts-date-picker><cts-dropdown-list name=muvdsiKezdTol datasource=vm.muv_REL_KOZ value=vm.query.muvdsiKezdTol></cts-dropdown-list><cts-date-picker name=SchoolKezdeteIg label=registrationTimeTo value=vm.query.dsiKezdIg data-ng-if=\"vm.query.muvdsiKezdTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-date-picker name=SchoolKilepesTol label=exitTimeFrom value=vm.query.kiDatTol></cts-date-picker><cts-dropdown-list name=muvkiDatTol datasource=vm.muv_REL_KOZ value=vm.query.muvkiDatTol></cts-dropdown-list><cts-date-picker name=SchoolKilepesIg label=exitTimeTo value=vm.query.kiDatIg data-ng-if=\"vm.query.muvkiDatTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div><div class=row><cts-text-box name=SchoolKilepesIndoka label=exitReason data-ng-model=vm.query.kilepIndoka></cts-text-box></div><div class=row><cts-text-box name=SchoolEddigiEdzoi label=FormerCoaches data-ng-model=vm.query.eddigiEdzoi></cts-text-box></div><div class=row><cts-text-box name=SchoolSportEgyesuletei label=fromerSportclubMemberships data-ng-model=vm.query.eddigiSpEgyes></cts-text-box></div><div class=row><cts-date-picker name=SchoolEdzesKezdTol label=trainingStartFrom value=vm.query.edzesKezdTol></cts-date-picker><cts-dropdown-list name=muvedzesKezdTol datasource=vm.muv_REL_KOZ value=vm.query.muvedzesKezdTol></cts-dropdown-list><cts-date-picker name=SchoolEdzesKezdIg label=trainingStartTo value=vm.query.edzesKezdIg data-ng-if=\"vm.query.muvedzesKezdTol===\\'K\\xF6z\\xF6tt\\'\"></cts-date-picker></div></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset><div class=row><cts-text-box name=SlippersSize label=SlipperSize data-ng-model=vm.query.papucsMerete></cts-text-box></div><div class=row><cts-text-box name=JoggingSize label=JoggingSize data-ng-model=vm.query.melegitoMerete></cts-text-box></div><div class=row><cts-text-box name=BathrobeSize label=BathrobeSize data-ng-model=vm.query.furdokopenyMerete></cts-text-box></div><div class=row><cts-text-box name=CoatSize label=CoatSize data-ng-model=vm.query.kabatMerete></cts-text-box></div><div class=row><cts-text-box name=ArmorPantsSize label=ArmorPantsSize data-ng-model=vm.query.pancelNadragMerete></cts-text-box></div><div class=row><cts-text-box name=ShirtSize label=ShirtSize data-ng-model=vm.query.poloMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.sortMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.cipoMerete></cts-text-box></div><div class=row><cts-text-box name=ShortsSize label=ShortsSize data-ng-model=vm.query.uszonadragMerete></cts-text-box></div></fieldset></div><br><label><span translate>ColumnsOfResultTable</span></label><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-check-box name=G1SzulHely label=BirthPlace checked=vm.query.kellSzulHely></cts-check-box><cts-check-box name=G1Szakosztaly label=Section checked=vm.query.kellszakosztalyId></cts-check-box><cts-check-box name=G1Korosztaly label=AgeGroup checked=vm.query.kellkorosztalyId></cts-check-box><cts-check-box name=G1Edzo label=Coach checked=vm.query.kelledzoId></cts-check-box><cts-check-box name=G1Neme label=Sex checked=vm.query.kellneme></cts-check-box><cts-check-box name=G1Nationality label=Nationality checked=vm.query.kellallamp></cts-check-box><cts-check-box name=\"G1Le\\xE1nykori N\\xE9v\" label=MaidenName checked=vm.query.kellLeanykNev></cts-check-box><cts-check-box name=G1Aktiv label=Active checked=vm.query.kellaktiv></cts-check-box><cts-check-box name=G1Megjegyz\\xE9s label=Comment checked=vm.query.kellmegjegyzes></cts-check-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-check-box name=G2KellLakcim label=Address checked=vm.query.kelllakcim></cts-check-box><cts-check-box name=G2KellElerhetoseg label=Contact checked=vm.query.kellelerh></cts-check-box><cts-check-box name=G2KellEmail label=Email checked=vm.query.kellEmail></cts-check-box></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-check-box name=G3__01 label=SchoolName checked=vm.query.kelliskNev></cts-check-box><cts-check-box name=G3__03 label=SchoolAddress checked=vm.query.kelliskCim></cts-check-box><cts-check-box name=G3__06 label=SchoolDirectorName checked=vm.query.kelligNeve></cts-check-box><cts-check-box name=G3__10 label=ClassMaster checked=vm.query.kellof></cts-check-box><cts-check-box name=G3__07 label=GymTeacher checked=vm.query.kelltestnev></cts-check-box><cts-check-box name=G3__08 label=GymTeacherContact checked=vm.query.kelltestnevElerh></cts-check-box><cts-check-box name=G3__09 label=CoursePerClass checked=vm.query.kellevfolyam></cts-check-box></div></fieldset><h3><a href=# translate>Parent\\'s details</a></h3><fieldset><div class=row><cts-check-box name=G4mother label=MothersDetails checked=vm.query.kellAnyjaAdatai></cts-check-box><cts-check-box name=G4father label=FathersDetails checked=vm.query.kellApjaAdatai></cts-check-box></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-check-box name=G5 label=PhysicalConditions checked=vm.query.kelltestiAdottsagok></cts-check-box><cts-check-box name=G6 label=IDNumbers checked=vm.query.kellAzonositok></cts-check-box><cts-check-box name=G7_1 label=Fees checked=vm.query.kellhavidijas></cts-check-box><cts-check-box name=G7_2 label=ChildhoodSport checked=vm.query.kellGyermSp></cts-check-box><cts-check-box name=G7_3 label=VacationActivity checked=vm.query.kellSzunidei></cts-check-box><cts-check-box name=G3__11 label=StartMemberDate checked=vm.query.kellDSIKezd></cts-check-box><cts-check-box name=G3__12 label=TimeAndCauseOfLeaving checked=vm.query.kellKilepesDatum></cts-check-box><cts-check-box name=G3__14 label=CoachDetails checked=vm.query.kellEddigiEdzo></cts-check-box><cts-check-box name=G3__15 label=SportAssociation checked=vm.query.kellEddigiSp></cts-check-box><cts-check-box name=G3__16 label=RegistrationNumber checked=vm.query.kellNyilvSzam></cts-check-box><cts-check-box name=G3__17 label=SportServiceFee checked=vm.query.kellTagdijas></cts-check-box><cts-check-box name=G3__18 label=TrainingStart checked=vm.query.kellEdzJaras></cts-check-box></div></fieldset><h3><a href=# translate>Clothes</a></h3><fieldset><div class=row><cts-check-box name=G8_1 label=SlippersDetails checked=vm.query.kellpapucs></cts-check-box><cts-check-box name=G8_2 label=JoggingDetails checked=vm.query.kellmelegito></cts-check-box><cts-check-box name=G8_3 label=BathRobeDetails checked=vm.query.kellfurdokopeny></cts-check-box><cts-check-box name=G8_4 label=CoatDetails checked=vm.query.kellkabat></cts-check-box><cts-check-box name=G8_5 label=ArmorPantsDetails checked=vm.query.kellpancelNadrag></cts-check-box><cts-check-box name=G8_6 label=ShirtDetails checked=vm.query.kellpolo></cts-check-box><cts-check-box name=G8_7 label=ShortsDetails checked=vm.query.kellsort></cts-check-box><cts-check-box name=G8_7 label=ShoeDetails checked=vm.query.kellcipo></cts-check-box><cts-check-box name=G8_7 label=SwimmingPantDetails checked=vm.query.kelluszonadrag></cts-check-box></div></fieldset></div></div></form><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.resetQueryDetails translate>ResetForm</button></div></div></form><script type=text/x-template id=searchmemberlistgotoathlete><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/search/athletes/simple/simple.html','<ht-widget-header title={{title}} text-id=simpleHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=name label=Name data-ng-model=vm.formData.name></cts-text-box><cts-dropdown-list name=sex label=Sex datasource=vm.sexList value=vm.formData.sex change=vm.changeSex clear=vm.cleaSex></cts-dropdown-list><cts-text-box name=citizenship label=Citizenship data-ng-model=vm.formData.citizenship></cts-text-box></div><div class=row><cts-dropdown-list name=sectionId label=Section value=vm.formData.sectionId databound=vm.sectionDataBound datasource=vm.sectionList select=vm.sectionSelect clear=vm.clearSection></cts-dropdown-list><cts-dropdown-list name=ageGroupId label=AgeGroup value=vm.formData.ageGroupId databound=vm.ageGroupDataBound datasource=vm.ageGroupList clear=vm.clearAgeGroup></cts-dropdown-list><cts-dropdown-list name=coachId label=Coach value=vm.formData.coachId databound=vm.coachDataBound datasource=vm.coachList clear=vm.clearCoach></cts-dropdown-list></div><div class=row><cts-text-box name=birthPlace label=BirthPlace data-ng-model=vm.formData.birthPlace></cts-text-box><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.formData.birthDateFrom></cts-date-picker><cts-date-picker name=birthDateTo label=BirthDateTo value=vm.formData.birthDateTo></cts-date-picker></div><div class=row><cts-date-picker name=competitiveSportStart label=CompetitiveSportStart value=vm.formData.competitiveSportStart></cts-date-picker><cts-date-picker name=competitiveSportEnd label=CompetitiveSportEnd value=vm.formData.competitiveSportEnd></cts-date-picker></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-dropdown-list name=county label=County value=vm.formData.county datasource=vm.countyList clear=vm.clearCounty></cts-dropdown-list><cts-text-box name=zipCode label=zipCode data-ng-model=vm.formData.zipCode></cts-text-box><cts-text-box name=city label=City data-ng-model=vm.formData.city></cts-text-box></div><div class=row><cts-text-box name=street label=Street data-ng-model=vm.formData.street></cts-text-box><cts-text-box name=streetNumber label=StreetNumber data-ng-model=vm.formData.StreeNumber></cts-text-box></div><div class=row><cts-text-box name=phoneNumber label=phoneNumber data-ng-model=vm.formData.contact></cts-text-box><cts-text-box-email name=email label=Email data-ng-model=vm.formData.email></cts-text-box-email></div></fieldset><h3><a href=# translate>School</a></h3><fieldset><div class=row><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.formData.schoolName></cts-text-box></div><div class=row><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.formData.schoolZipCode></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.formData.schoolCity></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.formData.schoolStreet></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.formData.schoolStreetNumber></cts-text-box></div><div class=row><cts-text-box name=directorName label=DirectorName data-ng-model=vm.formData.directorName></cts-text-box><cts-text-box name=classMaster label=ClassMaster data-ng-model=vm.formData.classMaster></cts-text-box><cts-text-box name=classMasterEmail label=ClassMasterEmail data-ng-model=vm.formData.OfEmail></cts-text-box><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.formData.OfTel></cts-text-box><cts-text-box name=gymTeacher label=GymTeacher data-ng-model=vm.formData.gymTeacher></cts-text-box><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.formData.gymTeacherContact></cts-text-box><cts-text-box name=gymTeacherEmail label=GymTeacherEmail data-ng-model=vm.formData.TestneveloEmail></cts-text-box></div><div class=row><cts-dropdown-list name=course label=Course value=vm.formData.course clear=vm.clearCourse datasource=vm.courseList></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.formData.schoolClass clear=vm.clearClass datasource=vm.classList></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset><div class=row><cts-text-box name=motherName label=MothersName data-ng-model=vm.formData.mothersName></cts-text-box><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.formData.motherContact></cts-text-box><cts-text-box name=motherEmail label=MotherEmail data-ng-model=vm.formData.AnyaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=motherHeightFrom label=MotherHeightFrom value=vm.formData.motherHeightFrom></cts-numeric-text-box><cts-numeric-text-box name=motherHeightTo label=MotherHeightTo value=vm.formData.motherHeightTo></cts-numeric-text-box><cts-text-box name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.formData.motherSportHistory></cts-text-box><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.formData.mothersJob></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.formData.AnyaMunkahely></cts-text-box></div><div class=row><cts-text-box name=fatherName label=FatherName data-ng-model=vm.formData.fatherName></cts-text-box><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.formData.fatherContact></cts-text-box><cts-text-box name=fatherEmail label=FatherEmail data-ng-model=vm.formData.ApaEmail></cts-text-box></div><div class=row><cts-numeric-text-box name=fatherHeightFrom label=FatherHeightFrom value=vm.formData.fatherHeightFrom></cts-numeric-text-box><cts-numeric-text-box name=fatherHeightTo label=FatherHeightTo value=vm.formData.fatherHeightTo></cts-numeric-text-box><cts-text-box name=MotherSportHistory label=FatherSportHistory data-ng-model=vm.formData.fatherSportHistory></cts-text-box><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.formData.fatherJob></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.formData.ApaMunkahely></cts-text-box></div></fieldset><h3><a href=# translate>BodyShape</a></h3><fieldset><div class=row><cts-numeric-text-box name=athleteHeightFrom label=HeightFrom value=vm.formData.heightFrom></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightTo label=HeightTo value=vm.formData.heightTo></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=athleteWeightFrom label=WeightFrom value=vm.formData.weightFrom></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightTo label=WeightTo value=vm.formData.weightTo></cts-numeric-text-box></div><div class=row><cts-dropdown-list name=betterHand label=BetterHand value=vm.formData.betterHand datasource=vm.betterHandList></cts-dropdown-list><cts-dropdown-list name=betterFoot label=BetterFoot value=vm.formData.betterFoot datasource=vm.betterFootList></cts-dropdown-list></div></fieldset><h3><a href=# translate>IdNumbers</a></h3><fieldset><div class=row><cts-text-box name=personalId label=PersonalId data-ng-model=vm.formData.identityNumber></cts-text-box><cts-text-box-taj-szam name=socialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.socialSecurityNumber></cts-text-box-taj-szam><cts-text-box-tax-id name=taxId label=taxId data-ng-model=vm.formData.taxNumber></cts-text-box-tax-id><cts-text-box-passport-number name=passportNumber label=PassportNumber data-ng-model=vm.formData.passportNumber></cts-text-box-passport-number></div></fieldset><h3><a href=# translate>Others</a></h3><fieldset><div class=row><cts-text-area name=Notes label=Notes data-ng-model=vm.formData.notes></cts-text-area><cts-check-box name=active label=Active checked=vm.formData.active></cts-check-box><cts-check-box name=inactive label=Inactive checked=vm.formData.inactive></cts-check-box><cts-check-box name=sportServiceFee label=SportServiceFee checked=vm.formData.sportServiceFee></cts-check-box><cts-check-box name=educationalFee label=EducationalFee checked=vm.formData.educationalFee></cts-check-box></div></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset><cts-text-box name=slippersSize label=SlipperSize data-ng-model=vm.formData.slipperSize></cts-text-box><cts-text-box name=joggingSuitSize label=JoggingSuitSize data-ng-model=vm.formData.joggingSuitSize></cts-text-box><cts-text-box name=bathrobeSize label=BathrobeSize data-ng-model=vm.formData.bathrobeSize></cts-text-box><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.formData.coatSize></cts-text-box><cts-text-box name=armorPantSize label=ArmorPantSize data-ng-model=vm.formData.armorPantSize></cts-text-box><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.formData.tShirtSize></cts-text-box><cts-text-box name=shortDressSize label=ShortDressSize data-ng-model=vm.formData.shortDressSize></cts-text-box><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.formData.shoeSize></cts-text-box><cts-text-box name=swimmingPantSize label=SwimmingPantSize data-ng-model=vm.formData.swimmingPantSize></cts-text-box></fieldset></div><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.reset translate>ResetForm</button></div></div></form><script type=text/x-template id=simplecolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${SportolokID})\">${Nev}</a></script><script type=text/x-template id=simplecolumnTemplate2><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNeve}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/search/user/searchuser/searchuser.html','<ht-widget-header title={{title}} text-id=searchUserHelp right-text=rightText></ht-widget-header><div class=widget-content><form class=filter name=form><div class=row><div ej-accordion e-enablemultipleopen=true id=accordion><h3><a href=# translate>General</a></h3><fieldset><div class=row><cts-text-box name=name label=FullName data-ng-model=vm.formData.nev></cts-text-box><cts-text-box name=username label=Username data-ng-model=vm.formData.loginNev></cts-text-box></div><div class=row><cts-dropdown-list name=usergroup label=\"User group\" datasource=vm.usergroups databound=vm.userGroupDatabound value=vm.formData.idCsoport></cts-dropdown-list><cts-dropdown-list name=gender label=Gender datasource=vm.genderList value=vm.formData.neme></cts-dropdown-list></div><div class=row><cts-text-box name=pobcountry label=\"Place of birth (Country)\" data-ng-model=vm.formData.szulHelyOrszag></cts-text-box><cts-text-box name=pobcity label=\"Place of birth (City)\" data-ng-model=vm.formData.szulHelyVaros></cts-text-box></div><div class=row><cts-date-picker name=birthDateFrom label=BirthDateFrom value=vm.formData.szulTol></cts-date-picker><cts-date-picker name=birthDateTo label=birthDateTo value=vm.formData.szulIg></cts-date-picker></div><div class=row><cts-dropdown-list name=active label=\"Active user\" datasource=vm.yesno value=vm.formData.aktiv></cts-dropdown-list><cts-text-box name=Nationality label=Nationality data-ng-model=vm.formData.allamp></cts-text-box></div><div class=row><cts-check-box name=isc label=\"Individual sport coach\" checked=vm.formData.egyeniSport></cts-check-box><cts-check-box name=tsc label=\"Team sport coach\" checked=vm.formData.csapatSport></cts-check-box></div></fieldset><h3><a href=# translate>Contact</a></h3><fieldset><div class=row><cts-text-box name=email label=Email data-ng-model=vm.formData.email></cts-text-box><cts-text-box name=address label=Address data-ng-model=vm.formData.lakcim></cts-text-box></div><div class=row><cts-text-box name=contact label=Contact data-ng-model=vm.formData.elerhetoseg></cts-text-box><cts-text-box name=mothersname label=\"Mother\\'s name\" data-ng-model=vm.formData.anyjaNeve></cts-text-box></div><div class=row><cts-text-box name=CoachQualification label=\"Coach qualification\" data-ng-model=vm.formData.edzKep></cts-text-box><cts-text-box name=MainWorkplace label=\"Main workplace\" data-ng-model=vm.formData.foallMh></cts-text-box></div></fieldset><h3><a href=# translate>ID numbers and bodyShape</a></h3><fieldset><div class=row><cts-text-box name=personalID label=PersonalID data-ng-model=vm.formData.szemSzam></cts-text-box></div><div class=row><cts-text-box-taj-szam name=SocialSecurityNumber label=SocialSecurityNumber data-ng-model=vm.formData.tajSzam></cts-text-box-taj-szam></div><div class=row><cts-text-box name=PassportNumber label=PassportNumber data-ng-model=vm.formData.utlevel></cts-text-box></div><div class=row><cts-text-box name=HeightFrom label=\"Height (From)\" data-ng-model=vm.formData.magTol></cts-text-box><cts-text-box name=HeightTo label=\"Height (To)\" data-ng-model=vm.formData.magIg></cts-text-box></div><div class=row><cts-text-box name=WeightFrom label=\"Weight (From)\" data-ng-model=vm.formData.testTol></cts-text-box><cts-text-box name=WeightTo label=\"Weight (To)\" data-ng-model=vm.formData.testIg></cts-text-box></div></fieldset></div><div class=button-wrapper><button type=submit id=search class=cts-button ej-button e-click=vm.search translate>Search</button> <button type=reset id=reset class=cts-button ej-button e-click=vm.reset translate>ResetForm</button></div></div></form><script type=text/x-template id=searchusergotouser><a data-ng-click=\"vm.goToUser(${Id})\">${Nev}</a></script><div class=col-sm-12><div id=Grid></div></div></div><div class=widget-foot><div class=clearfix></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/anthropometry/anthropometry.html','<form class=filter name=form novalidate><div class=row style=\"margin-bottom: 1.5em;\"><div class=button-wrapper><button type=button class=cts-button ej-button e-click=vm.newAnthropometryTest translate>NewAnthropometryTest</button> <button type=button class=cts-button ej-button e-click=vm.oldAnthropometryTest translate>OldAnthropometryTests</button></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-12><p><b translate>AthletesData:</b></p></div><div class=col-sm-6><cts-text-box name=athletesName label=AthletesName data-ng-model=vm.formData.SportoloNeve validation-rules=\"{required: true}\" style=\"width: 100%;\"></cts-text-box><cts-text-box name=athletesAddress label=AthletesAddress data-ng-model=vm.formData.SportoloLakcim style=\"width: 100%;\"></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.formData.SzuletesiIdo style=\"width: 100%;\"></cts-date-picker><cts-date-picker name=endOfPuberty label=EndOfPuberty value=vm.formData.PubertaskorVege style=\"width: 100%;\"></cts-date-picker></div><div class=col-sm-6><cts-text-area name=chosenSports label=ChosenSports data-ng-model=vm.formData.ValasztottSportagak style=\"width: 100%;\"></cts-text-area></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-12><p><b translate>testDetails:</b></p></div><div class=col-sm-6><cts-text-box name=testsName label=TestsName data-ng-model=vm.formData.Felmeres style=\"width: 100%\"></cts-text-box><cts-text-box name=group label=Group data-ng-model=vm.formData.Csoport style=\"width: 100%;\"></cts-text-box><cts-date-picker name=testsDate label=TestsDate value=vm.formData.MeresDatuma style=\"width: 100%;\" validation-rules=\"{required: true}\"></cts-date-picker></div><div class=col-sm-6><div class=\"form-group cts-form-group\" style=\"width: 100%;\"><label translate>Logo</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic width=32 height=32><div style=\"position: relative;\"><button type=button class=cts-button data-ng-click=vm.openCropDialog() translate>Modify</button> <button type=button class=\"cts-button red\" data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div></div><div class=col-sm-12><cts-text-area name=clubsNameAddress label=ClubsNameAddress data-ng-model=vm.formData.VizsgalatotKeroNeveCime style=\"width: 100%;\"></cts-text-area></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=col-sm-9><div class=row><p><b translate>habitDatas:</b></p></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TTM label=TTM value=vm.formData.TTM tab-index=1 validation-rules=\"{required: true, minlength: 40, maxlength: 250}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=VAS label=VAS value=vm.formData.VAS tab-index=5 validation-rules=\"{required: true, minlength: 15, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MKK label=MKK value=vm.formData.MKK tab-index=9 validation-rules=\"{required: true, minlength: 40, maxlength: 150}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=KZK label=KZK value=vm.formData.KZK tab-index=14 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TTS label=TTS value=vm.formData.TTS tab-index=2 validation-rules=\"{required: true, minlength: 15, maxlength: 150}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MKS label=MKS value=vm.formData.MKS tab-index=6 validation-rules=\"{required: true, minlength: 15, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=FFK label=FFK value=vm.formData.FFK tab-index=10 validation-rules=\"{required: true, minlength: 10, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=COK label=COK value=vm.formData.COK tab-index=15 validation-rules=\"{required: true, minlength: 20, maxlength: 80}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=HUS label=HUS value=vm.formData.HUS tab-index=3 validation-rules=\"{required: true, minlength: 3, maxlength: 15}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MMG label=MMG value=vm.formData.MMG tab-index=7 validation-rules=\"{required: true, minlength: 3, maxlength: 30}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=FK label=FK value=vm.formData.FK tab-index=11 validation-rules=\"{required: true, minlength: 10, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=ASK label=ASK value=vm.formData.ASK tab-index=16 validation-rules=\"{required: true, minlength: 15, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=TDS label=TDS value=vm.formData.TDS tab-index=4 validation-rules=\"{required: true, minlength: 5, maxlength: 20}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=CRS label=CRS value=vm.formData.CRS tab-index=8 validation-rules=\"{required: true, minlength: 19, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=AKK label=AKK value=vm.formData.AKK tab-index=12 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=BOK label=BOK value=vm.formData.BOK tab-index=17 validation-rules=\"{required: true, minlength: 10, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=\"col-sm-3 col-sm-offset-6\"><cts-numeric-text-box name=CUK label=CUK value=vm.formData.CUK tab-index=13 validation-rules=\"{required: true, minlength: 7, maxlength: 30}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=BR label=BR value=vm.formData.BR tab-index=18 validation-rules=\"{required: true, minlength: 1, maxlength: 40}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=TR label=TR value=vm.formData.TR tab-index=19 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=LPR label=LPR value=vm.formData.LR tab-index=20 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=CSR label=CSR value=vm.formData.CSR tab-index=21 validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div><div class=row><div class=col-sm-3><cts-numeric-text-box name=HR label=HR value=vm.formData.HR tab-index=22 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=COR label=COR value=vm.formData.COR tab-index=23 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div><div class=col-sm-3><cts-numeric-text-box name=MSR label=MSR value=vm.formData.MSR tab-index=24 validation-rules=\"{required: true, minlength: 1, maxlength: 60}\" focusout=vm.focusOut style=\"width: 100%;\" decimalplaces=2></cts-numeric-text-box></div></div></div><div class=col-sm-2><div class=row><p><b translate>H-C komp.:</b></p></div><div class=row><cts-numeric-text-box name=endomorfia label=Endomorph value=vm.formData.Endomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=mezomorfia label=Mesomorph value=vm.formData.Mezomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=ektomorfia label=Ectomorph value=vm.formData.Ektomorfia style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row style=\"margin-top: 109px;\"><p style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\"><b translate>Conradindexes:</b></p></div><div class=row><cts-numeric-text-box name=metrikus label=Metric value=vm.formData.MetrikusConradIndex style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=row><cts-numeric-text-box name=plasztikus label=Plastic value=vm.formData.PlasztikusConradIndex style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=row><p><b translate>Drinkwaterfunctions:</b></p></div><div class=\"row drinkWaterContainer\"><div class=drinkWaterItem><cts-numeric-text-box name=DFDC label=DC value=vm.formData.DFDC style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFTZSSzazalek label=TZSPercent value=vm.formData.DFTZSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFTTS label=TTS value=vm.formData.DFTTS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDelta label=Delta value=vm.formData.DFDelta style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZS label=BZS value=vm.formData.DFBZS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBCS label=BCS value=vm.formData.DFBCS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBI label=BI value=vm.formData.DFBI style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSR label=BZSR value=vm.formData.DFBZSR style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div><div class=\"row drinkWaterContainer\"><div class=drinkWaterItem><cts-numeric-text-box name=DFBF label=BF value=vm.formData.DFBF style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDCBF label=DC-BF value=vm.formData.DFDCBF style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFVTM label=VTM value=vm.formData.DFVTM style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBTTS label=BTTS value=vm.formData.DFBTTS style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFDELTASzazalek label=DELTAPercent value=vm.formData.DFDELTASzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSSzazalek label=BZSPercent value=vm.formData.DFBZSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBCSSzazalek label=BCSPercent value=vm.formData.DFBCSSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBISzazalek label=BIPercent value=vm.formData.DFBISzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div><div class=drinkWaterItem><cts-numeric-text-box name=DFBZSRSzazalek label=VBZSRPercent value=vm.formData.DFBZSRSzazalek style=\"width: 100%;\" decimalplaces=2 enabled=vm.ANTRKIERT></cts-numeric-text-box></div></div></div><div class=row style=\"margin-bottom: 3em;\"><div class=row><p><b translate>Rating:</b></p></div><cts-text-box name=testalkat label=Physique data-ng-model=vm.formData.Testalkat disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=sulyfelesleg label=Overweight data-ng-model=vm.formData.Sulyfelesleg disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=erosithetoseg label=Hardenability data-ng-model=vm.formData.Erosithetoseg disabled=!vm.ANTRKIERT></cts-text-box><cts-text-box name=varhatoTestmagassag label=HeightForAge data-ng-model=vm.formData.VarhatoTestmagassag disabled=!vm.ANTRKIERT></cts-text-box></div><div class=row><div class=row><p><b translate>NotionSuggession:</b></p></div><div class=col-sm-6><cts-text-area name=szakertoiVelemeny label=ExpertOpinion data-ng-model=vm.formData.SzakertoiVelemeny style=\"width: 100%;\" disabled=!vm.ANTRKIERT></cts-text-area></div><div class=col-sm-6><cts-text-area name=ajanlottSportagak label=RecommendedSports data-ng-model=vm.formData.AjanlottSportagak style=\"width: 100%;\" disabled=!vm.ANTRKIERT></cts-text-area></div></div></form><div class=\"col-sm-12 back\" style=\"text-align: center\"><button type=submit class=cts-button ej-button e-click=vm.saveForm tabindex=25 translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Back</button> <button class=cts-button id=print ej-button e-click=vm.print type=button data-ng-if=vm.REGIFELMERES translate>Print</button></div><div id=printDialoganthtest2><report report-name=TAntropometriaNyomtatasReport report-parameters=vm.reportParameters></report></div><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\">{{\\'ChooseImage\\'|translate}}</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds min-width=50 min-height=50></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage style=\"min-width: 100px;\" data-ng-click=vm.doneCropDialog() type=button>{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"margin-left: 5px; min-width: 100px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div><div id=oldAnthropometryTestsWindow ej-dialog e-title=vm.oldAnthropometryTestTitle e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-isresponsive=true e-close=vm.closeWindow e-content=#dialogContainer e-enableanimation=true e-width=800px e-showroundedcorner=false><div class=modal-body><div class=text-center><div id=GridPopup class=slim-grid></div></div></div><div class=text-center><button class=cts-button id=done ej-button e-click=vm.selectTest type=button>Rendben</button> <button class=\"cts-button red\" id=cancel ej-button e-click=vm.closeWindow type=button>M\\xE9gsem</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteFees/athleteFees.html','<div class=row><script type=text/x-template id=feearrearscolumnTemplate1><a data-ng-click=\"vm.goToAthlete(${VersenyzoId})\">${VersenyzoNeve}</a></script><script type=text/x-template id=feearrearscolumnTemplate2><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><div id=Grid class=slim-grid></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athleteLog/athleteLog.html','<form name=form class=filter><div style=\"overflow: hidden;\"><cts-date-picker name=datepickerfrom label=DateFrom change=vm.dateFromChanged value=vm.dateFrom></cts-date-picker><cts-date-picker name=datepickerto label=DateTo change=vm.dateToChanged value=vm.dateTo></cts-date-picker></div></form><div id=Grid class=slim-grid></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesAssets/athletesAssets.html','<div class=row id=kiadottoldal><h4 translate style=\"padding-left: 1em;\">AthletesAssets</h4><div id=popup><div id=issueDialog ej-dialog e-title=\"Eszk\\xF6z\\xF6k kiad\\xE1sa sportol\\xF3nak\" e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-width=80% e-closeonescape=true e-isresponsive=true e-enableanimation=true e-showroundedcorner=false><div class=col-xs-12 style=\"text-align: center; margin: 1.5em 0;\"><cts-text-box name=IssueComment label=IssueAssetComment data-ng-model=vm.IssueComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button class=cts-button ej-button e-click=vm.Issue id=IssueBtn translate>Issue</button> <button class=cts-button ej-button e-click=vm.IssueNewAsset id=IssueNewBtn translate>IssueNew</button></div><div class=col-xs-12><div id=AssetGrid class=slim-grid></div></div></div></div><div class=col-sm-12 style=\"margin-top: 1.5em;\"><div id=AthletesAssetGrid class=slim-grid></div><div class=row style=\"margin-top: 1.5em;\"><div class=col-xs-12><cts-text-box name=TakeBackComment label=TakeBackAssetComment data-ng-model=vm.TakeBackComment validation-rules=\"{required: false, minlength: 0, maxlength: 200}\"></cts-text-box><button type=button class=cts-button ej-button e-click=vm.TakeBack translate>TakeBack</button> <button type=button class=cts-button ej-button e-click=vm.IssueAsset translate>IssueAsset</button></div></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesBodyStat/athletesBodyStat.html','<div id=Tooltip1 style=\"display: none;\"><div id=icon><div id=tticon></div></div><div id=value><div><label id=date> #point.x#</label><br><label id=tt1> #point.y#</label></div></div></div><div style=height:800px ej-chart id=Chart name=Chart data-ng-if=\"vm.data.length > 0\" e-title-text=vm.chartText e-commonseriesoptions-marker-shape=circle e-commonseriesoptions-marker-size-height=5 e-commonseriesoptions-marker-size-width=5 e-commonseriesoptions-marker-visible=true e-commonseriesoptions-tooltip-visible=true e-commonseriesoptions-tooltip-template=Tooltip1 e-primaryxaxis-labelrotation=315><e-series><e-series e-name=vm.cm e-datasource=vm.data e-xname=datum e-yname=cm type=line fill=#00B711></e-series><e-series e-name=vm.kg e-datasource=vm.data e-xname=datum e-yname=kg type=line fill=#E63311></e-series><e-series e-name=vm.bmi e-datasource=vm.data e-xname=datum e-yname=bmi type=line fill=#0080FF></e-series></e-series></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/athletesSportSpecificTestList/athletesSportSpecificTestList.html','<form class=filter name=form><div class=row><div style=\"overflow: hidden;\"><cts-date-picker name=datefrom label=DateFrom change=vm.dateFromChange value=vm.dateFrom validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=dateto label=DateTo change=vm.dateToChange value=vm.dateTo validation-rules=\"{required: true}\"></cts-date-picker></div></div><script type=text/x-template id=sstlCoach><a data-ng-click=\"vm.goToUser(${EdzoId})\">${EdzoNev}</a></script><script type=text/x-template id=sstlOpen><a data-ng-click=\"vm.goToTest(${SzakosztalyId},${KorcsoportId},${EdzoId},${FelmeroElemFejId},${Id_FF})\">{{\\'Megnyit\\xE1s\\'|translate}}</a></script><div class=row><div id=Grid class=slim-grid></div></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/competitionResultsChart/competitionResultsChart.html','<form class=filter name=form style=\"overflow: hidden;\"><div class=row><cts-dropdown-list name=section label=Section datasource=vm.sectionList databound=vm.sectionDataBound change=vm.sectionSelect value=vm.sectionId></cts-dropdown-list><cts-dropdown-list name=ageGroup label=AgeGroup datasource=vm.ageGroupList databound=vm.ageGroupDataBound change=vm.ageGroupSelect value=vm.ageGroupId></cts-dropdown-list><cts-dropdown-list name=discipline label=Discipline datasource=vm.disciplineList databound=vm.disciplineDataBound change=vm.disciplineSelect value=vm.discipline></cts-dropdown-list></div><div class=row><cts-date-picker name=selectdateFrom label=DateFrom value=vm.selectdateFrom change=vm.selectdateFromChange></cts-date-picker><cts-date-picker name=selectdateTo label=DateTo value=vm.selectdateTo change=vm.selectdateToChange></cts-date-picker></div><div class=button-wrapper><button class=cts-button ej-button e-click=vm.filter translate>Filter</button></div></form><div class=row><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart1 name=Chart1></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart2 name=Chart2></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart3 name=Chart3></div></div><div class=col-md-6><div style=\"height:400px; clear: both;\" id=Chart4 name=Chart4></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/dataSheet/dataSheet.html','<form name=form novalidate enctype=multipart/form-data prevent-enter-submit><div class=row><div class=col-lg-12><div ej-accordion e-enablemultipleopen=true e-selecteditems=vm.selectedItems id=accordion name=accordion><h3><a href=# translate>AthleteDatasheet</a></h3><fieldset class=col-lg-8><cts-text-box name=name label=Name data-ng-model=vm.athleteData.Nev validation-rules=\"{required: true, minlength: 5, maxlength: 80}\" disabled=!vm.allowEdit></cts-text-box><cts-dropdown-list name=gender label=Sex value=vm.sexNum datasource=vm.sexList select=vm.sexSelect databound=vm.sexDatabound validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><div class=\"form-group cts-form-group\"><label translate>profilePic</label><div><div class=profileImg><img ng-src={{vm.photoUrl}} id=profilePic><div style=\"position: relative;\"><button ng-show=\"vm.displayButtons && vm.allowEdit\" class=cts-button type=button data-ng-click=vm.openCropDialog() translate>Modify</button> <button ng-show=\"vm.displayButtons && vm.allowEdit\" class=\"cts-button red\" type=button data-ng-click=vm.deleteImg() style=\"top: -45px;\" data-ng-disabled=\"vm.photoUrl === vm.noImage\" translate>Delete</button></div></div></div></div><div class=\"form-group cts-form-group\"><label for=sectionValue>{{\"Section\"|translate}}</label> <label id=sectionValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.SzakosztalyNev}}</label></div><div class=\"form-group cts-form-group\"><label for=ageGroupValue>{{\"AgeGroup\"|translate}}</label> <label id=ageGroupValue style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.KorcsoportNeve}}</label></div><div ng-if=vm.MODKOROKEZ ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeAgeGroup ej-button e-click=vm.changeAgeGroup ng-show=vm.allowEdit translate>ChangeAgeGroup</button></div></div><div class=\"form-group cts-form-group\"><label for=coachName>{{\"CoachName\"|translate}}</label> <label id=coachName style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.JelenlegiEdzoNev}}</label></div><div class=\"cts-form-group form-group\" ng-if=\"vm.UJEDZVALT && vm.allowEdit\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeCoach ej-button e-click=vm.selectCoachBtn translate>ChangeCoach</button></div></div><div ng-if=vm.isSecondCoach class=\"form-group cts-form-group\"><label for=secondSection>{{\"SecondSection\"|translate}}</label> <label id=secondSection style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyNev}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondSectionDropDown label=SecondSection value=athleteData.MasodlagosSzakosztaly datasource=vm.secondSectionList select=vm.secondSectionSelect clear=vm.clearSecondSection validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=vm.isSecondCoach class=\"form-group cts-form-group\"><label for=secondAgeGroup>{{\"SecondAgeGroup\"|translate}}</label> <label id=secondAgeGroup style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosKorcsoportNev}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondAgeGroupDropDown label=SecondAgeGroup value=vm.athleteData.MasodlagosKorcsoport datasource=vm.secondAgeGroupList select=vm.secondAgeGroupSelect clear=vm.clearSecondAgeGroup validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=\"vm.isSecondCoach && vm.athleteData.MasodlagosbolKileptetett == false\" ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeSecondAgeGroup ej-button e-click=vm.changeSecondAgeGroup e-enabled=vm.isSecondCoach translate>ChangeSecondAgeGroup</button></div></div><div ng-if=\"vm.isSecondCoach && vm.allowEdit\" class=\"form-group cts-form-group\"><label for=secondCoachName>{{\"SecondCoachName\"|translate}}</label> <label id=secondCoachName style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosSzakosztalyEdzoNev}}</label></div><div ng-if=vm.athleteData.MasodlagosbolKileptetett id=dateSpan class=\"form-group cts-form-group\"><label for=secondExitDate>Kil\\xE9ptet\\xE9s d\\xE1tuma</label> <label id=secondExitDate style=\"text-align: left; padding-left: 12px\">{{vm.athleteData.MasodlagosbolKileptetesDatuma}}</label></div><cts-dropdown-list data-ng-if=\"!vm.SPORTOLO && !vm.isSecondCoach\" name=secondCoachNameDropDown label=SecondCoachName value=vm.athleteData.MasodlagosSzakosztalyEdzoId datasource=vm.secondCoachList clear=vm.clearSecondCoach validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><div ng-if=\"vm.isSecondCoachChange && vm.allowEdit && vm.athleteData.MasodlagosbolKileptetett == false\" ng-show=vm.displayButtons class=\"cts-form-group form-group\"><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeSecondCoach ej-button e-click=vm.selectSecondCoachBtn e-enabled=vm.isSecondCoach translate>ChangeSecondCoach</button> <button class=cts-button type=button id=changeSecondCoach ej-button e-click=vm.exitingSecondSectionBtn e-enabled=vm.isSecondCoach translate>ExitingSecondSection</button></div></div><cts-text-box name=bpcountry label=BirthPlaceCountry cts-placeholder=BirthPlaceCountry data-ng-model=vm.athleteData.SzuletesiHelyOrszag validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=bpcity label=BirthPlaceCity cts-placeholder=BirthPlaceCity data-ng-model=vm.athleteData.SzuletesiHelyVaros validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=birthDate label=BirthDate value=vm.athleteData.SzuletesiIdo validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker><cts-text-box name=motherBirthName data-ng-if=!vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: true, minlength: 5, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=motherBirthName data-ng-if=vm.athleteRequiredMinimumDatas label=MotherBirthName data-ng-model=vm.athleteData.AnyjaLeanykoriNeve validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=citizenship data-ng-if=!vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=citizenship data-ng-if=vm.athleteRequiredMinimumDatas label=Citizenship data-ng-model=vm.athleteData.Allampolgarsag validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag datasource=vm.heightList select=vm.changeHeight validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=athleteHeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Height value=vm.athleteData.Testmagassag datasource=vm.heightList select=vm.changeHeight validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=currentHeight label=CurrentHeight enabled=false value=vm.athleteData.AktTestmagassag></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly datasource=vm.weightList select=vm.changeWeight validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=athleteWeightDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=Weight value=vm.athleteData.Testsuly datasource=vm.weightList select=vm.changeWeight validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-numeric-text-box name=currentWeight label=CurrentWeight enabled=false value=vm.athleteData.AktTestsuly></cts-numeric-text-box><cts-dropdown-list name=betterHandDropDown data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezT datasource=vm.betterHandList select=vm.betterHandSelect change=vm.betterHandSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterHandDropDown data-ng-if=vm.athleteRequiredMinimumDatas label=BetterHand value=vm.athleteData.UgyesebbKezT datasource=vm.betterHandList select=vm.betterHandSelect change=vm.betterHandSelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=!vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabT datasource=vm.betterFootList select=vm.betterFootSelect change=vm.betterFootSelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=betterFoot data-ng-if=vm.athleteRequiredMinimumDatas label=BetterFoot value=vm.athleteData.UgyesebbLabT datasource=vm.betterFootList select=vm.betterFootSelect change=vm.betterFootSelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-date-picker name=startSportDate data-ng-if=!vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-date-picker><cts-date-picker name=startSportDate data-ng-if=vm.athleteRequiredMinimumDatas value=vm.athleteData.VersSportKezd label=StartSportDate validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-date-picker name=startMemberDate value=vm.athleteData.DSITagsagKezdete label=StartMemberDate validation-rules=\"{required: true}\" enabled=\"vm.allowEdit && !vm.SPORTOLO\"></cts-date-picker><cts-check-box name=active label=Active enabled=false checked=vm.athleteData.Aktiv></cts-check-box><cts-text-box-taj-szam name=socialSecurityNumber data-ng-if=\"vm.socialSecurityNumberRequiredValue && vm.allowEdit\" label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: true}\"></cts-text-box-taj-szam><cts-text-box-taj-szam name=socialSecurityNumber data-ng-if=\"!vm.socialSecurityNumberRequiredValue && vm.allowEdit\" label=SocialSecurityNumber data-ng-model=vm.athleteData.TAJSzam validation-rules=\"{required: false}\"></cts-text-box-taj-szam><cts-text-box data-ng-if=\"vm.athleteRegistrationNumberRequiredValue && vm.allowEdit\" name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: true}\"></cts-text-box><cts-date-picker name=medicalCertificateExpirationDate label=medicalCertificateExpirationDate value=vm.athleteData.SportorvosIgazolasLejarat enabled=\"vm.allowEdit && !vm.SPORTOLO\"></cts-date-picker><cts-text-area ng-show=\"vm.allowEdit && !vm.SPORTOLO\" data-ng-if=!vm.athleteRequiredMinimumDatas name=coachDetails label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: true, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-area ng-show=\"vm.allowEdit && !vm.SPORTOLO\" data-ng-if=vm.athleteRequiredMinimumDatas name=coachDetails label=CoachDetails data-ng-model=vm.athleteData.EddigiEdzoi css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><div class=\"form-group cts-form-group\"><label for=feeOfEducation>{{\"FeeOfEducation\"|translate}}</label> <label id=feeOfEducation style=\"text-align: left; padding-left: 12px\">{{vm.feeOfEducationValue}}</label></div><div class=\"cts-form-group form-group\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=changeFee ej-button e-click=vm.changeFeeOfEducationBtn ng-show=\"vm.allowEdit && !vm.SPORTOLO\" translate>ChangeFeeBtn</button></div></div><cts-text-box data-ng-if=\"!vm.athleteRegistrationNumberRequiredValue && vm.allowEdit\" name=athleteRegistrationnumber label=AthleteRegistrationNumber data-ng-model=vm.athleteData.RegisztraciosSzam validation-rules=\"{required: false}\"></cts-text-box><div class=\"cts-form-group form-group\" ng-show=vm.displayButtons><div class=\"col-md-8 col-md-offset-4\"><button class=cts-button type=button id=regnumgen ej-button e-click=vm.generateRegNum ng-show=\"vm.allowEdit && !vm.SPORTOLO\" translate>GenerateRegNum</button></div></div><cts-text-box name=JatekEngedelySzama label=JatekEngedelySzama data-ng-model=vm.athleteData.JatekEngedelySzama disabled=!vm.allowEdit></cts-text-box></fieldset><h3><a href=# translate>Contact</a></h3><fieldset class=\"panel col-lg-8\"><cts-dropdown-list name=county data-ng-if=!vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: true}\" enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=county data-ng-if=vm.athleteRequiredMinimumDatas label=County cts-placeholder=County value=vm.athleteData.LakcimMegye datasource=vm.countyList databound=vm.countyDataBound select=vm.countySelect validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-dropdown-list><cts-text-box name=zipCode data-ng-if=!vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: true, minlength: 2, maxlength: 10}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=zipCode data-ng-if=vm.athleteRequiredMinimumDatas label=zipCode cts-placeholder=zipCode data-ng-model=vm.athleteData.LakcimIrSzam validation-rules=\"{required: false, maxlength: 10}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=city data-ng-if=!vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: true, minlength: 2, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=city data-ng-if=vm.athleteRequiredMinimumDatas label=City cts-placeholder=City data-ng-model=vm.athleteData.LakcimVaros validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=street data-ng-if=!vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=street data-ng-if=vm.athleteRequiredMinimumDatas label=Street cts-placeholder=Street data-ng-model=vm.athleteData.LakcimUtca validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=streetNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: true, minlength: 1, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=streetNumber data-ng-if=vm.athleteRequiredMinimumDatas label=StreetNumber cts-placeholder=StreetNumber data-ng-model=vm.athleteData.LakcimHazszam validation-rules=\"{required: false, maxlength: 50}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=phoneNumber data-ng-if=!vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: true}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=phoneNumber data-ng-if=vm.athleteRequiredMinimumDatas label=phoneNumber data-ng-model=vm.athleteData.Elerhetoseg validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box-email name=eMail label=Email data-ng-model=vm.athleteData.EmailCim enabled=vm.allowEdit></cts-text-box-email></fieldset><h3><a href=# translate>IdentificationNumbers</a></h3><fieldset class=\"panel col-lg-8\"><cts-text-box name=personalId label=PersonalId data-ng-model=vm.athleteData.SzemIgSzam disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=personalIdExpiration label=PersonalIdExpiration value=vm.athleteData.SzemelyiErvenyessege enabled=vm.allowEdit></cts-date-picker><cts-text-box name=taxId label=taxId data-ng-model=vm.athleteData.AdoSzam disabled=!vm.allowEdit></cts-text-box><cts-text-box name=passportNumber label=PassportNumber data-ng-model=vm.athleteData.UtlevelSzam disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=passportExpiration label=PassportExpiration value=vm.athleteData.UtlevelErvenyessege enabled=vm.allowEdit></cts-date-picker></fieldset><h3><a href=# translate>ClothesSizes</a></h3><fieldset class=\"panel col-lg-8\"><div><cts-text-box name=slippersSize label=SlipperSize ng-show=vm.RUHA.PAPUCS data-ng-model=vm.athleteData.PapucsMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=shoeSize label=ShoeSize data-ng-model=vm.athleteData.CipoMerete ng-show=vm.RUHA.CIPO disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=joggingSuitSize label=JoggingSize ng-show=vm.RUHA.MELEGITO data-ng-model=vm.athleteData.MelegitoMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=bathrobeSize label=BathrobeSize ng-show=vm.RUHA.FURDOKOPENY data-ng-model=vm.athleteData.FurdokopenyMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=coatSize label=CoatSize data-ng-model=vm.athleteData.KabatMerete ng-show=vm.RUHA.KABAT disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=armorPantSize label=ArmorPantSize ng-show=vm.RUHA.PANCELNADRAG data-ng-model=vm.athleteData.PancelNadragMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=tShirtSize label=TShirtSize data-ng-model=vm.athleteData.PoloMerete ng-show=vm.RUHA.POLO disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=shortDressSize label=ShortsSize ng-show=vm.RUHA.SORT data-ng-model=vm.athleteData.SortMerete disabled=!vm.allowEdit></cts-text-box></div><div><cts-text-box name=swimmingPantSize label=SwimmingPantSize ng-show=vm.RUHA.USZONADRAG data-ng-model=vm.athleteData.UszoNadragMerete disabled=!vm.allowEdit></cts-text-box></div></fieldset><h3><a href=# translate>SchoolDatas</a></h3><fieldset class=col-sm-12><div class=\"panel col-lg-8\" ng-show=vm.displayButtons><div class=\"col-lg-12 col-lg-offset-6\"><button class=cts-button type=button id=changeSchool ej-button e-click=vm.selectSchools ng-if=vm.allowEdit translate>SelectSchool</button></div></div><div class=hidedContent id=hidedContent><div class=slim-grid id=Grid></div></div><div class=\"panel col-lg-8\"><cts-text-box name=schoolName label=SchoolName data-ng-model=vm.athleteData.IskolaNeve change=vm.schoolNameChanged data-ng-model-options=\"{debounce: 500}\" validation-rules=\"{required: false, maxlength: 100}\"></cts-text-box><cts-text-box name=schoolZipCode label=SchoolZipCode data-ng-model=vm.athleteData.IskolaIrSzam validation-rules=\"{required: false, maxlength: 5}\"></cts-text-box><cts-text-box name=schoolCity label=SchoolCity data-ng-model=vm.athleteData.IskolaVaros></cts-text-box><cts-text-box name=schoolStreet label=SchoolStreet data-ng-model=vm.athleteData.IskolaUtca></cts-text-box><cts-text-box name=schoolStreetNumber label=SchoolStreetNumber data-ng-model=vm.athleteData.IskolaHazszam></cts-text-box><cts-text-box name=directorName label=DirectorName data-ng-model=vm.athleteData.IskolaIgazgatoNeve></cts-text-box><cts-auto-complete name=classMaster label=ClassMaster value=vm.athleteData.OsztalyFonokNeve datasource=vm.classMasterDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectOf></cts-auto-complete><cts-text-box name=classMasterTel label=ClassMasterTel data-ng-model=vm.athleteData.OfTel></cts-text-box><cts-text-box-email name=classMasterEmail label=ClassMasterEmail enabled=vm.allowEdit data-ng-model=vm.athleteData.OfEmail></cts-text-box-email><cts-auto-complete name=gymTeacher label=GymTeacher value=vm.athleteData.TestneveloNeve datasource=vm.gymTeacherDatasource emptyresulttext=vm.emptyResultText show-popup-button=true change=vm.selectTesiTanar></cts-auto-complete><cts-text-box name=gymTeacherContact label=GymTeacherContact data-ng-model=vm.athleteData.TestneveloElerhetosege></cts-text-box><cts-text-box-email name=gymTeacherEmail label=GymTeacherEmail enabled=vm.allowEdit data-ng-model=vm.athleteData.TestneveloEmail></cts-text-box-email><cts-dropdown-list name=course label=Course value=vm.athleteData.IskolaEvfolyam datasource=vm.courseList enabled=vm.allowEdit></cts-dropdown-list><cts-dropdown-list name=class label=Class value=vm.athleteData.IskolaOsztaly datasource=vm.classList enabled=vm.allowEdit></cts-dropdown-list></div></fieldset><h3><a href=# translate>ParentDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-auto-complete name=motherName label=MothersName value=vm.athleteData.AnyjaNeve datasource=vm.motherNames emptyresulttext=vm.emptyResultText show-popup-button=true enabled=vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectMother></cts-auto-complete><cts-text-box name=motherContact label=MotherContact data-ng-model=vm.athleteData.Szulo1Elerhetosege disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=motherEmail label=MotherEmail data-ng-model=vm.athleteData.AnyaEmail enabled=vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=motherHeightDropDown label=Height value=vm.athleteData.AnyjaTestmagassaga validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-text-area name=MotherSportHistory label=MotherSportHistory data-ng-model=vm.athleteData.SportoloiMultAnya css=\"padding-left:0; padding-right:0; width: 100%;\" owndisabled=!vm.allowEdit validation-rules=\"{required: false, maxlength: 4096}\"></cts-text-area><cts-text-box name=mothersJob label=MothersJob data-ng-model=vm.athleteData.AnyjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=mothersWorkplace label=MothersWorkplace data-ng-model=vm.athleteData.AnyaMunkahely validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box><cts-auto-complete name=fatherName label=FatherName value=vm.athleteData.SzuloNeve datasource=vm.fatherNames emptyresulttext=vm.emptyResultText show-popup-button=true enabled=vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" change=vm.selectFather></cts-auto-complete><cts-text-box name=fatherContact label=FatherContact data-ng-model=vm.athleteData.Szulo2Elerhetosege disabled=!vm.allowEdit validation-rules=\"{required: false, minlength: 5, maxlength: 30}\"></cts-text-box><cts-text-box-email name=fatherEmail label=FatherEmail data-ng-model=vm.athleteData.ApaEmail enabled=vm.allowEdit></cts-text-box-email><cts-numeric-text-box name=fatherHeightDropDown label=Height value=vm.athleteData.ApjaTestmagassaga validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-text-area name=fatherSportHistory label=FatherSportHistory data-ng-model=vm.athleteData.SportoloiMultApa css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-box name=fathersJob label=FathersJob data-ng-model=vm.athleteData.ApjaFoglalkozasa validation-rules=\"{required: false, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=fathersWorkplace label=FathersWorkplace data-ng-model=vm.athleteData.ApaMunkahely validation-rules=\"{required: false}\" disabled=!vm.allowEdit></cts-text-box></fieldset><h3><a href=# translate>OtherDatas</a></h3><fieldset class=\"panel col-lg-8\"><cts-numeric-text-box name=AtigazolasiDij label=AtigazolasiDij value=vm.athleteData.AtigazolasiDij validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-numeric-text-box><cts-date-picker name=trainingStart label=TrainingStart value=vm.athleteData.EdzesreJarasKezdete validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-text-area name=Notes label=Notes data-ng-model=vm.athleteData.Megjegyzes css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-area name=SportAssociation label=SportAssociation data-ng-model=vm.athleteData.EddigiSpEgyesuletei css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=!vm.allowEdit></cts-text-area><cts-text-box name=childAgeSport label=ChildageSport data-ng-model=vm.athleteData.GyermekkoriSport validation-rules=\"{required: false, minlength: 1, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=origin label=Origin data-ng-model=vm.athleteData.FajiEredet validation-rules=\"{required: false, minlength: 3, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=howSpentFreeTime label=HowSpentFreeTime data-ng-model=vm.athleteData.SzunideiElfoglaltsag validation-rules=\"{required: false, minlength: 1, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-text-box name=birthName label=BirthName data-ng-model=vm.athleteData.LeanykoriNev validation-rules=\"{required: false, minlength: 5, maxlength: 30}\" disabled=!vm.allowEdit></cts-text-box><cts-date-picker name=pubertasEndTime label=PubertasEndTime value=vm.athleteData.PubertasVege validation-rules=\"{required: false}\" enabled=vm.allowEdit></cts-date-picker><cts-text-area name=AthleteExitNote label=AthleteExitNote data-ng-model=vm.athleteData.KilepesIndoka css=\"padding-left:0; padding-right:0; width: 100%;\" validation-rules=\"{required: false, maxlength: 4096}\" owndisabled=true></cts-text-area><cts-date-picker name=athleteExitTime label=athleteExitTime value=vm.athleteData.KilepesDatuma data-ng-model=vm.athleteData.KilepesDatuma enabled=false validation-rules=\"{required: false}\"></cts-date-picker><cts-date-picker name=athleteReEnterTime label=athleteReEnterTime value=vm.athleteData.VisszalepesDatuma data-ng-model=vm.athleteData.VisszalepesDatuma enabled=false validation-rules=\"{required: false}\"></cts-date-picker></fieldset><h3><a href=# translate>AthleteMoveStory</a></h3><fieldset class=col-sm-12><script id=atmotemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${Edzo}</a></script><div class=col-sm-12><div class=slim-grid id=Grid123></div></div></fieldset><h3><a href=# translate>UsersBelongingToAthlete</a></h3><fieldset class=col-sm-12><div class=col-sm-12 data-ng-if=\"!vm.SPORTOLO && !vm.SZULO && vm.allowEdit\"><ul style=\"border: none;\" id=userRegMenuEvents ej-menu e-isresponsive=false data-ng-if=vm.UJFELH><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForAthlete() translate>CreateLoginForAthlete</a></li><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForParents() translate>CreateLoginForParents</a></li><li style=\"margin: 5px; border-radius: 5px;\"><a data-ng-click=vm.createLoginForExistingParent() translate>CreateLoginForExistingParent</a></li></ul></div><script id=atmotemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.openCoach(${UserID})\">${UserTeljesNev}</a></script><script id=atmotemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.unlinkUserFromAthlete(${UserID},${SportoloID},${szerepint})\" translate>unlinkUserFromAthlete</a></script><div class=form-group><div class=col-sm-12><div class=slim-grid id=GridUsersOfAthlete></div></div></div></fieldset></div></div></div><div class=col-lg-12 ng-show=vm.displayButtons style=\"text-align: center; margin-top: 1.5em;\"><button type=submit class=cts-button ej-button e-click=vm.save translate>Save</button> <button type=reset class=cts-button ej-button e-click=back translate>Cancel</button></div></form><div id=dialogContainer class=dialogContainer><div class=modalCell><div id=cropDialog class=cropDialog ej-dialog e-title=vm.cropDialogTitle e-width=350 e-showoninit=false e-enablemodal=true e-enableresize=false e-allowkeyboardnavigation=false e-closeonescape=true e-close=vm.closeCropDialog e-isresponsive=true e-enableanimation=true e-content=#dialogContainer e-showroundedcorner=false><div class=text-center><div class=modal-body><div><label for=fileName class=\"cts-button pull-left\" translate>ChooseImage</label> <input style=\"display: none;\" type=file accept=image/* img-cropper-fileread image=vm.cropper.sourceImage id=fileName><div><canvas id=canvas width=300 height=300 image-cropper min-width=50 min-height=50 image=vm.cropper.sourceImage cropped-image=vm.cropper.croppedImage crop-width=300 crop-height=300 keep-aspect=true touch-radius=30 crop-area-bounds=vm.bounds></canvas></div></div></div><div class=modal-footer><button class=\"cts-button pull-left\" data-ng-disabled=!vm.cropper.croppedImage data-ng-click=vm.doneCropDialog() type=submit style=\"min-width: 100px;\">{{\\'OK\\'|translate}}</button> <button class=\"cts-button pull-left\" data-ng-click=vm.closeCropDialog() type=button style=\"min-width: 100px; margin-left: 5px;\">{{\\'Cancel\\'|translate}}</button></div></div></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/files/files.html','<div class=widget-content><div style=\"position: relative;\"><div id=UploadDefault></div><button class=\"cts-button red\" id=delete data-ng-click=vm.deleteFile() type=button translate style=\"position: absolute; top: 0px; left: 130px;\">Delete</button></div><div class=row><script id=fitemplateDataColumn1 type=text/x-template><a href=\"${Filenev}\" target=\"_blank\">${Megnevezes}</a></script><div id=Grid class=slim-grid></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/health.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/psychology.html','<div class=crossfade ui-view></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/raceResultsReport/raceResultsReport.html','<script id=rareretemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.openAthlete(${SportoloId})\">${SportoloNev}</a></script><script id=rareretemplateDataColumn2 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn3 type=text/x-template><a data-ng-click=\"vm.openResultReportAthletes(${Id})\" translate>OpenIt</a></script><script id=rareretemplateDataColumn4 type=text/x-template><a data-ng-click=\"vm.printAthleteResult(${Id})\" translate>Print</a></script><div class=row><h4 translate style=\"padding-left: 1em;\">AthleteResults</h4><div class=col-lg-12><div id=Grid class=slim-grid></div></div></div><div class=row style=\"margin-top: 2em;\"><h4 translate style=\"padding-left: 1em;\">TeamResults</h4><script id=rareretemplateDataColumn5 type=text/x-template><a data-ng-click=\"vm.openTeam(${CsapatId})\">${CsapatNev}</a></script><script id=rareretemplateDataColumn6 type=text/x-template><a data-ng-click=\"vm.openCoach(${EdzoId})\">${EdzoNeve}</a></script><script id=rareretemplateDataColumn7 type=text/x-template><a data-ng-click=\"vm.openResultReportTeam(${Id})\" translate>OpenIt</a></script><script id=rareretemplateDataColumn8 type=text/x-template><a data-ng-click=\"vm.printTeamResult(${Id})\" translate>Print</a></script><div class=col-lg-12><div id=Grid2 class=slim-grid></div></div></div><div id=printDialogA ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenySportoloReport report-parameters=vm.reportParameters></report></div><div id=printDialogT ej-dialog e-height=95% e-width=95% e-showoninit=false e-enablemodal=true e-position-x=0 e-position-y=0 e-target=#mainContent e-enableresize=false><report report-name=TVersenyeredmenyCsapatReport report-parameters=vm.reportParameters></report></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/trainingVisitReport/trainingVisitReport.html','<form name=form class=filter><div style=\"overflow: hidden;\"><cts-dropdown-list name=maEv label=Year value=vm.selectedYear datasource=vm.years></cts-dropdown-list><div class=button-wrapper><button id=reportSelect class=cts-button ej-button e-click=vm.reportSelect translate>Select</button></div></div><script type=text/x-template id=AthleteColumnTemplate><a data-ng-click=\"vm.modifyAthletes(${VersenyzoId}, ${SzakosztalyId}, ${KorosztalyId})\">${VersenyzoNeve}</a></script><div id=Grid class=slim-grid></div><div translate>TheReportContainsTheClosedDatas</div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/healthList/healthList.html','<form name=form class=filter><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Athlete ng-model=vm.athleteName owndisabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=BirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.dateFrom change=vm.dateFromChange></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.dateTo change=vm.dateToChange></cts-date-picker><div class=button-wrapper style=\"clear: both;\"><button ej-button id=addData class=cts-button type=button e-click=vm.goToNewHealthEvent e-enabled=vm.allowAddNew translate>AddNewEntry</button></div></div><script type=text/x-template id=healteditcolumnTemplate><a data-ng-click=\"vm.goToModifyHealthEvent(${Id})\">{{vm.editText}}</a></script><div id=Grid class=slim-grid></div><div class=button-wrapper style=\"clear: both;\"><button type=submit class=cts-button ej-button e-click=vm.backToDatasheet translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/modifyHealthEvent/modifyHealthEvent.html','<form name=form class=filter><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Name ng-model=vm.athleteName validation-rules=\"{required: true}\" disabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=BirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.params.Mettol change=vm.dateFromChange validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.params.Meddig change=vm.dateToChange validation-rules=\"{required: false}\"></cts-date-picker></div><div style=\"overflow: hidden\"><cts-auto-complete name=MainType label=HealthEventType value=vm.params.Tipus change=vm.MainTypeSelected validation-rules=\"{required: true}\" datasource=vm.healthMainType style=\"width: 100%\" show-popup-button=true></cts-auto-complete><cts-auto-complete name=SubType label=HealthEventSubType value=vm.params.AlTipus datasource=vm.SubType style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div><div style=\"overflow: hidden\"><cts-text-area name=description label=Description data-ng-model=vm.params.Leiras css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area><cts-text-area name=therapy label=Therapy data-ng-model=vm.params.Kezeles css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area></div><div class=button-wrapper><button type=submit id=saveDatas class=cts-button ej-button e-click=vm.saveDatas translate>Save</button> <button type=button id=documents class=cts-button ej-button e-click=vm.fileUpload translate>Documents</button> <button type=button id=back class=cts-button ej-button e-click=back translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/health/newHealthEvent/newHealthEvent.html','<form name=form class=filter novalidate><div style=\"overflow: hidden\"><cts-text-box name=atheleteName label=Name ng-model=vm.athleteName owndisabled=true></cts-text-box><cts-text-box name=atheleteSocialSecurity label=SocialSecurityNumber ng-model=vm.athleteSocialSecurity disabled=true></cts-text-box><cts-text-box name=atheleteBirthDate label=athleteBirthDate ng-model=vm.athleteBirthDate disabled=true></cts-text-box></div><div style=\"overflow: hidden\"><cts-date-picker name=datepickerTol label=DateFrom value=vm.params.Mettol validation-rules=\"{required: true}\"></cts-date-picker><cts-date-picker name=datepickerIg label=DateTo value=vm.params.Meddig validation-rules=\"{required: false}\"></cts-date-picker><cts-auto-complete name=MainType label=HealthEventType value=vm.params.Tipus change=vm.MainTypeSelected validation-rules=\"{required: true}\" datasource=vm.healthMainType style=\"width: 100%\" show-popup-button=true></cts-auto-complete><cts-auto-complete name=SubType label=HealthEventSubType value=vm.params.AlTipus datasource=vm.SubType style=\"width: 100%\" show-popup-button=true></cts-auto-complete></div><div style=\"overflow: hidden\"><cts-text-area name=description label=Description data-ng-model=vm.params.Leiras css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area><cts-text-area name=therapy label=Therapy data-ng-model=vm.params.Kezeles css=\"padding-left:10; padding-right:10; width: 50%;\" validation-rules=\"{required: true, maxlength: 8192}\" rows=15></cts-text-area></div><div class=button-wrapper><button type=submit id=saveDatas class=cts-button ej-button e-click=vm.saveDatas translate>Save</button> <button type=button id=documents class=cts-button ej-button e-click=vm.fileUpload translate>Documents</button> <button type=button id=back class=cts-button ej-button e-click=back translate>Back</button></div></form>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTest/performanceMotivationTest.html','<div class=psycho-test><div class=psycho-test-body><div class=description translate>PerformanceMotivationTestDescription</div><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\" data-ng-click=\"vm.answers[$index] = 1\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\" data-ng-click=\"vm.answers[$index] = 2\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\" data-ng-click=\"vm.answers[$index] = 3\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\" data-ng-click=\"vm.answers[$index] = 4\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\" data-ng-click=\"vm.answers[$index] = 5\"><span>5</span></td></tr></table><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSurvey translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/performanceMotivationTestEvaluation/performanceMotivationTestEvaluation.html','<div class=psycho-test><div class=psycho-test-body><div class=test-header><p>{{\\'Name\\'|translate}}: {{vm.sportolo.nev}}</p><p>{{\\'BirthDate\\'|translate}}: {{vm.sportolo.szuletesiDatum}}</p><p>{{\\'HisHerMothersName\\'|translate}}: {{vm.sportolo.anyjaNeve}}</p><p>{{\\'DateOfCompletion\\'|translate}}: {{vm.kitoltesDatuma}}</p><p data-ng-if=\"vm.edit === true\">{{\\'DateOfEvaluation\\'|translate}}: {{vm.kiertekelesDatuma}}</p></div><table class=test-survey><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\"><span>5</span></td></tr></table><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Procrastination\\'|translate}}: {{vm.kiertekelesSzam[0]}}</p><p>{{\\'FearOfSuccess\\'|translate}}: {{vm.kiertekelesSzam[1]}}</p><p style=\"margin-bottom: 1em !important;\">{{\\'Toughness\\'|translate}}: {{vm.kiertekelesSzam[2]}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/pieronTestEvaluation/pieronTestEvaluation.html','<div class=\"psycho-test pieron\"><div class=psycho-test-body><div class=test-header><p>{{\\'Name\\'|translate}}: {{vm.sportolo.nev}}</p><p>{{\\'BirthDate\\'|translate}}: {{vm.sportolo.szuletesiDatum}}</p><p>{{\\'HisHerMothersName\\'|translate}}: {{vm.sportolo.anyjaNeve}}</p><p style=\"margin-bottom: 1em !important;\">{{\\'Age\\'|translate}}: {{vm.age}}</p><p>{{\\'DateOfCompletion\\'|translate}}: {{vm.kitoltesDatuma}}</p><p data-ng-if=\"vm.edit === true\">{{\\'DateOfEvalueation\\'|translate}}: {{vm.kiertekelesDatuma}}</p></div><table class=pieron-table style=\"margin-top: 1em;\"><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=answer data-ng-repeat=\"image in question\" data-ng-class=\"{selected: vm.answers[$parent.$index][$index] === 1, \\'selected-green\\': vm.answers[$parent.$index][$index] === 2 || vm.answers[$parent.$index][$index] === 3, \\'selected-red\\': vm.answers[$parent.$index][$index] === -1 || vm.answers[$parent.$index][$index] === 4, \\'selected-minutes-good\\': vm.answers[$parent.$index][$index] === 3, \\'selected-minutes-bad\\': vm.answers[$parent.$index][$index] === 4, \\'selected-minutes\\': vm.answers[$parent.$index][$index] === 5}\" data-ng-click=\"vm.clicked($parent.$index, $index)\"><span><img src={{image.url}}></span></td></tr></table><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Seen\\'|translate}}: {{vm.seen}} - {{vm.ertek[0]}}</p><p>{{\\'tNumber\\'|translate}}: {{vm.tNumber}} - {{vm.ertek[1]}}</p><p>{{\\'wrongAnswersNumber\\'|translate}}: {{vm.wrongAnswersNumber}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/pieronTest/pieronTest.html','<div class=\"psycho-test pieron\"><div class=psycho-test-body><div class=description><label for=testTime style=\"float: left; margin-right: 1em; margin-top: 0.3em\" translate>TestsTime</label> <input id=testTime ej-numerictextbox e-value=vm.time e-minvalue=1 e-maxvalue=15 e-change=vm.timeChanged type=text style=\"float:left; margin-top: 0.15em;\"> <button class=cts-button ej-button e-click=vm.startInterval data-ng-if=\"vm.started === false\" style=\"margin-left: 1em;\" translate>Start</button> <button class=cts-button ej-button e-click=vm.stopInterval data-ng-if=\"vm.started === true && vm.finished === false\" style=\"margin-left: 1em;\" translate>Stop</button> <button class=cts-button ej-button e-click=vm.saveSurvey data-ng-if=\"vm.started === true && vm.finished === true\" style=\"margin-left: 1em;\" translate>Save</button> <button class=cts-button ej-button e-click=back style=\"margin-left: 1em;\" translate>Back</button></div><h2 data-ng-if=\"vm.started === true && vm.finished === false\" style=\"margin: 1em 0; clear: both;\" translate>PieronTestStarted</h2><p style=\"margin-bottom: 1em; margin-top: 0.5em;\"><span translate>TimeLeft</span>: {{vm.timeLeftMinutes}}:{{vm.timeLeftSeconds}}</p><p><span translate>FindThese</span>: <img src=images/pieron1.png><img src=images/pieron4.png><img src=images/pieron7.png><img src=images/pieron5.png></p><table class=pieron-table style=\"margin-top: 1em;\"><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=answer data-ng-repeat=\"image in question\" data-ng-class=\"{selected: vm.answers[$parent.$index][$index] === 1, \\'selected-green\\': vm.answers[$parent.$index][$index] === 2 || vm.answers[$parent.$index][$index] === 3, \\'selected-red\\': vm.answers[$parent.$index][$index] === -1 || vm.answers[$parent.$index][$index] === 4, \\'selected-minutes-good\\': vm.answers[$parent.$index][$index] === 3, \\'selected-minutes-bad\\': vm.answers[$parent.$index][$index] === 4, \\'selected-minutes\\': vm.answers[$parent.$index][$index] === 5}\" data-ng-click=\"vm.clicked($parent.$index, $index)\"><span><img src={{image.url}}></span></td></tr></table></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/summary/summary.html','<div class=button-wrapper style=\"margin-bottom: 1rem;\"><div class=dropdown style=\"width: fit-content;\"><button class=\"cts-button dropdown-toggle\" type=button id=dropdownMenu data-toggle=dropdown aria-haspopup=true aria-expanded=true><i class=\"glyphicon glyphicon-plus\"></i> <span translate>NewPsychologyTest</span> <span class=caret></span></button><ul class=\"dropdown-menu revertLeft\" aria-labelledby=dropdownMenu \"><li><a data-ng-click=vm.goToPerformanceMotivation() translate>PerformanceMotivation</a></li><li><a data-ng-click=vm.goToTenessee() translate>Tenessee</a></li><li><a data-ng-click=vm.goToPieron() translate>Pieron</a></li><li><a href=images/wartegg.jpg target=_blank data-ng-click=vm.addWartegTest() download translate>Wartegg</a></li></ul></div></div><script id=sutemplateDataColumn1 type=text/x-template><a data-ng-click=\"vm.goToShowFilledTest(${Id}, ${typeId}, false)\" >{{vm.open}}</a></script><script id=sutemplateDataColumn2 type=text/x-template><span >${dateOfAssessment}</span></script><script id=sutemplateDataColumn3 type=text/x-template><span ><a data-ng-click=\"vm.goToShowFilledTest(${Id}, ${typeId}, true, ${documentOfAssessmentBool})\">${documentOfAssessment}</a></span></script><div class=row><div id=Grid class=slim-grid></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScale/tenesseeSelfImageScale.html','<div class=psycho-test><div class=psycho-test-body><div class=description translate>TenesseeSelfImageScaleDescription</div><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\" data-ng-class=\"{\\'not-filled\\': vm.answers[$index] === -1}\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\" data-ng-click=\"vm.answers[$index] = 1\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\" data-ng-click=\"vm.answers[$index] = 2\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\" data-ng-click=\"vm.answers[$index] = 3\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\" data-ng-click=\"vm.answers[$index] = 4\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\" data-ng-click=\"vm.answers[$index] = 5\"><span>5</span></td></tr></table><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveSurvey translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/tenesseeSelfImageScaleEvaluation/tenesseeSelfImageScaleEvaluation.html','<div class=psycho-test><div class=psycho-test-body><table><tr class=question-wrapper data-ng-repeat=\"question in vm.questions\"><td class=question-index>{{$index + 1}}</td><td class=question>{{question}}</td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 1}\"><span>1</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 2}\"><span>2</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 3}\"><span>3</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 4}\"><span>4</span></td><td class=answer data-ng-class=\"{selected: vm.answers[$index] === 5}\"><span>5</span></td></tr></table><br><div class=test-evaluation style=\"margin-bottom: 1rem;\"><p>{{\\'Testkep\\'|translate}}: {{vm.kiertekelesSzam[0]}} ( <b>{{vm.kiertekelesSzamMagyarazat[0]}}</b> )</p><p>{{\\'MoralisEnkep\\'|translate}}: {{vm.kiertekelesSzam[1]}} ( <b>{{vm.kiertekelesSzamMagyarazat[1]}}</b> )</p><p>{{\\'IndividualisEnkep\\'|translate}}: {{vm.kiertekelesSzam[2]}} ( <b>{{vm.kiertekelesSzamMagyarazat[2]}}</b>)</p><p>{{\\'CsaladiEnkep\\'|translate}}: {{vm.kiertekelesSzam[3]}} ( <b>{{vm.kiertekelesSzamMagyarazat[3]}}</b> )</p><p>{{\\'SzocialisEnkep\\'|translate}}: {{vm.kiertekelesSzam[4]}} ( <b>{{vm.kiertekelesSzamMagyarazat[4]}}</b> )</p><p>{{\\'Enkep\\'|translate}}: {{vm.kiertekelesSzam[5]}} ( <b>{{vm.kiertekelesSzamMagyarazat[5]}}</b> )</p><p style=\"margin-bottom: 1em !important;\">{{\\'Onkritika\\'|translate}}: {{vm.kiertekelesSzam[5]}}</p><textarea ej-rte e-width=100% id=rteSample rows=10 cols=30></textarea></div><div class=col-sm-12 style=\"text-align: center\"><button class=cts-button ej-button e-click=vm.saveEval translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></div></div>');\n$templateCache.put('app/athletes/athletesManagement/athleteModify/psychology/wartegg/wartegg.html','<div class=widget-head><h2 class=page-title>{{title}}</h2></div><div class=widget-content><div class=\"col-sm-12 col-md-12 col-lg-12\"><form style=\"text-align:center; width:100%\"><img data-ng-show=vm.kiertekelt src={{vm.kepfajl}} style=\"width:500px; margin:0 0 1rem 0;\" alt=wartegg.jpg> <input data-ng-show=!vm.kiertekelt name=file id=file type=file style=\"margin:0 0 1rem 0;\"> <textarea ej-rte e-width=100% id=rteSample rows=10 cols=30 e-enabled=vm.allowEdit></textarea><div style=\"margin-top: 1rem;\"><button class=cts-button ej-button e-click=vm.upload e-enabled=vm.allowEdit translate>Save</button> <button class=cts-button ej-button e-click=back translate>Back</button></div></form></div></div>');}]);"]}