using SiteCore; using SQLData; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Utils.Serialization; public partial class Center : BasePage { string postCode = ""; //职位ID protected override void OnPreInit(EventArgs e) { _repTitle = "设计列表"; PmTag = "center"; _keyFilterVisible = false; _addVisible = false; _filterItem = "all"; } protected void Page_Load(object sender, EventArgs e) { if (_permissions.Contains("offduty")) { btnOffduty.Visible = true; } else { btnOffduty.Visible = false; } if (!IsPostBack) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("select * from view_erpnoticecell where uid={0} and IsRead=0 and DATEDIFF(MINUTE,NoticeTime,getdate())>0 order by id desc;", CurrentUser.UserID); DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString()); AppendScript("noticeData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";"); AppendScript("userPostCode='" + CurrentUser.UserPost.Post.Code + "';"); //StringBuilder sql = new StringBuilder(); //int userId = CurrentUser.UserID; } } }