﻿//收藏简历
function favorite(id) {
       var parameters=new Array();
       parameters.push(id);
       
       zhAjax.stateID = "stateID";
       zhAjax.simple("Company_AddResumeToFavorite",function(_obj){
        if(_obj!=null)
        {
            alert(_obj); 
        }
    },parameters);
}
function Hidden()
{
 $("#table_NotifyContents").hide();
}
//发送招聘邀请
function invite() {

        var accountID=$("#accountID").val();
        var name=$("#jobseekerName").val();
        var nid=GetUrlParm("Nid");//求职都发送简历ID
        
        zhWindow.Dialog.Open("/jobseeker/InviteResume.aspx?id="+accountID+"&Nid="+nid+"&name="+escape(name), "发送面试通知",550,333);
            
}


//查看联系方式
function ViewContact(obj)
{
     obj.style.display="none";
     var jobseekerID=$("#jobseekerAccountID").val();

     var remoteParm=new Array();
     remoteParm.push(jobseekerID);
     zhAjax.stateID="state_contact";
     zhAjax.ajaxStateText.wait="正在核对您的身份……";
     zhAjax.ajaxStateText.succeed="";
     zhAjax.simple("Company_ViewResumeContact",function (_return){
        if(_return!=null)
        {
            $("#contact_contents").html(_return);
        }
     },remoteParm);
}

//refresh and hits
function hit()
{
     var jobseekerID=$("#jobseekerAccountID").val();

     var remoteParm=new Array();
     remoteParm.push(jobseekerID);
     
     zhAjax.simple("jobseeker_GetHitsByAccountID",function (_return){
        if(_return!=null)
        {
            $("#refreshOn").html(_return);
        }
     },remoteParm);
}
//getName
function getName()
{
     var jobseekerID=$("#jobseekerAccountID").val();

     var remoteParm=new Array();
     remoteParm.push(jobseekerID);
     
     zhAjax.simple("jobseeker_GetNameByAccountID",function (_return){
        if(_return!=null)
        {
            $("#GetNameID").html(_return);
        }
     },remoteParm);
}

//
$(document).ready(function() {
    hit();
    getName();
    addCompanyBrowse();
});

//将浏览的简历入库
function addCompanyBrowse()
{
     var jobseekerID=$("#jobseekerAccountID").val();
     var applyid=GetUrlParm("Nid");//求职都发送简历ID

     var remoteParm=new Array();
     remoteParm.push(jobseekerID);
     remoteParm.push(applyid);
     
     zhAjax.simple("addCompanyBrowseResume",function (_return){
        if(_return!=null)
        {
        
        }
     },remoteParm);
}
