Admin/AdmView.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BasketBallShop.BLL;
using BasketBallShop.Model;

namespace BasketBallShop.Admin
{
    public partial class AdmView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int zid = int.Parse(Request.Params["zid"]);
                aroundBLL bll = new aroundBLL();
                Around b = bll.GetAround(zid);
                txtZid.Text = b.zid;
                txtZname.Text = b.zname;
                txtTypeid.Text = b.typeid.ToString();
                txtdate.Text = b.zdate.ToString();
                txtmj.Text = b.zmj;
                txtyj.Text = b.zyj.ToString();
                txtinprice.Text = b.zinprice.ToString();
                zsale.Text = b.zsale.ToString();
                txttotal.Text = b.ztotal.ToString();
                if (b.zdate == null)
                { txtdate.Text = ""; }
                else { txtdate.Text = b.zdate.ToString(); }
                txtys.Text = b.zys.ToString();
                imgCover.ImageUrl = b.cover;


            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            aroundBLL bll = new aroundBLL();
            Around b = new Around();
            b.zid = txtZid.Text;
            b.zname = txtZname.Text;
            b.typeid = Convert.ToInt32(txtTypeid.Text);
            b.zmj = txtmj.Text;
            b.zdate = Convert.ToDateTime(txtdate.Text);
            b.zyj = Convert.ToDecimal(txtyj.Text);
            b.zinprice = Convert.ToDecimal(txtinprice.Text);
            b.zsale = Convert.ToDecimal(zsale.Text);
            b.zys = Convert.ToInt32(txtys.Text);
            b.ztotal = Convert.ToInt32(txttotal.Text);
            b.cover = imgCover.ImageUrl;
            if (bll.UpdateAround(b))
            {
                
                Response.Write("<script>alert('修改成功!')</script>");
            }
            else
后面还有 22 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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