advSearch.aspx.cs

(开头部分) 13KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.IO;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Configuration;
namespace khglcrm
{
    public partial class advSearch : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Write("<script language='javascript'>alert('登录超时');top.location.href='login.aspx';<" + "/script>");
            }
            else
            {
                if (!Page.IsPostBack)
                {
                    this.quanshow();
                    this.drop("客户来源", DropDownList1);
                    this.drop("客户类型", DropDownList3);
                    this.drop("星级评定", DropDownList4);
                    this.dropcity();
                    this.Label2.Text = "0";
                    if (this.Label2.Text == "0")
                    {
                        Label1.Text = "0";
                        Label3.Text = "0";
                        LinkButton1.Enabled = false;
                        LinkButton2.Enabled = false;
                        LinkButton3.Enabled = false;
                        LinkButton4.Enabled = false;
                        Button3.Enabled = false;
                        this.RangeValidator1.MaximumValue = "1";
                    }
                    else
                    {
                        this.RangeValidator1.MaximumValue = Label1.Text;
                    }
                }
            }
        }
        private void drop(string nlei, DropDownList dl)
        {
            DB mydb = new DB();
            OleDbDataReader dr = mydb.GetdataReader("select * from qita where namelei='" + nlei + "'");
            while (dr.Read())
            {
                dl.Items.Add(dr["name"].ToString());
            }
            dr.Close();
            mydb.close();

后面还有 283 行代码,购买后查看完整代码

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

AI 解读

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

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