FarmTrace/Page/Base/BaseProductionRecord/BaseProductionRecordAdd.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.BaseProductionRecord
{
public partial class BaseProductionRecordAdd : System.Web.UI.Page
{
#region 自定义变量
ICommonRepository CommBll = new CommonRepository();
BaseProductionRecordModel model = new BaseProductionRecordModel();
#endregion
#region 自定义方法
#region 获取信息并显示到页面
/// <summary>
/// 获取信息并显示到页面
/// </summary>
/// <param name="ProductionRecordID"></param>
private void GetBaseProductionRecord(int ProductionRecordID)
{
model = CommBll.GetModelByWhere<BaseProductionRecordModel>(model, string.Format("ProductionRecordID={0}", ProductionRecordID));
if (model.ProductionRecordID > 0)
{
this.txtProductionRecordName.Value = model.ProductionRecordName.ToString();
this.txtDisplayName.Value = model.DisplayName.ToString();
cmbStatus.Value = model.Status.ToString();
//this.cmbStatus.SelectedIndex = model.Status.ToString();
//this.txtStatus.Value = model.Status.ToString();
this.txtRemark.Value = model.Remark.ToString();
}
}
#endregion
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int ProductionRecordID = Common.GetQueryInt("ProductionRecordID");
if (ProductionRecordID > 0)
{
GetBaseProductionRecord(ProductionRecordID);
}
}
}
protected void Unnamed_ServerClick(object sender, EventArgs e)
{
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
