SenBiTeSolution.UI/ManageWeb/ProductDetails.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SenBiTeSolution.DAL;
using SenBiTeSolution.Common;
using System.IO;

namespace SenBiTeSolution.UI.ManageWeb
{
    public partial class ProductDetails : System.Web.UI.Page
    {
        protected SenBiTeSolution.Model.tbl_Product productModel;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindProductType();

                SetVlue();
            }
        }

        protected void BindProductType()
        {
            tbl_ProductType productType = new tbl_ProductType();
            productType.BindDropDownList(ddl_productType);
        }

        //赋值
        protected void SetVlue()
        {
            int viewId = 0;
            if (!string.IsNullOrEmpty(Request.QueryString["viewId"]))
            {
                viewId = Convert.ToInt32(Request.QueryString["viewId"]);

                productModel = new Model.tbl_Product();   
                tbl_Product product = new tbl_Product();

                productModel = product.GetProductModel(viewId);

                txt_BianHao.Text = productModel.BianHao;
                txt_CaiZhi.Text = productModel.CaiZhi;
                txt_ChangHe.Text = productModel.ChangHe;
                

                ddl_productType.SelectedValue = productModel.Type_Id.ToString();
            }
        }

        //修改
        protected void btn_Add_Click(object sender, EventArgs e)
        {
            tbl_Product product = new tbl_Product();         
            SenBiTeSolution.Model.tbl_Product productModel_01;
后面还有 79 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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