<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="plan.aspx.cs" Inherits="Web.sy.show.plan" %>

<!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 id="Head1" runat="server">
    <title>OA标题页</title>
    <link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('/css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
            <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    备课上课
                      	</td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
    
<!--栏目开始 -->
                        <!--这里添加内容 -->
              <table  style =" width :100%"><tr><td style ="text-align :left ">
                当前学期：<asp:Label ID="lbSemester" runat="server" ></asp:Label>
              </td>
              <td style =" text-align :right ;">
                  &nbsp;</td>
              </tr></table> 
                 <table style ="width :100%;" ><tr><td style =" width :70px;">班级学科：
             </td>
             <td>       
                 <asp:RadioButtonList ID="rblCourse" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblCourse_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal" RepeatColumns="8">
                  </asp:RadioButtonList></td> </tr></table> 
                    <div runat ="server" id ="divadd" visible ="false" >     
                        <asp:Label ID="lbCatrgories" runat="server"  Visible ="false" ></asp:Label>
                        课题：<asp:TextBox 
                                ID="tbPlanname" runat="server" Width="480px" Height="24px"></asp:TextBox>
                            <asp:Button ID="btAddPlan" runat="server" Text="添加" 
                            onclick="btAddPlan_Click" ValidationGroup="add" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" 
                runat="server" ControlToValidate="tbPlanname" Display="Dynamic" 
                ErrorMessage="请填入课题。" ForeColor="Red" ValidationGroup="add"></asp:RequiredFieldValidator>
                    </div>   

			<asp:GridView ID="GridView2" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                    onrowcreated="GridView2_RowCreated" onrowdeleting="GridView2_RowDeleting" 
                    onrowcancelingedit="GridView2_RowCancelingEdit" 
                    onrowediting="GridView2_RowEditing" onrowupdating="GridView2_RowUpdating" 
                    onrowdatabound="GridView2_RowDataBound" 
                    onselectedindexchanging="GridView2_SelectedIndexChanging" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                   <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                               <asp:TemplateField HeaderText="序号">
                                   <EditItemTemplate>
                                                 <asp:TextBox ID="tbeditpaixu" runat="server"  Text='<%# Eval("序号") %>' Width ="40px"></asp:TextBox>

                                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="tbeditpaixu" Display="Dynamic" ErrorMessage="请填写序号。" 
                          ValidationGroup="btEdit" ForeColor="Red"></asp:RequiredFieldValidator>

                                                  <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbeditpaixu" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="btEdit" ForeColor="Red"></asp:RegularExpressionValidator>
                                   </EditItemTemplate>
                                   <ItemTemplate>
                                       <asp:Label ID="Label1" runat="server" Text='<%# Bind("序号") %>'></asp:Label>
                                   </ItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="课题">
                          <EditItemTemplate>
                                      <asp:TextBox ID="tbeditplanname" runat="server"  Text='<%# Eval("课题") %>' Width ="95%"></asp:TextBox>
                                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                  ControlToValidate="tbeditplanname" Display="Dynamic" ErrorMessage="请填写课题。" 
                          ValidationGroup="btEdit" ForeColor="Red"></asp:RequiredFieldValidator>

                          </EditItemTemplate>
                          <ItemTemplate>
                              <asp:HyperLink ID="HyperLink_select" runat="server" Text='<%# Bind("课题") %>'  NavigateUrl ='<%#"plandetailsview_zy1.aspx?id="+ DataBinder.Eval(Container.DataItem,"id") %>'  Target ="_blank">HyperLink</asp:HyperLink>
                          </ItemTemplate>
                      </asp:TemplateField>
                               <asp:BoundField DataField="状态" HeaderText="状态" ReadOnly="True" />
                      <asp:TemplateField HeaderText="删除" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="False" Visible ="false"  onClientClick="return confirm('确认删除吗？')" 
                                  CommandName="Delete" Text="删除"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="修改" ShowHeader="False">
                          <EditItemTemplate>
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True"  ValidationGroup="btEdit"
                                  CommandName="Update" Text="更新"></asp:LinkButton>
                              &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                  CommandName="Cancel" Text="取消"></asp:LinkButton>
                          </EditItemTemplate>
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" Visible ="false" 
                                  CommandName="Edit" Text="修改"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>
                      
                        
                      <asp:TemplateField HeaderText="查看" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton5" runat="server" CausesValidation="False"  Visible ="false" 
                                  CommandName="Select" Text="查看"></asp:LinkButton>
                          </ItemTemplate>
                      </asp:TemplateField>

                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                <asp:Button ID="btCheck" runat="server" Text="提交审核"  Visible ="false" 
                    onclick="btCheck_Click" />
<!--栏目结束 -->
               
<!--栏目开始 -->
              <!--这里添加内容 -->
              <div style =" margin-top :30px;">
                <asp:LinkButton ID="lbcChecked" runat="server" Visible ="false" 
                      onclick="lbcChecked_Click" >查看审核历史</asp:LinkButton></div>
			        <div style ="  text-align :left ;">
                      <asp:GridView ID="GridView1" runat="server"  AutoGenerateColumns="False"  
                          GridLines ="None" HeaderStyle-HorizontalAlign ="Left" CellPadding="4" 
                          ForeColor="#333333">
                          <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BorderWidth="0px" BackColor="#F7F6F3" ForeColor="#333333"  />
                          <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
     <asp:BoundField DataField="categories" HeaderStyle-HorizontalAlign="Left"  HeaderStyle-Width="100px"
        HeaderText="类别" ReadOnly="True">
    <HeaderStyle HorizontalAlign="Left" />
    </asp:BoundField>

    <asp:BoundField DataField="checked" HeaderStyle-HorizontalAlign="Left"  HeaderStyle-Width="100px"
        HeaderText="审核结果" ReadOnly="True">
    <HeaderStyle HorizontalAlign="Left" />
    </asp:BoundField>
    <asp:TemplateField HeaderText="审核日期">
                         <ItemTemplate>
                             <asp:Label ID="lbcheckdate" runat="server" Text='<%# Eval("checkdate", "{0:d}") %>'></asp:Label>
                         </ItemTemplate>
                         <HeaderStyle HorizontalAlign="Left" Width="70px" />
    </asp:TemplateField>

    <asp:BoundField DataField="checknote" HeaderStyle-HorizontalAlign="Left"   HeaderStyle-Width="150px"
        HeaderText="审核备注" ReadOnly="True">
    <HeaderStyle HorizontalAlign="Left" />
    </asp:BoundField>
    <asp:BoundField DataField="managername" HeaderStyle-HorizontalAlign="Left"   HeaderStyle-Width="70px"
        HeaderText="审核人" ReadOnly="True">
    <HeaderStyle HorizontalAlign="Left" />
    </asp:BoundField>
                </Columns>
                          <EditRowStyle BackColor="#999999" />
                          <FooterStyle CssClass ="gv2head" />
            <HeaderStyle BorderWidth="0px" CssClass ="gv2head" />
                          <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#E9E7E2" />
                          <SortedAscendingHeaderStyle BackColor="#506C8C" />
                          <SortedDescendingCellStyle BackColor="#FFFDF8" />
                          <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView></div>
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>
