示例#1
0
    /// <summary>
    /// 공지사항 조회
    /// </summary>
    private void SetFAQGrid()
    {
        Biz_Bsc_Faq objBSC = new Biz_Bsc_Faq();

        this.ugrdFAQ.Clear();
        this.ugrdFAQ.DataSource = objBSC.SelectBscFaqAll();
        this.ugrdFAQ.DataBind();
    }
示例#2
0
    private void SetFaqGrid()
    {
        Biz_Bsc_Faq objBSC = new Biz_Bsc_Faq();

        this.ugrdNotice.Clear();
        this.ugrdNotice.DataSource = objBSC.SelectBscFaqAll(txtSearchText.Text);
        this.ugrdNotice.DataBind();
    }
示例#3
0
    public bool TxrNotice()
    {
        if (this.IType == "A" || this.IType == "U")
        {
            if (!this.ValidateFormData())
            {
                return(false);
            }
        }

        Biz_Bsc_Faq objBSC = new Biz_Bsc_Faq();

        int intRtn = 0;

        if (this.IType == "A")
        {
            if (objBSC.Insert_DB(CategoryId, txtSubject.Text, txtContent.Value, gUserInfo.Emp_Ref_ID) == "")
            {
                intRtn = 1;
            }
        }
        if (this.IType == "U")
        {
            if (objBSC.Update_DB(int.Parse(FAQ_REF_ID), CategoryId, txtSubject.Text, txtContent.Value, gUserInfo.Emp_Ref_ID) == "")
            {
                intRtn = 1;
            }
        }
        if (this.IType == "D")
        {
            if (objBSC.Delete_DB(int.Parse(FAQ_REF_ID), gUserInfo.Emp_Ref_ID) == "")
            {
                intRtn = 1;
            }
        }

        return((intRtn > 0) ? true : false);
    }
示例#4
0
    public void SetNFaqInfo()
    {
        Biz_Bsc_Faq objBSC = new Biz_Bsc_Faq();
        DataTable   dt     = objBSC.SelectBscFaqIdxAll(int.Parse(FAQ_REF_ID));
        int         emp    = 0;

        if (dt.Rows.Count > 0)
        {
            lblCreateDate.Text = string.Format("{0:yyyy-MM-dd}", dt.Rows[0]["CREATE_DATE"]);
            txtSubject.Text    = dt.Rows[0]["FAQ_QUESTION"].ToString();
            txtContent.Value   = dt.Rows[0]["FAQ_ANSWER"].ToString();
            ltrContent.Text    = dt.Rows[0]["FAQ_ANSWER"].ToString();

            emp = int.Parse(dt.Rows[0]["CREATE_USER"].ToString());
            EmpInfos objEMP = new EmpInfos(emp);
            lblWriterName.Text = objEMP.Emp_Name;
        }

        if (gUserInfo.Emp_Ref_ID == emp)
        {
            txtContent.Visible      = true;
            leftLayer.Visible       = false;
            this.iBtnSave.Visible   = false;
            this.iBtnModify.Visible = true;
            this.iBtnDelete.Visible = true;
        }
        else
        {
            txtContent.Visible      = false;
            leftLayer.Visible       = true;
            this.iBtnSave.Visible   = false;
            this.iBtnModify.Visible = false;
            this.iBtnDelete.Visible = false;

            // int intRtn = objBSC.AddClickCount(this.INoticeRefID, gUserInfo.Emp_Ref_ID);
        }
    }