資源簡介
ASP。NET 火車票訂購系統(tǒng)SQL C# 畢業(yè)設(shè)計 沈大

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?pww
{
///?
///?add_cc?的摘要說明。
///?
public?partial?class?add_cc?:?System.Web.UI.Page
{
//車次
//車型
//始發(fā)站
//終點站
//全程距離
//全程時間
//始發(fā)時間的小時
//始發(fā)時間的分鐘
//終點站到達時間的小時
//終點站到達的分鐘
//到達淮安站時間的小時
//離開淮安站時間的小時
//到達淮安站時間的分鐘
//離開淮安站時間的分鐘
public?operator_sql?da=new?operator_sql();
public?void?checkuser() //判斷用戶是否為登錄用戶如果用戶沒有登錄或登錄時間過期轉(zhuǎn)向錯誤頁面
{
if(Session[“uid“]==null)
{
Response.Redirect(“error.htm“);
}
}
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
//?在此處放置用戶代碼以初始化頁面
if(!IsPostBack)
{
checkuser();//檢查用戶是否登錄
}
}
#region?Web?窗體設(shè)計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調(diào)用是?ASP.NET?Web?窗體設(shè)計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設(shè)計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內(nèi)容。
///?
private?void?InitializeComponent()
{????
}
#endregion
protected?void?Button1_Click(object?sender?System.EventArgs?e)
{
checkuser();//檢查用戶的合法性
string?ccid=c_1.TextType=c_2.TextStart_s=c_3.TextStart_d=c_41.SelectedValue+“:“+c_42.SelectedValueEnd_s=c_5.TextEnd_d=c_61.SelectedValue+“:“+c_62.SelectedValueDd_d=c_91.SelectedValue+“:“+c_92.SelectedValueKc_d=c_10.SelectedValue+“:“+c_11.SelectedValueAll_s=c_7.TextAll_d=c_8.Textstr=““;
str=“select?*?from?ccb?where?ccid=‘“+ccid+“‘“;//查詢數(shù)據(jù)庫中是否有重復(fù)的車次
DataSet?ds=new?DataSet();
ds=da.view_data(str);
int?s=0;
if(ccid==““)???//數(shù)據(jù)合法性判斷
{
Response.Write(“ript>alert(‘車次不能為空!!‘) ript>“);
return;
}
if(Type==““)
{
Response.Write(“ript>alert(‘車型不能為空!!‘) ript>“);
return;
}
if(Start_s==““)
{
Response.Write(“ript>alert(‘始發(fā)站不能為空!!‘) ript>“);
return;
}
if(End_s==““)
{
Response.Write(“ript>alert(‘終點站不能為空!!‘) ript>“);
return;
}
if(All_s==““)
{
Response.Write(“ript>alert(‘全程距離不能為空!!‘) ript>“);
return;
}
if(All_d==““)
{
Response.Write(“ript>alert(‘全程時間不能為空!!‘) ript>“);
return;
}
if(ds.Tables[0].Rows.Count!=0)
{
Response.Write(“ript>alert(‘該車次已經(jīng)存在了!!‘) ript>“);
return;
}
try
{
s=int.Parse(All_s);
}
catch
{
Response.Write(“ript>alert(‘全程距離必須為數(shù)字!!‘) ript>“);
return;
}
str=“insert?into?ccb(ccidTypeStart_sStart_dEnd_sEnd_dAll_sAll_dDd_dkc_d)?values(‘“+ccid+“‘‘“+Type+“‘‘“+Start_s+“‘‘“+Start_d+“‘‘“+End_s+“‘‘“+End_d+“‘‘“+All_s+“‘‘“+All_d+“‘‘“+Dd_d+“‘‘“+Kc_d+“‘)“;
//數(shù)據(jù)信息通過合法性驗證將數(shù)據(jù)插入車次表
da.write_data(str);
Response.Redirect(“admin_cc.aspx“);
}
protected?void?Button2
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????303??2012-04-20?22:24??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\修改經(jīng)過站.txt
?????文件????3416095??2010-12-10?10:29??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\錄相013.ASP.NET火車票網(wǎng)上訂票系統(tǒng).exe
?????文件??????34816??2012-03-18?09:51??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\文檔\開題報告.doc
?????文件????1483776??2008-06-19?06:26??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\文檔\火車票網(wǎng)上訂購系統(tǒng)論文.doc
?????文件????1457152??2009-02-18?18:27??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\文檔\答辯稿.ppt
?????文件??????25428??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_cc.aspx
?????文件???????3549??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_cc.aspx.cs
?????文件???????5317??2008-03-29?17:09??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_cc.aspx.resx
?????文件???????5230??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_news.aspx
?????文件???????2948??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_news.aspx.cs
?????文件???????5317??2008-03-23?10:09??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_news.aspx.resx
?????文件???????9109??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_xl.aspx
?????文件???????3074??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_xl.aspx.cs
?????文件???????5317??2008-03-29?19:12??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\add_xl.aspx.resx
?????文件???????5295??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cc.aspx
?????文件???????3734??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cc.aspx.cs
?????文件???????5317??2008-03-29?21:48??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cc.aspx.resx
?????文件???????4856??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cx.aspx
?????文件???????4489??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cx.aspx.cs
?????文件???????5317??2008-04-14?12:19??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_cx.aspx.resx
?????文件???????3975??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_fk.aspx
?????文件???????2290??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_fk.aspx.cs
?????文件???????5317??2008-05-03?13:18??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_fk.aspx.resx
?????文件???????4828??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_news.aspx
?????文件???????6333??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_news.aspx.cs
?????文件???????5317??2008-02-29?16:28??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_news.aspx.resx
?????文件????????581??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_tp.aspx
?????文件???????1265??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_tp.aspx.cs
?????文件???????5317??2008-05-02?10:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_tp.aspx.resx
?????文件???????4063??2008-05-11?21:36??013.ASP.NET(C#)火車票網(wǎng)上訂購系統(tǒng)\程序\pww\admin_user.aspx
............此處省略465個文件信息
評論
共有 條評論