using System;
namespace FineUIPro.Web.common.ProjectSet
{
public partial class ProjectPictureView : PageBase
{
#region 加载
///
/// 加载页面
///
///
///
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
}
}