TaoBaoKe.Web/admin2/config/GongGao.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using TaoBaoKe.Model;
using TaoBaoKe.Bll;
using TaoBaoKe.Configuration;

public partial class admin2_config_GongGao : System.Web.UI.Page
{
    GongGaoBll gongGaoBll = new GongGaoBll();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null && Request.QueryString["gongGaoName"] != null)
        {
            int id = Convert.ToInt32(Request.QueryString["id"]);
            string gongGaoName =Server.UrlDecode(Request.QueryString["gongGaoName"].ToString());
            string str = "";
            GongGaoSearchParameters gongGaoSearchPara = new GongGaoSearchParameters();
            gongGaoSearchPara.title = gongGaoName;
            IList gongGaoList = gongGaoBll.GetList(gongGaoSearchPara, null);
            if (id > 0)
            {

                GongGao gongGaoName1 = gongGaoBll.GetModel(id);
                foreach (GongGao gongGaoModel in gongGaoList)
                {
                    if (gongGaoModel.Title == gongGaoName && gongGaoName1.Title != gongGaoName)
                    {
                        str = "公告名已重复";
                        break;
                    }
                }
            }
            else
            {
                if (gongGaoList.Count > 0)
                {
                    str = "公告名已重复";
                }
            }
            Response.Write(str);
            Response.End();
        }
        if (Request.QueryString["Id"] != null)
        {
            int Id = int.Parse(Request.QueryString["Id"]);
            GongGao gongGaoModel = gongGaoBll.GetModel(Id);
            string str = gongGaoModel.Title + "|";
            str += PublicConst.Html2Text(gongGaoModel.Content) + "|";
            str += gongGaoModel.IsEnable.ToString();
            Response.Write(str);
            Response.End();
后面还有 169 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。