<%@ page language="C#" autoeventwireup="true" inherits="_school_J1_TeacherPerformance, App_Web_j1_teacherperformance.aspx.cc418459" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />

    <script language="javascript" src="../window/jquery/jquery.min.js" type="text/javascript"></script>

    <script language="javascript" src="../window/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>

    <script language="javascript" src="../window/message/jquery.message.js" type="text/javascript"></script>

    <script language="javascript" src="../window/checked/jquery.checked.js" type="text/javascript"></script>

    <script language="javascript" src="../window/maxInput/jquery.maxInput.js" type="text/javascript"></script>

    <script language="javascript" src="../window/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script language="javascript" src="../window/TableRowFocus/jquery.RowFocus.js"
        type="text/javascript"></script>

    <link href="../window/_css/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <link href="../window/_css/window.css" rel="stylesheet" type="text/css" />
    <link href="../css/listpage.css" rel="stylesheet" type="text/css" />
    <title>学校教师业绩列表</title>

    <script language="javascript" type="text/javascript">

    $(function(){
        $("#insertPanel").dialog({
                autoOpen:false,
                width:600,
                height:500
        });
        
        $("#btnAdd").click(function(){
           var panel =  $("#insertPanel");
           panel.find(":text").val("");
           panel.find("select").val("");
   
           $("#hfEditID").val("");
           panel.dialog({ title: '添加教师业绩' });
           panel.dialog("open");
        });
        
        if(isEdit){
          $("#insertPanel").dialog({ title: '编辑' });
          $("#insertPanel").dialog("open");
        }
        $("#chk_all").checkedAll("ViewData",0);
        $("#chk_Rev").checkedRev("ViewData",0);
        
        $("#ViewData").RowFocus();
        $("#txttb_Note").maxInput(255,"#noteCount");
        
        if(isLook){
            $("#LookPanel").dialog({
                title:"查看教师信息",
                width:600,
                height:500
                });
        }
        $("#btnQueryPanel").click(function(){
            $("#queryPanel").slideToggle();
        });
        
    });
  
    var isEdit = false;
    var isLook = false;
    function ShowEdit(){
        isEdit = true;
    }
    function ShowLook(){
        isLook = true;
    }
    function validSelect(){
        var trs = $("#ViewData").find(":checked");

        if(trs.size()==0){
            message("请选择操作的数据项！",1);
            return false;
        }
        return true;
    }


    </script>

    <style type="text/css">
