WebUI/UI/DianZiBingLi.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 System.Data;
using Common;
namespace WebUI.UI
{
    public partial class DianZiBingLi1 : System.Web.UI.Page
    {
        public DataTable _DTBingLi = new DataTable();
        public string _funType = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["funType"] != null)
            {
                _funType = Request["funType"].ToString();
            }
            switch (_funType)
            {
                case "Delete":
                    Delete();
                    break;
                case "YuYue":
                    YuYue();
                    break;
                case "QuXiao":
                    QuXiao();
                    break;
            }
            if (!IsPostBack)
            {
                if (Session["Account"] == null)
                {
                    Response.Write("<script>alert('请您先登陆!');window.location.href='Default.aspx'</script>");
                }
                else
                {
                    string strCmd = " select * from DianZiBingLi where CreateBy='" + Session["Account"].ToString() + "' order by ID DESC ";
                    _DTBingLi = DbHelperSQL.Query(strCmd).Tables[0];
                }
            }
        }

        /// <summary>
        /// 取消预约
        /// </summary>
        private void QuXiao()
        {
            string strCmd = " delete from YuYue where ID=" + Request["ID"].ToString();
            DbHelperSQL.ExecuteSql(strCmd);
            Response.Write("1");
            Response.End();
        }

        /// <summary>
        /// 预约
        /// </summary>
后面还有 45 行代码,购买后查看完整代码

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

AI 解读 AI

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

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