Ejemplo n.º 1
0
        void Result_ESurveyByRequireIDCompleted(object sender, Result_ESurveyByRequireIDCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                _osubAnswerResult = e.Result;
                txbTitle.Text     = _Survey.RequireMaster.REQUIRETITLE;
                txbContent.Text   = _Survey.RequireMaster.CONTENT;

                foreach (V_EmployeeSurveySubject subInfo in _Survey.SubjectViewList)
                {
                    V_SatisfactionResult v = _osubAnswerResult.FirstOrDefault(ee => ee.SubjectID == subInfo.SubjectInfo.SUBJECTID);

                    SurveyShowList_1 subjectItem = new SurveyShowList_1();
                    subjectItem.SubjectViewInfo  = subInfo;
                    subjectItem._SubAnswerResult = v;
                    spSurveysList.Children.Add(subjectItem);
                }
            }
        }
Ejemplo n.º 2
0
        void Result_ESurveyByRequireIDCompleted(object sender, Result_ESurveyByRequireIDCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                _osubAnswerResult = e.Result;
                txbTitle.Text = _Survey.RequireMaster.REQUIRETITLE;
                txbContent.Text = _Survey.RequireMaster.CONTENT;

                foreach (V_EmployeeSurveySubject subInfo in _Survey.SubjectViewList)
                {
                    V_SatisfactionResult v = _osubAnswerResult.FirstOrDefault(ee => ee.SubjectID == subInfo.SubjectInfo.SUBJECTID);

                    SurveyShowList_1 subjectItem = new SurveyShowList_1();
                    subjectItem.SubjectViewInfo = subInfo;
                    subjectItem._SubAnswerResult = v;
                    spSurveysList.Children.Add(subjectItem);
                }
            }
        }