Web/admin/GoodsEdit.aspx.cs

(开头部分) 15KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Seven.Common;
using System.IO;
using System.Data;
using System.Text;
namespace Web.admin
{
    public partial class GoodsEdit : ManageBasePage
    {
        BLL.goods bll = new BLL.goods();
        BLL.goods_shopinfo shopbll = new BLL.goods_shopinfo();
        string strLinkUrl = "GoodsManage.aspx";
        public string strDetails = "";
        public string goodscode = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
            
                MODEL.session_manage managemodel = new MODEL.session_manage();
                managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;

                if (managemodel == null)
                {
                    Response.Redirect("~/admin/Login.aspx");
                }
                else
                {
                    if (managemodel.classid == 1)
                    { }
                    else
                    {
                        Response.Redirect("~/admin/main.aspx");
                    }
                }


                BindGoodsClass(ddlgoodsclass);
                BindGoodsBrand(ddlbrand);

                string strID = Request["id"];
              
                if (!string.IsNullOrEmpty(strID))
                {
                    MODEL.goods model = bll.GetModel(Convert.ToInt16(strID));

                    txtApplicableuser.Text = model.applicableuser;
                    txtefficacy.Text = model.efficacy;
                    txtname_cn.Text = model.name_cn;
                    //txtname_en.Text = model.name_en;
                    txtOrderby.Text = model.orderby.ToString();
                    txtorigin.Text = model.origin;

                    txtSpecial_note.Text = model.special_note;
                    txtspecifications.Text = model.specifications;
后面还有 308 行代码,购买后查看完整代码

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

AI 解读

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

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