FarmTrace/Page/Base/BaseExpress/BaseExpressAdd.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.BaseExpress
{
    public partial class BaseExpressAdd : System.Web.UI.Page
    {
        #region 自定义变量
        ICommonRepository CommBll = new CommonRepository();
        BaseExpressModel model = new BaseExpressModel();
        #endregion

        #region 自定义方法

        #region 获取信息并显示到页面
        /// <summary>
        /// 获取信息并显示到页面
        /// </summary>
        /// <param name="ExpressID"></param>
        private void GetBaseExpress(int ExpressID)
        {
            model = CommBll.GetModelByWhere<BaseExpressModel>(model, string.Format("ExpressID={0}", ExpressID));
            if (model.ExpressID > 0)
            {
                this.txtExpressName.Value = model.ExpressName.ToString();
                this.txtLinkTel.Value = model.LinkTel.ToString();
                this.txtLinkMan.Value = model.LinkMan.ToString();
                this.txtRemark.Value = model.Remark.ToString();
                this.txtExpressCode.Value = model.ExpressCode.ToString();
            }
        }

        #endregion

        #endregion

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

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

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

AI 解读

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

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