Пример #1
0
 //某个考试人员的调查试卷
 void Result_SubByUserIDCompleted(object sender, Result_SubByUserIDCompletedEventArgs e)
 {
     ObservableCollection<T_OA_SATISFACTIONRESULT> subjectResult = e.Result;
     foreach (T_OA_SATISFACTIONDETAIL subInfo in EmployeeSurveyInfo.SubjectViewList)
     {
         SurveyShowList_sat subjectItem = new SurveyShowList_sat();
         subjectItem.ResultDetail = subjectResult.Where(q => q.SUBJECTID == subInfo.SUBJECTID).FirstOrDefault();
         subjectItem.SubjectViewInfo = subInfo;
         subjectItem.oanswer = _oanswer;
         subjectItem.IsShowResult = 3;
         spSurveysList.Children.Add(subjectItem);
     }
     RefreshUI(RefreshedTypes.ProgressBar);
 }
Пример #2
0
        //某个考试人员的调查试卷
        void Result_SubByUserIDCompleted(object sender, Result_SubByUserIDCompletedEventArgs e)
        {
            ObservableCollection <T_OA_SATISFACTIONRESULT> subjectResult = e.Result;

            foreach (T_OA_SATISFACTIONDETAIL subInfo in EmployeeSurveyInfo.SubjectViewList)
            {
                SurveyShowList_sat subjectItem = new SurveyShowList_sat();
                subjectItem.ResultDetail    = subjectResult.Where(q => q.SUBJECTID == subInfo.SUBJECTID).FirstOrDefault();
                subjectItem.SubjectViewInfo = subInfo;
                subjectItem.oanswer         = _oanswer;
                subjectItem.IsShowResult    = 3;
                spSurveysList.Children.Add(subjectItem);
            }
            RefreshUI(RefreshedTypes.ProgressBar);
        }
Пример #3
0
        void Get_SSurveyCompleted(object sender, Get_SSurveyCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                employeeSurveyInfo = e.Result as V_Satisfaction;
                txbTitle.Text = EmployeeSurveyInfo.RequireMaster.SATISFACTIONTITLE;
                txbContent.Text = EmployeeSurveyInfo.RequireMaster.CONTENT;

                //题目,答案
                foreach (T_OA_SATISFACTIONDETAIL subInfo in EmployeeSurveyInfo.SubjectViewList)
                {
                    SurveyShowList_sat subjectItem = new SurveyShowList_sat();
                    subjectItem.SubjectViewInfo = subInfo;
                    //subjectItem.ResultDetail = subInfo;
                    subjectItem.oanswer = _oanswer;
                    subjectItem.IsShowResult = 0;
                    spSurveysList.Children.Add(subjectItem);
                }
            }
        }
Пример #4
0
        void Get_SSurveyCompleted(object sender, Get_SSurveyCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                employeeSurveyInfo = e.Result as V_Satisfaction;
                txbTitle.Text      = EmployeeSurveyInfo.RequireMaster.SATISFACTIONTITLE;
                txbContent.Text    = EmployeeSurveyInfo.RequireMaster.CONTENT;

                //题目,答案
                foreach (T_OA_SATISFACTIONDETAIL subInfo in EmployeeSurveyInfo.SubjectViewList)
                {
                    SurveyShowList_sat subjectItem = new SurveyShowList_sat();
                    subjectItem.SubjectViewInfo = subInfo;
                    //subjectItem.ResultDetail = subInfo;
                    subjectItem.oanswer      = _oanswer;
                    subjectItem.IsShowResult = 0;
                    spSurveysList.Children.Add(subjectItem);
                }
            }
        }