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; }
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; }
// 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); } } }
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); } }
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); } } }
public ReportBatchwiseViewModel(ReporteeViewModel selectedReport) { this.SelectedReport = selectedReport; }
public RateParticipantViewModel(ReporteeViewModel selectedReportee, List <RateQuestion> questionList) { this._SelectedReportee = selectedReportee; GetQuestionListViewModel(questionList); }
public void OnreporteeSelected() { SelectedReportee = null; }