<!--
.center {
	text-align: center;
}
-->
</style>
</head>
<body>
    <form id="form2" runat="server">
       <div class="ui-widget-header " style="padding: .4em 1em; margin:2px">
            <span class="ui-dialog-title" ></span>
            <asp:Label ID="labTitle" runat="server" CssClass="ui-dialog-title"></asp:Label>
        </div>
        
       <div id="queryPanel" class="panel"  style="width:99%;overflow:auto"   >
            <table>
                <tr>
                    <td style="width: 113px">
                        任教学校</td>
                    <td style="width: 123px">
                        教师姓名</td>
                    <td style="width: 102px">
                        学期</td>
                    <td style="width: 110px">
                        &nbsp;年度</td>
                    <td style="width: 97px">
                        学校分类</td>
                    <td style="width: 99px">
                        年级</td>
                    <td style="width: 153px">
                        考试类别</td>
                    <td style="width: 108px">
                        </td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        <asp:Label ID="labQuerySchool" runat="server" ></asp:Label> 
                    </td>
                    <td style="width: 123px">
                        <asp:Label ID="labQueryTeacher" runat="server"></asp:Label>
                        
          
                    </td>
                    <td style="width: 102px">
                        <asp:DropDownList ID="ddlQueryTerm" runat="server" Width="100px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 110px">
                        <asp:DropDownList ID="ddlQuerySchoolYear" runat="server" Width="115px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 97px">
                        <asp:DropDownList ID="ddlQuerySchoolClassify" runat="server" Width="94px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 99px">
                        <asp:DropDownList ID="ddlQueryGrade" runat="server" Width="94px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 153px">
                        <asp:DropDownList ID="ddlQueryExamType" runat="server" Width="98px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 108px">
                        </td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        班级</td>
                    <td style="width: 123px">
                        学生数</td>
                    <td style="width: 102px">
                        任教学科</td>
                    <td style="width: 110px">
                        平均分</td>
                    <td style="width: 97px">
                        及格率</td>
                    <td style="width: 99px">
                        优生率</td>
                    <td style="width: 153px">
                        提交日期</td>
                    <td style="width: 108px">
                        提交用户</td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        <asp:TextBox ID="txtQueryClass" runat="server" Width="94px"></asp:TextBox></td>
                    <td style="width: 123px">
                        <asp:DropDownList ID="ddlQuerySNumberExp" runat="server" Width="37px">
                            <asp:ListItem>=</asp:ListItem>
                            <asp:ListItem>&lt;</asp:ListItem>
                            <asp:ListItem>&gt;</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="txtQuerySNumber" runat="server" Width="69px"></asp:TextBox></td>
                    <td style="width: 102px">
                        <asp:DropDownList ID="ddlQuerySubject" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 110px">
                        <asp:DropDownList ID="ddlQueryavgExp" runat="server" Width="37px">
                            <asp:ListItem>=</asp:ListItem>
                            <asp:ListItem>&lt;</asp:ListItem>
                            <asp:ListItem>&gt;</asp:ListItem>
                        </asp:DropDownList><asp:TextBox ID="txtQueryavg" runat="server" Width="66px"></asp:TextBox></td>
                    <td style="width: 97px"><asp:DropDownList ID="ddlQuerypassExp" runat="server" Width="37px">
                        <asp:ListItem>=</asp:ListItem>
                        <asp:ListItem>&lt;</asp:ListItem>
                        <asp:ListItem>&gt;</asp:ListItem>
                    </asp:DropDownList><asp:TextBox ID="txtQuerypass" runat="server" Width="53px"></asp:TextBox></td>
                    <td style="width: 99px"><asp:DropDownList ID="ddlQueryerExp" runat="server" Width="37px">
                        <asp:ListItem>=</asp:ListItem>
                        <asp:ListItem>&lt;</asp:ListItem>
                        <asp:ListItem>&gt;</asp:ListItem>
                    </asp:DropDownList><asp:TextBox ID="txtQueryer" runat="server" Width="53px"></asp:TextBox></td>
                    <td style="width: 153px"><asp:DropDownList ID="ddlQueryDateExp" runat="server" Width="37px">
                        <asp:ListItem>=</asp:ListItem>
                        <asp:ListItem>&lt;</asp:ListItem>
                        <asp:ListItem>&gt;</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtQueryDateTime" runat="server" Width="106px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',disabledDates:['%y-%M-%d {%H-1}\:..\:..','%y-%M-%d {%H+1}\:..\:..']})" ></asp:TextBox>
                    </td>
                    <td style="width: 108px">
                        <asp:TextBox ID="txtQuerySubmitUser" runat="server" Width="103px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        教师姓名(模糊查询)</td>
                    <td style="width: 123px">
                        教师身份证(模糊查询)</td>
                    <td style="width: 102px">
                    </td>
                    <td style="width: 110px">
                    </td>
                    <td style="width: 97px">
                    </td>
                    <td style="width: 99px">
                    </td>
                    <td style="width: 153px">
                        </td>
                    <td style="width: 108px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        <asp:TextBox ID="txtQueryLTName" runat="server" Width="106px"></asp:TextBox></td>
                    <td style="width: 123px">
                        <asp:TextBox ID="txtQueryLTIDNumber" runat="server" Width="106px"></asp:TextBox></td>
                    <td style="width: 102px">
                    </td>
                    <td style="width: 110px">
                    </td>
                    <td style="width: 97px">
                    </td>
                    <td style="width: 99px">
                        <asp:Button ID="btnShowAll" runat="server" CssClass="btn" OnClick="btnClear_Click"
                            Text="取消查询" /></td>
                    <td style="width: 153px">
                    <asp:Button id="btnExcal"  runat="server" Text="导出EXCAL" CssClass="btn" ToolTip="查询信息导出EXCAL" OnClick="btnExcal_Click"></asp:Button>
                        </td>
                    <td style="width: 108px">
                        <asp:Button ID="btnQuery" runat="server" CssClass="search" Text="查询" OnClick="btnQuery_Click" /></td>
                </tr>
            </table>
        </div>
            
        <div class="panel">
            &nbsp;<input id="btnAdd" class="addnew" type="button" value="添加" language="javascript" />
            <asp:Button ID="btnDelete" runat="server" CssClass="delete" OnClick="lbDelete_Click"
                OnClientClick="if(confirm('确认删除？')){return validSelect(); }else{return false;}"
                Text="删除" />
            <asp:Button ID="lbUpdate" runat="server" CssClass="modify" OnClick="lbUpdate_Click"
                Text="编辑" OnClientClick="return validSelect()" />
            &nbsp;
            <asp:Button ID="lbrs" runat="server" CssClass="btn" Text="刷新" OnClick="btnRefresh_Click" />&nbsp;
            <input id="btnQueryPanel" class="search" type="button" value="查询面板" />&nbsp;
            <input id="chk_all" name="chk_all" type="checkbox" />全选 <a id="chk_Rev" href="javascript:void(0)">反 选</a>
        </div>
        
        <asp:GridView ID="ViewData" runat="server" AutoGenerateColumns="False" BackColor="White"
            CssClass="gv" Width="100%">
            <RowStyle CssClass="gvRow" />
            <HeaderStyle CssClass="gvHeader" />
            <AlternatingRowStyle CssClass="gvAlternatingRow" />
            <EmptyDataRowStyle CssClass="gvEmpty" />
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input id="cbselect" runat="server" type="checkbox" value='<%#Eval("tp_id") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="tb_name" HeaderText="教师名称" />
                <asp:BoundField DataField="sy_name" HeaderText="年度" />
                <asp:BoundField DataField="tm_name" HeaderText="学期" />
                <asp:BoundField DataField="sl_name" HeaderText="任教学校" />
                <asp:BoundField DataField="sc_name" HeaderText="学校分类" />
                <asp:BoundField DataField="ge_name" HeaderText="年级" />
                <asp:BoundField DataField="tp_class" HeaderText="班级" />
                <asp:BoundField DataField="tp_studNumber" HeaderText="学生数" />
                <asp:BoundField DataField="st_name" HeaderText="任教学科" />
                <asp:BoundField DataField="tp_avg" HeaderText="平均分" />
                <asp:BoundField DataField="tp_pass" HeaderText="及格率" DataFormatString="{0:F}%" />
                <asp:BoundField DataField="tp_er" HeaderText="优生率" DataFormatString="{0:F}%" />
                <asp:BoundField DataField="et_name" HeaderText="考试类别" />
                <asp:BoundField DataField="tp_idate" HeaderText="提交日期" />
                <asp:BoundField DataField="tp_user" HeaderText="提交用户" />
            </Columns>
            <EmptyDataTemplate>
                没有任何数据！
            </EmptyDataTemplate>
        </asp:GridView>
        <br />
        <webdiyer:AspNetPager ID="PagerButtom" runat="server" AlwaysShow="True" CssClass="paginator"
            CustomInfoHTML="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
            CustomInfoSectionWidth="" FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页"
            LayoutType="Table" MoreButtonsClass="" NextPageText="下一页" NumericButtonCount="5"
            OnPageChanged="Pager_PageChanged" PageIndexBoxClass="cpb" PageSize="30" PrevPageText="上一页"
            ShowCustomInfoSection="Right" ShowPageIndexBox="Always" SubmitButtonText="转到">
        </webdiyer:AspNetPager>
        <div id="insertPanel" style="display: none;">
            <table border='0'>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_syid">
                            年度：</label></td>
                    <td style="width: 242px">
                        <asp:DropDownList ID="txttp_syid" runat="server" Width="150px">
                        </asp:DropDownList></td>
                    <td style="width: 133px">
                        <asp:RequiredFieldValidator ID="rfvtp_syid" runat="server" ControlToValidate="txttp_syid"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_term">
                            学期：</label></td>
                    <td style="width: 242px">
                        <asp:DropDownList ID="txttp_term" runat="server" Width="150px">
                        </asp:DropDownList></td>
                    <td style="width: 133px">
                        <asp:RequiredFieldValidator ID="rfvtp_term" runat="server" ControlToValidate="txttp_term"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        任教学校：</td>
                    <td style="width: 242px">
                        <asp:Label ID="labSchool" runat="server"></asp:Label></td>
                    <td style="width: 133px">
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        学校分类：</td>
                    <td style="width: 242px">
                        <asp:Label ID="labClass" runat="server"></asp:Label></td>
                    <td style="width: 133px">
                    </td>
                </tr>
                <tr> 
                    <td style="width: 109px">
                        <label for="txttp_geid">
                            年级：</label></td>
                    <td style="width: 242px">
                        <asp:DropDownList ID="txttp_geid" runat="server" Width="150px">
                        </asp:DropDownList></td>
                    <td style="width: 133px">
                        <asp:RequiredFieldValidator ID="rfvtp_geid" runat="server" ControlToValidate="txttp_geid"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_class">
                            班级：</label></td>
                    <td style="width: 242px">
                        <asp:TextBox ID="txttp_class" runat="server" MaxLength="50" Width="144px"></asp:TextBox></td>
                    <td style="width: 133px">
                        <asp:RequiredFieldValidator ID="rfvtp_class" runat="server" ControlToValidate="txttp_class"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_studNumber">
                            学生数：</label></td>
                    <td style="width: 242px">
                        <asp:TextBox ID="txttp_studNumber" runat="server" MaxLength="8" Width="144px"></asp:TextBox></td>
                    <td style="width: 133px">
                        <asp:RegularExpressionValidator ID="revtp_studNumber" runat="server" ControlToValidate="txttp_studNumber"
                            ErrorMessage="无效" ValidationExpression="^\d*$$" ValidationGroup="insert"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvtp_studNumber" runat="server" ControlToValidate="txttp_studNumber"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_stid">
                            任教学科：</label></td>
                    <td style="width: 242px">
                        <asp:DropDownList ID="txttp_stid" runat="server" Width="150px">
                        </asp:DropDownList></td>
                    <td style="width: 133px">
                        <asp:RegularExpressionValidator ID="revtp_stid" runat="server" ControlToValidate="txttp_stid"
                            ErrorMessage="无效" ValidationExpression="^\d*$$" ValidationGroup="insert"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvtp_stid" runat="server" ControlToValidate="txttp_stid"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_avg">
                            平均分：</label></td>
                    <td style="width: 242px">
                        <asp:TextBox ID="txttp_avg" runat="server" MaxLength="8" Width="77px"></asp:TextBox></td>
                    <td style="width: 133px">
                        <asp:RegularExpressionValidator ID="revtp_avg" runat="server" ControlToValidate="txttp_avg"
                            ErrorMessage="无效" ValidationExpression="^\d*\.?\d{0,2}$" ValidationGroup="insert"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvtp_avg" runat="server" ControlToValidate="txttp_avg"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        及格率：</td>
                    <td style="width: 242px">
                        <asp:TextBox ID="txttp_pass" runat="server" MaxLength="8" Width="78px"></asp:TextBox>%</td>
                    <td style="width: 133px">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txttp_pass"
                            ErrorMessage="无效" ValidationExpression="^\d*\.?\d{0,2}$" ValidationGroup="insert"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txttp_pass"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_pass">
                            优生率：</label></td>
                    <td style="width: 242px">
                        <asp:TextBox ID="txttp_er" runat="server" MaxLength="8" Width="78px"></asp:TextBox>%</td>
                    <td style="width: 133px">
                        <asp:RegularExpressionValidator ID="revtp_pass" runat="server" ControlToValidate="txttp_er"
                            ErrorMessage="无效" ValidationExpression="^\d*\.?\d{0,2}$" ValidationGroup="insert"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvtp_pass" runat="server" ControlToValidate="txttp_er"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 109px">
                        <label for="txttp_er">
                            考试类别：</label></td>
                    <td style="width: 242px">
                        <asp:DropDownList ID="txttp_etid" runat="server" Width="153px">
                        </asp:DropDownList></td>
                    <td style="width: 133px">
                        &nbsp;<asp:RequiredFieldValidator ID="rfvtp_er" runat="server" ControlToValidate="txttp_etid"
                            ErrorMessage="必填" ValidationGroup="insert"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="3">
                        <asp:Button ID="btnSubmit" runat="server" Text="提交" ValidationGroup="insert" Width="117px"
                            OnClick="btnSubmit_Click" /></td>
                </tr>
            </table>
            <asp:HiddenField ID="hfEditID" runat="server" />
        </div>
    </form>
</body>
</html>
<!--powered by 25175-->
