protected void Page_Load(object sender, EventArgs e)
        {
            string  str;
            string  str2;
            string  str4;
            string  str5;
            DataSet set;
            string  str7 = null; //赋初值
            int     num3;

            goto Label_003B;
Label_0002:
            switch (num3)
            {
            case 0:
                if (set.Tables["StyleTable"].Rows.Count <= 0)
                {
                    goto Label_047A;
                }
                num3 = 10;
                goto Label_0002;

            case 1:
                base.Response.Write("非法输入");
                base.Response.End();
                num3 = 11;
                goto Label_0002;

            case 2:
                str2 = "001.htm.htm";
                num3 = 7;
                goto Label_0002;

            case 3:
                if (set.Tables["HeadFoot"].Rows.Count <= 0)
                {
                    goto Label_0536;
                }
                num3 = 9;
                goto Label_0002;

            case 4:
                if (File.Exists(str))
                {
                    goto Label_0375;
                }
                num3 = 1;
                goto Label_0002;

            case 5:
                if ((1 == 0) || (0 == 0))
                {
                    goto Label_047A;
                }
                goto Label_0375;

            case 6:
                if (!(str2 == ""))
                {
                    goto Label_03BE;
                }
                num3 = 2;
                goto Label_0002;

            case 7:
                goto Label_03BE;

            case 8:
                goto Label_0536;

            case 9:
                str4 = set.Tables["HeadFoot"].Rows[0][0].ToString();
                str5 = set.Tables["HeadFoot"].Rows[0][1].ToString();
                num3 = 8;
                goto Label_0002;

            case 10:
                str7 = "<style>" + set.Tables["StyleTable"].Rows[0][0].ToString() + "</style>";
                num3 = 5;
                goto Label_0002;

            case 11:
                goto Label_0375;
            }
Label_003B:
            str = "TempLate/";
            long sID = 0;
            long uID = 0;

            uID = ConvertHelper.ConvertLong(this.Session["UserID"]);
            languageClass class3 = new languageClass();

            str2 = "";
            string str3 = "";

            str4 = "";
            str5 = "";
            sID  = Convert.ToInt64(base.Request.QueryString["SID"]);
            //OleDbConnection connection = new OleDbConnection(ConfigurationManager.ConnectionStrings["AccessDB"].ToString().Replace("aaaaaa", "1aaaaaaaaaaaaaaaaaaw"));
            //connection.Open();
            //OleDbCommand objComm = new OleDbCommand("", connection);
            class3.getLanguage();
            string[] strArray = class3._arrLanguage[class3.getLan(sID), 1].Split(new char[] { '|' });
            string   str6     = "<table  style='text-align:center;width:100%'><tr><td  style='text-align:center;width:100%'><input type='button' name='beforepagebt' id='beforepagebt' value='上一页' onClick='beforepage()'  style='visibility:hidden' disabled class='BeforePage'><input type='button' name='closepagebt' id='closepagebt' value='关闭' onClick='javascript:self.close()'  style='display:none' class='BeforePage'><input type='submit' name='submitbt' id='submitbt'  value='" + strArray[1] + "'  disabled class='SubmitBT'><input type='button' name='nextpagebt' id='nextpagebt' value='" + strArray[2] + "' onClick='nextpage()'  disabled  class='NextPage'><span id='obj'></span></td></tr></table>";

            //OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT ItemHTML,IID,ItemName,PageNo,DataFormatCheck,ItemType,Logic,ParentID,OptionAmount FROM ItemTable WHERE UID=" + uID.ToString() + " AND SID=" + sID.ToString() + "  ORDER BY PageNo,Sort", connection);
            set = new DataSet();
            //adapter.Fill(set, "ItemTable");
            DataTable ItemTable = new Survey_getSurveyHTML_Layer().GetItemTable(uID.ToString(), sID.ToString());

            ItemTable.TableName = "ItemTable";

            //new OleDbDataAdapter("SELECT PageNo,PageContent FROM PageTable WHERE UID=" + uID.ToString() + " AND SID=" + sID.ToString() + "  ORDER BY PageNo", connection).Fill(set, "PageTable");
            DataTable PageTable = new Survey_getSurveyHTML_Layer().GetPageTable(uID.ToString(), sID.ToString());

            PageTable.TableName = "PageTable";

            //new OleDbDataAdapter("SELECT TOP 1 ExpandContent FROM SurveyExpand WHERE UID=" + uID.ToString() + " AND SID=" + sID.ToString() + " AND ExpandType=9", connection).Fill(set, "StyleTable");
            DataTable StyleTable = new Survey_getSurveyHTML_Layer().GetSurveyExpand(uID.ToString(), sID.ToString(), "9");

            StyleTable.TableName = "StyleTable";

            //new OleDbDataAdapter("SELECT TOP 1 PageHead,PageFoot FROM HeadFoot WHERE UID=" + uID.ToString() + " AND SID=" + sID.ToString(), connection).Fill(set, "HeadFoot");
            DataTable HeadFoot = new Survey_getSurveyHTML_Layer().GetHeadFoot(uID.ToString(), sID.ToString());

            HeadFoot.TableName = "HeadFoot";

            //new OleDbDataAdapter("SELECT TOP 1 SurveyName,TempPage FROM SurveyTable WHERE UID=" + uID.ToString() + " AND SID=" + sID.ToString(), connection).Fill(set, "SurveyTable");
            DataTable SurveyTable = new Survey_getSurveyHTML_Layer().GetSurveyTable(uID.ToString(), sID.ToString());

            SurveyTable.TableName = "SurveyTable";

            set.Tables.Add(ItemTable);
            set.Tables.Add(PageTable);
            set.Tables.Add(StyleTable);
            set.Tables.Add(HeadFoot);
            set.Tables.Add(SurveyTable);



            str2 = set.Tables["SurveyTable"].Rows[0][1].ToString();
            num3 = 6;
            goto Label_0002;
Label_0375:
            str7 = "";
            num3 = 0;
            goto Label_0002;
Label_03BE:
            str  = base.Server.MapPath(str + str2);
            num3 = 4;
            goto Label_0002;
Label_047A:
            int num1 = set.Tables["SurveyTable"].Rows.Count;

            str7 = str7 + this.getSurveyContent(set.Tables["PageTable"], set.Tables["ItemTable"]);
            num3 = 3;
            goto Label_0002;
Label_0536:
            str2         = this.OpenFile(str, str3, sID).Replace("surveystyle/", "template/surveystyle/");
            this.sSurvey = str2.Replace("这里是表单代码", str4 + "<form action='../../SS.aspx' name='SurveyForm' id='SurveyForm' method='post'  enctype=\"multipart/form-data\" onsubmit='return checkform()'>" + str7 + str6 + "</form>" + str5);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string        str;
            long          num;
            string        str3;
            string        str6;
            string        str7;
            string        str8;
            StringBuilder builder = null; //赋初值
            SqlDataReader reader  = null; //赋初值
            DataSet       set     = null; //赋初值

            string[] strArray = null;     //赋初值
            string   str11    = null;     //赋初值
            int      num6;

            goto Label_0057;
Label_0002:
            switch (num6)
            {
            case 0:
                if (set.Tables["SurveyTable"].Rows.Count != 0)
                {
                    goto Label_05CC;
                }
                num6 = 0x10;
                goto Label_0002;

            case 1:
                if (File.Exists(str))
                {
                    goto Label_0323;
                }
                num6 = 10;
                goto Label_0002;

            case 2:
                goto Label_022B;

            case 3:
                builder.Append("blnCheckCode=true;\n");
                num6 = 2;
                goto Label_0002;

            case 4:
                if (!(str3 == ""))
                {
                    goto Label_06FE;
                }
                num6 = 14;
                goto Label_0002;

            case 5:
                goto Label_05CC;

            case 6:
                if (set.Tables["HeadFoot"].Rows.Count <= 0)
                {
                    goto Label_079E;
                }
                num6 = 15;
                goto Label_0002;

            case 7:
                goto Label_01EF;

            case 8:
                if (set.Tables["SurveyTable"].Rows.Count <= 0)
                {
                    goto Label_04D6;
                }
                num6 = 7;
                goto Label_0002;

            case 9:
                if (str7.IndexOf("|CheckCode:1|") < 0)
                {
                    goto Label_022B;
                }
                num6 = 3;
                goto Label_0002;

            case 10:
                base.Response.Write("非法输入");
                reader.Dispose();
                base.Response.End();
                num6 = 11;
                goto Label_0002;

            case 11:
                goto Label_0323;

            case 12:
                try
                {
                    str3 = base.Request.QueryString["PS"].ToString();
                }
                catch
                {
                }
                reader = null;
                set    = new DataSet();
                num6   = 4;
                goto Label_0002;

            case 13:
                goto Label_06FE;

            case 14:
                if ((1 == 0) || (0 == 0))
                {
                    str3 = this.getSurveyTemplate(num.ToString());
                    num6 = 13;
                    goto Label_0002;
                }
                goto Label_01EF;

            case 15:
                str6 = set.Tables["HeadFoot"].Rows[0][0].ToString();
                str8 = set.Tables["HeadFoot"].Rows[0][1].ToString();
                num6 = 0x12;
                goto Label_0002;

            case 0x10:
                set.Dispose();
                base.Response.Write("未找到问卷");
                base.Response.End();
                num6 = 5;
                goto Label_0002;

            case 0x11:
                goto Label_04D6;

            case 0x12:
                goto Label_079E;
            }
Label_0057:
            str = "TempLate/";
            num = 0;
            long   uID  = 0;
            string str2 = "<script src=Js/Client.js type='text/javascript' language='javascript'></script><script src=Js/Client_IntroductionAnswer.js type='text/javascript' language='javascript'></script><script src=Js/Client_ProgressiveAsk.js type='text/javascript' language='javascript'></script>";

            num = Convert.ToInt64(base.Request.QueryString["SID"]);
            uID = ConvertHelper.ConvertLong(this.Session["UserID"]);
            if (this.Session["UserIDClient"] != null)
            {
                uID = ConvertHelper.ConvertLong(this.Session["UserIDClient"]);
            }
            languageClass class3 = new languageClass();

            str3 = "";
            string sSurveyName = "";
            string str5        = "intTargetSID=" + num.ToString() + ";";

            str6    = "";
            str7    = "";
            str8    = "";
            builder = new StringBuilder();
            string str9  = "";
            string str10 = "<table  style='text-align:center;width:100%'><tr><td  style='text-align:center;width:100%'><input type='button' name='beforepagebt' id='beforepagebt' value='上一页' onClick='beforepage()'  style='visibility:hidden' disabled class='BeforePage'><input type='button' name='closepagebt' id='closepagebt' value='关闭' onClick='javascript:self.close()'  style='display:none' class='BeforePage'><input type='submit' name='submitbt' id='submitbt' value=' 提 交 '  style='visibility:hidden' disabled class='SubmitBT'><input type='button' name='nextpagebt' id='nextpagebt' value='下一页' onClick='nextpage()'  style='visibility:hidden' disabled class='NextPage'><input type=hidden name=Point id=Point></td></tr></table>";

            num6 = 12;
            goto Label_0002;
Label_01EF:
            sSurveyName = set.Tables["SurveyTable"].Rows[0][0].ToString();
            num6        = 0x11;
            goto Label_0002;
Label_022B:
            builder.Append("\nintpageamount = " + set.Tables["PageTable"].Rows.Count.ToString() + ";\n");
            str9 = "<style>" + strArray[9] + "</style>";
            num6 = 8;
            goto Label_0002;
            Label_0323 :;
            //command.CommandText = "SELECT ItemHTML,I.IID,ItemName,PageNo,DataFormatCheck,ItemType,Logic,ParentID,OptionAmount,OptionImgModel,ChildID,MultiReject FROM ItemTable I LEFT JOIN ItemTableExpand I1 ON I.IID=I1.IID WHERE I.UID=" + uID.ToString() + " AND I.SID=" + num.ToString() + "  ORDER BY PageNo,Sort";
            //adapter.Fill(set, "ItemTable");
            DataTable ItemTable = new Survey_ClientPs_Layer().GetItemTable(uID.ToString(), num.ToString());

            ItemTable.TableName = "ItemTable";

            //command.CommandText = "SELECT PageNo,PageContent FROM PageTable WHERE UID=" + uID.ToString() + " AND SID=" + num.ToString() + "  ORDER BY PageNo";
            //adapter.Fill(set, "PageTable");
            DataTable PageTable = new Survey_ClientPs_Layer().GetPageTable(uID.ToString(), num.ToString());

            PageTable.TableName = "PageTable";

            //command.CommandText = "SELECT TOP 1 PageHead,PageFoot FROM HeadFoot WHERE UID=" + uID.ToString() + " AND SID=" + num.ToString();
            //adapter.Fill(set, "HeadFoot");
            DataTable HeadFoot = new Survey_ClientPs_Layer().GetHeadFoot(uID.ToString(), num.ToString());

            HeadFoot.TableName = "HeadFoot";

            //command.CommandText = "SELECT TOP 1 SurveyName,TempPage,State,Active,SID,Par,Lan FROM SurveyTable WHERE UID=" + uID.ToString() + " AND SID=" + num.ToString();
            //adapter.Fill(set, "SurveyTable");
            DataTable SurveyTable = new Survey_ClientPs_Layer().GetSurveyTable1(uID.ToString(), num.ToString());

            SurveyTable.TableName = "SurveyTable";

            //command.CommandText = "SELECT  OID,Point,IID,ParentNode,OptionName,IsMatrixRowColumn FROM OptionTable WHERE SID=" + num.ToString() + " AND UID=" + uID.ToString();
            //adapter.Fill(set, "OptionTable");
            DataTable OptionTable = new Survey_ClientPs_Layer().GetOptionTable(uID.ToString(), num.ToString());

            OptionTable.TableName = "OptionTable";

            set.Tables.Add(ItemTable);
            set.Tables.Add(PageTable);
            set.Tables.Add(HeadFoot);
            set.Tables.Add(SurveyTable);
            set.Tables.Add(OptionTable);

            class3.getLanguage();
            num6 = 0;
            goto Label_0002;
Label_04D6:
            builder.Append(this.getItemList(set.Tables["ItemTable"]));
            builder.Append(this.getOptionList(set.Tables["OptionTable"]));
            str11 = str11 + this.getSurveyContent(set.Tables["PageTable"], set.Tables["ItemTable"]);
            str7.IndexOf("CheckCode:1").ToString();
            str7.IndexOf("PSW:1").ToString();
            str5 = str2 + "<script language='javascript' type='text/javascript'>try{window.parent.complateActionWin();}catch(e){}" + builder.ToString() + "</script>";
            num6 = 6;
            goto Label_0002;
Label_05CC:
            builder.Append("var sLanguage='" + class3._arrLanguage[Convert.ToInt32(set.Tables["SurveyTable"].Rows[0]["Lan"]), 0].Replace("'", "\"") + "';");
            strArray = this.getSurveyExpand(num.ToString(), reader);
            builder.Append("sHiddenItem='" + strArray[0] + "';sURLVar='" + strArray[1] + "';sProgressiveAsk='" + strArray[8] + "';");
            str7  = set.Tables["SurveyTable"].Rows[0]["Par"].ToString();
            str11 = "";
            num6  = 9;
            goto Label_0002;
Label_06FE:
            str  = base.Server.MapPath(str + str3);
            num6 = 1;
            goto Label_0002;
Label_079E:
            str3         = this.OpenFile(str, sSurveyName, str5).Replace("surveystyle/", "template/surveystyle/");
            this.sSurvey = str3.Replace("这里是表单代码", str9 + str6 + "<form action='Template/lastpage/005.htm.htm' name='surveyform' id='surveyform' onsubmit='return checkform()'>" + str11 + str10 + "</form>" + str8);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            long          num;
            languageClass class2 = null; //赋初值
            int           num2   = 0;    //赋初值

            string[] strArray = null;    //赋初值
            int      num4;

            goto Label_0023;
Label_0002:
            switch (num4)
            {
            case 0:
                goto Label_0035;

            case 1:
                this.Label1.Text = "非法的输入";
                return;

            case 2:
                short intEC = Convert.ToInt16(base.Request.QueryString["EC"]);
                this.Label1.Text = this.getErrorMessage(intEC, strArray);
                return;

            case 3:
                num2 = class2.getLan(num);
                num4 = 0;
                goto Label_0002;

            case 4:
                if (num <= 0)
                {
                    goto Label_0035;
                }
                num4 = 3;
                goto Label_0002;

            case 5:
                try
                {
                    num = Convert.ToInt64(base.Request.QueryString["SID"]);
                }
                catch
                {
                }
                class2 = new languageClass();
                class2.getLanguage();
                num2 = 1;
                num4 = 4;
                goto Label_0002;
            }
Label_0023:
            num  = 0;
            num4 = 5;
            goto Label_0002;
Label_0035:
            strArray = class2._arrLanguage[num2, 1].Split(new char[] { '|' });
            num4     = 2;
            goto Label_0002;
        }