CmsWeb/Admin/article/integralEdit.aspx.cs

(开头部分) 71KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Cms.Common;
using System.Data;
using System.Collections;

public partial class Admin_article_integralEdit : System.Web.UI.Page
{
    protected string classid;
    public int channel_id = 0;
    Cms.BLL.C_Column bllcolumn = new Cms.BLL.C_Column();
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Admin_article_integralEdit));//注册Ajax可调用的类的名称
        int articleId = Convert.ToInt32(this.Request.QueryString["articleId"] ?? "0");//文章ID
        
        classid = this.Request.QueryString["classid"] ?? "";//上级栏目ID
        if (!Page.IsPostBack)
        {
            //登录验证
            Cms.Model.C_admin admin = adminUser.GetLoginState();
            Application["adminname"] = admin.user_name;
            DropList_Bind();//绑定栏目
            DropList_Bind_type();
            parentId.SelectedValue = classid.ToString();//设置默认上级栏目导航
            this.channel_id = Convert.ToInt32(classid);
            this.hreflist.HRef = "articleList.aspx?classid=" + classid;//设置返回列表链接
            this.Bind_cut();//绑定切工分类
            this.Bind_clarity();//绑定净度分类
            this.Bind_finger_ring();//绑定指圈分类
            this.Bind_color();//绑定颜色分类
            this.Bind_shape();//绑定形状分类
            this.Bind_material();//绑定金属材质
            this.Bind_bstype();//绑定宝石类
            this.Bind_pintype();//绑定品类
            bind_is(classid);//是否开通功能
            CreateOtherField(this.channel_id);//动态生成相应的扩展字段

            CreaterelatedCloumn(this.channel_id);//动态创建相应关联信息
            string action = this.Request.QueryString["action"] ?? "";//编辑:edit 添加:add
            switch (action)
            {
                case "add":
                    break;
                case "edit":
                    if (!new Cms.BLL.C_article().Exists(articleId))
                    {
                        JscriptMsg("不存在或已被删除!", "back", "Error");
                        return;
                    }
                    this.DataBind(articleId);//绑定文章信息
                    break;
            }
        }
后面还有 1616 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。