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_7dsc66iy.28.cs
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewMessageList.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "ACDF161B513A244F2F4237D3CF08E18C"

#line 1 "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewMessageList.ashx"


/****************************************
 * 版权所有:南昌金启软件有限公司
 * 网    址:www.21it.com
 ****************************************/
using System.Data;
using System.Data.SqlClient;
using System.Reflection;
using System.Web;
using Com.Huji.DataBll;
using Com.Huji.DataTools;
using Com.Huji.Web.Pager;

namespace Com.Huji.Web.Counter
{
    public class NewMessageList : BaseHandler
    {

        private NewLanguageBll languageBll = new NewLanguageBll();
        private NewMessageBll comBll = new NewMessageBll();

        public override void ProcessRequest(HttpContext context)
        {

            context.Response.ContentType = "text/plain";
            if (!ProcessRequestError()) return;
            try
            {
                //显示列表
                StringText builderList = new StringText();

                string languagePath = languageBll.GetNewLanguageModel(Converts.ToInt32(context.Request.QueryString["language_id"])).LanguagePath;
                DataTable dt = comBll.GetNewMessage(Converts.ToInt32(context.Request.QueryString["page_num"]), 1, Converts.ToInt32(context.Request.QueryString["id"]), " and t.column_id=" + context.Request.QueryString["id"] + " and t.language_id=" + context.Request.QueryString["language_id"], out TotalRecord);

                //先行查找所有能找到的数据,若是为0,则暗示找不到任何纪录
                builderList.Append("<div class=\"message_list\">");

                builderList.Append("<div class=\"message_list_title\">");
                if (TotalRecord != 0)
                {
                    builderList.Append("<span>");
                    builderList.Append(ShowLangInfo("MessageTotal", context) + ":<b>" + TotalRecord + "</b> " + ShowLangInfo("CommentUnit", context) + " ");
                    builderList.Append("<a target=\"_blank\" href=\"/FeedBack.aspx?id=" + context.Request.QueryString["id"] + "&hl=" + languagePath + "\">[" + ShowLangInfo("CommentAll", context) + "]</a>");
                    builderList.Append("</span>");
                }
                builderList.Append("</div>");

                if (TotalRecord != 0)
                {
                    builderList.Append("<table id=\"NewMessageGrid\" class=\"message_list\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" >");
                    builderList.Append("<tr class=\"title\">");

                    int j = 0;
                    for (int i = 0; i < dt.Columns.Count; i++)
                    {
                        if ((dt.Columns[i].ColumnName == "message_id" || dt.Columns[i].ColumnName == "language_name" || dt.Columns[i].ColumnName == "createdate" || dt.Columns[i].ColumnName == "status") || j == Converts.ToInt32(context.Request.QueryString["col_num"]))
                            continue;

                        builderList.Append("<td align=\"center\">");
                        builderList.Append(Converts.SubString(dt.Columns[i].ColumnName, ";" + languagePath + "=\"", "\";"));
                        builderList.Append("</td>");
                        j++;
                    }

                    //builder.Append(3, "<td  style=\"width: 60px\" align=\"center\">");
                    //builder.Append(4, ShowLangInfo("MessageSetup"));
                    //builder.Append(3, "</td>");
                    builderList.Append("</tr>");

                    foreach (DataRow row in dt.Rows)
                    {
                        j = 0;
                        builderList.Append("<tr>");

                        for (int i = 0; i < dt.Columns.Count; i++)
                        {
                            if ((dt.Columns[i].ColumnName == "message_id" || dt.Columns[i].ColumnName == "language_name" || dt.Columns[i].ColumnName == "createdate" || dt.Columns[i].ColumnName == "status") || j == Converts.ToInt32(context.Request.QueryString["col_num"]))
                                continue;
                            builderList.Append("<td align=\"center\">");
                            //if (Converts.FileExists(row[i].ToString()))
                            //    builderList.Append("<a href=\"" + row[i].ToString() + "\" target=\"_blank\">" + Converts.SubFileExt(row[i].ToString(), '/') + "</a>");
                            //else
                            //    builderList.Append(row[i].ToString());

                            if (dt.Columns[i].ColumnName.IndexOf("message_1") != -1)
                            {
                                builderList.Append("<a href=\"/NewsView.aspx?massage_id=" + row["message_id"].ToString() + "&hl=" + languagePath + "\" target=\"_blank\">" + row[i].ToString() + "</a>");
                            }
                            else
                            {
                                if (Converts.FileExists(row[i].ToString()))
                                    builderList.Append("<a href=\"" + row[i].ToString() + "\" target=\"_blank\">" + (Converts.IsPicture(context.Server.MapPath(row[i].ToString())) ? "<img src=" + row[i].ToString() + " width='40px' height='30px'>" : Converts.SubFileExt(row[i].ToString(), '/')) + "</a>");
                                else
                                    builderList.Append(row[i].ToString());
                            }
                            builderList.Append("</td>");
                            j++;
                        }

                        //builder.Append(3, "<td align=\"center\">");
                        //builder.Append(4, "<a href=\"#\" onclick=\"popNew('../FileCabinets/WokFileMax.aspx?message_id=" + row["message_id"] + "&column_id=" + ColumnId + "&language_path=" + LanguagePath + "','',800,650);return false;\">" + ShowLangInfo("MessageReceive", LanguagePath) + "</a>");
                        //builder.Append(3, "</td>");
                        builderList.Append("</tr>");
                    }
                    builderList.Append("</table>");
                }
                else
                {
                    builderList.Append(ShowLangInfo("NoData", context));
                }
                builderList.Append("</div>");

                context.Response.Write("document.write('" + builderList.ToString() + "');");

            }
            catch (SqlException ex)
            {
                Logger.Error(ex.ToString());
                throw ex;
            }
        }
    }
}

#line default
#line hidden