protected void Page_Load(object sender, EventArgs e) { this.progCode = IMBC.FW.Util.WebUtil.GetRequestQueryString("progCode", "RAMFM300"); this.nCurPage = int.Parse(IMBC.FW.Util.WebUtil.GetRequestQueryString("curPage", "1")); this.memoType = int.Parse(IMBC.FW.Util.WebUtil.GetRequestQueryString("memoType", "0")); this.search = IMBC.FW.Util.WebUtil.GetRequestQueryString("search", ""); this.searchWord = IMBC.FW.Util.WebUtil.GetRequestQueryString("searchWord", ""); this.stDt = IMBC.FW.Util.WebUtil.GetRequestQueryString("stDt", ""); this.spDt = IMBC.FW.Util.WebUtil.GetRequestQueryString("spDt", ""); this.newCnt.Text = IMBC.FW.Util.WebUtil.GetRequestQueryString("newCnt", ""); if (this.progCode.Substring(0, 4) == "RDMB") { this.progCode = NoteUtil.GetParentCode(this.progCode); } if (!IsPostBack) { NoteData data = new NoteData(); UserInfo uInfo = new UserInfo(); if (data.IsAdminUserDB(this.progCode, uInfo.UserID) == false) { Response.Write("관리자가 아닙니다."); Response.End(); } this.progTitle.Text = data.RetrieveProgramInfo(this.progCode).progTitle; if (newCnt.Text == "") { this.newCnt.Text = data.CountMemoNewInfo(this.progCode).ToString(); } ListDataView ldv = data.RetrieveMemoAdminList(this.progCode, this.memoType, search, searchWord, stDt, spDt, this.nCurPage, this.nPageRow); this.nTotalRecord = ldv.TotalCount; this.listRepeater.DataSource = ldv.DV; this.listRepeater.DataBind(); string pagingURL = "RetrieveMemoAdminList.aspx?curPage={0}&progCode=" + this.progCode + "&memoType=" + memoType + "&seach=" + search + "&searchWord=" + searchWord + "&stDt=" + stDt + "&spDt=" + spDt + "&newCnt=" + this.newCnt.Text; this.pageNavigator.Text = NoteUtil.SetNavigator(this.nCurPage, this.nTotalRecord, this.nPageRow, pagingURL); } }