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

<!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" />
        <style type="text/css">
    .txtBlank
    {
            width:30px;
    }
     .divContent
        {
             overflow:auto;
              width:320px;
              height:50px;
              margin:5px;
        }
    </style>
</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 class="formName" align="left">
                     <span style="margin-left:10px">手工选题</span>
                    </td>
                </tr>
                <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        1、填空题(<asp:Label ID="lblFillBlankListCount" runat="server" Text="0"></asp:Label>)
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                    <div style="text-align:left;">
                          <asp:Repeater ID="rptSubjectOfFillBlankList" runat="server" 
                    DataSourceID="ObjectDataSource1">
                    <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                    </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                            (<%#Eval("Index") %>) <%#Eval("Question") %></td>
                        <td >
                           <span style="color:Red"> <%# Eval("Answer") %></span></td>
                    </tr>     
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
               </asp:Repeater>
                <asp:Label ID="Label1" runat="server" Text="暂无试题！"></asp:Label>
                        </div>
                    <div style="text-align:right;"><a href="SubjectOfFillBlankList.aspx">选题</a></div>
                        </td>
                </tr>
                 <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                       2、判断题(<asp:Label ID="lblJudgeListCount" runat="server" Text="0"></asp:Label>)
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                      <div style="text-align:left;">
                          <asp:Repeater ID="rptSubjectOfJudgeList" runat="server" 
                    DataSourceID="ObjectDataSource2">
                    <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                    </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                         (<%#Eval("Index") %>) <%#Eval("Question") %> (<span style="color:Red"><%#(bool)Eval("Answer") ? "Y" : "N"%></span>)
                         </td>
                    </tr>     
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
               </asp:Repeater>
                <asp:Label ID="Label2" runat="server" Text="暂无试题！"></asp:Label>
                        </div>
                    <div style="text-align:right;"><a href="SubjectOfJudgeList.aspx">选题</a></div></td>
                </tr>
                  <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        3、单选题(<asp:Label ID="lblSingleSelectionCount" runat="server" Text="0"></asp:Label>)
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                    <div style="text-align:left">
                     <asp:Repeater ID="rptSubjectOfSingleSelectionList" runat="server" 
                    DataSourceID="ObjectDataSource3">
               <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <b>
                         (<%#Eval("Index")%>)  <%#Eval("Question") %> (<span style="color:Red;"><%# Eval("Answer") %></span>)
                         </b><br />
                           <table width="100%">
                           <tr align="left"><td style="width:50%">A:<%#Eval("SelectA") %></td><td>B:<%#Eval("SelectB") %></td></tr>
                            <tr align="left"><td style="width:50%">C:<%#Eval("SelectC") %></td><td>D:<%#Eval("SelectD") %></td></tr>
                           </table>
                            </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                        <asp:Label ID="Label3" runat="server" Text="暂无试题！"></asp:Label>
                    </div>
                    <div style="text-align:right;"><a href="SubjectOfSingleSelectionList.aspx">选题</a></div></td>
                </tr>
                  <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        4、多选题(<asp:Label ID="lblMultiSelectionCount" runat="server" Text="0"></asp:Label>)
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                      <div style="text-align:left">
                     <asp:Repeater ID="rptSubjectOfMultiSelectionList" runat="server" 
                    DataSourceID="ObjectDataSource4">
               <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <b>
                         (<%#Eval("Index")%>)  <%#Eval("Question") %> (<span style="color:Red;"><%# Eval("Answer") %></span>)
                         </b><br />
                           <table width="100%">
                           <tr align="left"><td style="width:50%">A:<%#Eval("SelectA") %></td><td>B:<%#Eval("SelectB") %></td></tr>
                            <tr align="left"><td style="width:50%">C:<%#Eval("SelectC") %></td><td>D:<%#Eval("SelectD") %></td></tr>
                           </table>
                            </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                        <asp:Label ID="Label4" runat="server" Text="暂无试题！"></asp:Label>
                    </div>
                    <div style="text-align:right;"><a href="SubjectOfMultiSelectionList.aspx">选题</a></div></td>
                </tr>
                  <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                        5、简答题(<asp:Label ID="lblSimpleAnswerCount" runat="server" Text="0"></asp:Label>)
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                    <asp:Repeater ID="rptSubjectOfSimpleAnswerList" runat="server" 
                    DataSourceID="ObjectDataSource5">
                <HeaderTemplate>
                     <table cellpadding="0" cellspacing="0" class="tableList" width="800">
                </HeaderTemplate>
                <ItemTemplate>
                     <tr >
                        <td >
                        <div style="width:20px;  float:left; margin:0;margin-top:5px;">(<%#Eval("Index") %>)</div>
                        <div class="divContent">
                          <%#Eval("Question") %>
                            </div></td>
                        <td class="style3">
                        <div class="divContent" style="color:Red">
                            <%# Eval("Answer") %>
                            </div></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                     </table>
                </FooterTemplate>
               </asp:Repeater>
                      <asp:Label ID="Label5" runat="server" Text="暂无试题！"></asp:Label>
                    <div style="text-align:right;"><a href="SubjectOfSimpleAnswerList.aspx">选题</a></div>
                   </td>
                </tr>
                <tr>
                    <td class="titleName" style="text-align:left; font-weight:bold;">
                       其他信息
                    </td>
                </tr>
                
                 <tr>
                    <td class="inputArea">
                    试卷名称：<asp:TextBox ID="txtPaperName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPaperName"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
&nbsp;试卷所属部门：  <asp:DropDownList ID="drlDeptList" runat="server" DataSourceID="objdsDeptList" DataTextField="DeptName"
                        DataValueField="DeptID" Width="121px">
                    </asp:DropDownList>
                       </td>
                </tr>
                <tr>
                    <td  class="submitArea">
                         <span style="margin-right:10px">
                         <asp:Button ID="btnSave" runat="server" 
                             Text="保 存" Width="80px" CssClass="btn" onclick="btnSave_Click"/></span></td>
                </tr>
            </table>
               <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    onselected="ObjectDataSource1_Selected" SelectMethod="GetFillBlankList" 
                    TypeName="SessionClass"></asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
     SelectMethod="GetJudgeList" TypeName="SessionClass" 
     onselected="ObjectDataSource2_Selected"></asp:ObjectDataSource>
     <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
     onselected="ObjectDataSource3_Selected" SelectMethod="GetSingleSelection" 
     TypeName="SessionClass" ></asp:ObjectDataSource>
          <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" 
     onselected="ObjectDataSource4_Selected" SelectMethod="GetMultiSelection" 
     TypeName="SessionClass" ></asp:ObjectDataSource>
     <asp:ObjectDataSource ID="ObjectDataSource5" runat="server" 
     onselected="ObjectDataSource5_Selected" SelectMethod="GetSimpleAnswer" 
     TypeName="SessionClass" ></asp:ObjectDataSource>
                     <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptListForDropList"
            TypeName="BLL.BLLDepartment"></asp:ObjectDataSource>
    </form>
</body>
</html>
