private void GetReporteeViewModelList(List <Reportee> reporteeList)
        {
            ObservableCollection <ReporteeViewModel> reporteeListItem = new ObservableCollection <ReporteeViewModel> ();

            foreach (var reportee in reporteeList)
            {
                ReporteeViewModel reporteeViewModel = new ReporteeViewModel(reportee);
                reporteeListItem.Add(reporteeViewModel);
            }
            ReporteeList = reporteeListItem;
        }
        private void GetParticipantViewModelList(List <Reportee> participantList)
        {
            ObservableCollection <ReporteeViewModel> participantListItem = new ObservableCollection <ReporteeViewModel> ();

            foreach (var participant in participantList)
            {
                ReporteeViewModel participantViewModel = new ReporteeViewModel(participant);
                participantListItem.Add(participantViewModel);
            }
            ParticipantList = participantListItem;
        }
Ejemplo n.º 3
0
        private void GetReporteeViewModelList(List <Reportee> reporteeList, string courseID)
        {
            ObservableCollection <ReporteeViewModel> reporteeListItem = new ObservableCollection <ReporteeViewModel> ();

            foreach (var report in reporteeList)
            {
                ReporteeViewModel reporteeViewModel = new ReporteeViewModel(report);
                reporteeViewModel.CourseID = courseID;
                reporteeListItem.Add(reporteeViewModel);
            }
            ReporteeList = reporteeListItem;
        }
Ejemplo n.º 4
0
//		private RelayCommand _EditCmd;
//
//		public RelayCommand EditCmd {
//			get {
//				return _EditCmd ?? (_EditCmd = new RelayCommand (() => {
//					DoEdit ();
//				}));
//			}
//		}
//
//		public void DoEdit ()
//		{
//			if (CrossConnectivity.Current.IsConnected) {
//				IsBusy = true;
//				AttendanceHandler.GetAttendance (_SelectedCourse.CourseId,
//					(responseAttendance) => {
//						Debug.WriteLine ("Success" + responseAttendance.AttendanceData);
//						MarkAttendancePage _MarkAttendancePage = new MarkAttendancePage ();
//						_MarkAttendancePage.BindingContext = new MarkAttendanceItemViewModel (_SelectedCourse, _SelectedItem.ParticipantList);
//						NavigationHandler.GlobalNavigator.Navigation.PushAsync (_MarkAttendancePage);
//						IsBusy = false;
//
//					},
//					(errorAttendance) => {
//						NavigationHandler.GlobalNavigator.DisplayAlert (Constants.APP_NAME, Constants.ServerUnSuccess, Constants.OK_TEXT);
//						IsBusy = false;
//					});
//
//			} else {
//				NavigationHandler.GlobalNavigator.DisplayAlert (Constants.APP_NAME, Constants.NETWORK_ERROR, Constants.OK_TEXT);
//			}
//		}

        public void GetReporteeAttendanceItemList(List <Reportee> reporteeList)
        {
            foreach (var reportee in reporteeList)
            {
                ReporteeViewModel reporteeViewModel = new ReporteeViewModel(reportee);
                if ((_SelectedItem.AbsentList != null) && _SelectedItem.AbsentList.Exists(s => s.Equals(reportee.UserName)))
                {
                    ReporteeAbsent.Add(reporteeViewModel);
                }
                else if ((_SelectedItem.PresentList != null) && _SelectedItem.PresentList.Exists(s => s.Equals(reportee.UserName)))
                {
                    ReporteePresent.Add(reporteeViewModel);
                }
            }
        }
Ejemplo n.º 5
0
 public async void GetReporteeViewModelList(List <Reportee> reporteeList, string L1beliefAssessment, string L1skillAssessment, string L1feedbackScore, string lapScore, string cpScore, string l2BeliefPostScore)
 {
     foreach (var reportee in reporteeList)
     {
         ReporteeViewModel reporteeViewModel = new ReporteeViewModel(reportee);
         IsSelectAll = true;
         reporteeViewModel.IsSelected           = true;
         reporteeViewModel.L2BChangeOnPotential = L1beliefAssessment;
         reporteeViewModel.L2SChangeOnPotential = L1skillAssessment;
         reporteeViewModel.CpScore           = cpScore;
         reporteeViewModel.LapScore          = lapScore;
         reporteeViewModel.L1FeedBackScore   = L1feedbackScore;
         reporteeViewModel.L2BeliefPostScore = l2BeliefPostScore;
         TempList2.Add(reporteeViewModel);
         RawReporteeList.Add(reporteeViewModel);
     }
 }
Ejemplo n.º 6
0
 public void GetReporteeViewModelList(List <Reportee> reporteeList)
 {
     foreach (var reportee in reporteeList)
     {
         ReporteeViewModel reporteeViewModel = new ReporteeViewModel(reportee);
         if ((_SelectedActivity.Completed != null) && _SelectedActivity.Completed.Exists(s => s.Equals(reportee.UserName)))
         {
             ReporteeCompleted.Add(reporteeViewModel);
         }
         else if ((_SelectedActivity.Pending != null) && _SelectedActivity.Pending.Exists(s => s.Equals(reportee.UserName)))
         {
             ReporteePending.Add(reporteeViewModel);
         }
         else if ((_SelectedActivity.OverDue != null) && _SelectedActivity.OverDue.Exists(s => s.Equals(reportee.UserName)))
         {
             ReporteeOverDue.Add(reporteeViewModel);
         }
     }
 }
Ejemplo n.º 7
0
 public ReportBatchwiseViewModel(ReporteeViewModel selectedReport)
 {
     this.SelectedReport = selectedReport;
 }
Ejemplo n.º 8
0
 public RateParticipantViewModel(ReporteeViewModel selectedReportee, List <RateQuestion> questionList)
 {
     this._SelectedReportee = selectedReportee;
     GetQuestionListViewModel(questionList);
 }
Ejemplo n.º 9
0
 public void OnreporteeSelected()
 {
     SelectedReportee = null;
 }