private void UniformRulesDataBind()
    {
        DataTable dt = BG_PolicyLogic.GetUniformRulesDT();

        if (dt.Rows.Count > 0)
        {
            string str = dt.Rows[0]["PContent"].ToString();
            HEdit.Text = str;
        }
    }
Esempio n. 2
0
    private void UniformRulesDataBind()
    {
        DataTable dt = BG_PolicyLogic.GetUniformRulesDT();

        if (dt.Rows.Count > 0)
        {
            string str = dt.Rows[0]["PContent"].ToString();
            //plContent.Html = str;
            //KJEditor.Html = str;
            ctext = str;
        }
        else
        {
            btnModUR.Visible = false; X.Msg.Alert("系统提示", "管理员未填写任何口径").Show();
        }
    }
    protected void btnMod_DirectClick(object sender, Ext.Net.DirectEventArgs e)
    {
        DataTable dt        = BG_PolicyLogic.GetUniformRulesDT();
        string    idStr     = dt.Rows[0]["PLID"].ToString();
        int       PLID      = Convert.ToInt32(idStr);
        string    str       = HEdit.Text;
        BG_Policy bg_Policy = BG_PolicyManager.GetBG_PolicyByPLID(PLID);

        bg_Policy.PContent = str;
        //KJEditor.Html = str;
        bg_Policy.PTime = DateTime.Now;
        //消息提示
        BG_PolicyManager.ModifyBG_Policy(bg_Policy);
        UniformRulesDataBind();
        X.Msg.Alert("提示", "修改成功").Show();
        Response.Redirect("PLUniformRules.aspx", true);
    }