Customers_Add.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
namespace khglcrm
{
public partial class Customers_Add1 : 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.drop("客户来源", DropDownList1);
this.drop("职位", DropDownList3);
this.drop("客户类型", DropDownList6);
this.drop("星级评定", DropDownList7);
this.dropcity();
}
}
}
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();
}
private void dropcity()
{
DB mydb = new DB();
OleDbDataReader dr = mydb.GetdataReader("select * from city order by id desc ");
while (dr.Read())
{
this.DropDownList4.Items.Add(dr["cityname"].ToString());
}
dr.Close();
mydb.close();
}
protected void Button1_Click(object sender, EventArgs e)
{
DB mydb = new DB();
string strbz = mydb.Encode(TextBox12.Text);
int i = mydb.Gettj("insert into customer(customName,dizhi,dianhua,fax,wz,email,lyuan,sheng,dshi,lianxiren,xiansheng,zhiwu,shouji,klei,xingp,youb,zhuy,content,tjren) values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + DropDownList1.SelectedValue + "','" + DropDownList4.SelectedValue + "','" + DropDownList5.SelectedValue + "','" + TextBox8.Text + "','" + DropDownList2.SelectedValue + "','" + DropDownList3.SelectedValue + "','" + TextBox9.Text + "','" + DropDownList6.SelectedValue + "','" + DropDownList7.SelectedValue + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + strbz + "','"+Session["admin"].ToString()+"')");
if (i > 0)
后面还有 25 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
