温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:智能选课系统源码及论坛
当前文件路径:XuanKeLunWen/student/SelectClass.aspx

1<%@ Page Language="C#" MasterPageFile="~/student/Student.master" AutoEventWireup="true" CodeFile="SelectClass.aspx.cs" Inherits="studnet_SelectClass" Title="Untitled Page" %> 2
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 3
<table border="0" cellpadding="0" cellspacing="0" style="border-right: #66ccff 0.1mm solid; 4
border-top: #66ccff 0.1mm solid; border-left: #66ccff 0.1mm solid; border-bottom: #66ccff 0.1mm solid; width: 100%;"> 5
<tr> 6
<td align="center" colspan="3" style="width: 549px; border-bottom: #66ccff 0.1mm solid; 7
height: 17px"> 8
选课系统</td> 9
</tr> 10
<tr> 11
<td colspan="3" rowspan="5" style="width: 549px;" valign="top"> 12
选择专业:<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="AccessDataSource2" 13
DataTextField="zhuanyename" DataValueField="zhuanyename" Width="103px"> 14
</asp:DropDownList></td> 15
</tr> 16
<tr> 17
</tr> 18
<tr> 19
</tr> 20
<tr> 21
</tr> 22
<tr> 23
</tr> <tr> 24
<td align="center" colspan="3" style="width: 549px; height: 19px"> 25
以下为必修课:</td> 26
</tr> <tr> 27
<td align="center" colspan="3" style="width: 549px; height: 133px" valign="top"> 28
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" 29
DataKeyNames="Classid" DataSourceID="AccessDataSource1" ForeColor="#333333" GridLines="None" 30
Width="100%"> 31
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 32
<Columns> 33
<asp:BoundField DataField="Classid" HeaderText="编号" InsertVisible="False" ReadOnly="True" 34
SortExpression="Classid" /> 35
<asp:BoundField DataField="CClass" HeaderText="系" SortExpression="CClass" /> 36
<asp:BoundField DataField="Czhuanye" HeaderText="专业" SortExpression="Czhuanye" /> 37
<asp:BoundField DataField="Cname" HeaderText="课程名称" SortExpression="Cname" /> 38
<asp:BoundField DataField="Cteacher" HeaderText="教师" SortExpression="Cteacher" /> 39
<asp:BoundField DataField="CweekBegTime" HeaderText="开始周" SortExpression="CweekBegTime" /> 40
<asp:BoundField DataField="CweekEndTime" HeaderText="结束周" SortExpression="CweekEndTime" /> 41
<asp:BoundField DataField="Cdate" HeaderText="星期" SortExpression="Cdate" /> 42
<asp:BoundField DataField="Ctime" HeaderText="节次" SortExpression="Ctime" /> 43
</Columns> 44
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> 45
<EditRowStyle BackColor="#999999" /> 46
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> 47
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> 48
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 49
<AlternatingRowStyle BackColor="White" ForeColor="#284775" /> 50
</asp:GridView> 51
52
</td> 53
</tr> <tr> 54
<td align="left" colspan="3" style="width: 549px; height: 19px"> 55
选择选修课: 56
</td> 57
</tr> <tr> 58
<td align="center" colspan="3" style="width: 549px; height: 125px" valign="top"> 59
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4" 60
DataKeyNames="Classid" DataSourceID="AccessDataSource4" ForeColor="#333333" GridLines="None" 61
Width="106%" OnSelectedIndexChanged="GridView2_SelectedIndexChanged"> 62
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 63
<Columns> 64
<asp:CommandField ShowSelectButton="True" /> 65
<asp:BoundField DataField="CClass" HeaderText="系" SortExpression="CClass" /> 66
<asp:BoundField DataField="Czhuanye" HeaderText="专业" SortExpression="Czhuanye" /> 67
<asp:BoundField DataField="Cname" HeaderText="名称" SortExpression="Cname" /> 68
<asp:BoundField DataField="Cteacher" HeaderText="教师" SortExpression="Cteacher" /> 69
<asp:BoundField DataField="CweekBegTime" HeaderText="开始周" SortExpression="CweekBegTime" /> 70
<asp:BoundField DataField="CweekEndTime" HeaderText="结束周" SortExpression="CweekEndTime" /> 71
<asp:BoundField DataField="Cdate" HeaderText="星期" SortExpression="Cdate" /> 72
<asp:BoundField DataField="Ctime" HeaderText="节次" SortExpression="Ctime" /> 73
</Columns> 74
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> 75
<EditRowStyle BackColor="#999999" /> 76
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> 77
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> 78
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> 79
<AlternatingRowStyle BackColor="White" ForeColor="#284775" /> 80
</asp:GridView> 81
82
</td> 83
</tr> <tr> 84
<td align="left" colspan="3" style="width: 549px; height: 19px"> 85
你选择的课程详细信息如下:</td> 86
87
</tr><tr> 88
<td align="left" colspan="3" style="width: 549px; height: 19px"> 89
课程名称: 90
<asp:TextBox ID="txtname" runat="server"></asp:TextBox></td> 91
92
</tr> <tr> 93
<td align="left" colspan="3" style="width: 549px; height: 19px"> 94
系别: 95
<asp:TextBox ID="txtxi" runat="server"></asp:TextBox></td> 96
97
</tr> <tr> 98
<td align="left" colspan="3" style="width: 549px; height: 19px"> 99
专业: <asp:TextBox ID="txtzhuanye" runat="server"></asp:TextBox></td> 100
101
</tr> <tr> 102
<td align="left" colspan="3" style="width: 549px; height: 19px"> 103
开始周: 104
<asp:TextBox ID="txtkaishi" runat="server"></asp:TextBox></td> 105
106
</tr> <tr> 107
<td align="left" colspan="3" style="width: 549px; height: 19px"> 108
结束周: <asp:TextBox ID="txtjieshu" runat="server"></asp:TextBox></td> 109
110
</tr> <tr> 111
<td align="left" colspan="3" style="width: 549px; height: 19px"> 112
星期: <asp:TextBox ID="txtweek" runat="server"></asp:TextBox></td> 113
114
</tr> <tr> 115
<td align="left" colspan="3" style="width: 549px; height: 19px"> 116
节次: <asp:TextBox ID="txtjieci" runat="server"></asp:TextBox></td> 117
118
</tr> <tr> 119
<td align="left" colspan="3" style="width: 549px; height: 19px"> 120
任课教师: 121
<asp:TextBox ID="txtlaoshi" runat="server"></asp:TextBox></td> 122
123
</tr> 124
125
<tr> 126
<td align="center" colspan="3" style="width: 549px; height: 19px"> 127
<asp:LinkButton ID="Linkadd" runat="server" OnClick="Linkadd_Click" Width="97px">确定</asp:LinkButton></td> 128
</tr> 129
</table> 130
131
<asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/database/xuanke.mdb" 132
SelectCommand="SELECT * FROM [zhuanye]"></asp:AccessDataSource> 133
<asp:AccessDataSource ID="AccessDataSource4" runat="server" DataFile="~/database/xuanke.mdb" 134
SelectCommand="SELECT * FROM [JiaoyanshiClass] WHERE (([Cshifouxuanxiu] = ?) AND ([Cshencha] = ?))"> 135
<SelectParameters> 136
<asp:Parameter DefaultValue="是" Name="Cshifouxuanxiu" Type="String" /> 137
<asp:Parameter DefaultValue="是" Name="Cshencha" Type="String" /> 138
</SelectParameters> 139
</asp:AccessDataSource> 140
<asp:AccessDataSource ID="AccessDataSource3" runat="server" DataFile="~/database/xuanke.mdb" 141
SelectCommand="SELECT * FROM [JiaoyanshiClass] WHERE ([Cshifouxuanxiu] = ?)"> 142
<SelectParameters> 143
<asp:Parameter DefaultValue="是" Name="Cshifouxuanxiu" Type="String" /> 144
</SelectParameters> 145
</asp:AccessDataSource> 146
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/database/xuanke.mdb" 147
SelectCommand="SELECT * FROM [JiaoyanshiClass] WHERE (([Czhuanye] = ?) AND ([Cshifouxuanxiu] = ?) AND ([Cshencha] = ?))"> 148
<SelectParameters> 149
<asp:ControlParameter ControlID="DropDownList2" Name="Czhuanye" PropertyName="SelectedValue" 150
Type="String" /> 151
<asp:Parameter DefaultValue="否" Name="Cshifouxuanxiu" Type="String" /> 152
<asp:Parameter DefaultValue="是" Name="Cshencha" Type="String" /> 153
</SelectParameters> 154
</asp:AccessDataSource> 155
</asp:Content> 156
157




