/// <summary>
        /// 更改政策文章发布状态
        /// </summary>
        /// <param name="PLID"></param>
        /// <returns></returns>
        public static bool PublishAppointPolicy(int PLID)
        {
            BG_Policy bg_policy = BG_PolicyService.GetBG_PolicyByPLID(PLID);

            if (bg_policy.PStatus == "已发布")
            {
                bg_policy.PStatus = "未发布";
            }
            else
            {
                bg_policy.PStatus = "已发布";
            }
            bool flag = BG_PolicyService.ModifyBG_Policy(bg_policy);

            return(flag);
        }
Esempio n. 2
0
 public static bool ModifyBG_Policy(BG_Policy bG_Policy)
 {
     return(BG_PolicyService.ModifyBG_Policy(bG_Policy));
 }