protected void Page_Load(object sender, EventArgs e)
    {
        this.progCode = IMBC.FW.Util.WebUtil.GetRequestQueryString("progCode", "");
        this.receiver = IMBC.FW.Util.WebUtil.GetRequestQueryString("receiver", "");

        ArrayList al = this.getUser();

        for (int i = 0; i < al.Count; i++)
        {
            if (receiverNm.Text != "")
            {
                receiverNm.Text += ", ";
            }
            receiverNm.Text += ((NoteUser)al[i]).userNm;
        }

        if (!IsPostBack)
        {
            NoteData         data = new NoteData();
            RadioProgramInfo prog = data.RetrieveProgramInfo(this.progCode);
            ViewState["subClassCode"] = prog.subClassCode;
            this.progTitle.Text       = prog.progTitle;
            this.progImg.ImageUrl     = NoteUtil.GetProgImg(this.progCode, prog.progImage);
        }
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.progCode = WebUtil.replaceSQLInjections(IMBC.FW.Util.WebUtil.GetRequestQueryString("progCode", ""));
        this.noteID   = int.Parse(IMBC.FW.Util.WebUtil.GetRequestQueryString("noteID", "0"));

        this.uInfo = new UserInfo();

        if (!IsPostBack)
        {
            userNm.Text = uInfo.UserName;

            NoteData data = new NoteData();
            receiverNm.Text = data.RetrieveProgramInfo(this.progCode).progTitle;
        }
    }
예제 #3
0
    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);
        }
    }