void empSurveysManage_GetResultByUserIDCompleted(object sender, GetResultByUserIDCompletedEventArgs e) { ObservableCollection <T_OA_REQUIRERESULT> subjectResult = e.Result; foreach (V_EmployeeSurveySubject subInfo in EmployeeSurveyInfo.SubjectViewList) { SurveyShowList subjectItem = new SurveyShowList(); if (subjectResult != null) { // subjectItem.ResultDetail = subjectResult.Where(q => q.SUBJECTID == subInfo.SubjectInfo.SUBJECTID).FirstOrDefault(); } subjectItem.SubjectViewInfo = subInfo; subjectItem.IsShowResult = 3; spSurveysList.Children.Add(subjectItem); if (type == FormTypes.Browse) { subjectItem.txtComments.IsReadOnly = true; } } }
void empSurveysManage_GetResultByUserIDCompleted(object sender, GetResultByUserIDCompletedEventArgs e) { ObservableCollection<T_OA_REQUIRERESULT> subjectResult = e.Result; foreach (V_EmployeeSurveySubject subInfo in EmployeeSurveyInfo.SubjectViewList) { SurveyShowList subjectItem = new SurveyShowList(); if (subjectResult != null) { // subjectItem.ResultDetail = subjectResult.Where(q => q.SUBJECTID == subInfo.SubjectInfo.SUBJECTID).FirstOrDefault(); } subjectItem.SubjectViewInfo = subInfo; subjectItem.IsShowResult = 3; spSurveysList.Children.Add(subjectItem); if (type == FormTypes.Browse) { subjectItem.txtComments.IsReadOnly = true; } } }