Basf_TCC11/HJGL/FineUIPro.Web/PublicInfo/BaseInfo/DetectionView.aspx.cs

34 lines
1.2 KiB
C#

using System;
using System.Linq;
namespace FineUIPro.Web.PublicInfo.BaseInfo
{
public partial class DetectionView : PageBase
{
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string DetectionRateId = Request.Params["DetectionRateId"];
if (!string.IsNullOrEmpty(DetectionRateId))
{
Model.Base_DetectionRate getDetectionRate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(DetectionRateId);
if (getDetectionRate != null)
{
this.txtDetectionRateCode.Text = getDetectionRate.DetectionRateCode;
this.txtDetectionRateValue.Text = getDetectionRate.DetectionRateValue.ToString();
this.txtRemark.Text = getDetectionRate.Remark;
}
}
}
}
#endregion
}
}