using System; using System.Web; namespace FineUIPro.Web.HSSE.Meeting { public partial class SafetyLeaderGroupMeetingView : PageBase { #region 定义项 /// /// 主键 /// public string SafetyLeaderGroupMeetingId { get { return (string)ViewState["SafetyLeaderGroupMeetingId"]; } set { ViewState["SafetyLeaderGroupMeetingId"] = value; } } #endregion #region 加载 /// /// 加载页面 /// /// /// protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { btnClose.OnClientClick = ActiveWindow.GetHideReference(); this.SafetyLeaderGroupMeetingId = Request.Params["SafetyLeaderGroupMeetingId"]; if (!string.IsNullOrEmpty(this.SafetyLeaderGroupMeetingId)) { Model.Meeting_SafetyLeaderGroupMeeting SafetyLeaderGroupMeeting = BLL.SafetyLeaderGroupMeetingService.GetSafetyLeaderGroupMeetingById(this.SafetyLeaderGroupMeetingId); if (SafetyLeaderGroupMeeting != null) { this.txtSafetyLeaderGroupMeetingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.SafetyLeaderGroupMeetingId); this.txtSafetyLeaderGroupMeetingName.Text = SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingName; if (SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingDate != null) { this.txtSafetyLeaderGroupMeetingDate.Text = string.Format("{0:yyyy-MM-dd}", SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingDate); } if (!string.IsNullOrEmpty(SafetyLeaderGroupMeeting.CompileMan)) { var user = BLL.UserService.GetUserByUserId(SafetyLeaderGroupMeeting.CompileMan); if (user != null) { this.txtCompileMan.Text = user.UserName; } } if (SafetyLeaderGroupMeeting.AttentPersonNum != null) { this.txtAttentPersonNum.Text = SafetyLeaderGroupMeeting.AttentPersonNum.ToString(); } this.txtSafetyLeaderGroupMeetingContents.Text = HttpUtility.HtmlDecode(SafetyLeaderGroupMeeting.SafetyLeaderGroupMeetingContents); this.txtMeetingHours.Text = Convert.ToString(SafetyLeaderGroupMeeting.MeetingHours); this.txtMeetingHostMan.Text = SafetyLeaderGroupMeeting.MeetingHostMan; this.txtAttentPerson.Text = SafetyLeaderGroupMeeting.AttentPerson; } } } } #endregion #region 附件上传 /// /// 上传附件 /// /// /// protected void btnAttachUrl_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.SafetyLeaderGroupMeetingId)) { PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SafetyLeaderGroupMeetingAttachUrl&menuId={1}&type=-1", this.SafetyLeaderGroupMeetingId, BLL.Const.ProjectSafetyLeaderGroupMeetingMenuId))); } } #endregion //protected void btnAttachUrl1_Click(object sender, EventArgs e) //{ // if (!string.IsNullOrEmpty(this.SafetyLeaderGroupMeetingId)) // { // PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ClassMeetingAttachUrl&menuId={1}&strParam=1&type=-1", this.SafetyLeaderGroupMeetingId, BLL.Const.ProjectSafetyLeaderGroupMeetingMenuId))); // } //} //protected void btnAttachUrl2_Click(object sender, EventArgs e) //{ // if (!string.IsNullOrEmpty(this.SafetyLeaderGroupMeetingId)) // { // PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ClassMeetingAttachUrl&menuId={1}&strParam=2&type=-1", this.SafetyLeaderGroupMeetingId, BLL.Const.ProjectSafetyLeaderGroupMeetingMenuId))); // } //} } }