﻿// JScript 文件

/*添加工作信息*/
function addJobSimple()
{
    var title = $get('addjobsimpletext').value;
    var content = $get('addjobsimplearea').value;
    if(title == '')
    {
        alert('请填写标题');
        return false;
    }
    if(content == '')
    {
        alert('请填写内容');
        return false;
    }
    //Ws_Job.UrlRedirect(title,content);
    window.location = getPath()+'job/register.aspx?';
}
/**/

/*调用分类公共模块 开始*/
var className = '';
function getClass(paraClassName,loadImageName,identifier)
{
    className = paraClassName;
    $get(className).innerHTML = '<i></i><img src="'+ getPath() +'Images/indicator.gif" /> <span class="progress">请稍候...</span>';
    Ws_Class.GetClass(identifier,onFunctionComplete,OnFunctionError);
}
function OnFunctionError(ErrorHander)
{
    $get(className).innerHTML='服务器发生错误!';
}

function onFunctionComplete(results) 
{
    $get(className).innerHTML = results;
}

/*调用分类公共模块 结束*/


/*招聘信息列表*/
function getJob(loadImageName,count,where)
{
    //alert(loadImageName+'  '+id);
    $get('jobListLoading').innerHTML = '<i></i><img src="'+ getPath() +'Images/indicator.gif" /> <span class="progress">请稍候...</span>';
    Ws_Job.GetJob(count,where,onJobListComplete,OnJobListError);
}
function getJobList(loadImageName,id,pageindex,where)
{
    //alert(loadImageName+'  '+id);
    $get('jobListLoading').innerHTML = '<i></i><img src="'+ getPath() +'Images/indicator.gif" /> <span class="progress">请稍候...</span>';
    Ws_Job.GetJobList(id,pageindex,where,onJobListComplete,OnJobListError);
}
function OnJobListError(ErrorHander)
{
    $get('jobList').innerHTML='服务器发生错误!';
    $get('jobListLoading').innerHTML = '';
}

function onJobListComplete(results) 
{
    $get('jobList').innerHTML = results;
    $get('jobListLoading').innerHTML = '';
}
/**/

