⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glreadmail.aspx.cs

📁 易想商城系统
💻 CS
字号:
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 System.Collections.Generic;
using YXShop.Common;
using Shop.Web.UI;
namespace YXShop.Web.Admin.Accessories
{
    public partial class GlReadMail : System.Web.UI.Page
    {
        BasePage bp = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!PowerTree.PowerPass.isPass("", PowerTree.PowerPanel.PowerType.look)) 
            {
                bp = new BasePage();
                bp.PageError("对不起,你没有查看该页面的权限!", "../index.aspx");
            }
            if (!IsPostBack)
            {
                YXShop.BLL.Shortnews dataCA = new YXShop.BLL.Shortnews();
                if (Request["Pro_ID"] != null)
                {
                    List<YXShop.Model.Shortnews> data = dataCA.GetId(Convert.ToInt32(Request["Pro_ID"]));
                    lbfjr.Text = data[0].NM_Addresser;
                    Lbsjr.Text = data[0].NM_Consignee;
                    Labxszt.Text = data[0].NM_Headline;
                    Labfssj.Text = data[0].NM_SendoutTime.ToString();
                    Labxxlr.Text = data[0].NM_Text;
                    YXShop.Model.Shortnews datak = new YXShop.Model.Shortnews();
                    datak.NM_ID = Convert.ToInt32(Request["Pro_ID"]);
                    datak.NM_Read = 1;
                    dataCA.Amendred(datak);
                }
            }

        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            if (Request["type"].ToString() == "1")
            {
                HttpContext.Current.Response.Redirect("MyNews.aspx");
            }
            else
            {
                HttpContext.Current.Response.Redirect("NewsManage.aspx");
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -