安全不符合项清单
This commit is contained in:
@@ -0,0 +1,134 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.Check.HSE
|
||||
{
|
||||
public partial class CheckProblemView : PageBase
|
||||
{
|
||||
#region 公共字段
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string CheckId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["CheckId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["CheckId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 图片是否可以编辑 -1查看 0编辑
|
||||
/// </summary>
|
||||
public int QuestionImg
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToInt32(ViewState["QuestionImg"]);
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["QuestionImg"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 页面初始化加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
CheckId = Request.Params["CheckId"];
|
||||
|
||||
var model = CheckProblemSafetyService.GetCheckProblemById(this.CheckId);
|
||||
if (model != null)
|
||||
{
|
||||
this.txtUnitName.Text = model.UnitName;
|
||||
this.txtProjectName.Text = model.ProjectName;
|
||||
var classify = SafetyProblemClassifyService.GetClassifyById(model.ClassifyId);
|
||||
if (classify != null)
|
||||
{
|
||||
this.txtClassifyName.Text = classify.ClassifyName;
|
||||
}
|
||||
var classifyItem = SafetyProblemClassifyItemService.GetClassifyItemById(model.ClassifyItemId);
|
||||
if (classifyItem != null)
|
||||
{
|
||||
this.txtClassifyItemName.Text = classifyItem.ClassifyItemName;
|
||||
}
|
||||
var nature = SafetyProblemNatureService.GetNatureById(model.NatureId);
|
||||
if (nature != null)
|
||||
{
|
||||
this.txtNatureName.Text = nature.NatureName;
|
||||
}
|
||||
var natureItem = SafetyProblemNatureItemService.GetNatureItemById(model.NatureItemId);
|
||||
if (natureItem != null)
|
||||
{
|
||||
this.txtNatureItemContent.Text = natureItem.NatureItemContent;
|
||||
}
|
||||
this.txtAddress.Text = model.Address;
|
||||
this.rblUnitType.SelectedValue = model.UnitType;
|
||||
this.txtAssemblyName.Text = model.AssemblyName;
|
||||
this.txtDescription.Text = model.Description;
|
||||
this.txtRemark.Text = model.Remark;
|
||||
this.txtCheckTeamUser.Text = model.CheckTeamUser;
|
||||
this.txtRectificationUserName.Text = model.RectificationUserName;
|
||||
this.txtPMUserName.Text = model.PMUserName;
|
||||
this.txtCompileManName.Text = model.CompileManName;
|
||||
if (model.CheckDate != null)
|
||||
{
|
||||
this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", model.CheckDate);
|
||||
}
|
||||
if (model.LimitDate != null)
|
||||
{
|
||||
this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", model.LimitDate);
|
||||
}
|
||||
if (model.CloseTime != null)
|
||||
{
|
||||
this.txtCloseTime.Text = string.Format("{0:yyyy-MM-dd}", model.CloseTime);
|
||||
}
|
||||
if (model.CompileDate != null)
|
||||
{
|
||||
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", model.CompileDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/CheckProblemSafety&menuId={1}", this.CheckId, BLL.Const.SafetyCheckProblemMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
//protected void imgBtnFile_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={1}&path=FileUpload/CheckProblemSafety&menuId={2}", QuestionImg, this.hdCheckControlCode.Text, BLL.Const.SafetyCheckProblemMenuId)));
|
||||
//}
|
||||
|
||||
|
||||
|
||||
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user