示例#1
0
文件: About.cs 项目: Abnertd/public
    public void AddAbout()
    {
        int    About_ID       = tools.CheckInt(Request.Form["About_ID"]);
        int    About_IsActive = tools.CheckInt(Request.Form["About_IsActive"]);
        string About_Title    = tools.CheckStr(Request.Form["About_Title"]);
        string About_Sign     = tools.CheckStr(Request.Form["About_Sign"]);
        string About_Content  = Request.Form["About_Content"];
        int    About_Sort     = tools.CheckInt(Request.Form["About_Sort"]);

        if (About_Title == "")
        {
            Public.Msg("error", "错误信息", "请填写标题", false, "{back}"); return;
        }

        AboutInfo entity = new AboutInfo();

        entity.About_ID       = About_ID;
        entity.About_IsActive = About_IsActive;
        entity.About_Title    = About_Title;
        entity.About_Sign     = About_Sign;
        entity.About_Content  = About_Content;
        entity.About_Sort     = About_Sort;
        entity.About_Site     = Public.GetCurrentSite();

        if (MyBLL.AddAbout(entity, Public.GetUserPrivilege()))
        {
            Public.Msg("positive", "操作成功", "操作成功", true, "about_add.aspx");
        }
        else
        {
            Public.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }