<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="scoreanalysistrends.aspx.cs" Inherits="Us.Web.admin.analysis.scoreanalysistrends" %>

 
<%@ Register src="usersumnav.ascx" tagname="usersumnav" tagprefix="uc3" %>
<%@ Register src="usersuminfo.ascx" tagname="usersuminfo" tagprefix="uc1" %>

<%@ Register assembly="Us.FrameWork.UsTools" namespace="Us.FrameWork" tagprefix="cc1" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/admin/analysis/departmentsuminfo.ascx" TagPrefix="uc1" TagName="departmentsuminfo" %>



<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>成绩走势分析</title>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" /> <%=ImportScriptStr %>
    
    <script language="javascript" type="text/javascript">
        function opJsTree(txt, txtValue) {

            var para = "/admin/basic/departmentztreeselect.aspx?para=3&list=" + $("#" + txtValue).val();
            if ($("#drpLType").val() == "1") {
                para = "/admin/basic/usertreeselect.aspx?para=1&list=" + $("#" + txtValue).val();
            }
            //UsOpenDialogTree(para, txt, txtValue);

            CareffArtOpen4(para, '选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
                $id("btnSearch").click();


            });

            //$id("btnSearch").click();
        }

        function opJsTree2(txt, txtValue) {
            var para = "/admin/basic/departmenttreeselect.aspx?para=2&list=" + $("#" + txtValue).val();
            UsOpenDialogTree(para, txt, txtValue);
            $id("btnSearch").click();
        }
        $(document).ready(function() {
            $('#drpLType').change(function() {
                $("#txtDeptID").val("");
                $("#txtDeptName").val("");
            });

        });
        
 </script>
    
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="divTbg">
      <div class="divTbgL"></div>
      <div class="divTbgInfo">
        <div class="divTbgTitle">成绩走势分析</div>
      </div>
    </div>
    <div class="divTbgF"></div>
    <div class="divSearchBoth">
        <div class="divInfo">
            <div class="divInfoblack">
                <div class="divInfoTopList">
                    <div class="listLeft">
                        <div class="navsearchtitle">
                           成绩走势搜索</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="divInfo">
            <div class="divSearch">
                <div id="searchBox" class="clearsearch">
                
                    <p>
                        <label for="drpLType">
                            成绩类型：</label>
                        <asp:DropDownList runat="server" ID="drpLType">
                            <asp:ListItem Value="PAllType" Text="codeno"></asp:ListItem>
                        </asp:DropDownList>
                    </p>
                
                   
                    
                    <p>
                        <label for="txtDeptID">
                            相关编号：</label>
                        <asp:TextBox ID="txtDeptID" runat="server" ToolTip="部门编号" Text=""></asp:TextBox>
                    </p>
                     <p>
                        <label for="txtDeptName">
                            相关名称：</label>
                        <asp:TextBox ID="txtDeptName" runat="server" ToolTip="部门名称" Text=""></asp:TextBox>
                       
                    </p>
                    
                    <p>
                        <a href="javascript:opJsTree('txtDeptName','txtDeptID');">[选择]</a>
                    </p>
                  
                    <p>
                    
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认搜索" CssClass="SkyButtonFocus" />
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="divInfo">
        <div class="divInfoblack">
            <div class="divInfoTopList">
                <div class="listLeft">
                    <div class="navtitle">
                        成绩详细列表</div>
                </div>
                <div class="listRight">
                    <ul>
                         <li class="navstylelist">
                            <asp:LinkButton ID="LnkBList" runat="server" OnClick="SkyLnkBAMD_Click">列表</asp:LinkButton>
                        </li>
                        <li class="navstylereport">
                            <asp:LinkButton ID="LnkBReport" runat="server" OnClick="SkyLnkBAMD_Click">图表</asp:LinkButton>
                        </li>
                        <li class="navstyle5">
                            <asp:LinkButton ID="LnkBExcel" runat="server" OnClick="SkyLnkBAMD_Click">导出</asp:LinkButton>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="divInfo">
        <div class="divInfoContext"> 
            <asp:Repeater ID="rptInfo" runat="server">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist">
                            <tr class="tablisttitle">
                                <td>
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="DateID">序号</asp:LinkButton>
                                </td>
                                <td>
                                    <%=cHTMLFx%>
                                </td>
                                <%--<td align="center">
                                    工资表名
                                </td>--%>
                                <td align="center">
                                    入库类型
                                </td>
                                
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="PID">导入批次</asp:LinkButton>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="DateID">时间段编号</asp:LinkButton>
                                </td>
                                
                                
                                <td align="center"  <%=sUserStyle %>>
                                    用户编号
                                </td>
                                
                                <td align="center"  <%=sUserStyle %>>
                                    用户名称
                                </td>
                                <td align="center">
                                    部门编号
                                </td>
                                
                                <td align="center">
                                    部门名称
                                </td>
                                
                                
                                
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="EValueALL">评价总分</asp:LinkButton>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="EUserCount">人次</asp:LinkButton>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="ECount">指标个数</asp:LinkButton>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="EValue">最终分</asp:LinkButton>
                                </td>
                                <td align="center">
                                    <asp:LinkButton runat="server" OnClick="SkyLnkSort_Click" CommandArgument="CreateDate">入库时间</asp:LinkButton>
                                </td>
                                <td align="center">
                                    操作                                  
                                </td>                             
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tablisttr">
                            <td>
                                <%#Eval("ID") %>
                            </td>
                            <td>
                                <asp:CheckBox runat="server" ID="chkselect" ToolTip='<%#Eval("ID") %>'/>
                            </td>
                           <%-- <td align="center">
                                <%#Eval("STableNameName")%>
                            </td>--%>
                             
                            <td align="center">
                                <%#Eval("LTypeName")%>
                            </td>
                             <td align="center">
                                <%#Eval("PID")%>
                            </td>
                          
                            <td align="center">
                                <%#Eval("DateName")%>


                            </td>
                            <td align="center"  <%=sUserStyle %>>
                                <%#Eval("UserID")%>
                            </td>
                            
                            <td align="center"  <%=sUserStyle %>>
                                <%#Eval("UserName")%>
                            </td>
                            <td align="center">
                                <%#Eval("DeptID")%>
                            </td>
                            
                            <td align="center">
                                <%#Eval("DeptName")%>
                            </td>
                            <td align="center">
                                <span class="fColorBlue">
                                <%#Eval("EValueALL")%></span>
                            </td>
                            <td align="center">
                                <%#Eval("EUserCount")%>
                            </td>
                            <td align="center">
                                <%#Eval("ECount")%>
                            </td>
                            <td align="center" title='<%#Eval("EInfo")%>'>
                                <span class="fColorRed">
                                <%#Eval("EValue")%></span>
                            </td>
                            
                            <td align="center">
                                <%#UsToolsDateFormat(Eval("CreateDate"))%>
                            </td>
                            <td>
                                
                                
                                   
                                
                                    <%#UsToolArtUrl("/admin/analysis/scorebakviewmanager.aspx?typeid=1&id=" +""+Eval("ID").ToString(), "[指标]",pDefault.sSize)%>
                                    <%#UsToolArtUrl("/admin/analysis/scorebakviewmanager.aspx?typeid=2&id=" +""+Eval("ID").ToString(), "[人员]",pDefault.sSize)%>

                                
                               
                            </td>
                            
          

                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
        </div>
         <div class="divInfoContext">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="analysis_table_chart">
          <tr>
            <td valign="top">
                <uc1:usersuminfo ID="usersuminfo1" runat="server" Visible="false"  />
                <uc1:departmentsuminfo runat="server" ID="departmentsuminfo1" Visible="false"/>
            </td>
            <td valign="top" class="analysis_table_chart_gdi">
                <cc1:UsChart ID="UsChart1" runat="server" Visible="false"/>
              </td>
          </tr>
        </table>
        </div>
    </div>
    <div class="divInfo">
        <webdiyer:aspnetpager id="Pager" runat="server" AlwaysShow="True" OnPageChanged="Pager_PageChanged"
         ShowCustomInfoSection="Left" ShowPageIndexBox="Always" showpageindex="False"
               CustomInfoHTML="共 <B>%PageCount%</B> 页，当前为第 <B>%CurrentPageIndex%</B> 页，每页 <B>%PageSize%</B> 条" 
               SubmitButtonText="" FirstPageText="首页" LastPageText="尾页" 
               LayoutType="Table" NextPageText="后一页" PrevPageText="前一页" ShowMoreButtons="False" 
               TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" 
               CustomInfoTextAlign="Left" HorizontalAlign="Right"></webdiyer:aspnetpager>
    </div>
    </form>
</body>
</html>
