Basf_TCC7/HJGL/FineUIPro.Web/common/ProjectSet/ProjectPictureView.aspx.cs

49 lines
1.9 KiB
C#

using System;
namespace FineUIPro.Web.common.ProjectSet
{
public partial class ProjectPictureView : 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 projectPictureId = Request.Params["ProjectPictureId"];
if (!string.IsNullOrEmpty(projectPictureId))
{
Model.Project_ProjectPicture projectPicture = BLL.Project_ProjectPictureService.GetProjectPictureById(projectPictureId);
if (projectPicture != null)
{
this.txtProjectPictureCode.Text = projectPicture.ProjectPictureCode;
this.txtProjectPictureName.Text = projectPicture.ProjectPictureName;
if (projectPicture.CreateDate.HasValue)
{
this.txtCreateDate.Text = string.Format("{0:yyyy-MM-dd}", projectPicture.CreateDate);
}
if (projectPicture.IsShow == true)
{
this.cbIsShow.Checked = true;
}
else
{
this.cbIsShow.Checked = false;
}
this.txtRemark.Text = projectPicture.Remark;
if (!string.IsNullOrEmpty(projectPicture.AttachUrl))
{
imgPhoto.ImageUrl = projectPicture.AttachUrl;
}
}
}
}
}
#endregion
}
}