<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddPaperByRandomSelection.aspx.cs" Inherits="Admin_Paper_AddPaperByRandomSelection" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>随机抽题</title>
    <link href="../../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
   <div class="listAddLink">
            <a href="javascript:history.back();">返 回</a></div>
            <table cellpadding="0" cellspacing="0" class="form" width="800px">
                <tr>
                    <td colspan="2" class="formName" align="left">
                     <span style="margin-left:10px">随机抽题</span>
                    </td>
                </tr>
                 <tr>
                    <td style="width: 200px; " class="titleName">
                       1、判断题数量：
                    </td>
                    <td class="inputArea" style="width: 598px" >
                        <asp:TextBox ID="txtJudgeSum" runat="server" CssClass="txt" Width="50px">0</asp:TextBox>
                        &lt;=<asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
                        题 
                        <asp:DropDownList ID="drpSubjectTypeCategory1" runat="server" 
                            AutoPostBack="True" DataSourceID="objSubjectTypeCategory1" 
                            DataTextField="CateName" DataValueField="CateID" 
                            onselectedindexchanged="drpSubjectTypeCategory1_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="objSubjectTypeCategory1" runat="server" 
                            SelectMethod="GetListBySubjectType" TypeName="BLL.BLLSubjectTypeCategory">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="2" Name="subjectType" Type="Object" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="titleName" style="width: 200px">
                        2、单选题数量：</td>
                    <td class="inputArea" style="width: 598px">
                        <asp:TextBox ID="txtSingleSelectionSum" runat="server" CssClass="txt" Width="50px">0</asp:TextBox>
                        &lt;=<asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
                        题 
                        <asp:DropDownList ID="drpSubjectTypeCategory2" runat="server" 
                            AutoPostBack="True" datasourceid="objSubjectTypeCategory2" 
                            DataTextField="CateName" DataValueField="CateID" 
                            onselectedindexchanged="drpSubjectTypeCategory2_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="objSubjectTypeCategory2" runat="server" 
                            SelectMethod="GetListBySubjectType" TypeName="BLL.BLLSubjectTypeCategory">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="3" Name="subjectType" Type="Object" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                 <tr>
                    <td class="titleName" style="width: 200px">
                        3、多选题数量：</td>
                    <td class="inputArea" style="width: 598px">
                        <asp:TextBox ID="txtMultiSelectionSum" runat="server" CssClass="txt" Width="50px">0</asp:TextBox>
                        &lt;=<asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
                        题 
                        <asp:DropDownList ID="drpSubjectTypeCategory3" runat="server" 
                            AutoPostBack="True" datasourceid="objSubjectTypeCategory3" 
                            DataTextField="CateName" DataValueField="CateID" 
                            onselectedindexchanged="drpSubjectTypeCategory3_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="objSubjectTypeCategory3" runat="server" 
                            SelectMethod="GetListBySubjectType" TypeName="BLL.BLLSubjectTypeCategory">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="4" Name="subjectType" Type="Object" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>

                 <tr>
                    <td class="titleName" style="width: 200px">
                        试卷名称：</td>
                    <td class="inputArea" style="width: 598px">
                        <asp:TextBox ID="txtPaperName" runat="server" CssClass="txt" Width="150px"></asp:TextBox>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtPaperName" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td class="titleName" style="width: 200px">
                        试卷所属部门：</td>
                    <td class="inputArea" style="width: 598px">
                        <asp:DropDownList ID="drlDeptList" runat="server" DataSourceID="objdsDeptList" DataTextField="DeptName"
                        DataValueField="DeptID" Width="121px">
                    </asp:DropDownList>
                       </td>
                </tr>
                <tr>
                    <td colspan="2"  class="submitArea">
                         <asp:Label ID="lblMsg" runat="server" CssClass="msg" Font-Bold="True" 
                             ForeColor="Red" Text=""></asp:Label>
                         <span style="margin-right:10px"><asp:Button ID="btnSave" runat="server" 
                             Text="保 存" Width="80px" CssClass="btn" onclick="btnSave_Click" /></span></td>
                </tr>
            </table>
           <div class="tip"><span class="content">说明：某类考题数量可以为0，但是不能所有类型都为0</span></div>
                     <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptListForDropList"
            TypeName="BLL.BLLDepartment"></asp:ObjectDataSource>
    </form>
</body>
</html>
