<%@ page language="C#" autoeventwireup="true" inherits="_edu_teacher_J1_QueryTeacherInfo, App_Web_j1_queryteacherinfo.aspx.360d3660" %>

<%@ 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(){
        cascade($("#ddlSchool"),$("#ddlTeacher"));
        if($("#hfteacherID").val()!=""){
            $("#ddlTeacher").html("<option value="+$("#hfteacherID").val()+">"+$("#hfteacherName").val()+"</option>")
            $("#ddlSchool").val('');
        }
        $("#btnQuery").click(function(){
           var ddlteacher = $("#ddlTeacher");
           $("#hfteacherID").val(ddlteacher.val());
           $("#hfteacherName").val(ddlteacher.children(":selected").text());
           
           var worktime = $.trim($("#txtWorkTime").val());

           if(worktime!=""){
                if(!worktime.match(/^[0-9]+?$/)){
                     message("错误 参加工作时间 只能输入整数！",1);
                     return false;
                }
           }

        });
    });

    function cascade(parent,target){
         //入学年份联动 班级
         parent.change(function(){
             if(this.value=="")return null;
             $.ajax({
                   type: "POST",
                   dataType:"json",
                   url:"J1_QueryPerformance.aspx",
                   data: {cascadeSchool:this.value},
                   success: function(data){
                        if(data.state==1){
                            target.html(data.value);
                        }else{
                            message(data.value,1);
                        }
                   },
                   beforeSend:function(){
                        target.html("<option >加载中...</option>");
                        return true;
                   },
                   error: function() {target.html("<option >加载失败...</option>"); return false; } 
             });
         });
    }
    </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>
         
        </div>
        
        <div class="panel"  style="width:100%;overflow:auto">
            <table>
                <tr>
                    <td style="width: 113px">
                        任教学校</td>
                    <td style="width: 123px">
                        教师姓名</td>
                    <td style="width: 102px">
                        性别</td>
                    <td style="width: 113px">
                        &nbsp;出生年月</td>
                    <td style="width: 97px">
                        身份证号码(模糊)</td>
                    <td style="width: 138px">
                        入职学历</td>
                    <td style="width: 188px">
                        入职毕业学校</td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        <asp:DropDownList ID="ddlSchool" runat="server" Width="109px">
                        </asp:DropDownList>
                    </td>
                    <td style="width: 123px">
                        <select id="ddlTeacher" style="width: 114px">
                        </select>
                    </td>
                    <td style="width: 102px">
                        <asp:DropDownList ID="ddlSex" runat="server">
                            <asp:ListItem Value="" >选择</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                            <asp:ListItem Value="1">男</asp:ListItem>
                        </asp:DropDownList></td>
                    <td style="width: 113px">
                        <asp:TextBox ID="txtbirth" runat="server" Width="101px" onclick="WdatePicker()" ></asp:TextBox></td>
                    <td style="width: 97px">
                        <asp:TextBox ID="txtidNumber" runat="server" Width="93px"></asp:TextBox></td>
                    <td style="width: 138px"><asp:DropDownList ID="ddlStartDegree" runat="server" Width="92px">
                    </asp:DropDownList></td>
                    <td style="width: 188px">
                        <asp:TextBox ID="txtStartDegreeSchool" runat="server" Width="152px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        最终学历</td>
                    <td style="width: 123px">
                        最终毕业学校</td>
                    <td style="width: 102px">
                        入职所学专业</td>
                    <td style="width: 113px">
                        入职所学专业(2)</td>
                    <td style="width: 97px">
                        最终所学专业</td>
                    <td style="width: 138px">
                        参加工作时间</td>
                    <td style="width: 188px">
                        录入日期</td>
                </tr>
                <tr>
                    <td style="width: 113px; height: 26px;"><asp:DropDownList ID="ddlEndDegree" runat="server" Width="106px">
                    </asp:DropDownList></td>
                    <td style="width: 123px; height: 26px;">
                        <asp:TextBox ID="txtEndGSchool" runat="server" Width="108px"></asp:TextBox></td>
                    <td style="width: 102px; height: 26px;"><asp:DropDownList ID="ddlStartMajor1" runat="server">
                    </asp:DropDownList></td>
                    <td style="width: 113px; height: 26px;"><asp:DropDownList ID="ddlStartMajor2" runat="server">
                    </asp:DropDownList></td>
                    <td style="width: 97px; height: 26px;"><asp:DropDownList ID="ddlEndMajor" runat="server">
                    </asp:DropDownList></td>
                    <td style="width: 138px; height: 26px;">
                        <asp:DropDownList ID="ddlWorkTimeExp" runat="server" Width="37px">
                            <asp:ListItem>=</asp:ListItem>
                            <asp:ListItem>></asp:ListItem>
                            <asp:ListItem><</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="txtWorkTime" runat="server" Width="86px"></asp:TextBox></td>
                    <td style="width: 188px; height: 26px;">
                        <asp:TextBox ID="txtIDate" runat="server" Width="120px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',disabledDates:['%y-%M-%d {%H-1}\:..\:..','%y-%M-%d {%H+1}\:..\:..']})" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 113px">
                        教师状态</td>
                    <td style="width: 123px">
                        </td>
                    <td style="width: 102px">
                    </td>
                    <td style="width: 113px">
                        职称</td>
                    <td style="width: 97px">
                    </td>
                    <td style="width: 138px">
                    </td>
                    <td style="width: 188px">
                        </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:RadioButtonList ID="rblState" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="" Selected="True">全部</asp:ListItem>
                            <asp:ListItem Value="0">在职</asp:ListItem>
                            <asp:ListItem Value="1">离职</asp:ListItem>
                            <asp:ListItem Value="2">退休</asp:ListItem>
                        </asp:RadioButtonList></td>
                    <td style="width: 113px">
                        <asp:DropDownList ID="ddlTitle" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 97px">
                        <asp:Button ID="Button1" runat="server" CssClass="btn" OnClick="btnClear_Click"
                            Text="取消查询" /></td>
                    <td style="width: 138px">
                    <asp:Button id="btnExcal"  runat="server" Text="导出EXCAL" CssClass="btn" ToolTip="查询信息导出EXCAL" OnClick="btnExcal_Click"></asp:Button></td>
                    <td style="width: 188px">
                        &nbsp;<asp:Button ID="btnQuery" runat="server" CssClass="search" Text="查询" OnClick="btnQuery_Click" /></td>
                </tr>
            </table>
        </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:BoundField DataField="sl_name" HeaderText="所在学校" />
                <asp:BoundField DataField="tb_name" HeaderText="教师姓名" />
                <asp:TemplateField HeaderText="性别">
                    <ItemTemplate>
                        <asp:Label ID="labSex" runat="server" Text='<%# Convert.ToBoolean(Eval("tb_sex"))?"男":"女" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="tb_birth" HeaderText="出生年月" DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="tb_nation" HeaderText="民族" />
                <asp:BoundField DataField="tb_idNumber" HeaderText="身份证号码" />
                <asp:BoundField DataField="de_name" HeaderText="入职学历" />
                <asp:BoundField DataField="tb_eg_school" HeaderText="入职毕业学校" />
                <asp:BoundField DataField="final_deName" HeaderText="最终学历" />
                <asp:BoundField DataField="tb_fg_school" HeaderText="最终毕业学校" />
                <asp:BoundField DataField="mr_name" HeaderText="入职所学专业" />
                <asp:BoundField DataField="mr_name2" HeaderText="入职所学专业(2)" />
                <asp:BoundField DataField="fmr_name" HeaderText="最终所学专业" />
                <asp:BoundField DataField="tb_workTime" HeaderText="参加工作时间" />
                <asp:BoundField DataField="te_name" HeaderText="职称" />
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <asp:Label ID="labState" runat="server"><%# 
                                                                (RecordDataService.TeacherStateType)Enum.Parse(typeof(RecordDataService.TeacherStateType), Eval("tb_state").ToString()) == RecordDataService.TeacherStateType.OnTheJob ? "在职" : (RecordDataService.TeacherStateType)Enum.Parse(typeof(RecordDataService.TeacherStateType), Eval("tb_state").ToString()) == RecordDataService.TeacherStateType.LeaveOffice ? "离职" : (RecordDataService.TeacherStateType)Enum.Parse(typeof(RecordDataService.TeacherStateType), Eval("tb_state").ToString()) == RecordDataService.TeacherStateType.Retirement ? "退休" : "未设置"
                                                                %></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                           <asp:BoundField DataField="tb_idate" 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>

        <asp:HiddenField ID="hfteacherID" runat="server" />
        <asp:HiddenField ID="hfteacherName" runat="server" />
    </form>
</body>
</html>
<!--powered by 25175-->
