Esempio n. 1
0
        public JsonResult DeleteJson(List <int> ids)
        {
            int      _total = ids.Count();
            Response _resp  = new DAL.Response();

            _resp = articleManage.Delete(ids);
            if (_resp.Code == 1)
            {
                _resp.Code    = 2;
                _resp.Message = "共提交删除" + _total + "篇文章,实际删除" + _resp.Data + "篇文章。";
            }
            return(Json(_resp));
        }
Esempio n. 2
0
    void InitInfo()
    {
        articleId  = CECRequest.GetQueryInt("articleid", 0);
        action     = CECRequest.GetQueryString("action");
        categoryId = CECRequest.GetQueryInt("categoryid", 0);

        if (action.ToLower() == "del")
        {
            ArticleManage.Delete(articleId);
            Response.Redirect("articlelist.aspx");
            return;
        }

        this.PublishDate.SelectedDate = DateTime.Now;
        this.ddlcategoryList.BuildTree(ArticleCategoryManage.GetArticleCategoryTable(), "CategoryName", "CategoryId");
        this.ddlcategoryList.SelectedValue = categoryId.ToString();
    }