<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selfjilu.aspx.cs" Inherits="sanliuling.app.selfjilu" %>

<html>
<head>
    <meta charset="utf-8">
    <title>得分详情——<%=xxsoft_check.check.getseting("systitle") %></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../weui/css/weui.css"/>
    <link rel="stylesheet" href="../weui/css/weuix.css"/>

    <script src="../weui/js/zepto.min.js"></script>
    <script src="../weui/js/zepto.weui.js"></script>

    <script src="../weui/js/php.js"></script>

</head>

<body ontouchstart>
    <div class="weui-header bg-blue"> 
  <div class="weui-header-left"> <a class="icon icon-109 f-white" href="javascript:history.go(-1);">返回</a>  </div>
   <h1 class="weui-header-title">得分详情</h1>
    <div class="weui-header-right"><a class="icon icon-112 f-white" href="exit.aspx"></a></div> 
    </div>
   <%
        string fanganid = Request.QueryString["fanganid"] != null ? Request.QueryString["fanganid"].ToString() : "0";
        string fangan = Request.QueryString["fangan"] != null ? Request.QueryString["fangan"].ToString() : "";
        string userid =xxsoft_user.userclass.getuserid();
        //string kaoheren = xxsoft_user.userclass.getuserid();
        int pinlu =Convert.ToInt32(Request.QueryString["pinlu"] != null ? Request.QueryString["pinlu"].ToString() : "2");
        string shijian = DateTime.Now.ToString("yyyy-MM-dd");
        string zongfen = "0";
        System.Data.DataTable tbz = SqlHelper.dataTable("select * from vzongfen where userid="+userid+" and fanganid="+fanganid+"  "+xxsoft_user.userclass.chksql(shijian,pinlu)+"");
        if (tbz.Rows.Count > 0)
        {
            zongfen = tbz.Rows[0]["zongfen"].ToString();
        }
        string userxm = "";
        string bumen = "";
        string zhiwu = "";
        string ruzhidate = "";
        string sqlstr = "select * from vuserinfo where id=" + userid + "";
        System.Data.DataTable tbu = SqlHelper.dataTable(sqlstr);
        if (tbu.Rows.Count > 0)
        {
            userxm = tbu.Rows[0]["userxm"].ToString();
            bumen = tbu.Rows[0]["bumen"].ToString();
            zhiwu = tbu.Rows[0]["zhiwu"].ToString();
            ruzhidate = tbu.Rows[0]["ruzhidate"].ToString();
        }
        %>
<form name="form1"  class="layui-form">
    <div class="weui-cells__title"><%=fangan %></div>
     <input id="fanganid" name="fanganid" type="hidden" value="<%=fanganid %>"/>
                    <input id="userid" name="userid" type="hidden" value="<%=userid %>"/>
    <div class="weui-cells weui-cells_form">
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
        <div class="weui-cell__bd"><%=userxm %>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd">
            <label class="weui-label">部门</label>
        </div>
        <div class="weui-cell__bd"><%=bumen %>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd">
            <label class="weui-label">职务</label>
        </div>
        <div class="weui-cell__bd"><%=zhiwu %>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd">
            <label class="weui-label">评分时间</label>
        </div>
        <div class="weui-cell__bd"><%=shijian %>
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd">
            <label class="weui-label">总分</label>
        </div>
        <div class="weui-cell__bd"><%=zongfen %>
        </div>
    </div>
  </div>
    <%
        System.Data.DataTable tbx = SqlHelper.dataTable("select * from vfanganxize where fanganid="+fanganid+"");
        for (int i = 0; i < tbx.Rows.Count; i++)
        {
            string timuid =tbx.Rows[i]["timuid"].ToString();
            string fenzhi =tbx.Rows[i]["fenzhi"].ToString();
            string minfen = tbx.Rows[i]["minfen"].ToString();
            string maxfen = tbx.Rows[i]["maxfen"].ToString();
            string bujinfen = tbx.Rows[i]["bujinfen"].ToString();
            string xuanxiang = tbx.Rows[i]["xuanxiang"].ToString();
            string defen = xxsoft_user.userclass.getxzfen(fanganid, userid,timuid, shijian,pinlu).ToString();
            %>
        <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"> <input  name="timuid" type="hidden" value="<%=timuid %>"/>
                    <h4 class="weui-media-box__title"><%=tbx.Rows[i]["bianhao"] %>、<%=tbx.Rows[i]["title"] %>【<%=tbx.Rows[i]["fenzhi"] %>】</h4></div>
        <div class="weui-panel__bd">
            <div class="weui-media-box weui-media-box_text">
                <p class="weui-media-box__desc"><%=tbx.Rows[i]["biaozhun"] %></p>
            </div>
            <div class="weui-media-box weui-media-box_text">
                <p class="weui-media-box__desc"> 
                   得分： <%=defen %></p>
            </div>
        </div>
    </div>
    <%} %>
   
</form>
    
    <script>
   
         $(function () {
             
        });
</script>
</body>
</html>