Web/Admin/Success/SuccessTypeInfo.aspx.cs

(开头部分) 4KB

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

using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web.Admin.Success
{
    public partial class SuccessTypeInfo : System.Web.UI.Page
    {
        protected int TypeID =0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TypeLoad();
            }
            if (Request.Params["SuccessTypeID"] != null && Request.Params["SuccessTypeID"] != "")
            {
                TypeID = int.Parse(Request.Params["SuccessTypeID"].ToString());
                if (!IsPostBack)
                {
                    TypeBind();
                }
                btnadd.Visible = false;
                btnupdate.Visible = true;
            }
            else
            {
                btnadd.Visible = true;
                btnupdate.Visible = false;
            }

        }

        /// <summary>
        /// 是否支持删除,修改,添加
        /// </summary>
        private bool WebIsLoad()
        {
            if (Application["IsWebLoad"].ToString() == "1")
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('为了保证网站的健康,暂且不支持编辑!')</script>");
                return false;
            }
            return true;
        }

        private void TypeBind()
        {
            Maticsoft.BLL.SuccessTypeInfo tbll = new Maticsoft.BLL.SuccessTypeInfo();
            Maticsoft.Model.SuccessTypeInfo tModel = tbll.GetModel(TypeID);
            txtOrderNum.Text = tModel.OrderNum.ToString();
            txttype.Text = tModel.E_SuccessTypeName;
            ddlDisplay.SelectedValue = tModel.IsLock;
        }

        private void TypeLoad()
        {
            Maticsoft.BLL.SuccessTypeInfo tbll = new Maticsoft.BLL.SuccessTypeInfo();
            datagong.DataSource = tbll.GetAllList();
            datagong.DataKeyField = "E_SuccessTypeID";
后面还有 81 行代码,购买后查看完整代码

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

AI 解读

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

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