예제 #1
0
    protected void btnSave1_Click(object sender, System.EventArgs e)
    {
        NoteData data = new NoteData();

        string strText = IMBC.FW.Util.WebUtil.PreventHTML(this.txtComment1.Text);

        strText = strText.Replace("'", "''");
        strText = strText.Replace(";", "");


        data.RegisterMemoInfo(this.progCode_FM4U, 1, this.hdnFontColor.Value, uInfo.Uno, uInfo.UserID, uInfo.UserName, strText, 0);

        Response.Redirect("MiniMsgMor.aspx?progCode=" + this.progCode_STFM, true);
    }
예제 #2
0
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        NoteData data = new NoteData();

        if (!this.uInfo.IsIdentity())
        {
            //본인 확인제 관련 추가 함
            uInfo.RedirectIdentityPopupPage();
        }

        string strText = IMBC.FW.Util.WebUtil.PreventHTML(this.txtComment.Text);

        strText = strText.Replace("'", "''");
        strText = strText.Replace(";", "");


        data.RegisterMemoInfo(this.progCode, 1, this.hdnFontColor.Value, uInfo.Uno, uInfo.UserID, uInfo.UserName, strText, 0);

        Response.Redirect("RetrieveMemoList.aspx?progCode=" + this.progCode, true);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        UserInfo uInfo    = new UserInfo();
        string   progCode = IMBC.FW.Util.WebUtil.GetRequestForm("sPrgID", "");

        int    uno     = uInfo.Uno;
        string userID  = uInfo.UserID;
        string userNm  = uInfo.UserName;
        string comment = IMBC.FW.Util.WebUtil.GetRequestForm("TEXT", "");

        comment = IMBC.FW.Util.WebUtil.PreventHTML(comment);


        if (progCode == "" || uno == 0 || userID == "" || userNm == "" || comment == "")
        {
            Response.End();
        }
        else
        {
            if (System.Web.Configuration.WebConfigurationManager.AppSettings["pmstart"].ToString() == "ON")
            {
                Response.Write("OK$");
                Response.Write("RETURN|0$");
                Response.Write("MSG|'죄송합니다. 지금은 시스템 점검중입니다.$");
                //				Response.Status = "200 OK";
                Response.End();
            }

            NoteData data = new NoteData();
            progCode = NoteUtil.GetParentCode(progCode);


            bool bXCharCheck = false;


            if (bXCharCheck)
            {
                Response.Write("OK$");
                Response.Write("RETURN|0$");
                Response.Write("MSG|'비속어를 입력할 수 없습니다.$");
                //				Response.Status = "200 OK";
                Response.End();
            }
            else
            {
                if (CheckNum(comment))
                {
                    Response.Write("OK$");
                    Response.Write("RETURN|0$");
                    Response.Write("MSG|'입력하신 숫자는 개인정보에 해당 하는 숫자이므로 입력이 불가능합니다.$");
                    //				Response.Status = "200 OK";
                    Response.End();
                }
                else
                {
                    if (data.RegisterMemoInfo(progCode, 3, "#000000", uno, userID, userNm, comment, 0))
                    {
                        //					Response.Write("OK\r\n");
                        //					Response.Write("RETURN VALUE : 1/전송이 완료되었습니다.");
                        //					//				Response.Status = "200 OK";
                        //					Response.End();
                        //
                        if (!uInfo.IsIdentity())
                        {
                            Response.Write("OK$");
                            Response.Write("RETURN|1$");
                            Response.Write("MSG|전송이 완료되었습니다.         '제한적 본인확인제' 시행으로 본인확인이 필요합니다.$");
                            Response.Write("POPUP_ONCE|http://login.imbc.com/iMBC/CleanCampaign/IdentiFormPop.asp$");
                            Response.End();
                        }
                        else
                        {
                            Response.Write("OK$");
                            Response.Write("RETURN|1$");
                            Response.Write("MSG|전송이 완료되었습니다.$");
                            Response.End();
                        }
                    }
                    else
                    {
                        Response.Write("OK$");
                        Response.Write("RETURN|0$");
                        Response.Write("MSG|'전송이 실패하였습니다.$");
                        //				Response.Status = "200 OK";
                        Response.End();
                    }
                }
            }
        }
    }