/// <summary>
    /// win弹窗的修改更新
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void BtnMod_DirectClick(object sender, DirectEventArgs e)
    {
        BG_Policy bg_policy = BG_PolicyManager.GetBG_PolicyByPLID(Convert.ToInt32(TFID.Text));

        bg_policy.POrder   = Convert.ToInt32(TFPOrder.Text);
        bg_policy.PTime    = Convert.ToDateTime(TFPTime.Text);
        bg_policy.PFrom    = TFPFrom.Text;
        bg_policy.PType    = TFcmb.SelectedItem.Value.ToString();
        bg_policy.PTitle   = TFPTitle.Text;
        bg_policy.PContent = HEdit.Text;
        bg_policy.PStatus  = "未发布";
        BG_PolicyManager.ModifyBG_Policy(bg_policy);
        PolicyDataBind();
        WinEdit.Hide();
        TFPOrder.Clear();
        TFPTime.Clear();
        TFPFrom.Clear();
        TFPTitle.Clear();
        //HEdit.Clear();
        //TFPOrder.Text = " ";
        //TFPTime.Text = " ";
        //TFPFrom.Text = " ";
        //TFPType.Text = " ";
        //TFPTitle.Text = " ";
        //HEdit.Text = " ";
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request["plid"] != null)
         {
             plid = Request["plid"];
             int       PLID      = Convert.ToInt32(plid);
             BG_Policy bg_policy = BG_PolicyManager.GetBG_PolicyByPLID(PLID);
             str = bg_policy.PContent;
         }
     }
 }
    public void ModifyPolicy(string plid)
    {
        int       PLID      = Convert.ToInt32(plid);
        BG_Policy bg_policy = BG_PolicyManager.GetBG_PolicyByPLID(PLID);

        TFPTitle.Text            = bg_policy.PTitle.ToString();
        TFID.Text                = plid;
        TFPOrder.Text            = bg_policy.POrder.ToString();
        TFPTime.Text             = Convert.ToDateTime(bg_policy.PTime).ToString("yyyy-MM-dd HH:mm:ss");
        TFPFrom.Text             = bg_policy.PFrom;
        ADPcmb.Text              = bg_policy.PType;
        TFcmb.SelectedItem.Value = bg_policy.PTitle.ToString();
        HEdit.Text               = bg_policy.PContent;
        WinEdit.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);
    }