CmsWeb/Admin/wx/msgedit.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class Admin_order_orderedit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //登录验证
            adminUser.GetLoginState();
            //登录信息
            HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies["admin"];

            if (cookie != null)
            {
                Application["adminname"] = (string)cookie.Values["adminname"];
            }
            else if (Session["adminname"] != null)
            {
                Application["adminname"] = (string)Session["adminname"];
            }
            int id = Convert.ToInt32(this.Request.QueryString["id"] ?? "0");//订单ID
            string action = this.Request.QueryString["action"] ?? "";//编辑:edit 添加:add
            switch (action)
            {
                case "add":


                    break;
                case "Edit":
                    this.bind_date(id);// 赋值操作信息
                    break;
            }

        }
    }
    public void bind_date(int _id)
    {
        Cms.BLL.wx_msg bll = new Cms.BLL.wx_msg();
        DataTable dt = bll.GetList("id="+_id).Tables[0];
        if (dt.Rows.Count > 0)
        {
            tborderNumber.Text = dt.Rows[0]["orderNumber"].ToString();
            tbinfo.Value = dt.Rows[0]["info"].ToString();
          
        }
    }
 

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        Cms.BLL.wx_msg bll = new Cms.BLL.wx_msg();
        Cms.Model.wx_msg bml = new Cms.Model.wx_msg();
        string action = this.Request.QueryString["action"] ?? "";//编辑:edit 添加:add
        int id = Convert.ToInt32(this.Request.QueryString["id"] ?? "0");
后面还有 37 行代码,购买后查看完整代码

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

AI 解读 AI

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

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