示例#1
0
        public string NextPage(string string_0, int int_0, string string_1, string string_2)
        {
            string route_LOGIC = this.MySurveyRoadMap.ROUTE_LOGIC;
            string result      = new LogicEngine
            {
                SurveyID = string_0
            }.Route(route_LOGIC);

            this.RouteLogic = route_LOGIC;
            return(result);
        }
示例#2
0
        public void NextPage(string string_0, int int_0, string string_1, string string_2)
        {
            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(string_1, string_2);
            string      route_LOGIC = this.RoadMap.ROUTE_LOGIC;
            LogicEngine logicEngine = new LogicEngine();

            logicEngine.SurveyID        = string_0;
            logicEngine.PageAnswer      = this.PageAnswer;
            logicEngine.CircleACode     = this.CircleACode;
            logicEngine.CircleACodeText = this.CircleCodeTextA;
            logicEngine.CircleACount    = this.CircleACount;
            logicEngine.CircleACurrent  = this.CircleACurrent;
            logicEngine.CircleBCode     = this.CircleBCode;
            logicEngine.CircleBCodeText = this.CircleCodeTextB;
            logicEngine.CircleBCount    = this.CircleBCount;
            logicEngine.CircleBCurrent  = this.CircleBCurrent;
            string        text = logicEngine.Route(route_LOGIC);
            List <string> list = this.Page_Ver(text, "@");

            text = list[0];
            string text2 = (list.Count > 1) ? logicEngine.stringResult(list[1]) : string_2;

            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(text, text2);
            if (this.RoadMap.FORM_NAME == null || this.RoadMap.FORM_NAME == "")
            {
                string string_3 = string.Concat(new string[]
                {
                    GClass0.smethod_0("闭創ȩ"),
                    string_0,
                    GClass0.smethod_0("#擩滝痳枣䯋套啎遷ग़"),
                    string_1,
                    GClass0.smethod_0("R賽倽ﰖѝՏٛݛࡎॉੋ୛ొെ฼"),
                    text2,
                    GClass0.smethod_0("%ŘɆ́р՛ي݆࠼"),
                    text,
                    GClass0.smethod_0("'ŌɆ͚ъՙً݅ࡎे਼"),
                    this.RoadMap.FORM_NAME
                });
                this.oLogicExplain.OutputResult(string_3, "CapiDebug.Log", true);
            }
            this.AddSurveySequence(string_0, int_0, string_1, string_2);
            this.UpdateSurveyMain(string_0, int_0 + 1, text, this.RoadMap.VERSION_ID);
        }
示例#3
0
        public void RedirectNextPage(string string_0, int int_0, string string_1, string string_2, string string_3)
        {
            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(string_1, string_2);
            string route_LOGIC = this.RoadMap.ROUTE_LOGIC;
            string text        = new LogicEngine
            {
                SurveyID        = string_0,
                PageAnswer      = this.PageAnswer,
                CircleACode     = this.CircleACode,
                CircleACodeText = this.CircleCodeTextA,
                CircleACount    = this.CircleACount,
                CircleACurrent  = this.CircleACurrent,
                CircleBCode     = this.CircleBCode,
                CircleBCodeText = this.CircleCodeTextB,
                CircleBCount    = this.CircleBCount,
                CircleBCurrent  = this.CircleBCurrent
            }.Route(route_LOGIC);

            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(text, string_3);
            this.AddSurveySequence(string_0, int_0, string_1, string_2);
            this.UpdateSurveyMain(string_0, int_0 + 1, text, this.RoadMap.VERSION_ID);
        }
示例#4
0
        public void NextCirclePage(string string_0, int int_0, string string_1, string string_2)
        {
            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(string_1, string_2);
            string string_3 = this.RoadMap.GROUP_ROUTE_LOGIC;

            if (this.GroupLevel == "A")
            {
                if (this.GroupPageType == 0 || this.GroupPageType == 2)
                {
                    if (this.CircleACurrent == this.CircleACount)
                    {
                        string_3 = this.RoadMap.ROUTE_LOGIC;
                    }
                }
                else if (this.GroupPageType == 10 || this.GroupPageType == 30)
                {
                    string_3 = this.RoadMap.ROUTE_LOGIC;
                }
            }
            else if (this.GroupLevel == "B")
            {
                if (this.GroupPageType == 0)
                {
                    if (this.CircleACurrent == this.CircleACount && this.CircleBCurrent == this.CircleBCount)
                    {
                        string_3 = this.RoadMap.ROUTE_LOGIC;
                    }
                }
                else if (this.GroupPageType == 2)
                {
                    if (this.CircleACurrent == this.CircleACount)
                    {
                        string_3 = this.RoadMap.ROUTE_LOGIC;
                    }
                }
                else if ((this.GroupPageType == 10 || this.GroupPageType == 12 || this.GroupPageType == 30 || this.GroupPageType == 32) && this.CircleBCurrent == this.CircleBCount)
                {
                    string_3 = this.RoadMap.ROUTE_LOGIC;
                }
            }
            LogicEngine logicEngine = new LogicEngine();

            logicEngine.SurveyID        = string_0;
            logicEngine.PageAnswer      = this.PageAnswer;
            logicEngine.CircleACode     = this.CircleACode;
            logicEngine.CircleACodeText = this.CircleCodeTextA;
            logicEngine.CircleACount    = this.CircleACount;
            logicEngine.CircleACurrent  = this.CircleACurrent;
            logicEngine.CircleBCode     = this.CircleBCode;
            logicEngine.CircleBCodeText = this.CircleCodeTextB;
            logicEngine.CircleBCount    = this.CircleBCount;
            logicEngine.CircleBCurrent  = this.CircleBCurrent;
            string text = logicEngine.Route(string_3);

            if (this.GroupLevel == "A" && this.GroupPageType == 2 && this.RoadMap.ROUTE_LOGIC == text)
            {
                this.IsLastA = true;
            }
            if (this.GroupLevel == "B" && this.GroupPageType == 2 && this.RoadMap.ROUTE_LOGIC == text)
            {
                this.IsLastB = true;
            }
            List <string> list = this.Page_Ver(text, "@");

            text = list[0];
            string text2 = (list.Count > 1) ? logicEngine.stringResult(list[1]) : string_2;

            this.RoadMap = this.oSurveyRoadMapDal.GetByPageId(text, text2);
            if (this.RoadMap.FORM_NAME == null || this.RoadMap.FORM_NAME == "")
            {
                string string_4 = string.Concat(new string[]
                {
                    GClass0.smethod_0("闭創ȩ"),
                    string_0,
                    GClass0.smethod_0("#擩滝痳枣䯋套啎遷ग़"),
                    string_1,
                    GClass0.smethod_0("R賽倽ﰖѝՏٛݛࡎॉੋ୛ొെ฼"),
                    text2,
                    GClass0.smethod_0("%ŘɆ́р՛ي݆࠼"),
                    text,
                    GClass0.smethod_0("'ŌɆ͚ъՙً݅ࡎे਼"),
                    this.RoadMap.FORM_NAME
                });
                this.oLogicExplain.OutputResult(string_4, "CapiDebug.Log", true);
                string_4 = string.Concat(new object[]
                {
                    GClass0.smethod_0("6ĵȴ̳вԱذ䤅䘎鰔臣咡羥䋨湧၊ᅪቫ፳ᑃᔼ"),
                    this.CircleACurrent,
                    "/",
                    this.CircleACount,
                    GClass0.smethod_0("$ħɊͪѫճـܼ"),
                    this.CircleBCurrent,
                    "/",
                    this.CircleBCount,
                    GClass0.smethod_0("<įɉͿѣվٺݙࡩॠ੣୑౽൳๧༼"),
                    this.GroupPageType
                });
                this.oLogicExplain.OutputResult(string_4, "CapiDebug.Log", true);
            }
            this.AddSurveySequence(string_0, int_0, string_1, string_2);
            this.UpdateSurveyMain(string_0, int_0 + 1, text, this.RoadMap.VERSION_ID);
            this.SetNextCircle();
        }