温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:在线订票系统源码(毕业设计)
当前文件路径:TicketOnline/ConfigEstablishment.aspx

1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ConfigEstablishment.aspx.cs" Inherits="ConfigEstablishment" Title="Untitled Page" %> 2
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 3
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%"> 4
<tr> 5
<td align="left" style="background-position: center center; background-image: url(image/bar.jpg); 6
width: 629px; background-repeat: repeat-x; height: 22px"> 7
<asp:LinkButton ID="linkjichucanshu" runat="server" ForeColor="White" OnClick="linkjichucanshu_Click" CausesValidation="False">基础参数设置</asp:LinkButton> 8
<asp:LinkButton ID="Linkchepiao" runat="server" ForeColor="White" OnClick="Linkchepiao_Click" CausesValidation="False">车票设置</asp:LinkButton> 9
<asp:LinkButton ID="Linkcheci" runat="server" ForeColor="White" OnClick="Linkcheci_Click" CausesValidation="False">车次设置</asp:LinkButton> 10
<asp:LinkButton ID="Linkdiaodu" runat="server" ForeColor="White" OnClick="Linkdiaodu_Click" CausesValidation="False">调度设置</asp:LinkButton></td> 11
</tr> 12
<tr> 13
<td style="width: 629px;" align="left" valign="top" rowspan="5"> 14
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px"> 15
<table border="0" cellpadding="0" cellspacing="0" style="width: 500%; border-top: #3399ff 0.1pc solid; border-bottom: #3399ff 0.1pc solid;"> 16
<tr> 17
<td colspan="3" style="height: 18px; background-color: #3399ff;"> 18
基础参数设置</td> 19
</tr> 20
<tr> 21
<td style="width: 100px; height: 27px;"> 22
买票设置:</td> 23
<td style="width: 441px; height: 27px;" align="left"> 24
<asp:TextBox ID="TextBox1" runat="server" Width="55px" MaxLength="2"></asp:TextBox>点之前不能买票(24小时制)</td> 25
<td style="width: 119px; height: 27px;" align="center"> 26
<asp:LinkButton ID="Linkbuy" runat="server" OnClick="Linkbuy_Click">确定</asp:LinkButton></td> 27
</tr> 28
<tr> 29
<td style="width: 100px; height: 25px;"> 30
订票设置:</td> 31
<td style="width: 441px; height: 25px;" align="left"> 32
<asp:TextBox ID="TextBox2" runat="server" Width="55px" MaxLength="2"></asp:TextBox>点之前不能订票(24小时制)</td> 33
<td style="width: 119px; height: 25px;" align="center"> 34
<asp:LinkButton ID="Linklinkding" runat="server" OnClick="Linklinkding_Click">确定</asp:LinkButton></td> 35
</tr> 36
<tr> 37
<td style="width: 100px; height: 25px;"> 38
退票设置:</td> 39
<td style="width: 441px; height: 25px;" align="left"> 40
<asp:TextBox ID="TextBox3" runat="server" Width="57px" MaxLength="2"></asp:TextBox>说出几小时不能退票(24小时制)</td> 41
<td style="width: 119px; height: 25px;" align="center"> 42
<asp:LinkButton ID="Linktui" runat="server" OnClick="Linktui_Click">确定</asp:LinkButton></td> 43
</tr> 44
</table> 45
</asp:Panel> 46
<asp:Panel ID="Panel2" runat="server" Height="50px" Width="125px"> 47
<table border="0" cellpadding="0" cellspacing="0" style="width: 501%; border-top: #3399ff 0.1mm solid; border-bottom: #3399ff 0.1mm solid;"> 48
<tr> 49
<td colspan="3" style="height: 25px; background-color: #3399ff; width: 652px;"> 50
车票的增删改</td> 51
</tr> 52
<tr> 53
<td align="left" colspan="3" style="height: 67px; width: 652px;" valign="top"> 54
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-top-width: 0.1mm; border-left-width: 0.1mm; border-left-color: #3399ff; border-bottom-width: 0.1mm; border-bottom-color: #3399ff; border-top-color: #3399ff; border-right-width: 0.1mm; border-right-color: #3399ff;"> 55
<tr> 56
<td align="center" colspan="3" style="height: 18px"> 57
增加车票</td> 58
</tr> 59
<tr> 60
<td colspan="3" rowspan="4" align="left" style="height: 69px" valign="top"> 61
车票名称:<asp:TextBox ID="txtaddname" runat="server" MaxLength="20"></asp:TextBox> 62
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtaddname" 63
Display="Dynamic" ErrorMessage="名称必须填写" ValidationGroup="1"></asp:RequiredFieldValidator><br /> 64
开车时间:<asp:TextBox ID="txttime" runat="server"></asp:TextBox> 65
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txttime" 66
Display="Dynamic" ErrorMessage="时间没有填写"></asp:RequiredFieldValidator>时间格式:2007-4-25 PM 02:40:00<br /> 67
车票价格:<asp:TextBox ID="txtmoney" runat="server" MaxLength="4"></asp:TextBox> 68
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtmoney" 69
Display="Dynamic" ErrorMessage="价格必须填写" ValidationGroup="1"></asp:RequiredFieldValidator> 70
<br /> 71
<asp:LinkButton ID="Linkaddticket" runat="server" Width="54px" OnClick="Linkaddticket_Click" ValidationGroup="1">添加</asp:LinkButton></td> 72
</tr> 73
<tr> 74
</tr> 75
<tr> 76
</tr> 77
<tr> 78
</tr> 79
</table> 80
修改删除车票</td> 81
</tr> 82
<tr> 83
<td style="height: 25px; width: 652px;" align="left" colspan="3"> 84
选择要修改或删除车票名称:<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" 85
DataTextField="Tname" DataValueField="Tname" Width="118px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged1" > 86
</asp:DropDownList> 87
</td> 88
</tr> 89
<tr> 90
<td style="height: 96px; width: 652px;" align="left" colspan="3"> 91
车票名称:<asp:TextBox ID="txtupname" runat="server" MaxLength="20"></asp:TextBox> 92
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtupname" 93
ErrorMessage="名称没有填写" Display="Dynamic" ValidationGroup="2"></asp:RequiredFieldValidator><br /> 94
开车时间:<asp:TextBox ID="txtuptime" runat="server"></asp:TextBox> 95
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtuptime" 96
Display="Dynamic" ErrorMessage="时间没有填写" ValidationGroup="2"></asp:RequiredFieldValidator>时间格式:2007-4-25 97
PM 02:40:00<br /> 98
车票价格:<asp:TextBox ID="txtupmoney" runat="server" MaxLength="4" Width="148px"></asp:TextBox> 99
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtupmoney" 100
Display="Dynamic" ErrorMessage="价格没有填写" ValidationGroup="2"></asp:RequiredFieldValidator> 101
<br /> 102
<asp:LinkButton ID="Linkupdata" runat="server" OnClick="Linkupdata_Click" CausesValidation="False" ValidationGroup="2">修改</asp:LinkButton></td> 103
</tr> 104
<tr> 105
<td style="height: 37px; width: 652px;" align="left" colspan="3"> 106
车票名称:<asp:TextBox ID="txtdelname" runat="server" MaxLength="20"></asp:TextBox> 107
<asp:LinkButton ID="Linkdel" runat="server" OnClick="Linkdel_Click" CausesValidation="False">删除</asp:LinkButton></td> 108
</tr> 109
</table> 110
</asp:Panel> 111
<asp:Panel ID="Panel3" runat="server" Height="50px" Width="125px"><table border="0" cellpadding="0" cellspacing="0" style="width: 499%; border-top: #3399ff 0.1mm solid; border-bottom: #3399ff 0.1mm solid;"> 112
<tr> 113
<td colspan="3" style="height: 25px; background-color: #3399ff;"> 114
车次的增删改</td> 115
</tr> 116
<tr> 117
<td align="center" colspan="3" style="height: 67px" valign="top"> 118
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-top-width: 0.1mm; border-left-width: 0.1mm; border-left-color: #3399ff; border-bottom-width: 0.1mm; border-bottom-color: #3399ff; border-top-color: #3399ff; border-right-width: 0.1mm; border-right-color: #3399ff;"> 119
<tr> 120
<td align="center" colspan="3" style="height: 18px"> 121
增加车次</td> 122
</tr> 123
<tr> 124
<td colspan="3" rowspan="4" align="left" style="height: 29px"> 125
车次名称:<asp:TextBox ID="txtcname" runat="server" MaxLength="20"></asp:TextBox> 126
<asp:LinkButton ID="Linkaddcar" runat="server" OnClick="Linkaddcar_Click">添加</asp:LinkButton></td> 127
</tr> 128
<tr> 129
</tr> 130
<tr> 131
</tr> 132
<tr> 133
</tr> 134
</table> 135
修改删除车次</td> 136
</tr> 137
<tr> 138
<td style="height: 25px" align="left" colspan="3"> 139
选择要修改或删除车次名称: 140
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2" 141
DataTextField="Carname" DataValueField="Carname" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" 142
Width="104px"> 143
</asp:DropDownList></td> 144
</tr> 145
<tr> 146
<td style="height: 25px" align="left" colspan="3"> 147
车次名称:<asp:TextBox ID="txtupcarname" runat="server" MaxLength="20"></asp:TextBox> 148
<asp:LinkButton ID="Linkupcar" runat="server" OnClick="Linkupcar_Click" CausesValidation="False">修改</asp:LinkButton></td> 149
</tr> 150
<tr> 151
<td style="height: 25px" align="left" colspan="3"> 152
车次名称:<asp:TextBox ID="txtcdelname" runat="server" MaxLength="20"></asp:TextBox> 153
<asp:LinkButton ID="Linkdelcar" runat="server" OnClick="Linkdelcar_Click" CausesValidation="False">删除</asp:LinkButton></td> 154
</tr> 155
</table> 156
</asp:Panel> 157
<asp:Panel ID="Panel4" runat="server" Height="50px" Width="125px"> 158
<table border="0" cellpadding="0" cellspacing="0" style="width: 499%; border-top: #3399ff 0.1pc solid; border-bottom: #3399ff 0.1pc solid;"> 159
<tr> 160
<td align="center" colspan="3" style="height: 25px; background-color: #3399ff"> 161
调度设置</td> 162
</tr> 163
<tr> 164
<td style="width: 181px; height: 25px" align="left"> 165
选择运营中车次</td> 166
<td align="left" style="width: 192px; height: 25px;"> 167
<asp:DropDownList ID="DropDownList3" runat="server" 168
DataTextField="Carname" DataValueField="Carname" Width="161px" DataSourceID="SqlDataSource3" AutoPostBack="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged1"> 169
</asp:DropDownList> 170
</td> 171
<td align="left" style="width: 203px; height: 25px;"> 172
</td> 173
</tr> 174
<tr> 175
<td style="width: 181px; height: 25px" align="left"> 176
选择停运中车次</td> 177
<td align="left" style="width: 192px; height: 25px;"> 178
<asp:DropDownList ID="DropDownList4" runat="server" Width="163px" DataSourceID="SqlDataSource4" DataTextField="Carname" DataValueField="Carname" OnSelectedIndexChanged="DropDownList4_SelectedIndexChanged" AutoPostBack="True"> 179
</asp:DropDownList></td> 180
<td align="left" style="width: 203px; height: 25px;"> 181
</td> 182
</tr> 183
<tr> 184
<td style="width: 181px; height: 25px" align="left"> 185
要运营的车次:</td> 186
<td align="left" style="width: 192px; height: 25px;"> 187
<asp:TextBox ID="txttinyun" runat="server" MaxLength="20"></asp:TextBox></td> 188
<td align="left" style="width: 203px; height: 25px;"> 189
<asp:LinkButton ID="Linkyunying" runat="server" OnClick="Linkyunying_Click">确定</asp:LinkButton></td> 190
</tr> 191
<tr> 192
<td style="width: 181px; height: 25px" align="left"> 193
要停运车次:</td> 194
<td align="left" style="width: 192px; height: 25px;"> 195
<asp:TextBox ID="txtyunying" runat="server" Width="149px" MaxLength="20"></asp:TextBox></td> 196
<td style="width: 203px; height: 25px;" align="left"> 197
<asp:LinkButton ID="Linktingyun" runat="server" OnClick="Linktingyun_Click">停运</asp:LinkButton></td> 198
</tr> 199
</table> 200
</asp:Panel> 201
202
</td> 203
</tr> 204
<tr> 205
</tr> 206
<tr> 207
</tr> 208
<tr> 209
</tr> 210
<tr> 211
</tr> 212
</table> 213
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 214
SelectCommand="SELECT * FROM [Ticket] ORDER BY [Tid]"></asp:SqlDataSource> 215
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 216
SelectCommand="SELECT * FROM [Car]"></asp:SqlDataSource> 217
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 218
SelectCommand="SELECT * FROM [Car] WHERE ([CType] = @CType)"> 219
<SelectParameters> 220
<asp:Parameter DefaultValue="否" Name="CType" Type="String" /> 221
</SelectParameters> 222
</asp:SqlDataSource> 223
<asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:webSealTicketConnectionString %>" 224
SelectCommand="SELECT * FROM [Car] WHERE ([CType] = @CType)"> 225
<SelectParameters> 226
<asp:Parameter DefaultValue="是" Name="CType" Type="String" /> 227
</SelectParameters> 228
</asp:SqlDataSource> 229
</asp:Content> 230
231



