FarmTrace/Page/Base/BaseSplitMethod/BaseSplitProductAdd.aspx.cs

(开头部分) 4KB

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

using DataBaseLibrary.Utility;
using Model;
using Repository.impl;
using Repository.interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FarmTrace.Page.Base.BaseSplitMethod
{
    public partial class BaseSplitProductAdd : System.Web.UI.Page
    {
        #region 自定义变量
        ICommonRepository CommBll = new CommonRepository();
        BaseSplitProductModel model = new BaseSplitProductModel();
        #endregion

        #region 自定义方法

        #region 获取信息并显示到页面
        /// <summary>
        /// 获取信息并显示到页面
        /// </summary>
        /// <param name="ProductID"></param>
        private void GetBaseSplitProduct(int ProductID)
        {
            model = CommBll.GetModelByWhere<BaseSplitProductModel>(model, string.Format("ProductID={0}", ProductID));
            if (model.ProductID > 0)
            {
                this.txtProductCode.Value = model.ProductCode.ToString();
                this.txtProductName.Value = model.ProductName.ToString();
                this.txtProductNum.Value = model.ProductNum.ToString();
            }
        }

        #endregion

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int ProductID = Common.GetQueryInt("ProductID");
                int SplitMethodID = Common.GetQueryInt("SplitMethodID");
                if (ProductID > 0)
                {
                    GetBaseSplitProduct(ProductID);
                }
            }
        }

        protected void Unnamed_ServerClick(object sender, EventArgs e)
        {
            int ProductID = Common.GetQueryInt("ProductID");
            int SplitMethodID = Common.GetQueryInt("SplitMethodID");
            bool result = false;
后面还有 54 行代码,购买后查看完整代码

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

AI 解读

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

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