FarmTrace/Page/Base/BaseSheep/BaseSheepAdd.aspx.cs

(开头部分) 8KB

这里只显示每个文件的开头 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.BaseSheep
{
    public partial class BaseSheepAdd : System.Web.UI.Page
    {
        #region 自定义变量
        ICommonRepository CommBll = new CommonRepository();
        BaseSheepModel model = new BaseSheepModel();
        #endregion

        #region 自定义方法

        #region 获取信息并显示到页面
        /// <summary>
        /// 获取信息并显示到页面
        /// </summary>
        /// <param name="SheepID"></param>
        private void GetBaseSheep(int SheepID)
        {
            model = CommBll.GetModelByWhere<BaseSheepModel>(model, string.Format("SheepID={0}", SheepID));
            if (model.SheepID > 0)
            {
                //this.txtBuildDays.Value = model.BuildDays.ToString();
                //this.txtweanWeight.Value = model.weanWeight.ToString();
                //this.txtLeaveDate.Value = model.LeaveDate.ToString();
                //this.txtLeaveType.Value = model.LeaveType.ToString();
                //this.txtFID.Value = model.FID.ToString();
                //this.txtMID.Value = model.MID.ToString();
                //this.txtBuildType.Value = model.BuildType.ToString();
                this.txtBirthday.Value = model.Birthday.ToString();
                this.txtBirthWeight.Value = model.BirthWeight.ToString();
                this.txtDeathTime.Value = model.DeathTime.ToString();
                this.txtMemo.Value = model.Memo.ToString();
                this.cbxSheepStatus.Value = model.SheepStatus.ToString();
                //this.txtIsAdoption.Value = model.IsAdoption.ToString();
                this.txtSheepCode.Value = model.SheepCode.ToString();
                this.cbxSplitMethod.Value = model.SplitMethodID.ToString();
                //this.txtIsAdoptionAll.Value = model.IsAdoptionAll.ToString();
                this.cbxFlocks.Value = model.FlocksID.ToString();
                this.txtSheepECode.Value = model.SheepECode.ToString();
                this.cbxGender.Value = model.Gender.ToString();
                this.cbxBreeds.Value = model.BreedsID.ToString();
                this.txtBuildDate.Value = model.BuildDate.ToString();
            }
        }

        #endregion

        #endregion

后面还有 116 行代码,购买后查看完整代码

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

AI 解读

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

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