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

<!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 ;">
                  <asp:Button ID="btPrintView" runat="server" onclick="btPrintView_Click" 
                      Text="打印预览" Visible="false" />
                  &nbsp;<asp:Button ID="btExcel" runat="server" onclick="btExcel_Click" 
                      Text="导出到EXCEL" Visible="false" />
                  </td>
              </tr></table> 
                 <table style =" width :100%" >
                 <tr><td style =" width :40px;">学科：</td>
                  <td>       <asp:RadioButtonList ID="rblCourse" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblCourse_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal">
                  </asp:RadioButtonList></td>
                  </tr>
                  <tr><td style =" width :40px;">年级：</td>
                  <td>      
                      <asp:RadioButtonList ID="rblGrade" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblGrade_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal" RepeatColumns="20">
                  </asp:RadioButtonList></td>
                  </tr>
                  <tr><td style =" width :40px;">课题：</td>
                  <td>      
                      <asp:TextBox 
                                ID="tbPlanname" runat="server" Width="480px" Height="24px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                          ControlToValidate="tbPlanname" Display="Dynamic" ErrorMessage="课题不能为空。" 
                          ForeColor="Red" ValidationGroup="Add"></asp:RequiredFieldValidator>
                            </td>
                  </tr><tr><td style =" width :40px;">主备</td>
                  <td>      
                      <asp:RadioButtonList ID="rblTeacher" runat="server" AutoPostBack="True"  CellSpacing="10"
                      RepeatDirection="Horizontal" RepeatColumns="20">
                  </asp:RadioButtonList></td>
                  </tr><tr><td style =" width :40px;">&nbsp;</td>
                  <td>      
                            <asp:Button ID="btAddPlan" runat="server" Text="添加" onclick="btAddPlan_Click" 
                                ValidationGroup="Add" /></td>
                  </tr></table> 
                    <div runat ="server" id ="divadd" visible ="false" >     
                        </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" >
            <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("paixu") %>' 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("paixu") %>'></asp:Label>
                                   </ItemTemplate>
                      </asp:TemplateField>
                      <asp:TemplateField HeaderText="课题">
                          <EditItemTemplate>
                                      <asp:TextBox ID="tbeditplanname" runat="server"  Text='<%# Eval("planname") %>' 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("planname") %>'  NavigateUrl ='<%#"planbbsdetailsview.aspx?id="+ DataBinder.Eval(Container.DataItem,"id") %>'  Target ="_blank">HyperLink</asp:HyperLink>
                          </ItemTemplate>
                      </asp:TemplateField>
                        <asp:BoundField DataField="mainteachername" HeaderText="主备人" ReadOnly="True" />
                               <asp:BoundField DataField="state" HeaderText="状态" ReadOnly="True" />
                               <asp:BoundField DataField="planend" HeaderText="完成时间" ReadOnly="True" />
                      <asp:TemplateField HeaderText="删除" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="False" Visible ="false" 
                                  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:HyperLink ID="HyperLink1" runat="server">查看</asp:HyperLink>
                          </ItemTemplate>
                      </asp:TemplateField>

                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
            

<!--栏目结束 -->
                     </div>
            </div>
        </form>
    </body>
</html>


