918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/dc15253c/377bd30d/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/dc15253c/377bd30d/App_Web_qxbitei3.1.cs
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\21it\Colums\NewColumnsInfo.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B8DD29AAD0510889BF1FF2C3A6A927F6"

#line 1 "D:\wwwroot\jmxbaogao\wwwroot\21it\Colums\NewColumnsInfo.ashx"


using System;
using System.Data;
using System.Web;
using Com.Huji.DataBll;
using Com.Huji.DataTools;
using Com.Huji.Web.Pager;

namespace Com.Huji.Web.Colums
{
    public class NewColumnsInfo : BaseHandler
    {

        public override void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            if (!ProcessRequestError()) return;
            NewColumnsBll dal = new NewColumnsBll();
            StringText builder = new StringText();
            DataTable dt = null;
            if (String.IsNullOrEmpty(context.Request.QueryString["ismessage"]))
                dt = Converts.ConvertDataTableToTableTree(dal.GetNewColumnsTree(new NewLanguageBll().GetNewLanguageIsBgDefault(0)), "parent_column_id", "column_name", "column_id", "0");
            else
                dt = dal.GetNewColumnsTree(Converts.ToInt32(ColumnType.Message), new NewLanguageBll().GetNewLanguageIsBgDefault(0));

            if (dt != null && dt.Rows.Count != 0)
            {
                builder.Append(1, "<select id=\"txtName\">");
                builder.Append(2, "<option value=\"ClassID\" selected>当前栏目</option>");
                foreach (DataRow o in dt.Rows)
                {
                    //若是是新闻,留言,子栏目
                    if (o["column_type"].ToString() == ColumnType.News || o["column_type"].ToString() == ColumnType.Images ||
                        (!String.IsNullOrEmpty(context.Request.QueryString["ismessage"])) ||
                        (!String.IsNullOrEmpty(context.Request.QueryString["td_chile_class"])))
                        builder.Append(2, "<option value=\"" + o["column_id"] + "\" >" + o["column_name"] + "</option>");
                    else
                        builder.Append(2, "<option value=\"" + o["column_id"] + "\" disabled >" + o["column_name"] + "</option>");
                }
                builder.Append(1, "</select>");
                context.Response.Write(builder.ToString());
            }
            else
            {
                context.Response.Write("");
            }
        }
    }
}

#line default
#line hidden