77 lines
2.7 KiB
C#
77 lines
2.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using BLL;
|
|
|
|
namespace FineUIPro.Web.HSSE.HiddenInspection
|
|
{
|
|
public partial class CheckTwolevelView : PageBase
|
|
{
|
|
#region 定义项
|
|
/// <summary>
|
|
/// 主键
|
|
/// </summary>
|
|
public string CheckTwolevelId
|
|
{
|
|
get
|
|
{
|
|
return (string)ViewState["CheckTwolevelId"];
|
|
}
|
|
set
|
|
{
|
|
ViewState["CheckTwolevelId"] = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#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();
|
|
this.CheckTwolevelId = Request.Params["CheckTwolevelId"];
|
|
if (!string.IsNullOrEmpty(this.CheckTwolevelId))
|
|
{
|
|
var getCheckTwolevel = BLL.Check_CheckTwolevelService.GetCheckTwolevelById(this.CheckTwolevelId);
|
|
if (getCheckTwolevel != null)
|
|
{
|
|
this.txtProjectName.Text=ProjectService.GetProjectNameByProjectId(getCheckTwolevel.ProjectId);
|
|
this.drpLeaderIds.Text = Check_CheckTwolevelService.getLeaderName(getCheckTwolevel.CheckTwolevelId);
|
|
this.txtCheckCode.Text = getCheckTwolevel.CheckCode;
|
|
this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", getCheckTwolevel.CheckDate);
|
|
this.ckIsHoldMeet.Checked = getCheckTwolevel.IsHoldMeet.Value;
|
|
this.txtRequirement.Text = getCheckTwolevel.Requirement;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 附件上传
|
|
/// <summary>
|
|
/// 上传附件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
|
{
|
|
string menuId = Const.ServerCheckTwolevelMenuId;
|
|
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
|
{
|
|
menuId = Const.ServerCheckTwolevelMenuId;
|
|
}
|
|
|
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CheckTwolevelAttachUrl&menuId={1}type=-1", CheckTwolevelId, menuId)));
|
|
}
|
|
#endregion
|
|
}
|
|
} |