105 lines
3.4 KiB
C#
105 lines
3.4 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;
|
|
using Model;
|
|
using System.IO;
|
|
|
|
namespace FineUIPro.Web.common.Notice
|
|
{
|
|
public partial class NoticeSignParticular : PageBase
|
|
{
|
|
#region 定义项
|
|
public string NoticeId
|
|
{
|
|
get
|
|
{
|
|
return (string)ViewState["NoticeId"];
|
|
}
|
|
set
|
|
{
|
|
ViewState["NoticeId"] = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 办理类型
|
|
/// </summary>
|
|
public string State
|
|
{
|
|
get
|
|
{
|
|
return (string)ViewState["State"];
|
|
}
|
|
set
|
|
{
|
|
ViewState["State"] = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 加载页面
|
|
/// <summary>
|
|
/// 加载页面
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
|
|
this.NoticeId = Request.QueryString["noticeId"];
|
|
State = BLL.Common_NoticeService.GetNoticeByNoticeId(NoticeId).State;
|
|
|
|
Model.Common_Notice notice = BLL.Common_NoticeService.GetNoticeByNoticeId(NoticeId);
|
|
if (notice != null)
|
|
{
|
|
this.txtNoticeCode.Text = notice.NoticeCode;
|
|
this.txtNoticeTitle.Text = notice.NoticeTitle;
|
|
if (notice.ClearUpMan != null)
|
|
{
|
|
Model.Sys_User clearUpMan = BLL.Sys_UserService.GetUsersByUserId(notice.ClearUpMan);
|
|
if (clearUpMan != null)
|
|
{
|
|
this.txtClearUpMan.Text = clearUpMan.UserName;
|
|
}
|
|
}
|
|
if (notice.IsRelease == true)
|
|
{
|
|
this.txtIsRelease.Text = "已发布";
|
|
}
|
|
this.txtMainContent.Text = notice.MainContent;
|
|
HyperLink hlAttachUrl = new HyperLink();
|
|
//string url = string.Empty;
|
|
//this.FullFilePath = notice.AttachUrl;
|
|
this.txtProjects.Text = notice.AccessProjectText;
|
|
this.txtSystems.Text = notice.AccessSystemText;
|
|
this.Grid1.DataSource = from x in Funs.DB.View_Common_NoticeSign where x.NoticeId == NoticeId && x.SinaDate != null select x;
|
|
this.Grid1.DataBind();
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 上传附件资源
|
|
/// <summary>
|
|
/// 上传附件资源
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
|
{
|
|
string menuId = string.Empty;
|
|
if (this.CurrUser.LoginSystemId == Const.System_1)
|
|
{
|
|
menuId = BLL.Const.Common_NoticeMenuId;
|
|
}
|
|
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Notice&menuId={1}", NoticeId, menuId)));
|
|
}
|
|
#endregion
|
|
}
|
|
} |