<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="receivedresume.aspx.cs"
    Inherits="YCHR.Web.newhr.receivedresume" %>
<!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" />
<title>收到的简历-<%=config.sitename %></title>
<link rel="stylesheet" type="text/css" href="<%=config.templatetheme%>/css/member.css" />
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.form.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/core.com.js"></script>
</head>
<body>
<form id="form1" action="receivedresume.aspx" runat="server">
  <!--head-->
  <!-- #include file="include/head.html" -->
  <!--nav-->
  <div class="navbox">
    <div class="navtab">
      <ul>
        <li class="now"><a href="index.aspx">招聘中心</a></li>
        <li><a href="companyinfomodify.aspx">我的资料</a></li>
        <li><a href="account.aspx">我的账户</a></li>
        <li><a href="server_buy.aspx">增值服务</a></li>
        <li><a href="/resume" target="_blank">最新人才库</a></li>
        <li class="search"><a href="resumesearch.aspx">简历搜索</a></li>
        <li class="add"><a href="addjobs.aspx">发布职位</a></li>
      </ul>
    </div>
  </div>
  <div class="clear"> </div>
  <!--content-->
  <div class="box">
    <!--menu-->
    <div class="mb_menu">
      <dl>
        <dt class="m1"><a href="javascript:void(0);">职位管理</a></dt>
        <dd> <a href="addjobs.aspx">发布职位</a></dd>
        <dd> <a href="joblist.aspx">职位管理</a></dd>
        <dt style="margin-top: 8px" class="m2"><a href="javascript:void(0);">简历搜索</a></dt>
        <dd> <a href="resumesearch.aspx">简历搜索</a></dd>
        <dd> <a href="resumeseek.aspx">简历搜索器</a></dd>
        <dt style="margin-top: 8px" class="m3"><a href="javascript:void(0);">简历管理</a></dt>
        <dd> <a href="receivedresume.aspx" class="now">收到的简历</a></dd>
        <dd> <a href="mydownresume.aspx">下载的简历</a></dd>
        <dd> <a href="sendoutinvite.aspx">发出的邀请</a></dd>
        <dd> <a href="collectresume.aspx">收藏的简历</a></dd>
        <dd> <a href="invitetemp.aspx">邀请模板管理</a></dd>
      </dl>
      <div class="ad200"> <img src="<%=config.templatetheme%>/images/member/ad2.gif" width="198" height="70" alt="ad2" /></div>
    </div>
    <!--right-->
    <div class="navmbs"> 您的位置： <a href="/">网站首页</a> > <a href="Index.aspx">招聘中心</a> > 收到的简历 > </div>
    <div class="mb_infoTip" id="infotip"> <em><a href="javascript:;" onclick="document.getElementById ('infotip').className='none'"> 关闭</a></em>
      <p> 收到的简历只能保留3个月 收到简历质量不满意？您可以在“职位管理”中设置职位过滤，过滤掉的职位将不会出现在“收到的简历”中。<a href="#" target="_blank">如何提升招聘效果？</a></p>
    </div>
    <div class="mbbox_r">
      <div class="tagT">
        <ul>
          <li class="<%=YCHR.Common.YCRequest.GetQueryString("state")==""?"cu":"" %>"><a href="receivedResume.aspx"> 所有简历</a></li>
          <li class="<%=YCHR.Common.YCRequest.GetQueryString("state")=="0"?"cu":"" %>"><a href="receivedResume.aspx?state=0"> 未处理的简历</a></li>
          <li class="<%=YCHR.Common.YCRequest.GetQueryString("state")=="1"?"cu":"" %>"><a href="receivedResume.aspx?state=1"> 正在考虑</a></li>
          <li class="<%=YCHR.Common.YCRequest.GetQueryString("state")=="2"?"cu":"" %>"><a href="receivedResume.aspx?state=2"> 已邀请面试</a></li>
          <li class="<%=YCHR.Common.YCRequest.GetQueryString("state")=="3"?"cu":"" %>"><a href="receivedResume.aspx?state=3"> 婉言谢绝</a></li>
        </ul>
      </div>
      <div class="h5px"> </div>
      <div class="pad20">
        <div style="width: auto" class="left ">
          <asp:DropDownList ID="dropjobs" Style="width: auto" class="select_arr" runat="server"> </asp:DropDownList>
          <input type="hidden" value="" id="val_dropjobs" name="val_dropjobs" runat="server">
        </div>
        <div style="width: auto; margin: 0 8px" class="left ">
          <asp:DropDownList ID="dropapplystate" Width="140px" class="select_arr" runat="server"> </asp:DropDownList>
          <input type="hidden" value="" id="val_dropapplystate" name="val_dropapplystate" runat="server">
        </div>
        <span style="padding-right: 8px"><a id="c1" href="javascript:;">展开更多搜索</a></span>
        <asp:Button ID="btnsearch" runat="server" CssClass="btn_so" Text="搜索" OnClick="btnsearch_Click" />
        <div class="h5px">
          <script>
                        document.getElementById("c1").onclick = function () {
                            if (document.getElementById("c2").className == "none")
                            {
                                document.getElementById("c2").className = "";
                            }
                            else if (document.getElementById("c2").className == "")
                            {
                                document.getElementById("c2").className = "none";
                            }
                        }
                    </script>
        </div>
        <div class="none" id="c2">
          <div style="width: auto" class="left">
            <asp:DropDownList ID="dropedu" Style="width: 180px" class="select_arr" runat="server"> </asp:DropDownList>
            <input type="hidden" value="" id="val_dropedu" name="val_dropedu" runat="server">
          </div>
          <div style="width: auto; margin: 0 8px" class="left">
            <asp:DropDownList ID="dropworkage" Style="width: 140px" class="select_arr" runat="server"> </asp:DropDownList>
            <input type="hidden" value="" id="val_dropworkage" name="val_dropworkage" runat="server">
          </div>
          <%-- <span style="padding-right: 8px">姓名:</span>
                    <input type="text" style="width: 106px" onmouseout="this.className='input250'" onmouseover="this.className='input251'"
                        class="input250" runat="server" tabindex="5" name="linkname" maxlength="10" id="linkname">--%>
        </div>
        <div class="h5px"> </div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" style="margin-top: 12px;"
                    class="padding3">
          <tbody>
            <tr class="ft_13" style="background: #F2F2F2">
              <td width="4%"></td>
              <td width="9%" align="center"> 姓名 </td>
              <td width="20%" align="center"> 应聘职位 </td>
              <td width="8%" align="center"> 性别 </td>
              <td width="12%" align="center"> 学历 </td>
              <td width="10%" align="center"> 所在地 </td>
              <td width="12%" align="center"> 工作经验 </td>
              <td width="12%" align="center"> 投递时间 </td>
              <td width="13%" align="center"> 处理状态 </td>
            </tr>
            <asp:Repeater ID="replist" runat="server">
              <ItemTemplate>
                <tr>
                  <td><input type="checkbox" id="chkapplyid" name="chkapplyid" value="<%#Eval("id")%>" />
                    <input type="hidden" id="resumeid" name="resumeid" value="<%#Eval("resumeid")%>"
                                            runat="server" />
                    <input type="hidden" id="jobid" name="jobid" value="<%#Eval("jobid")%>" runat="server" /></td>
                  <td align="center"><a href="<%#getresumeurl(Eval("resumeid")) %>" target="_blank"> <%#Eval("realname") %></a></td>
                  <td align="center"><%#Eval("jobname") %></td>
                  <td align="center"><%#Convert.ToBoolean(Eval("sex")) == true ? "男" : "女"%></td>
                  <td align="center"><%#YCHR.Web.UI.FlagConvert.Dgree(Eval("edu"),"-")%></td>
                  <td align="center"><%#Eval("live") %></td>
                  <td align="center"><%#YCHR.Web.UI.FlagConvert.Workage(Eval("workage"), "-")%></td>
                  <td align="center"><%#Convert.ToDateTime(Eval("addtime")).ToString("yyyy-MM-dd")%></td>
                  <td align="center"><%#YCHR.Common.Enumerations.getapplystatename(Eval("state")) %></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
            <tr id="repnodata" runat="server" visible='false'>
              <td colspan="10" align="center" style="font-size: 20px; line-height: 80px"> 暂无数据 </td>
              <td align="center" style="font-size: 20px; line-height: 80px">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="10"><div class="h5px"> </div>
                <div class="left">
                  <input type="checkbox" onclick="checkall(this,'#form1');" name="chkBoxAll" id="chkBoxAll" />
                  全选 <a class="btn_hui" id="readresume" href="javascript:;">查看简历 </a><a class="btn_hui"
                                        onclick="return YQMS()" href="javascript:;">邀请面试 </a><a class="btn_hui" onclick="return refusems()"
                                            href="javascript:;">婉言谢绝 </a> </div>
                <div class="page"> 共收到求职简历 <span class="ft_zi"> <%=recordCount %> </span>份
                  <div class="pager"> <%=pagestr %> </div>
                </div></td>
              <td>&nbsp;</td>
            </tr>
          </tbody>
        </table>
      </div>
      <script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.scrollablecombo.js"></script>
      <script>
                $('#dropedu').scrollablecombo(); $('#dropjobs').scrollablecombo(); $('#dropapplystate').scrollablecombo();
                $('#dropworkage').scrollablecombo();
                $("#readresume").click(function () {
                    if (!checkBoxSel('chkapplyid', '.padding3'))
                    {
                        MessageBox.show("请选择简历", 2, 2000);
                        return;
                    }
                    // var applyidstr = $(".padding3").find("input[name=chkapplyid]:checked").fieldSerialize().replace('&chkapplyid=', ',');
                    var resumeidstr = $(".padding3").find('input[name="chkapplyid"]:checked').next('input[name=resumeid]').fieldSerialize().replace('&resumeid=', ',');

                    window.open("resumemultiview.aspx?" + resumeidstr);
                });

                function YQMS(type) {
                    if (!checkBoxSel('chkapplyid', '.padding3'))
                    {
                        MessageBox.show("请选择简历", 2, 2000);

                        return;
                    }

                    var resumeidstr = $(".padding3").find('input[name="chkapplyid"]:checked').next('input[name=resumeid]').fieldSerialize().replace('&resumeid=', ',');
                    var jobidstr = $(".padding3").find('input[name="chkapplyid"]:checked').next('input[name=resumeid]').next('input[name=jobid]').fieldSerialize().replace('&jobid=', ',');
                    var url = "/hr/companycontent.aspx";
                    url += "?operate=agreen&" + resumeidstr + "&" + jobidstr; //types=2 是同意面试申请 types=1是主动邀请


                    App.get(url, function (res) {
                        if (res.type == "login")
                        {
                            POPS["login_box"] = App.html(res.content, "企业登录", 400, 320);
                        } else if (res.type == "invitemstemp")
                        {
                            POPS["invitemstemp"] = App.html(res.content, "邀请面试", 450, 250);
                        }
                        else
                        {
                            alert(res.message);

                        }
                    });

                }

                function refusems() {
                    if (!checkBoxSel('chkapplyid', '.padding3'))
                    {
                        MessageBox.show("请选择简历", 2, 2000);

                        return;
                    }
                    var resumeidstr = $(".padding3").find('input[name="chkapplyid"]:checked').next('input[name=resumeid]').fieldSerialize().replace('&resumeid=', ',');
                    var applyidstr = $(".padding3").find("input[name=chkapplyid]:checked").fieldSerialize().replace('&chkapplyid=', ',');
                    var url = "/hr/companycontent.aspx";
                    url += "?operate=refuse&" + applyidstr + "&" + resumeidstr;


                    App.get(url, function (res) {
                        if (res.error == 1)
                        {
                            MessageBox.show("服务器处理数据请求时出错", 2, 2000);

                        }
                        else
                        {
                            MessageBox.show("操作成功", 1, 2000);
                            App.redirect("receivedresume.aspx");
                           
                           
                        }
                    }); 
                } 
                function post_agreenms() {

                    $("#div_agreenms").find("input[type='submit']").attr("disabled", true);
                    App.form($("#form_agreenms")[0], function (res) {
                        if (res.error == 1)
                        {//等于1的时候输出登陆框
                            alert(res.message);
                        }
                        else
                        {
                            MessageBox.show(res.content, 1, 2000);
                        }
                        POPS["invitemstemp"].close(); App.redirect("receivedresume.aspx");
                    });
                    return false;

                }
            </script>
      <!--content-->
    </div>
    <div class="clear"> </div>
  </div>
  <!-- #include file="include/foot.html" -->
</form>
</body>
</html>
