Web/Managers/basemanage/ZYS_admin.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;


namespace Web.Managers.basemanage
{
    public partial class ZYS_admin : Web.Managers.MasterPage
    {
        BZiYuanSort ibn = new BZiYuanSort();
        protected int iMaxLayer;
        protected void Page_Load(object sender, EventArgs e)
        {
            MTableSet mts = (new BTableSet()).GetModel("ZiYuanSort");
            iMaxLayer = mts.SortLayer;

            if (!base.IsPostBack)
            {
                ltname.Text = base.MenuName;
                binddata();
            }

        }
        private void binddata()
        {
            Repeater1.DataSource = ibn.GetSortTree(0, true, ref iMaxLayer);
            Repeater1.DataBind();
        }

        protected void lbedit_Click(object sender, EventArgs e)
        {
            string id = string.Empty;
            int m = 0;
            foreach (Control c in Repeater1.Items)
            {
                CheckBox cb = (CheckBox)c.FindControl("cbid");
                if (cb.Checked)
                {
                    id = cb.ToolTip;
                    m++;
                }
            }
            switch (m)
            {
                case 0:
                    base.ShowMsg(Page, "至少选择一项!");
                    break;
                case 1:
                    Response.Redirect("ZYS_add.aspx?id=" + id);
                    break;
                default:
                    base.ShowMsg(Page, "至多选择一项!");
                    break;
            }
        }
后面还有 55 行代码,解锁后查看完整代码

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

AI 解读

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

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