资源简介
车辆管理系统源代码
代码片段和文件信息
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
namespace CarControl
{
///
/// addcarForm 的摘要说明。
///
public class addcarForm : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.TextBox TextBox5;
protected System.Web.UI.WebControls.TextBox TextBox6;
protected System.Web.UI.WebControls.DropDownList DropDownList1;
protected System.Web.UI.WebControls.DropDownList DropDownList2;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;
protected System.Web.UI.WebControls.TextBox TextBox3;
protected System.Web.UI.WebControls.Label Label1;
private void Page_Load(object sender System.EventArgs e)
{
if(Session[“S_username“].ToString()==““)
{
Response.Redirect(“index.aspx“);
}
if(Session[“S_userrule“].ToString()==““)
{
Response.Redirect(“main1.aspx“);
}// 在此处放置用户代码以初始化页面
if(!IsPostBack)
{
//初始化单位名单
string SqlConn=System.Configuration.ConfigurationSettings.AppSettings[“ConnString“];
SqlConnection Conn=new SqlConnection(SqlConn);
Conn.Open();
string sqlstring=“select * from bumen“;
SqlDataAdapter myadapter =new SqlDataAdapter(sqlstringConn);
DataSet ds=new DataSet();
myadapter.Fill(ds“bumen“);
DropDownList1.DataSource=ds;
DropDownList1.DataTextField=“type“;
DropDownList1.DataValueField=“type“;
DropDownList1.DataBind();
DropDownList1.Items.Add(“暂无“);
DropDownList1.Items[DropDownList1.Items.Count-1].Value=““;
DropDownList1.SelectedIndex=this.DropDownList1.Items.Count - 1;
//初始化司机名单
string sqlstring1=“select * from [user] where part=‘院办(车队)‘“;
SqlCommand cmd=new SqlCommand();
cmd.Connection=Conn;
cmd.CommandText=sqlstring1;
SqlDataReader dsread=cmd.ExecuteReader();
if(!dsread.Read())
{
DropDownList2.Items.Add(“任意人“);
DropDownList2.Items[DropDownList2.Items.Count-1].Value=““;
DropDownList2.SelectedIndex=this.DropDownList2.Items.Count - 1;
}
else
{
dsread.Close();
SqlDataAdapter myadapter1 =new SqlDataAdapter(sqlstring1Conn);
DataSet ds1=new DataSet();
myadapter1.Fill(ds1“user“);
DropDownList2.DataSource=ds1;
DropDownList2.DataTextField=“name“;
DropDownList2.DataValueField=“name“;
DropDownList2.DataBind();
DropDownList2.Items.Add(“任意人“);
DropDownList2.Ite
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 967 2007-03-20 00:01 menu_putong.aspx.cs
....... 5317 2007-03-20 00:01 menu_putong.aspx.resx
....... 5403 2007-04-16 12:39 menu_user.aspx
....... 963 2007-03-20 00:15 menu_user.aspx.cs
....... 5317 2007-03-20 00:15 menu_user.aspx.resx
....... 1517 2007-02-05 23:24 partadd.aspx
....... 1902 2007-02-06 01:04 partadd.aspx.cs
....... 5317 2007-02-03 01:00 partadd.aspx.resx
....... 1360 2007-03-13 18:37 show1.aspx
....... 1580 2007-03-13 17:38 show1.aspx.cs
....... 5317 2007-03-13 15:15 show1.aspx.resx
....... 1302 2007-03-13 18:38 show2.aspx
....... 1581 2007-03-13 17:40 show2.aspx.cs
....... 5317 2007-03-13 15:20 show2.aspx.resx
....... 1306 2007-03-13 18:38 show3.aspx
....... 1581 2007-03-13 17:51 show3.aspx.cs
....... 5317 2007-03-13 15:24 show3.aspx.resx
文件 1223 2007-04-19 19:19 T_L.HTM
文件 1257 2007-04-19 19:19 T_R.HTM
....... 2800 2007-03-18 21:41 top1.aspx
....... 948 2007-02-06 02:38 top1.aspx.cs
....... 1733 2002-01-30 13:04 top1.aspx.resx
....... 2810 2007-02-06 02:33 top.aspx
....... 948 2007-01-29 20:38 top.aspx.cs
....... 5317 2007-01-29 20:38 top.aspx.resx
文件 564 2007-04-19 19:19 Unti
....... 2310 2007-02-05 22:49 useradd.aspx
....... 3538 2007-02-06 01:04 useradd.aspx.cs
....... 5317 2007-02-04 22:03 useradd.aspx.resx
....... 2239 2007-02-05 22:49 useredit.aspx
............此处省略361个文件信息
- 上一篇:基于遗传算法的自动泊车策略论文
- 下一篇:电机与拖动基础学习指导
评论
共有 条评论