コード例 #1
0
        public void InitRelation(string string_0, int int_0)
        {
            QInitDateTime = DateTime.Now;
            string _003F40_003F = "";

            QDefine        = oSurveyDefineDal.GetByPageId(string_0, int_0);
            QuestionName   = QDefine.QUESTION_NAME;
            ParentCode     = QDefine.PARENT_CODE;
            QDetailsParent = oSurveyDetailDal.GetDetails(QDefine.PARENT_CODE);
            QDetails       = oSurveyDetailDal.GetDetails(QDefine.DETAIL_ID, out _003F40_003F);
            OtherCode      = _003F40_003F;
            int num = 0;

            while (true)
            {
                if (num >= QDetails.Count)
                {
                    return;
                }
                if (QDetails[num].IS_OTHER == 2)
                {
                    break;
                }
                num++;
            }
            NoneCode     = QDetails[num].CODE;
            NoneCodeText = QDetails[num].CODE_TEXT;
            QDetails.RemoveAt(num);
        }
コード例 #2
0
        public void GetRelation2(string string_0)
        {
            Class2 @class = new Class2();

            @class.Level1Code = string_0;
            IOrderedEnumerable <SurveyDetail> source = QDetails.Where(@class.method_0).OrderBy(Class3._003C_003E9.method_0);

            QGroupDetails = source.ToList();
            OtherCode     = "";
            foreach (SurveyDetail qGroupDetail in QGroupDetails)
            {
                if (qGroupDetail.IS_OTHER == 1)
                {
                    OtherCode = qGroupDetail.CODE;
                    break;
                }
            }
        }