Esempio n. 1
0
        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
            txbSubId.Text = subjectViewInfo.SubjectInfo.SUBJECTID.ToString() + ".";
            txbSubContent.Text = subjectViewInfo.SubjectInfo.CONTENT;
            System.Linq.IOrderedEnumerable<T_OA_REQUIREDETAIL> oanswerList = subjectViewInfo.AnswerList.OrderBy(ee => ee.CODE);
            foreach (T_OA_REQUIREDETAIL anserInfo in oanswerList)
            {
                if (anserInfo.CONTENT != "无")
                {
                    SurveyAnswer sa = new SurveyAnswer(anserInfo);
                    sa.IsShowResult = isShowResult;
                    if (isShowResult != 0 && isShowResult != 3)
                        txtComments.Visibility = Visibility.Collapsed;
                    if (resultDetail != null)
                        if (resultDetail.RESULT == anserInfo.CODE)
                        {
                            sa.IsSelected = true;
                            if (resultDetail.CONTENT != null)
                                txtComments.Text = resultDetail.CONTENT;
                        }
                    spAnswerList.Children.Add(sa);
                }

            }
            ImageButton btn = new ImageButton();
            btn.Margin = new Thickness(0);
            btn.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_4406in.png", Utility.GetResourceStr("OTHERSUGGEST"));
            btn.Click += new RoutedEventHandler(chk_Other);
            spAnswerList.Children.Add(btn);
        }
Esempio n. 2
0
        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
            txbSubId.Text      = subjectViewInfo.SubjectInfo.SUBJECTID.ToString() + ".";
            txbSubContent.Text = subjectViewInfo.SubjectInfo.CONTENT;
            System.Linq.IOrderedEnumerable <T_OA_REQUIREDETAIL> oanswerList = subjectViewInfo.AnswerList.OrderBy(ee => ee.CODE);
            foreach (T_OA_REQUIREDETAIL anserInfo in oanswerList)
            {
                if (anserInfo.CONTENT != "无")
                {
                    SurveyAnswer sa = new SurveyAnswer(anserInfo);
                    sa.IsShowResult = isShowResult;
                    if (isShowResult != 0 && isShowResult != 3)
                    {
                        txtComments.Visibility = Visibility.Collapsed;
                    }
                    if (resultDetail != null)
                    {
                        if (resultDetail.RESULT == anserInfo.CODE)
                        {
                            sa.IsSelected = true;
                            if (resultDetail.CONTENT != null)
                            {
                                txtComments.Text = resultDetail.CONTENT;
                            }
                        }
                    }
                    spAnswerList.Children.Add(sa);
                }
            }
            ImageButton btn = new ImageButton();

            btn.Margin = new Thickness(0);
            btn.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/ToolBar/ico_16_4406in.png", Utility.GetResourceStr("OTHERSUGGEST"));
            btn.Click += new RoutedEventHandler(chk_Other);
            spAnswerList.Children.Add(btn);
        }